Mã chấm: 271990
Main.cc:5:19: error: expected identifier before ‘&’ token void nhapn(int &n,&x,&y,&o){ ^ Main.cc:5:22: error: expected identifier before ‘&’ token void nhapn(int &n,&x,&y,&o){ ^ Main.cc:5:25: error: expected identifier before ‘&’ token void nhapn(int &n,&x,&y,&o){ ^ Main.cc: In function ‘void nhapm(int, int*)’: Main.cc:13:5: error: expected ‘;’ before ‘}’ token } ^ Main.cc: In function ‘int main()’: Main.cc:18:12: error: too few arguments to function ‘void nhapn(int&, int&, int&, int&)’ nhapn(n); ^ Main.cc:5:6: note: declared here void nhapn(int &n,&x,&y,&o){ ^~~~~ Main.cc:16:11: warning: unused variable ‘x’ [-Wunused-variable] int n,x,y,o; ^ Main.cc:16:13: warning: unused variable ‘y’ [-Wunused-variable] int n,x,y,o; ^ Main.cc:16:15: warning: unused variable ‘o’ [-Wunused-variable] int n,x,y,o; ^ Main.cc: In function ‘void nhapn(int&, int&, int&, int&)’: Main.cc:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~ Main.cc:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&x,&y,&o); ~~~~~^~~~~~~~~~~~~~~~~~~~~ Main.cc: In function ‘void nhapm(int, int*)’: Main.cc:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]) ~~~~~^~~~~~~~~~~~