Borderou de evaluare (job #1092946)

Utilizator Dddarius95Darius-Florentin Neatu Dddarius95 Data 27 ianuarie 2014 16:45:12
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:36: error: expected unqualified-id before ‘;’ token int N,keys,H[Nmax],v[Nmax],w[Nmax],; ^ user.cpp:19:34: error: expected unqualified-id before ‘inline’ inline void Insert(const int &x),inline void Delete(const int &x),Down(const int &nod),Up(const int &nod),Swap(const int &x,const int &y); ^ user.cpp: In function ‘int main()’: user.cpp:40:25: error: ‘Delete’ was not declared in this scope Delete(x); ^ user.cpp: In function ‘void Insert(const int&)’: user.cpp:52:9: error: ‘nr’ was not declared in this scope v[++nr]=N; ^ user.cpp:54:13: error: ‘UpHeap’ was not declared in this scope UpHeap(N); ^ user.cpp: In function ‘void Delete(const int&)’: user.cpp:60:16: error: ‘Swap’ was not declared in this scope Swap(v[x],N); ^ user.cpp:62:15: error: ‘UpHeap’ was not declared in this scope UpHeap(nod); ^ user.cpp:63:17: error: ‘DownHeap’ was not declared in this scope DownHeap(nod); ^ user.cpp: In function ‘void Down(const int&)’: user.cpp:76:33: error: ‘Son’ was not declared in this scope if (H[son]>=H[nod]) Son=0; ^ user.cpp:80:25: error: ‘Swap’ was not declared in this scope Swap(nod,son); ^ user.cpp:81:16: error: assignment of read-only reference ‘nod’ nod=son; ^ user.cpp: In function ‘void Up(const int&)’: user.cpp:91:24: error: ‘Swap’ was not declared in this scope Swap(nod,T(nod)); ^ user.cpp:92:12: error: assignment of read-only reference ‘nod’ nod=T(nod); ^

Ceva nu functioneaza?