Borderou de evaluare (job #2905098)

Utilizator Fabian_TruscaTrusca Fabian Fabian_Trusca Data 19 mai 2022 16:19:27
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void schimb(int, int)': main.cpp:8:22: error: 'h' was not declared in this scope; did you mean 'nh'? 8 | swap(h[p1],h[p2]); | ^ | nh main.cpp:10:29: error: expected ']' before ';' token 10 | poz[h[p2]=p2; | ^ | ] main.cpp: In function 'void coboara(int)': main.cpp:16:20: error: 'h' was not declared in this scope 16 | if(fs<=nh && v[h[fs]]<v[h[bun]]) | ^ main.cpp:20:20: error: 'h' was not declared in this scope 20 | if(fs<=nh && v[h[fd]]<v[h[bun]]) | ^ main.cpp: In function 'void urca(int)': main.cpp:33:18: error: 'h' was not declared in this scope 33 | while(p>1&&v[h[p]]<v[h[p/z]]) | ^ main.cpp:33:30: error: 'z' was not declared in this scope 33 | while(p>1&&v[h[p]]<v[h[p/z]]) | ^ main.cpp: In function 'void adauga(int)': main.cpp:42:5: error: 'h' was not declared in this scope; did you mean 'nh'? 42 | h[++nh]=val; | ^ | nh main.cpp: In function 'int main()': main.cpp:62:5: error: 'in' was not declared in this scope; did you mean 'n'? 62 | in>>s; | ^~ | n main.cpp:79:13: error: 'out' was not declared in this scope 79 | out<<v[h[1]]<<"\n"; | ^~~ main.cpp:79:20: error: 'h' was not declared in this scope 79 | out<<v[h[1]]<<"\n"; | ^ Non zero exit status: 1

Ceva nu functioneaza?