QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#309226#8133. When Anton Saw This Task He Reacted With 😩ucup-team159#Compile Error//C++2045.3kb2024-01-20 15:48:582024-01-20 15:48:59

詳細信息

answer.code:1500:9: error: expected unqualified-id before ‘while’
 1500 |         while (ai < bi) {
      |         ^~~~~
answer.code:1507:6: error: expected ‘;’ after struct definition
 1507 |     }
      |      ^
      |      ;
answer.code:1498:22: error: ‘a’ was not declared in this scope; did you mean ‘ai’?
 1498 |         int ai = ord(a).i;
      |                      ^
      |                      ai
answer.code:1499:22: error: ‘b’ was not declared in this scope; did you mean ‘bi’?
 1499 |         int bi = ord(b).i;
      |                      ^
      |                      bi
answer.code: In function ‘int to(int, int)’:
answer.code:1509:18: error: ‘ord’ was not declared in this scope
 1509 |         int bi = ord(b).i;
      |                  ^~~
In file included from /usr/include/c++/13/cassert:44,
                 from answer.code:1275:
answer.code:1510:16: error: ‘ai’ was not declared in this scope; did you mean ‘bi’?
 1510 |         assert(ai < bi);
      |                ^~
answer.code:1512:17: error: ‘_small’ was not declared in this scope
 1512 |             if (_small[bi] <= ai)
      |                 ^~~~~~
answer.code:1513:29: error: ‘I’ was not declared in this scope
 1513 |                 return rord(I{ai + 1});
      |                             ^
answer.code:1513:24: error: ‘rord’ was not declared in this scope
 1513 |                 return rord(I{ai + 1});
      |                        ^~~~
answer.code:1514:22: error: ‘_big’ was not declared in this scope; did you mean ‘bi’?
 1514 |             else if (_big[bi] == ai)
      |                      ^~~~
      |                      bi
answer.code:1515:29: error: ‘I’ was not declared in this scope
 1515 |                 return rord(I{_small[bi]});
      |                             ^
answer.code:1515:24: error: ‘rord’ was not declared in this scope
 1515 |                 return rord(I{_small[bi]});
      |                        ^~~~
answer.code:1516:18: error: ‘_big’ was not declared in this scope; did you mean ‘bi’?
 1516 |             bi = _big[bi];
      |                  ^~~~
      |                  bi
answer.code: At global scope:
answer.code:1520:28: error: non-member function ‘int dist(int, int)’ cannot have cv-qualifier
 1520 |     int dist(int a, int b) const {
      |                            ^~~~~
answer.code: In function ‘int dist(int, int)’:
answer.code:1521:17: error: ‘lca’ was not declared in this scope
 1521 |         int c = lca(a, b);
      |                 ^~~
answer.code:1522:16: error: ‘dps’ was not declared in this scope
 1522 |         return dps[a] + dps[b] - 2 * dps[c];
      |                ^~~
answer.code: At global scope:
answer.code:1524:1: error: expected declaration before ‘}’ token
 1524 | };
      | ^
answer.code: In member function ‘void HLExec<E>::init_extra()’:
answer.code:1540:29: error: ‘n’ was not declared in this scope
 1540 |         for (int i = 1; i < n; i++) {
      |                             ^
answer.code:1546:20: error: ‘n’ was not declared in this scope
 1546 |         while (l < n) {
      |                    ^
answer.code:1558:22: error: ‘n’ was not declared in this scope
 1558 |         for (int i = n - 1; i >= 0; i--) {
      |                      ^
answer.code: In function ‘int main()’:
answer.code:1686:12: error: ‘struct HL’ has no member named ‘get_path’
 1686 |         hl.get_path(-1, u, [&](auto, auto i) {
      |            ^~~~~~~~