QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#753778#6605. The WitchwoodSoohtiCompile Error//C++17331b2024-11-16 13:36:482024-11-16 13:36:49

Details

answer.code: In function ‘int main()’:
answer.code:11:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   11 |     sort(a + 1, a + n + 1, greater<int>());
      |     ^~~~
      |     short