Borderou de evaluare (job #2206071)
Utilizator | Data | 20 mai 2018 23:16:56 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void updateRange(int, int, int, int)’:
user.cpp:4:6: error: ‘lazy’ was not declared in this scope
if (lazy[nod]) { //daca exista actualizare in asteptare p-ru elementul respectiv
^~~~
user.cpp:11:3: error: ‘H’ was not declared in this scope
H[nod] += (dr-st+1)*lazy[nod];
^
user.cpp:14:9: error: ‘r’ was not declared in this scope
if (st>r || dr<l) return; //segmentul resepectiv nu intra in intervalul [l, r]
^
user.cpp:14:17: error: ‘l’ was not declared in this scope
if (st>r || dr<l) return; //segmentul resepectiv nu intra in intervalul [l, r]
^
user.cpp:16:6: error: ‘l’ was not declared in this scope
if (l<=st && dr<=r) {
^
user.cpp:16:19: error: ‘r’ was not declared in this scope
if (l<=st && dr<=r) {
^
user.cpp:18:3: error: ‘H’ was not declared in this scope
H[nod]+=val;
^
user.cpp:21:4: error: ‘lazy’ was not declared in this scope
lazy[2*nod]+=val;
^~~~
user.cpp:30:2: error: ‘H’ was not declared in this scope
H[nod] = H[2*nod] + H[2*nod + 1];
^
user.cpp: In function ‘int queryRange(int, int, int, int, int)’:
user.cpp:38:6: error: ‘lazy’ was not declared in this scope
if (lazy[nod]) {
^~~~
user.cpp:40:3: error: ‘H’ was not declared in this scope
H[nod] += (dr-st+1)*lazy[nod];
^
user.cpp:48:29: error: ‘H’ was not declared in this scope
if (l<=st && dr<=r) return H[nod]; //HMARE
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !