Mã chấm: 271382
Main.cc:27:11: error: expected constructor, destructor, or type conversion before ‘(’ token
printf("%d\n", total);
^
Main.cc:28:5: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
Main.cc:29:1: error: expected declaration before ‘}’ token
}
^
Main.cc: In function ‘int main()’:
Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &N, &X, &Y);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:14:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &hocsinh[i]);
~~~~~^~~~~~~~~~~~~~~~~~~