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
268460 Nguyễn Tuấn Kiệt Luỹ thừa bậc 5 C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 536 2023-11-18 20:14:41

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:10:1: error: expected ‘,’ or ‘;’ before numeric constant
 2
 ^
Main.cc:15:13: error: ‘NO’ was not declared in this scope
     int b = NO
             ^~
Main.cc:21:5: error: ‘cout’ was not declared in this scope
     cout << "a+b= " << a + b << endl;
     ^~~~
Main.cc:21:5: note: suggested alternative: ‘cosl’
     cout << "a+b= " << a + b << endl;
     ^~~~
     cosl
Main.cc:21:33: error: ‘endl’ was not declared in this scope
     cout << "a+b= " << a + b << endl;
                                 ^~~~
Main.cc:21:33: note: suggested alternative: ‘ynl’
     cout << "a+b= " << a + b << endl;
                                 ^~~~
                                 ynl