Borderou de evaluare (job #3166847)
Utilizator | Data | 9 noiembrie 2023 17:57:58 | |
---|---|---|---|
Problema | Sortall | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int brut(std::vector<int>)':
main.cpp:12:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int i = 0; i < v.size(); ++i){
| ~~^~~~~~~~~~
main.cpp:13:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int j = i+1; j <= v.size(); ++j){
| ~~^~~~~~~~~~~
main.cpp:15:13: error: 'sort' was not declared in this scope; did you mean 'short'?
15 | sort(begin(vv), end(vv));
| ^~~~
| short
main.cpp:16:22: error: 'unique' was not declared in this scope
16 | vv.erase(unique(begin(vv), end(vv)), end(vv));
| ^~~~~~
main.cpp:18:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int k = 0; k < vv.size(); ++k){
| ~~^~~~~~~~~~~
main.cpp: In constructor 'arbint2d::arbint2d(int, std::vector<std::pair<int, int> >&)':
main.cpp:40:13: error: 'sort' was not declared in this scope; did you mean 'short'?
40 | sort(begin(points[i]), end(points[i]));
| ^~~~
| short
main.cpp:41:29: error: 'unique' was not declared in this scope
41 | points[i].erase(unique(begin(points[i]), end(points[i])), end(points[i])); }
| ^~~~~~
main.cpp:44:13: error: 'merge' was not declared in this scope
44 | merge(begin(points[2*i]), end(points[2*i]),
| ^~~~~
main.cpp:47:29: error: 'unique' was not declared in this scope
47 | points[i].erase(unique(begin(points[i]), end(points[i])), end(points[i]));
| ^~~~~~
In file included from /usr/include/c++/12.2.1/cassert:44,
from main.cpp:2:
main.cpp: In member function 'void arbint2d::update(int, int, int)':
main.cpp:57:20: error: 'binary_search' was not declared in this scope
57 | assert(binary_search(begin(points[x]), end(points[x]), y));
| ^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:95:5: error: 'reverse' was not declared in this scope
95 | reverse(begin(s), end(s));
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !