Borderou de evaluare (job #2540055)

Utilizator alex2209alexPavel Alexandru alex2209alex Data 6 februarie 2020 18:04:46
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 update(int, int, int, int)': main.cpp:36:5: error: 'nr' was not declared in this scope nr[poz]++; ^~ main.cpp:41: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:41: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:50:9: error: 'day' was not declared in this scope for(day = 1; day <= m; ++day) ^~~ main.cpp:52:9: error: 'ma' was not declared in this scope ma = 0; ^~ main.cpp:55:40: error: 'upd' was not declared in this scope while(heap[i][1].upd_nr != upd[i]) ^~~ main.cpp:56:25: error: 'sterge' was not declared in this scope sterge(i); ^ main.cpp:57:16: error: 'nr' was not declared in this scope if(nr[i] >= 1) ^~ main.cpp:58:37: error: request for member 'val' in 'heap[i]', which is of non-class type '<anonymous struct> [200001]' ma = max(ma,heap[i].val / putere(i,day - heap[i][1].last_day_update,heap[i][1].val)); ^~~ main.cpp:58:99: error: 'putere' was not declared in this scope ma = max(ma,heap[i].val / putere(i,day - heap[i][1].last_day_update,heap[i][1].val)); ^ main.cpp: In function 'void citire()': main.cpp:68:14: error: 'v' was not declared in this scope f >> v[i]; ^ main.cpp:69:5: error: 'day' was not declared in this scope day = 1; ^~~ main.cpp:72:14: error: 'd' was not declared in this scope f >> d; ^ main.cpp:73:18: error: 'v' was not declared in this scope update(d,v[i],1,1); ^ main.cpp:74:9: error: 'upd' was not declared in this scope upd[i] = 1; ^~~ Non zero exit status: 1

Ceva nu functioneaza?