Borderou de evaluare (job #2900877)

Utilizator Iordache_AnaIordache Ana-Georgiana Iordache_Ana Data 12 mai 2022 12:32:58
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:16:30: error: 'mijl' was not declared in this scope 16 | update(2*node, left, mijl, poz, val); | ^~~~ main.cpp:17:27: error: 'mijl' was not declared in this scope 17 | else update(2*node+1, mijl+1, right, poz, val); | ^~~~ main.cpp: In function 'int query(int, int, int, int, int)': main.cpp:28:32: error: 'mijl' was not declared in this scope 28 | v1=query(2*node, left, mijl, a, b); | ^~~~ main.cpp:30:9: error: 'val2' was not declared in this scope; did you mean 'v2'? 30 | val2=query(2*node+1, mijl+1, right, a, b); | ^~~~ | v2 main.cpp:30:30: error: 'mijl' was not declared in this scope 30 | val2=query(2*node+1, mijl+1, right, a, b); | ^~~~ main.cpp:31:16: error: 'val1' was not declared in this scope; did you mean 'v1'? 31 | return max(val1, val2); | ^~~~ | v1 main.cpp:31:22: error: 'val2' was not declared in this scope; did you mean 'v2'? 31 | return max(val1, val2); | ^~~~ | v2 main.cpp:25:15: warning: unused variable 'v2' [-Wunused-variable] 25 | int v1=0, v2=0; | ^~ Non zero exit status: 1

Ceva nu functioneaza?