Borderou de evaluare (job #1512689)
Utilizator | Data | 28 octombrie 2015 15:09:27 | |
---|---|---|---|
Problema | Arbori indexati binar | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: expected initializer before ‘int’
int n,m;
^
user.cpp: In function ‘void modifica(int, int)’:
user.cpp:20:16: error: ‘n’ was not declared in this scope
while(i <= n)
^
user.cpp:22:9: error: ‘tree’ was not declared in this scope
tree[i] += val;
^
user.cpp:23:12: error: ‘poz’ was not declared in this scope
if(poz[i] < i)
^
user.cpp:18:9: warning: unused variable ‘dif’ [-Wunused-variable]
int dif;
^
user.cpp: In function ‘int interog(int)’:
user.cpp:35:14: error: ‘tree’ was not declared in this scope
r += tree[i];
^
user.cpp: In function ‘int caut(int)’:
user.cpp:48:16: error: ‘n’ was not declared in this scope
while(salt<n) salt *= 2;
^
user.cpp:58:19: error: ‘tree’ was not declared in this scope
if(val >= tree[i+salt]) /// Daca am gasit o suma mai mica
^
user.cpp: In function ‘int main()’:
user.cpp:77:9: error: ‘n’ was not declared in this scope
in>>n>>m;
^
user.cpp:77:12: error: ‘m’ was not declared in this scope
in>>n>>m;
^
user.cpp:75:21: warning: unused variable ‘j’ [-Wunused-variable]
int i,opt,a,b,x,j;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !