Problem descsort
User itchydeez
Submission Time 2023-11-10 23:35:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp: In function ‘int main()’:
descsort.cpp:9:9: error: expected primary-expression before ‘]’ token
9 | array[]=array[]+b;
| ^
descsort.cpp:9:17: error: expected primary-expression before ‘]’ token
9 | array[]=array[]+b;
| ^
descsort.cpp:11:21: error: no matching function for call to ‘sort(int [a], int&)’
11 | sort(array,array[b]);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from descsort.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:
descsort.cpp:11:21: note: deduce