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 |
98835 |
LUFFI
|
LỰA CHỌN ĐỘI TUYỂN ICPC |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
746 |
2023-05-26 14:56:13 |
Lỗi biên dịch:
Main.cc: In function ‘int main()’:
Main.cc:35:5: error: expected ‘,’ or ‘;’ before ‘printf’
printf("%d",s));
^~~~~~
Main.cc:33:9: warning: unused variable ‘s’ [-Wunused-variable]
int s=0
^
Main.cc:26:5: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
(void)scanf("%d",&n);
^~~~~~~~~~~~~~~~~~~~
Main.cc:27:5: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
(void)scanf("%d",&k);
^~~~~~~~~~~~~~~~~~~~
Main.cc:30:13: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
(void)scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~~~~~~~