Mã chấm: 271278
Main.cc: In function ‘void nhapn(int&, int&, int&)’: Main.cc:9:20: error: expected ‘)’ before ‘;’ token scanf("%d",&han; ^ Main.cc: In function ‘void nhapm(int&)’: Main.cc:15:21: error: ‘a’ was not declared in this scope scanf("%d",&a[i]); ^ Main.cc: In function ‘int nhap(int, int, int, int*)’: Main.cc:19:14: error: expected unqualified-id before ‘int’ int dnam,int dnu; ^~~ Main.cc:23:13: error: ‘dnu’ was not declared in this scope dnu++; ^~~ Main.cc:23:13: note: suggested alternative: ‘dnam’ dnu++; ^~~ dnam Main.cc:31:12: error: ‘dnu’ was not declared in this scope t=dnam+dnu; ^~~ Main.cc:31:12: note: suggested alternative: ‘dnam’ t=dnam+dnu; ^~~ dnam Main.cc: In function ‘int main()’: Main.cc:38:20: error: too many arguments to function ‘void nhapm(int&)’ nhapm(n,han,k,a); ^ Main.cc:13:6: note: declared here void nhapm(int &n){ ^~~~~ Main.cc: In function ‘void nhapn(int&, int&, int&)’: Main.cc:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ~~~~~^~~~~~~~~ Main.cc:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ~~~~~^~~~~~~~~