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 |
599880 |
Lê Trung Kiên |
TÌM HIỂU MẠNG MÁY TÍNH |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
505 |
2024-11-21 09:32:26 |
Lỗi biên dịch:
Main.cc: In function ‘int main()’:
Main.cc:12:9: error: conflicting declaration ‘int a’
12 | int a,b;
| ^
Main.cc:9:13: note: previous declaration as ‘int a [100000][100000]’
9 | int a[100000][100000]={0};
| ^
Main.cc:13:8: error: expected ‘;’ before ‘while’
13 | t=n
| ^
| ;
14 | while(n-->1){
| ~~~~~
Main.cc:12:11: warning: unused variable ‘b’ [-Wunused-variable]
12 | int a,b;
| ^
Main.cc:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%d",&n);
| ~~~~~^~~~~~~~~