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 |
599812 |
Lê Trung Kiên |
CỘNG DÃY SỐ |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
477 |
2024-11-21 09:18:02 |
Lỗi biên dịch:
Main.cc: In function ‘int main()’:
Main.cc:22:25: error: ‘i’ was not declared in this scope
22 | dem1=dem1*10+a[i];
| ^
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,&m);
| ~~~~~^~~~~~~~~~~~~~
Main.cc:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
Main.cc:14:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
14 | scanf("%d",&b[i]);
| ~~~~~^~~~~~~~~~~~