Borderou de evaluare (job #816582)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Habarnam (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 27 mar. 2025 20:04:11 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: 'ifstream' does not name a type
5 | ifstream fin("habarnam.in");
| ^~~~~~~~
main.cpp:6:1: error: 'ofstream' does not name a type
6 | ofstream fout("habarnam.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:58:5: error: 'fin' was not declared in this scope
58 | fin >> n >> m;
| ^~~
main.cpp:67:5: error: 'fout' was not declared in this scope
67 | fout << max(0LL, tree[1].maxSubarraySum) << endl; // Asiguram ca rezultatul nu este negativ daca toate elementele sunt negative
| ^~~~