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 |
271382 |
Phan Trần Đức Trí |
HUTECH IT OFFICE TOUR |
C/C++ |
Lỗi biên dịch (CE) |
0 MS
|
0 KB
|
535 |
2023-11-21 08:53:44 |
Lỗi biên dịch:
Main.cc:27:11: error: expected constructor, destructor, or type conversion before ‘(’ token
printf("%d\n", total);
^
Main.cc:28:5: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
Main.cc:29:1: error: expected declaration before ‘}’ token
}
^
Main.cc: In function ‘int main()’:
Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &N, &X, &Y);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:14:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &hocsinh[i]);
~~~~~^~~~~~~~~~~~~~~~~~~