Borderou de evaluare (job #3032663)

Utilizator vlad_miscociMiscoci Vlad Andrei vlad_miscoci Data 22 martie 2023 16:13:04
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void update(int, int, int, int, int)': main.cpp:17:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 17 | else | ^~~~ main.cpp:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 19 | v[node] = max(v[node*2], v[node*2+1]); | ^ main.cpp: In function 'int main()': main.cpp:51:27: error: 'w' was not declared in this scope 51 | for(int i=0; i<m; i++)w | ^ main.cpp:44:17: warning: unused variable 'q' [-Wunused-variable] 44 | int n, m, a,q,x,y; | ^ main.cpp:44:19: warning: unused variable 'x' [-Wunused-variable] 44 | int n, m, a,q,x,y; | ^ main.cpp:44:21: warning: unused variable 'y' [-Wunused-variable] 44 | int n, m, a,q,x,y; | ^ Non zero exit status: 1

Ceva nu functioneaza?