Borderou de evaluare (job #2540061)
Utilizator | Data | 6 februarie 2020 18:13:36 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void down(int, int)':
main.cpp:39:15: error: 'nr' was not declared in this scope
if (2*pos>nr[poz])
^~
main.cpp:43:16: error: 'nr' was not declared in this scope
if (2*pos==nr[poz])
^~
main.cpp:48:20: error: 'day' was not declared in this scope
if (putere(poz,day - heap[poz][2*pos].last_day_update,heap[poz][2*pos].val) > heap[poz][2*pos+1].val / putere(poz,day - heap[poz][2*pos].last_day_update,heap[poz][2*pos].val))
^~~
main.cpp:48:79: error: 'putere' was not declared in this scope
if (putere(poz,day - heap[poz][2*pos].last_day_update,heap[poz][2*pos].val) > heap[poz][2*pos+1].val / putere(poz,day - heap[poz][2*pos].last_day_update,heap[poz][2*pos].val))
^
main.cpp:57:20: error: 'day' was not declared in this scope
if (putere(poz,day - heap[poz][best].last_day_update,heap[poz][best].val) > heap[poz][pos].val / putere(poz,day - heap[poz][pos].last_day_update,heap[poz][pos].val))
^~~
main.cpp:57:77: error: 'putere' was not declared in this scope
if (putere(poz,day - heap[poz][best].last_day_update,heap[poz][best].val) > heap[poz][pos].val / putere(poz,day - heap[poz][pos].last_day_update,heap[poz][pos].val))
^
main.cpp:62:18: error: too few arguments to function 'void down(int, int)'
down(best);
^
main.cpp:36:6: note: declared here
void down (int pos,int poz)
^~~~
main.cpp: In function 'void sterge(int)':
main.cpp:68:24: error: 'nr' was not declared in this scope
heap[b][1]=heap[b][nr[b]];
^~
main.cpp:70:9: warning: unused variable 'lg' [-Wunused-variable]
int lg=nr[b];
^~
main.cpp: In function 'void update(int, int, int, int)':
main.cpp:76:5: error: 'nr' was not declared in this scope
nr[poz]++;
^~
main.cpp:81:31: error: 'day' was not declared in this scope
while(p > 1 && putere(poz,day - heap[poz][p].last_day_update,heap[poz][p].val) > heap[poz][p / 2].val / putere(poz,day - heap[poz][p / 2].last_day_update,heap[poz][p / 2].val))
^~~
main.cpp:81:82: error: 'putere' was not declared in this scope
while(p > 1 && putere(poz,day - heap[poz][p].last_day_update,heap[poz][p].val) > heap[poz][p / 2].val / putere(poz,day - heap[poz][p / 2].last_day_update,heap[poz][p / 2].val))
^
main.cpp: In function 'void rezolvare()':
main.cpp:90:9: error: 'day' was not declared in this scope
for(day = 1; day <= m; ++day)
^~~
main.cpp:92:9: error: 'ma' was not declared in this scope
ma = 0;
^~
main.cpp:95:40: error: 'upd' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !