Borderou de evaluare (job #708545)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Rucsac 1 | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 mar. 2023 09:58:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'ofstream'
5 | ofstream fout("rucsac.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:30:5: error: 'fout' was not declared in this scope
30 | fout << val;
| ^~~~
main.cpp:21:9: warning: unused variable 'ind' [-Wunused-variable]
21 | int ind = 1;
| ^~~