QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#444566#8581. 섬HuangHanShengCompile Error//C++233.9kb2024-06-15 20:08:532024-06-15 20:08:54

Details

answer.code: In function ‘void construct_two_trees(int, std::vector<int>, std::vector<int>)’:
answer.code:127:12: error: could not convert ‘t1’ from ‘vector<std::pair<int, int>>’ to ‘vector<std::array<int, 2>>’
  127 |     report(t1), report(t2);
      |            ^~
      |            |
      |            vector<std::pair<int, int>>
answer.code:127:24: error: could not convert ‘t2’ from ‘vector<std::pair<int, int>>’ to ‘vector<std::array<int, 2>>’
  127 |     report(t1), report(t2);
      |                        ^~
      |                        |
      |                        vector<std::pair<int, int>>