Borderou de evaluare (job #3000478)
Utilizator | Popescu Cezar Stefan Cristian Czar | Data | 12 martie 2023 15:14:01 |
---|---|---|---|
Problema | Copii3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:37:14: error: 'upper_bound' was not declared in this scope
37 | idreapta = upper_bound(scaunelibere.begin(), scaunelibere.end(), R);
| ^~~~~~~~~~~
main.cpp:41:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | while (i <= R && stanga >= 0 && dreapta < scaunelibere.size()) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:59:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | while (i <= R && dreapta < scaunelibere.size()) {
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:81:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | else if(dreapta>=scaunelibere.size()){
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !