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 |
14135 |
Phan Huy Thuật |
Số nguyên không âm đẹp |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
559 |
2022-12-29 20:53:21 |
Lỗi biên dịch:
Main.cc: In function ‘int main()’:
Main.cc:3:5: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
Main.cc:8:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (j >= 0 && j % 4 == 0 || j % 7 == 0 || j % 11 == 0) {
~~~~~~~^~~~~~~~~~~~~
Main.cc:12:9: error: ‘cout’ was not declared in this scope
cout << cnt << endl;
^~~~
Main.cc:12:9: note: suggested alternative: ‘cnt’
cout << cnt << endl;
^~~~
cnt
Main.cc:12:24: error: ‘endl’ was not declared in this scope
cout << cnt << endl;
^~~~
Main.cc:12:24: note: suggested alternative: ‘enum’
cout << cnt << endl;
^~~~
enum
Main.cc:15:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (j >= 0 && j % 4 == 0 || j % 7 == 0 || j % 11 == 0) {
~~~~~~~^~~~~~~~~~~~~