Borderou de evaluare (job #3042401)
Utilizator | Data | 6 aprilie 2023 09:23:53 | |
---|---|---|---|
Problema | Cbinteractiv | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:72: error: 'x' was not declared in this scope
6 | for(cin>>n,l=1;l<n;m=(l+n)/2,cout<<"? "<<m<<'\n',cout.flush(),cin>>x,x?n=m:l=m+1);
| ^
main.cpp:6:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
6 | for(cin>>n,l=1;l<n;m=(l+n)/2,cout<<"? "<<m<<'\n',cout.flush(),cin>>x,x?n=m:l=m+1);
| ^~~
main.cpp:7:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
7 | return cout<<"! "<<l,cout.flush(),0;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !