Problem | nicenumber |
---|---|
User | boaznumberd5555 |
Submission Time | 2024-05-10 20:08:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nicenumber.cpp: In function ‘int32_t main()’:
nicenumber.cpp:7:7: error: ‘class std::vector<int>’ has no member named ‘push’
7 | arr.push();
| ^~~~
nicenumber.cpp:9:27: error: no matching function for call to ‘sort(<unresolved overloaded function type>, std::vector<int>::iterator)’
9 | sort(arr.begin, arr.end());
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from nicenumber.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >]’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:32: note: no known conversion for argument 1 from ‘<unresolved overloaded functi