QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#476849#8650. Island Hoppingegypt_ioi2024b_05Compile Error//C++202.4kb2024-07-13 21:14:172024-07-13 21:14:17

詳細信息

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);
      |             ~~~~^