QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#365179#8225. 最小值之和ucup-team1383Compile Error//C++205.0kb2024-03-24 20:39:592024-03-24 20:39:59

Details

answer.code: In function ‘int main()’:
answer.code:149:46: error: expected primary-expression before ‘>’ token
  149 |             if (it == ord + (1 << h) || it - > first != y || !in_tree(it - > second, x) ||
      |                                              ^
answer.code:149:48: error: ‘first’ was not declared in this scope
  149 |             if (it == ord + (1 << h) || it - > first != y || !in_tree(it - > second, x) ||
      |                                                ^~~~~
answer.code:149:76: error: expected primary-expression before ‘>’ token
  149 |             if (it == ord + (1 << h) || it - > first != y || !in_tree(it - > second, x) ||
      |                                                                            ^
answer.code:149:78: error: ‘second’ was not declared in this scope
  149 |             if (it == ord + (1 << h) || it - > first != y || !in_tree(it - > second, x) ||
      |                                                                              ^~~~~~
answer.code:154:26: error: expected primary-expression before ‘>’ token
  154 |             int u = it - > second, d = __lg(x);
      |                          ^
answer.code:154:28: error: ‘second’ was not declared in this scope
  154 |             int u = it - > second, d = __lg(x);
      |                            ^~~~~~
answer.code:156:65: error: ‘d’ was not declared in this scope
  156 |                 cout << pw2[s2 - tr[x].sum + tr[x].query(rk1[u][d])] << "\n";
      |                                                                 ^
answer.code:158:43: error: ‘d’ was not declared in this scope
  158 |                 cout << (tr[x].val[rk1[u][d]] ? pw2[s2 - tr[x].sum + tr[x].query(rk1[u][d]) - 1] : 0) << "\n";
      |                                           ^