QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#678352#9528. New Energy Vehicleucup-team122#Compile Error//C++149.8kb2024-10-26 14:42:272024-10-26 14:42:29

Details

answer.code: In function ‘int main()’:
answer.code:341:37: error: missing template arguments before ‘(’ token
  341 |         rep(i, n) seg.update(i, pair(sz(xs[i]) ? xs[i][0] : INF / 2, i));
      |                                     ^
answer.code: In lambda function:
answer.code:343:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  343 |             auto [val, id] = seg.query(0, n);
      |                  ^
answer.code: In function ‘int main()’:
answer.code:360:36: error: missing template arguments before ‘(’ token
  360 |                 seg.update(nt, pair(is[nt] == sz(xs[nt]) ? INF / 2 : xs[nt][is[nt]], nt));
      |                                    ^
answer.code:363:53: error: missing template arguments before ‘(’ token
  363 |             if (rest[use] == 0) seg.update(use, pair(INF, use));
      |                                                     ^