Mã chấm: 599699
Main.cc: In function ‘int main()’: Main.cc:11:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] 11 | scanf("%d", a[i]); | ~^ ~~~~ | | | | int* int Main.cc:16:14: error: ‘i’ was not declared in this scope 16 | if(a[i]%b==0){ | ^ Main.cc:18:21: error: expected primary-expression before ‘)’ token 18 | if () | ^ Main.cc:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ Main.cc:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d", a[i]); | ~~~~~^~~~~~~~~~~~