QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#112751#3554. SweepingflowerCompile Error//C++145.7kb2023-06-13 11:10:362023-06-13 11:10:39

Details

answer.code: In function ‘void CAT::addrange(int, int, int, int)’:
answer.code:42:23: error: invalid types ‘int[int]’ for array subscript
   42 |                 if(!id[u]) id[u] = ++ cnt;
      |                       ^
answer.code:42:30: error: invalid types ‘int[int]’ for array subscript
   42 |                 if(!id[u]) id[u] = ++ cnt;
      |                              ^
answer.code:47:22: error: invalid types ‘int[int]’ for array subscript
   47 |                 q1[id[u]].emplace(ql, other[y] = x);
      |                      ^
answer.code:48:22: error: invalid types ‘int[int]’ for array subscript
   48 |                 q2[id[u]].emplace(qr, other[x] = y);
      |                      ^
answer.code: In function ‘void CAT::ins(int&, int, int, int, int, int)’:
answer.code:51:54: error: invalid types ‘int[int]’ for array subscript
   51 |                 if(!u) u = ++ tot, ls[u] = rs[u] = id[u] = 0, assert(u < S - 10);
      |                                                      ^
answer.code: In function ‘void CAT::mdfr(int&, int, int, int)’:
answer.code:87:38: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
   87 |                                 auto [pl, x] = q1[id[u]].top();
      |                                      ^
answer.code:96:38: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
   96 |                                 auto [pr, x] = q2[id[u]].top();
      |                                      ^
answer.code: In function ‘void CAT::mdfl(int, int, int, int)’:
answer.code:112:38: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
  112 |                                 auto [pr, x] = q2[id[u]].top();
      |                                      ^
answer.code:121:38: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
  121 |                                 auto [pl, x] = q1[id[u]].top();
      |                                      ^