Mã chấm: 272271
Main.cc: In function ‘int main()’: Main.cc:15:18: error: ‘a’ was not declared in this scope scanf("%d", a[i]); ^ Main.cc:21:9: error: ‘a’ was not declared in this scope if(a[i] == 1) ^ Main.cc:34:1: error: expected ‘}’ at end of input } ^ Main.cc:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ~~~~~^~~~~~~~~~ Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ~~~~~^~~~~~~~~~ Main.cc:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &y); ~~~~~^~~~~~~~~~