Borderou de evaluare (job #3272851)
Utilizator | Data | 31 ianuarie 2025 10:36:43 | |
---|---|---|---|
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:297:22: error: expected ';' before 'int'
297 | cin >> x >> y
| ^
| ;
298 | int st = 0, dr = n;
| ~~~
main.cpp:299:21: error: 'dr' was not declared in this scope
299 | while (st < dr)
| ^~
main.cpp:299:16: error: 'st' was not declared in this scope; did you mean 'std'?
299 | while (st < dr)
| ^~
| std
main.cpp:305:13: error: 'dr' was not declared in this scope
305 | a = dr;
| ^~
main.cpp:307:9: error: 'st' was not declared in this scope; did you mean 'std'?
307 | st = 0;
| ^~
| std
main.cpp:291:24: warning: unused variable 'cnt' [-Wunused-variable]
291 | int n, m, x, y, a, cnt = 0;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !