Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
269433 Lâm Tấn Huy Chuỗi lớn nhất C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 286 2023-11-18 21:30:23

Lỗi biên dịch:

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);
         ~~~~~^~~~~~~~~