Mã chấm: 269433
Main.cc:13:17: error: macro "getc" passed 2 arguments, but takes just 1 getc("%s",&N); ^ Main.cc: In function ‘int main()’: Main.cc:11:29: error: expected primary-expression before ‘)’ token }while(N<1&&N>pow(10,6)>); ^ Main.cc:12:10: error: conflicting declaration ‘char N’ char N; ^ Main.cc:8:9: note: previous declaration as ‘int N’ int N; ^ Main.cc:13:18: warning: statement is a reference, not call, to function ‘getc’ [-Waddress] getc("%s",&N); ^ Main.cc:13:18: warning: statement has no effect [-Wunused-value] Main.cc:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&N); ~~~~~^~~~~~~~~