QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#476849#8650. Island Hoppingegypt_ioi2024b_05Compile Error//C++202.4kb2024-07-13 21:14:172024-07-13 21:14:17

Details

answer.code: In function ‘void solve(int, int)’:
answer.code:107:40: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’
  107 |             for(auto&[i,j] : ans)answer({i,j});
      |                                  ~~~~~~^~~~~~~
      |                                        |
      |                                        <brace-enclosed initializer list>
answer.code:20:17: note:   initializing argument 1 of ‘void answer(int, int)’
   20 | void answer(int x,int y);
      |             ~~~~^