Main.c:8:11: error: unknown type name ‘Test’
void nhap(Test T[], int &n)
^~~~
Main.c:8:25: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void nhap(Test T[], int &n)
^
Main.c:21:10: error: unknown type name ‘Test’
void dem(Test T[], int n)
^~~~
Main.c: In function ‘main’:
Main.c:38:2: error: unknown type name ‘Test’; use ‘struct’ keyword to refer to the type
Test T[100];
^~~~
struct
Main.c:44:2: warning: implicit declaration of function ‘nhap’ [-Wimplicit-function-declaration]
nhap(T, n);
^~~~
Main.c:45:2: warning: implicit declaration of function ‘dem’ [-Wimplicit-function-declaration]
dem(T,n);
^~~
Main.c:42:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~