Borderou de evaluare (job #2134350)
Utilizator | Data | 17 februarie 2018 21:08:01 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:1: error: ‘MAXN’ does not name a type
MAXN = 2e5;
^
user.cpp:10:10: error: ‘MAXN’ was not declared in this scope
int heap[MAXN + 10], v[MAXN + 10], poz[MAXN + 10];
^
user.cpp:10:24: error: ‘MAXN’ was not declared in this scope
int heap[MAXN + 10], v[MAXN + 10], poz[MAXN + 10];
^
user.cpp:10:40: error: ‘MAXN’ was not declared in this scope
int heap[MAXN + 10], v[MAXN + 10], poz[MAXN + 10];
^
user.cpp: In function ‘void upHeap(int)’:
user.cpp:27:20: error: ‘heap’ was not declared in this scope
while (nod > 1 && heap[father(nod)] >= heap[nod]){
^
user.cpp:29:8: error: ‘pos’ was not declared in this scope
swap(pos[nod], pos[father(nod)]);
^
user.cpp: In function ‘void downHeap(int)’:
user.cpp:36:26: error: ‘n’ was not declared in this scope
while (left_son(nod) <= n || right_son(nod) <= n){
^
user.cpp:37:6: error: ‘heap’ was not declared in this scope
if(heap[right_son(nod)] >= heap[nod]){
^
user.cpp:39:9: error: ‘poz’ was not declared in this scope
swap(poz[right_son(nod), poz[nod]]);
^
user.cpp:43:9: error: ‘poz’ was not declared in this scope
swap(poz[left_son(nod), poz[nod]]);
^
user.cpp: In function ‘int main()’:
user.cpp:62:10: error: ‘v’ was not declared in this scope
in >> v[++NR];
^
user.cpp:63:4: error: ‘poz’ was not declared in this scope
poz[NR] = ++L;
^
user.cpp:64:4: error: ‘heap’ was not declared in this scope
heap[L] = v[NR];
^
user.cpp:68:10: error: ‘x’ was not declared in this scope
in >> x;
^
user.cpp:69:4: error: ‘heap’ was not declared in this scope
heap[poz[x]] = heap[L];
^
user.cpp:69:9: error: ‘poz’ was not declared in this scope
heap[poz[x]] = heap[L];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !