Mã chấm: 272159


Main.cc: In function ‘int main()’:
Main.cc:8:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
     scanf("%d",n)
                 ^
Main.cc:9:1: error: expected ‘;’ before ‘char’
 char c ();
 ^~~~
Main.cc:12:5: error: a function-definition is not allowed here before ‘return’
     return 0;
     ^~~~~~
Main.cc:10:5: warning: unused variable ‘t’ [-Wunused-variable]
 int t;
     ^
Main.cc:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",n)
     ~~~~~^~~~~~~~