Borderou de evaluare (job #1631028)
Utilizator | Data | 5 martie 2016 12:44:44 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int zero(int)’:
user.cpp:9:21: error: ‘n’ was not declared in this scope
int m, st=0, dr=n-1, ok=0;
^
user.cpp:13:16: error: ‘v’ was not declared in this scope
if( x==v[m])
^
user.cpp:15:13: error: ‘ok’ was not declared in this scope
ok=1;
^
user.cpp:26:9: error: ‘ok’ was not declared in this scope
if( ok)
^
user.cpp:27:16: error: ‘s’ was not declared in this scope
return s-1;
^
user.cpp: In function ‘int unu(int)’:
user.cpp:33:18: error: ‘n’ was not declared in this scope
int m,st=0,d=n-1,ok=0;
^
user.cpp:34:15: error: ‘dr’ was not declared in this scope
while(st<=dr)
^
user.cpp:37:15: error: ‘v’ was not declared in this scope
if(x==v[m])
^
user.cpp:39:13: error: ‘ok’ was not declared in this scope
ok=1;
^
user.cpp:33:16: warning: unused variable ‘d’ [-Wunused-variable]
int m,st=0,d=n-1,ok=0;
^
user.cpp: In function ‘int doi(int)’:
user.cpp:54:19: error: ‘n’ was not declared in this scope
int m,st=0,dr=n-1,ok=0;
^
user.cpp:58:15: error: ‘v’ was not declared in this scope
if(x==v[m])
^
user.cpp:60:13: error: ‘ok’ was not declared in this scope
ok=1;
^
user.cpp: In function ‘int main()’:
user.cpp:77:10: error: ‘i’ was not declared in this scope
for( i=0; i<n; i++)
^
user.cpp:75:20: warning: unused variable ‘st’ [-Wunused-variable]
int v[100005], st, dr, mij, n, m, w, ok=0, x;
^
user.cpp:75:24: warning: unused variable ‘dr’ [-Wunused-variable]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !