Borderou de evaluare (job #1043428)

Utilizator rzvrzvNicolescu Razvan rzvrzv Data 28 noiembrie 2013 16:13:42
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void heapup(int)’: user.cpp:8:8: error: ‘a’ was not declared in this scope if(a[h[nod]<a[h[nod/2]&&nod>1) ^ user.cpp:8:10: error: ‘h’ was not declared in this scope if(a[h[nod]<a[h[nod/2]&&nod>1) ^ user.cpp:8:34: error: expected ‘]’ before ‘)’ token if(a[h[nod]<a[h[nod/2]&&nod>1) ^ user.cpp:8:34: error: expected ‘]’ before ‘)’ token user.cpp:10:29: error: ‘swap’ was not declared in this scope swap(a[h[nod]],a[h[nod/2]]); ^ user.cpp:12:8: error: ‘poz’ was not declared in this scope swap(poz[) ^ user.cpp:12:12: error: expected primary-expression before ‘)’ token swap(poz[) ^ user.cpp:12:12: error: expected ‘]’ before ‘)’ token user.cpp:13:9: error: expected ‘;’ before ‘heapup’ heapup(nod/2); ^ user.cpp:7:9: warning: unused variable ‘aux’ [-Wunused-variable] int aux; ^ user.cpp: In function ‘void heapdown(int)’: user.cpp:20:16: error: ‘m’ was not declared in this scope if (i*2+1<=m) ^ user.cpp:22:13: error: ‘a’ was not declared in this scope if (a[h[2*i]<a[h[i]&&a[h[2*i+1]<=a[h[2*i]) ^ user.cpp:22:15: error: ‘h’ was not declared in this scope if (a[h[2*i]<a[h[i]&&a[h[2*i+1]<=a[h[2*i]) ^ user.cpp:22:50: error: expected ‘]’ before ‘)’ token if (a[h[2*i]<a[h[i]&&a[h[2*i+1]<=a[h[2*i]) ^ user.cpp:22:50: error: expected ‘]’ before ‘)’ token user.cpp:22:50: error: expected ‘]’ before ‘)’ token user.cpp:22:50: error: expected ‘]’ before ‘)’ token user.cpp:24:23: error: expected ‘]’ before ‘;’ token aux=a[h[i]; ^ user.cpp:25:28: error: expected ‘]’ before ‘;’ token a[h[i]=a[h[i*2]; ^ user.cpp:25:28: error: expected ‘]’ before ‘;’ token

Ceva nu functioneaza?