Borderou de evaluare (job #2970588)
Utilizator | Data | 25 ianuarie 2023 16:27:56 | |
---|---|---|---|
Problema | Problema rucsacului | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:13: error: variable 'std::ifstream fin' has initializer but incomplete type
4 | ifstream fin("rucsac.in");
| ^
main.cpp:5:14: error: variable 'std::ofstream fout' has initializer but incomplete type
5 | ofstream fout("rucsac.out");
| ^
main.cpp:8:1: error: expected ',' or ';' before 'const'
8 | const int G=1e4;
| ^~~~~
main.cpp:9:12: error: 'G' was not declared in this scope
9 | int profit[G+1];
| ^
main.cpp: In function 'int main()':
main.cpp:26:9: error: 'profit' was not declared in this scope
26 | profit[i]=-1;
| ^~~~~~
main.cpp:27:5: error: 'profit' was not declared in this scope
27 | profit[0]=0;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !