Borderou de evaluare (job #805447)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Rucsac | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 22 ian. 2025 15:27:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:20:13: error: 'hz' was not declared in this scope
20 | if (hz.find(cur - k) != hz.end()) {
| ^~
main.cpp:23:9: error: 'hz' was not declared in this scope
23 | hz[cur]++;
| ^~
main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | freopen("rucsac.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:9:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | freopen("rucsac.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~