Borderou de evaluare (job #3340450)

Utilizator CRISTI.STGMarius-Cristian Stiegelbauer CRISTI.STG Data 14 februarie 2026 13:18:13
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:13: error: variable 'std::ifstream fin' has initializer but incomplete type 5 | ifstream fin("arbint.in"); | ^ main.cpp:6:14: error: variable 'std::ofstream fout' has initializer but incomplete type 6 | ofstream fout("arbint.out"); | ^ main.cpp:9:7: error: 'NMAX' was not declared in this scope; did you mean 'NMax'? 9 | int A[NMAX+5],AINT[4*NMax]; | ^~~~ | NMax main.cpp: In function 'void Read()': main.cpp:13:17: error: 'M' was not declared in this scope 13 | fin >> N >> M; | ^ main.cpp:15:16: error: 'A' was not declared in this scope 15 | fin >> A[i]; | ^ main.cpp: In function 'void Build()': main.cpp:36:24: error: 'A' was not declared in this scope 36 | Update(1,1,N,i,A[i]); | ^ main.cpp: In function 'int Query(int, int, int, int, int)': main.cpp:43:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 43 | return; | ^~~~~~ main.cpp:46:26: error: expected primary-expression before ')' token 46 | if(a>Right || b<Left)){ | ^ main.cpp:52:33: error: expected ';' before '}' token 52 | Query(2*i+1,Mid+1,Right,a,b) | ^ | ; 53 | } | ~ main.cpp: In function 'void Solve()': main.cpp:56:11: error: 'M' was not declared in this scope 56 | while(M--){ | ^ main.cpp:57:9: error: two or more data types in declaration of 'op' 57 | int int op,a,b; | ^~~ main.cpp:57:9: error: two or more data types in declaration of 'a' main.cpp:57:9: error: two or more data types in declaration of 'b' main.cpp:58:16: error: 'op' was not declared in this scope 58 | fin >> op >> a >> b; | ^~ main.cpp:58:22: error: 'a' was not declared in this scope 58 | fin >> op >> a >> b; | ^ main.cpp:58:27: error: 'b' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?