Borderou de evaluare (job #3162888)
Utilizator | Data | 30 octombrie 2023 10:18:10 | |
---|---|---|---|
Problema | Cautare binara | 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:9:5: error: expected ',' or ';' before 'ifstream'
9 | ifstream cin("cautbin.out")
| ^~~~~~~~
main.cpp:11:10: error: 'n' was not declared in this scope
11 | cin>>n;
| ^
main.cpp:15:10: error: 'q' was not declared in this scope
15 | cin>>q;
| ^
main.cpp:18:14: error: 'cer' was not declared in this scope
18 | cin>>cer>>x;
| ^~~
main.cpp:18:19: error: 'x' was not declared in this scope
18 | cin>>cer>>x;
| ^
main.cpp:31:21: error: 'sol' was not declared in this scope
31 | sol=mij;
| ^~~
main.cpp:35:19: error: 'sol' was not declared in this scope
35 | cout<<sol+1<<'\n';
| ^~~
main.cpp:50:21: error: 'sol' was not declared in this scope
50 | sol=mij;
| ^~~
main.cpp:54:19: error: 'sol' was not declared in this scope
54 | cout<<sol+1<<'\n';
| ^~~
main.cpp:69:21: error: 'sol' was not declared in this scope
69 | sol=mij;
| ^~~
main.cpp:73:19: error: 'sol' was not declared in this scope
73 | cout<<sol+1<<'\n';
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !