Borderou de evaluare (job #3234122)

Utilizator iulia_morariuIulia Morariu iulia_morariu Data 6 iunie 2024 16:07:18
Problema Time Travel Gossip 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:32:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'? 32 | sort(p.begin(), p.end()); | ^~~~ | sqrt main.cpp:35:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 35 | for(int i = 0; i + 1 < p.size(); i++){ | ~~~~~~^~~~~~~~~~ main.cpp:45:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 45 | for(int i = 0; i < p1.size(); i++){ | ~~^~~~~~~~~~~ main.cpp:54:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 54 | for(int i = 0; i < p.size(); i++){ | ~~^~~~~~~~~~ main.cpp:80:20: error: 'upper_bound' was not declared in this scope 80 | auto it2 = upper_bound(l.begin(), l.end(), poz); // gasim primul > decat el | ^~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?