Borderou de evaluare (job #816584)

Utilizator avatar TIbi120 Tiberiu Enache TIbi120 IP ascuns
Problemă Habarnam (clasele 11-12) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 27 mar. 2025 20:04:50 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: 'ifstream' does not name a type 6 | ifstream fin("habarnam.in"); | ^~~~~~~~ main.cpp:7:1: error: 'ofstream' does not name a type 7 | ofstream fout("habarnam.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:59:5: error: 'fin' was not declared in this scope 59 | fin >> n >> m; | ^~~ main.cpp:68:5: error: 'fout' was not declared in this scope 68 | fout << max(0LL, tree[1].maxSubarraySum) << endl; // Asiguram ca rezultatul nu este negativ daca toate elementele sunt negative | ^~~~