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

0_0_39566464_15084.cpp:2:1: error: 'define' does not name a type
    2 | define int long long
      | ^~~~~~
0_0_39566464_15084.cpp:7:1: error: 'll' does not name a type
    7 | ll tag[MAXN];
      | ^~
0_0_39566464_15084.cpp: In function 'int newNode()':
0_0_39566464_15084.cpp:11:5: error: 'tag' was not declared in this scope; did you mean 'tan'?
   11 |     tag[x] = (1ll << 62) - 1;
      |     ^~~
      |     tan
0_0_39566464_15084.cpp: In function 'void merge(int, int)':
0_0_39566464_15084.cpp:26:23: error: 'tag' was not declared in this scope; did you mean 'tan'?
   26 |             std::swap(tag[trie[r1][0]] , tag[trie[r2][0]]);
      |                       ^~~
      |                       tan
0_0_39566464_15084.cpp:39:23: error: 'tag' was not declared in this scope; did you mean 'tan'?
   39 |             std::swap(tag[trie[r1][1]] , tag[trie[r2][1]]);
      |                       ^~~
      |                       tan
0_0_39566464_15084.cpp: At global scope:
0_0_39566464_15084.cpp:44:6: error: variable or field 'apply' declared void
   44 | void apply(ll &a, ll b) {
      |      ^~~~~
0_0_39566464_15084.cpp:44:12: error: 'll' was not declared in this scope
   44 | void apply(ll &a, ll b) {
      |            ^~
0_0_39566464_15084.cpp:44:16: error: 'a' was not declared in this scope
   44 | void apply(ll &a, ll b) {
      |                ^
0_0_39566464_15084.cpp:44:19: error: 'll' was not declared in this scope
   44 | void apply(ll &a, ll b) {
      |                   ^~
0_0_39566464_15084.cpp: In function 'void push_down(int)':
0_0_39566464_15084.cpp:71:10: error: 'tag' was not declared in this scope; did you mean 'tan'?
   71 |     if ((tag[p] & 3) == 0) {
      |          ^~~
      |          tan
0_0_39566464_15084.cpp:82:10: error: 'tag' was not declared in this scope; did you mean 'tan'?
   82 |     if ((tag[p] & 3) == 1) {
      |          ^~~
      |          tan
0_0_39566464_15084.cpp:93:10: error: 'tag' was not declared in this scope; did you mean 'tan'?
   93 |     if ((tag[p] & 3) == 2) {
      |          ^~~
      |          tan
0_0_39566464_15084.cpp:98:15: error: 'tag' was not declared in this scope; did you mean 'tan'?
   98 |         apply(tag[trie[p][0]] , tag[p] >> 2);
      |               ^~~
      |               tan
0_0_39566464_15084.cpp:98:9: error: 'apply' was not declared in this scope; did you mean 'std::apply'?
   98 |         apply(tag[trie[p][0]] , tag[p] >> 2);
      |         ^~~~~
      |         std::apply
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/uses_allocator_args.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/memory_resource.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:58,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bitset:52,
                 from .\stdc++.h:52:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/tuple:2294:5: note: 'std::apply' declared here
 2294 |     apply(_Fn&& __f, _Tuple&& __t)
      |     ^~~~~
0_0_39566464_15084.cpp:101:15: error: 'tag' was not declared in this scope; did you mean 'tan'?
  101 |         apply(tag[trie[p][1]] , tag[p] >> 2);
      |               ^~~
      |               tan
0_0_39566464_15084.cpp:101:9: error: 'apply' was not declared in this scope; did you mean 'std::apply'?
  101 |         apply(tag[trie[p][1]] , tag[p] >> 2);
      |         ^~~~~
      |         std::apply
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/tuple:2294:5: note: 'std::apply' declared here
 2294 |     apply(_Fn&& __f, _Tuple&& __t)
      |     ^~~~~
0_0_39566464_15084.cpp:103:5: error: 'tag' was not declared in this scope; did you mean 'tan'?
  103 |     tag[p] = (1ll << 62) - 1;
      |     ^~~
      |     tan
0_0_39566464_15084.cpp: At global scope:
0_0_39566464_15084.cpp:116:6: error: variable or field 'set' declared void
  116 | void set(ll &a, int pos, ll val) {
      |      ^~~
0_0_39566464_15084.cpp:116:10: error: 'll' was not declared in this scope
  116 | void set(ll &a, int pos, ll val) {
      |          ^~
0_0_39566464_15084.cpp:116:14: error: 'a' was not declared in this scope
  116 | void set(ll &a, int pos, ll val) {
      |              ^
0_0_39566464_15084.cpp:116:17: error: expected primary-expression before 'int'
  116 | void set(ll &a, int pos, ll val) {
      |                 ^~~
0_0_39566464_15084.cpp:116:26: error: 'll' was not declared in this scope
  116 | void set(ll &a, int pos, ll val) {
      |                          ^~
0_0_39566464_15084.cpp:121:6: error: variable or field 'show' declared void
  121 | void show(ll val = 0 , int x = 1) {
      |      ^~~~
0_0_39566464_15084.cpp:121:11: error: 'll' was not declared in this scope
  121 | void show(ll val = 0 , int x = 1) {
      |           ^~
0_0_39566464_15084.cpp:121:24: error: expected primary-expression before 'int'
  121 | void show(ll val = 0 , int x = 1) {
      |                        ^~~
0_0_39566464_15084.cpp: In function 'void solve()':
0_0_39566464_15084.cpp:161:25: error: 'tag' was not declared in this scope; did you mean 'tan'?
  161 |                     set(tag[1] , 30 - j , 1);
      |                         ^~~
      |                         tan
0_0_39566464_15084.cpp:161:21: error: 'set' was not declared in this scope
  161 |                     set(tag[1] , 30 - j , 1);
      |                     ^~~
0_0_39566464_15084.cpp:161:21: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:63,
                 from .\stdc++.h:158:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note:   'std::set'
   94 |     class set
      |           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:80:13: note:   'std::pmr::set'
   80 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
0_0_39566464_15084.cpp:170:25: error: 'tag' was not declared in this scope; did you mean 'tan'?
  170 |                     set(tag[1] , 30 - j , 0);
      |                         ^~~
      |                         tan
0_0_39566464_15084.cpp:170:21: error: 'set' was not declared in this scope
  170 |                     set(tag[1] , 30 - j , 0);
      |                     ^~~
0_0_39566464_15084.cpp:170:21: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note:   'std::set'
   94 |     class set
      |           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:80:13: note:   'std::pmr::set'
   80 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
0_0_39566464_15084.cpp:178:21: error: 'll' was not declared in this scope
  178 |                     ll v = (tag[1] >> ((30 - j) * 2)) & 3;
      |                     ^~
0_0_39566464_15084.cpp:179:25: error: 'v' was not declared in this scope
  179 |                     if (v <= 1) {
      |                         ^
0_0_39566464_15084.cpp:180:29: error: 'tag' was not declared in this scope; did you mean 'tan'?
  180 |                         set(tag[1] , 30 - j , v ^ 1);
      |                             ^~~
      |                             tan
0_0_39566464_15084.cpp:180:25: error: 'set' was not declared in this scope
  180 |                         set(tag[1] , 30 - j , v ^ 1);
      |                         ^~~
0_0_39566464_15084.cpp:180:25: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note:   'std::set'
   94 |     class set
      |           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:80:13: note:   'std::pmr::set'
   80 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
0_0_39566464_15084.cpp:183:29: error: 'tag' was not declared in this scope; did you mean 'tan'?
  183 |                         set(tag[1] , 30 - j , 5 - v);
      |                             ^~~
      |                             tan
0_0_39566464_15084.cpp:183:25: error: 'set' was not declared in this scope
  183 |                         set(tag[1] , 30 - j , 5 - v);
      |                         ^~~
0_0_39566464_15084.cpp:183:25: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note:   'std::set'
   94 |     class set
      |           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:80:13: note:   'std::pmr::set'
   80 |       using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
      |             ^~~
0_0_39566464_15084.cpp:190:13: error: 'll' was not declared in this scope
  190 |             ll ans = 0;
      |             ^~
0_0_39566464_15084.cpp:205:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
  205 |                     ans += 1 << i;
      |                     ^~~
      |                     abs
0_0_39566464_15084.cpp:209:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
  209 |             std::cout << ans << '\n';
      |                          ^~~
      |                          abs


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-09-20 12:42:16, Gzip enabled