| 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 |
|---|---|---|---|---|---|---|---|---|
| 15557 | Phạm Doãn Hoàng Dân | Độ đẹp của dãy | C/C++ | Lỗi biên dịch (CE) | 0 MS | 0 KB | 389 | 2023-01-15 23:09:18 |
Main.c: In function ‘main’:
Main.c:20:40: error: expected ‘)’ before ‘;’ token
printf("%d", a[pmax + 1] - a[pmax -1];
^
Main.c:21:1: error: expected ‘;’ before ‘}’ token
}
^
Main.c:6:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~
Main.c:10:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^~~~~~~~~~~~~~~~~~