Problem wrongreverse
User Gotproblemah
Submission Time 2025-06-20 15:46:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wrongreverse.cpp: In function ‘int32_t main()’:
wrongreverse.cpp:7:2: error: ‘nt’ was not declared in this scope; did you mean ‘int’?
7 | nt arr[3, 1, 4, 1, 5];
| ^~
| int
wrongreverse.cpp:8:49: error: no matching function for call to ‘sort(int, int, int, int, int, int, int, int, int, int, int, int, int, int)’
8 | sort(3, 1, 4, 1, 5,3, 1, 4, 1, 5 + 5, 1, 4, 1, 5);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from wrongreverse.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:
wrongreverse.c