Problem 1609
User MagicHenry
Submission Time 2024-03-17 15:39:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

1609.cpp: In function ‘int main()’:
1609.cpp:8:15: error: ‘ie9’ was not declared in this scope
8 | for(int i=0;i<ie9;++i) {
| ^~~
1609.cpp:9:8: error: no matching function for call to ‘sort(int [87654321])’
9 | sort(a).
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from 1609.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:
1609.cpp:9:8: note: candidate expects 2 arguments, 1 provided
9 | sort(a).
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86