Borderou de evaluare (job #1044877)
Utilizator | Data | 30 noiembrie 2013 16:02:56 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:22: error: size of array ‘h’ is too large
int a,b,h[1000000000],i,j,k,hh[1000000000];
^
user.cpp:3:43: error: size of array ‘hh’ is too large
int a,b,h[1000000000],i,j,k,hh[1000000000];
^
user.cpp: In function ‘void del(int)’:
user.cpp:10:5: error: ‘h’ was not declared in this scope
h[i-1]=h[i];
^
user.cpp: In function ‘void swap(int, int)’:
user.cpp:15:9: error: ‘h’ was not declared in this scope
aux=h[i];
^
user.cpp: In function ‘void heapup(int)’:
user.cpp:22:9: error: ‘h’ was not declared in this scope
if (h[poz]<h[i])
^
user.cpp: In function ‘int main()’:
user.cpp:33:5: error: ‘hh’ was not declared in this scope
hh[k]=b;
^
user.cpp:34:18: error: ‘h’ was not declared in this scope
h[k]=b;
^
user.cpp:37:37: error: ‘h’ was not declared in this scope
if(a==2){for (j=1;j<=k;j++) if (h[j]==hh[b]) del(j);
^
user.cpp:37:43: error: ‘hh’ was not declared in this scope
if(a==2){for (j=1;j<=k;j++) if (h[j]==hh[b]) del(j);
^
user.cpp:40:18: error: ‘h’ was not declared in this scope
if (a==3) g<<h[1]<<'\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !