QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#155539#7119. Longest TripMinaRagy06Compile Error//C++235.5kb2023-09-01 19:21:372024-04-28 07:38:46

详细

answer.code: In function ‘std::vector<int> longest_trip(int, int)’:
answer.code:81:28: error: expected initializer before ‘.’ token
   81 |             int l = 0, v[0].size() - 1;
      |                            ^
answer.code:82:25: error: ‘r’ was not declared in this scope
   82 |             while (l <= r) {
      |                         ^
answer.code:102:20: error: ‘r’ was not declared in this scope
  102 |             l = 0, r = v[1].size();
      |                    ^
answer.code:109:50: error: expected ‘)’ before ‘{’ token
  109 |                 if (are_connected({v[0][i]}, cur) {
      |                    ~                             ^~
      |                                                  )
answer.code:114:13: error: expected primary-expression before ‘}’ token
  114 |             }
      |             ^