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 |
99228 |
LUFFI
|
LỰA CHỌN ĐỘI TUYỂN ICPC |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
799 |
2023-05-26 15:21:52 |
Lỗi biên dịch:
Main.cc: In function ‘int main(int, const char**)’:
Main.cc:34:5: error: expected ‘;’ before ‘}’ token
}
^
Main.cc:26:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
Main.cc:27:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
~~~~~^~~~~~~~~
Main.cc:32:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~