F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/cctype:42,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/localefwd.h:42,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/string:43,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bitset:47,
                 from 0_0_38567411_16590.cpp:4:
0_0_38567411_16590.cpp:385:33: error: expected '>' before numeric constant
  385 | template <typename _Tp, uint8_t _L>
      |                                 ^~
0_0_38567411_16590.cpp:408:44: error: expected '>' before numeric constant
  408 | template <typename _Tp = uint32_t, uint8_t _L = 30,
      |                                            ^~
0_0_38567411_16590.cpp:410:8: error: no default argument for '<anonymous>'
  410 | struct BiTrie {
      |        ^~~~~~
0_0_38567411_16590.cpp:415:37: error: '_Info' was not declared in this scope
  415 |   static inline Trie<BiTrieMapping, _Info, _PoolSize> s_trie;
      |                                     ^~~~~
0_0_38567411_16590.cpp:415:44: error: '_PoolSize' was not declared in this scope
  415 |   static inline Trie<BiTrieMapping, _Info, _PoolSize> s_trie;
      |                                            ^~~~~~~~~
0_0_38567411_16590.cpp:415:53: error: template argument 2 is invalid
  415 |   static inline Trie<BiTrieMapping, _Info, _PoolSize> s_trie;
      |                                                     ^
0_0_38567411_16590.cpp:415:53: error: template argument 3 is invalid
0_0_38567411_16590.cpp:416:49: error: '_Info' was not declared in this scope
  416 |   using TrieNode = typename Trie<BiTrieMapping, _Info, _PoolSize>::TrieNode;
      |                                                 ^~~~~
0_0_38567411_16590.cpp:416:56: error: '_PoolSize' was not declared in this scope
  416 |   using TrieNode = typename Trie<BiTrieMapping, _Info, _PoolSize>::TrieNode;
      |                                                        ^~~~~~~~~
0_0_38567411_16590.cpp:416:65: error: template argument 2 is invalid
  416 |   using TrieNode = typename Trie<BiTrieMapping, _Info, _PoolSize>::TrieNode;
      |                                                                 ^
0_0_38567411_16590.cpp:416:65: error: template argument 3 is invalid
0_0_38567411_16590.cpp:418:10: error: 'TrieNode' does not name a type
  418 |   static TrieNode Insert(const BiTrieIteration<_Tp, _L> &__numberIteration) {
      |          ^~~~~~~~
0_0_38567411_16590.cpp:421:20: error: 'TrieNode' was not declared in this scope
  421 |   static std::pair<TrieNode, _Tp> QueryMaxSame(_Tp __number) {
      |                    ^~~~~~~~
0_0_38567411_16590.cpp:421:33: error: template argument 1 is invalid
  421 |   static std::pair<TrieNode, _Tp> QueryMaxSame(_Tp __number) {
      |                                 ^
0_0_38567411_16590.cpp:434:20: error: 'TrieNode' was not declared in this scope
  434 |   static std::pair<TrieNode, _Tp> QueryMaxBitxor(_Tp __number) {
      |                    ^~~~~~~~
0_0_38567411_16590.cpp:434:33: error: template argument 1 is invalid
  434 |   static std::pair<TrieNode, _Tp> QueryMaxBitxor(_Tp __number) {
      |                                 ^
0_0_38567411_16590.cpp:448:29: error: 'TrieNode' has not been declared
  448 |   static _Tp QueryLeafValue(TrieNode __leaf) {
      |                             ^~~~~~~~
0_0_38567411_16590.cpp: In static member function 'static void OY::BiTrie<_Tp, <anonymous> >::Init()':
0_0_38567411_16590.cpp:417:53: error: '_Info' was not declared in this scope
  417 |   static void Init() { s_trie = Trie<BiTrieMapping, _Info, _PoolSize>(); }
      |                                                     ^~~~~
0_0_38567411_16590.cpp:417:60: error: '_PoolSize' was not declared in this scope
  417 |   static void Init() { s_trie = Trie<BiTrieMapping, _Info, _PoolSize>(); }
      |                                                            ^~~~~~~~~
0_0_38567411_16590.cpp:417:69: error: template argument 2 is invalid
  417 |   static void Init() { s_trie = Trie<BiTrieMapping, _Info, _PoolSize>(); }
      |                                                                     ^
0_0_38567411_16590.cpp:417:69: error: template argument 3 is invalid
0_0_38567411_16590.cpp: In static member function 'static int OY::BiTrie<_Tp, <anonymous> >::QueryMaxSame(_Tp)':
0_0_38567411_16590.cpp:422:5: error: 'TrieNode' was not declared in this scope
  422 |     TrieNode cur = s_trie.m_root;
      |     ^~~~~~~~
0_0_38567411_16590.cpp:426:20: error: expected ')' before 'child'
  426 |       if (TrieNode child = cur.child(c)) {
      |                    ^~~~~
0_0_38567411_16590.cpp:426:10: note: to match this '('
  426 |       if (TrieNode child = cur.child(c)) {
      |          ^
0_0_38567411_16590.cpp:427:9: error: 'cur' was not declared in this scope
  427 |         cur = child;
      |         ^~~
0_0_38567411_16590.cpp:427:15: error: 'child' was not declared in this scope
  427 |         cur = child;
      |               ^~~~~
0_0_38567411_16590.cpp:430:9: error: 'cur' was not declared in this scope
  430 |         cur = cur.child(c ^ 1);
      |         ^~~
0_0_38567411_16590.cpp:432:13: error: 'cur' was not declared in this scope
  432 |     return {cur, res};
      |             ^~~
0_0_38567411_16590.cpp: In static member function 'static int OY::BiTrie<_Tp, <anonymous> >::QueryMaxBitxor(_Tp)':
0_0_38567411_16590.cpp:436:5: error: 'TrieNode' was not declared in this scope
  436 |     TrieNode cur = s_trie.m_root;
      |     ^~~~~~~~
0_0_38567411_16590.cpp:440:20: error: expected ')' before 'child'
  440 |       if (TrieNode child = cur.child(c)) {
      |                    ^~~~~
0_0_38567411_16590.cpp:440:10: note: to match this '('
  440 |       if (TrieNode child = cur.child(c)) {
      |          ^
0_0_38567411_16590.cpp:441:9: error: 'cur' was not declared in this scope
  441 |         cur = child;
      |         ^~~
0_0_38567411_16590.cpp:441:15: error: 'child' was not declared in this scope
  441 |         cur = child;
      |               ^~~~~
0_0_38567411_16590.cpp:444:9: error: 'cur' was not declared in this scope
  444 |         cur = cur.child(c ^ 1);
      |         ^~~
0_0_38567411_16590.cpp:446:13: error: 'cur' was not declared in this scope
  446 |     return {cur, res};
      |             ^~~
0_0_38567411_16590.cpp: In static member function 'static _Tp OY::BiTrie<_Tp, <anonymous> >::QueryLeafValue(int)':
0_0_38567411_16590.cpp:449:5: error: 'TrieNode' was not declared in this scope
  449 |     TrieNode cur = __leaf;
      |     ^~~~~~~~
0_0_38567411_16590.cpp:452:16: error: expected ';' before 'parent'
  452 |       TrieNode parent = cur.parent();
      |                ^~~~~~
0_0_38567411_16590.cpp:453:11: error: 'cur' was not declared in this scope
  453 |       if (cur == parent.child(1)) res |= _Tp(1) << i;
      |           ^~~
0_0_38567411_16590.cpp:453:18: error: 'parent' was not declared in this scope
  453 |       if (cur == parent.child(1)) res |= _Tp(1) << i;
      |                  ^~~~~~
0_0_38567411_16590.cpp:454:7: error: 'cur' was not declared in this scope
  454 |       cur = parent;
      |       ^~~
0_0_38567411_16590.cpp:454:13: error: 'parent' was not declared in this scope
  454 |       cur = parent;
      |             ^~~~~~
0_0_38567411_16590.cpp: In function 'int main()':
0_0_38567411_16590.cpp:469:24: error: template argument 2 is invalid
  469 |     OY::BiTrie<uint32_t>::Init();
      |                        ^
0_0_38567411_16590.cpp:474:26: error: template argument 2 is invalid
  474 |       OY::BiTrie<uint32_t>::Insert(x);
      |                          ^
0_0_38567411_16590.cpp:482:46: error: template argument 2 is invalid
  482 |       auto [leaf, mask] = OY::BiTrie<uint32_t>::QueryMaxBitxor(x);
      |                                              ^
0_0_38567411_16590.cpp:483:34: error: template argument 2 is invalid
  483 |       cout << OY::BiTrie<uint32_t>::QueryLeafValue(leaf) << "\n";
      |                                  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-08 23:51:35, Gzip enabled