Borderou de evaluare (job #1233956)
Utilizator | Data | 26 septembrie 2014 14:17:54 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:43: error: size of array ‘A’ is too large
long poz[200005], index = 0, A[1000000003];
^
user.cpp: In member function ‘void MIN_HEAP::coboara(int)’:
user.cpp:25:22: error: ‘A’ was not declared in this scope
swap(A[H[left_son(nod)]], A[H[nod]]);
^
user.cpp:32:18: error: ‘A’ was not declared in this scope
swap(A[H[next_nod]], A[H[nod]]);
^
user.cpp: In member function ‘void MIN_HEAP::urca(int)’:
user.cpp:41:18: error: ‘A’ was not declared in this scope
swap(A[H[father(nod)]], A[H[nod]]);
^
user.cpp: In member function ‘void MIN_HEAP::insert(long int)’:
user.cpp:49:38: error: ‘A’ was not declared in this scope
if( N == 0 ) { H[++N] = val; A[val] = 1; }
^
user.cpp:53:13: error: ‘A’ was not declared in this scope
A[val] = N;
^
user.cpp: In member function ‘void MIN_HEAP::del(int)’:
user.cpp:62:18: error: ‘A’ was not declared in this scope
swap(A[H[N]], A[H[nod]]);
^
user.cpp: In function ‘int main()’:
user.cpp:88:24: error: ‘A’ was not declared in this scope
else H.del(A[poz[x]]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !