Mã chấm: 15633
Main.c:2:12: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token void A(int &n){ ^ Main.c:16:30: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token void max(int a[], int n, int &mx){ ^ Main.c:24:28: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token void min(int a[],int n,int &mn){ ^ Main.c: In function ‘main’: Main.c:44:5: warning: implicit declaration of function ‘A’ [-Wimplicit-function-declaration] A(n); ^ Main.c:46:5: warning: implicit declaration of function ‘max’; did you mean ‘main’? [-Wimplicit-function-declaration] max(a,n,mx); ^~~ main Main.c:47: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:13:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ^~~~~~~~~~~~~~~~~