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 |
99132 |
LUFFI
|
LỰA CHỌN ĐỘI TUYỂN ICPC |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
748 |
2023-05-26 15:17:03 |
Lỗi biên dịch:
Main.cc:33:7: error: expected constructor, destructor, or type conversion before ‘(’ token
sx(a,n);
^
Main.cc:34:2: error: expected unqualified-id before ‘if’
if (k*3>n)
^~
Main.cc:36:2: error: expected unqualified-id before ‘else’
else
^~~~
Main.cc:38:1: error: expected declaration before ‘}’ token
}
^
Main.cc: In function ‘int main(int, const char**)’:
Main.cc:27:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
Main.cc:28:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
~~~~~^~~~~~~~~
Main.cc:31:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~