Problem | logs |
---|---|
User | G |
Submission Time | 2024-03-11 09:55:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
logs.cpp: In function ‘int main()’:
logs.cpp:16:9: error: ‘class std::vector<double>’ has no member named ‘pop’
16 | a.pop();
| ^~~
logs.cpp:21:21: error: no matching function for call to ‘sort(<unresolved overloaded function type>, <unresolved overloaded function type>)’
21 | sort(a.begin,a.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 logs.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘template<class _RAIter> void std::sort(_RAIter, _RAIter)’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: template argument deduction/substitution failed:
logs.cpp:21:21: note: couldn’t deduce template parameter ‘_RAIter’
21 | sort(a.begin,a.e