Mã chấm: 15632
Main.c:2:12: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token void A(int &n){ ^ Main.c:18:30: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token void max(int a[], int n, int &mx){ ^ Main.c:27:28: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token void min(int a[],int n,int &mn){ ^ Main.c: In function ‘main’: Main.c:42:5: warning: implicit declaration of function ‘A’ [-Wimplicit-function-declaration] A(n); ^ Main.c:44:5: warning: implicit declaration of function ‘max’; did you mean ‘main’? [-Wimplicit-function-declaration] max(a,n,mx); ^~~ main Main.c:45:5: warning: implicit declaration of function ‘min’; did you mean ‘main’? [-Wimplicit-function-declaration] min(a,n,mn); ^~~ main Main.c: In function ‘B’: Main.c:15:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ^~~~~~~~~~~~~~~~~