Borderou de evaluare (job #3213885)

Utilizator adiadi11Adrian Ariton adiadi11 Data 13 martie 2024 16:18:14
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'ifstream' does not name a type 4 | ifstream fin{"arbint.in"}; | ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type 5 | ofstream fout{"arbint.out"}; | ^~~~~~~~ main.cpp: In member function 'int Segtree::update(int, int, int, int, int, int)': main.cpp:40:5: warning: no return statement in function returning non-void [-Wreturn-type] 40 | } | ^ main.cpp: In member function 'int Segtree::query()': main.cpp:70:13: error: 'fout' was not declared in this scope 70 | fout << query(a, b-1)<<"\n"; | ^~~~ main.cpp:72:5: warning: no return statement in function returning non-void [-Wreturn-type] 72 | } | ^ main.cpp: In member function 'void Segtree::build(int, int, int)': main.cpp:76:13: error: 'fin' was not declared in this scope 76 | fin >> segtree[nod]; | ^~~ main.cpp: In function 'int main()': main.cpp:88:5: error: 'fin' was not declared in this scope 88 | fin >> n >> m; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?