QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#343981#7933. Build PermutationGuanYunchangCompile Error//C++98811b2024-03-03 12:29:542024-03-03 12:29:54

Details

answer.code: In function ‘void find(int)’:
answer.code:39:13: error: ‘next_permutation’ was not declared in this scope
   39 |      while (next_permutation(arr, n));
      |             ^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:46:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   46 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~