QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#432736#7281. How to Avoid Disqualification in 75 Easy Stepsegypt_ioi2024_05#Compile Error//C++20439b2024-06-07 16:25:032024-06-07 16:25:04

Details

answer.code: In function ‘std::pair<int, int> scout(int, int)’:
answer.code:6:30: error: ‘n’ was not declared in this scope
    6 |         for (int i = 1; i <= n; i++) {
      |                              ^
answer.code:23:16: error: could not convert ‘ans’ from ‘int’ to ‘std::pair<int, int>’
   23 |         return ans;
      |                ^~~
      |                |
      |                int