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 |
268853 |
Lâm Quốc Bảo |
Chuỗi lớn nhất |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
924 |
2023-11-18 20:42:02 |
Lỗi biên dịch:
Main.cc:57:2: error: expected unqualified-id before ‘return’
return sum;
^~~~~~
Main.cc:58:1: error: expected declaration before ‘}’ token
}
^
Main.cc: In function ‘int main()’:
Main.cc:14:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
Main.cc: In function ‘void input(char*, int)’:
Main.cc:26:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &a[i]);
~~~~~^~~~~~~~~~~~~