Borderou de evaluare (job #1254543)
Utilizator | Data | 2 noiembrie 2014 21:32:10 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:22: error: size of array ‘h’ is too large
int t, o, i, j, h[MAX], n, k, a[MAX], m, index[MAX], xedni[MAX], x;
^
user.cpp:7:36: error: size of array ‘a’ is too large
int t, o, i, j, h[MAX], n, k, a[MAX], m, index[MAX], xedni[MAX], x;
^
user.cpp:7:51: error: size of array ‘index’ is too large
int t, o, i, j, h[MAX], n, k, a[MAX], m, index[MAX], xedni[MAX], x;
^
user.cpp:7:63: error: size of array ‘xedni’ is too large
int t, o, i, j, h[MAX], n, k, a[MAX], m, index[MAX], xedni[MAX], x;
^
user.cpp: In function ‘void upheap()’:
user.cpp:12:19: error: ‘h’ was not declared in this scope
while (k>1 && h[k]<h[k/2])
^
user.cpp:15:14: error: ‘index’ was not declared in this scope
swap(index[xedni[k]], index[xedni[k/2]]);
^
user.cpp:15:20: error: ‘xedni’ was not declared in this scope
swap(index[xedni[k]], index[xedni[k/2]]);
^
user.cpp: In function ‘void downheap()’:
user.cpp:29:25: error: ‘h’ was not declared in this scope
if (k*2+1<=n && h[2*k+1]<h[2*k])
^
user.cpp:31:13: error: ‘h’ was not declared in this scope
if (h[nod]>=h[k]) nod=0;
^
user.cpp:35:14: error: ‘h’ was not declared in this scope
swap(h[k], h[nod]);
^
user.cpp:36:14: error: ‘index’ was not declared in this scope
swap(index[xedni[h[k]]], index[xedni[h[nod]]]);
^
user.cpp:36:20: error: ‘xedni’ was not declared in this scope
swap(index[xedni[h[k]]], index[xedni[h[nod]]]);
^
user.cpp: In function ‘void cut()’:
user.cpp:45:5: error: ‘h’ was not declared in this scope
h[k] = h[n];
^
user.cpp: In function ‘int main()’:
user.cpp:61:25: error: ‘h’ was not declared in this scope
if (o==3) cout<<h[1]<<'\n';
^
user.cpp:65:13: error: ‘h’ was not declared in this scope
h[++n]=x;
^
user.cpp:66:13: error: ‘index’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !