Borderou de evaluare (job #1424818)
Utilizator | Data | 25 aprilie 2015 15:45:19 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:49:5: error: ‘f’ was not declared in this scope
f>>n;
^
user.cpp:50:25: error: ‘v’ was not declared in this scope
for(i=1;i<=n;i++)f>>v[i];
^
user.cpp:60:23: error: ‘v’ was not declared in this scope
if((i+pas)<=n&&v[i+pas]<=x)i+=pas;
^
user.cpp:62:17: error: ‘v’ was not declared in this scope
if(a==0&&v[i]!=x)g<<-1<<'\n';
^
user.cpp:62:25: error: ‘g’ was not declared in this scope
if(a==0&&v[i]!=x)g<<-1<<'\n';
^
user.cpp:63:13: error: ‘g’ was not declared in this scope
else g<<i<<'\n';
^
user.cpp:70:25: error: ‘v’ was not declared in this scope
if((i+pas)<=n&&v[i+pas]<x)i+=pas;
^
user.cpp:73:8: error: ‘g’ was not declared in this scope
g<<i+1<<'\n';
^
user.cpp:48:21: warning: unused variable ‘L’ [-Wunused-variable]
int n,m,i,j,a,x,L,pas;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !