QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#369023#8134. LCA Countingucup-team1617#Compile Error//C++231.9kb2024-03-27 19:34:202024-03-27 19:34:21

Details

answer.code: In lambda function:
answer.code:59:22: error: ‘sort’ is not a member of ‘std’; did you mean ‘qsort’?
   59 |                 std::sort(all(larg));
      |                      ^~~~
      |                      qsort
answer.code: In function ‘int main()’:
answer.code:33:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   33 |         scanf("%d", &N);
      |         ~~~~~^~~~~~~~~~
answer.code:38:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   38 |                 scanf("%d", &p);
      |                 ~~~~~^~~~~~~~~~