Mã chấm: 269351
Main.cc: In function ‘int point(char*, char, char)’: Main.cc:16:25: error: ‘n’ was not declared in this scope for (int i = 0; i < n; i++) ^ Main.cc: In function ‘int main()’: Main.cc:36:14: error: expected primary-expression before ‘)’ token getchar(()); ^ Main.cc:37:19: warning: format ‘%c’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100]’ [-Wformat=] scanf("%c", &a); ~~^ Main.cc:41:14: warning: unused variable ‘temp’ [-Wunused-variable] { char temp = a[0]; ^~~~ Main.cc:35:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ~~~~~^~~~~~~~~~ Main.cc:37:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &a); ~~~~~^~~~~~~~~~