Borderou de evaluare (job #741805)

Utilizator avatar clara.cm14 Chirita Clara clara.cm14 IP ascuns
Problemă Compus (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 31 oct. 2023 22:58:20 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'ifstream' does not name a type 4 | ifstream fin("compus.in"); | ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type 5 | ofstream fout("compus.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:14:1: error: 'fin' was not declared in this scope 14 | fin >> n >> e >> p; | ^~~ main.cpp:21:5: warning: statement has no effect [-Wunused-value] 21 | for(i; i < n; i++) | ^ main.cpp:40:5: error: 'fout' was not declared in this scope 40 | fout << v[i] << " "; | ^~~~ main.cpp:39:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 39 | for(i = 0; i < n; i++) | ^~~ main.cpp:43:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 43 | return 0; | ^~~~~~