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:17:10: error: unknown type name ‘Test’
void dem(Test T[], int n)
^~~~
Main.c: In function ‘main’:
Main.c:34:2: error: unknown type name ‘Test’; use ‘struct’ keyword to refer to the type
Test T[100];
^~~~
struct
Main.c:37:2: warning: implicit declaration of function ‘nhap’ [-Wimplicit-function-declaration]
nhap(T, n);
^~~~
Main.c:38:2: warning: implicit declaration of function ‘dem’ [-Wimplicit-function-declaration]
dem(T,n);
^~~
Main.c:36:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~