Problem | doll_noi |
---|---|
User | RandomCtfNoob |
Submission Time | 2025-02-10 15:50:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:14:14: error: no matching function for call to ‘sort(int [n], int&)’
14 | sort(size,n);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from doll_noi.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:
doll_noi.cpp:14:14: note: deduced conflicting types for parameter ‘_RAIter’ (‘int*’ and ‘int’)
14 | sort(size,n);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
fr