Borderou de evaluare (job #2065852)

Utilizator vladavladaa vlada Data 14 noiembrie 2017 12:51:09
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void build(int, int, int, int, int)’: user.cpp:13:9: error: ‘arb’ was not declared in this scope arb[nod]=val; ^ user.cpp:20:5: error: ‘arb’ was not declared in this scope arb[nod]=max(arb[nod*2],arb[nod*2+1]); ^ user.cpp: In function ‘void query(int, int, int, int, int)’: user.cpp:27:9: error: ‘maxx’ was not declared in this scope maxx=max(maxx,arb[nod]); ^ user.cpp:27:23: error: ‘arb’ was not declared in this scope maxx=max(maxx,arb[nod]); ^ user.cpp: In function ‘int main()’: user.cpp:38:14: error: ‘a’ was not declared in this scope fin>>a[i]; ^ user.cpp:39:24: error: ‘st’ was not declared in this scope build(1,i,a[i],st,dr); ^ user.cpp:39:27: error: ‘dr’ was not declared in this scope build(1,i,a[i],st,dr); ^ user.cpp:43:14: error: ‘op’ was not declared in this scope fin>>op>>x>>y; ^ user.cpp:43:18: error: ‘x’ was not declared in this scope fin>>op>>x>>y; ^ user.cpp:43:21: error: ‘y’ was not declared in this scope fin>>op>>x>>y; ^ user.cpp:46:13: error: ‘maxx’ was not declared in this scope maxx=-1; ^ user.cpp:48:13: error: expected ‘;’ before ‘fout’ fout<<maxx<<'\n'; ^ user.cpp:35:11: warning: unused variable ‘m’ [-Wunused-variable] int n,m; ^

Ceva nu functioneaza?