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 |
466366 |
Noob
|
MÁY RÚT TIỀN TỰ ĐỘNG |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
359 |
2024-05-24 15:27:49 |
Lỗi biên dịch:
Main.cc: In function ‘int main()’:
Main.cc:15:19: error: expected ‘;’ before ‘)’ token
15 | sumt+=T[i]);
| ^
| ;
Main.cc:20:21: error: expected primary-expression before ‘)’ token
20 | for()
| ^
Main.cc:21:9: error: expected primary-expression before ‘}’ token
21 | }
| ^
Main.cc:20:22: error: expected ‘;’ before ‘}’ token
20 | for()
| ^
| ;
21 | }
| ~
Main.cc:21:9: error: expected primary-expression before ‘}’ token
21 | }
| ^
Main.cc:20:22: error: expected ‘)’ before ‘}’ token
20 | for()
| ~ ^
| )
21 | }
| ~
Main.cc:21:9: error: expected primary-expression before ‘}’ token
21 | }
| ^
Main.cc:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d %d",&n,&s);
| ~~~~~^~~~~~~~~~~~~~~
Main.cc:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | scanf("%d",&T[i]);
| ~~~~~^~~~~~~~~~~~