Borderou de evaluare (job #846117)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Run (clasa a 8-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 21 dec. 2025 10:41:38 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:77:22: error: expected '}' at end of input
77 | prev[nb] = a;
| ^
main.cpp:57:25: note: to match this '{'
57 | while (!pq.empty()) {
| ^
main.cpp:77:22: error: expected '}' at end of input
77 | prev[nb] = a;
| ^
main.cpp:19:12: note: to match this '{'
19 | int main() {
| ^
main.cpp:20:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | freopen("run.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:21:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | freopen("run.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~