Borderou de evaluare (job #3000480)

Utilizator CzarPopescu Cezar Stefan Cristian Czar Data 12 martie 2023 15:14:51
Problema Copii3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:36:14: error: 'upper_bound' was not declared in this scope 36 | idreapta = upper_bound(scaunelibere.begin(), scaunelibere.end(), R); | ^~~~~~~~~~~ main.cpp:40:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | while (i <= R && stanga >= 0 && dreapta < scaunelibere.size()) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:58:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 58 | while (i <= R && dreapta < scaunelibere.size()) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:80:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 80 | else if (dreapta >= scaunelibere.size()) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?