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_38688541_29205.cpp:93:21: error: 'll' does not name a type
   93 |         struct node{ll sum,tag;int lc,rc;}tr[N*25];
      |                     ^~
0_0_38688541_29205.cpp:114:9: error: 'll' does not name a type
  114 |         ll query(int o,int l,int r,int ql,int qr){
      |         ^~
0_0_38688541_29205.cpp: In member function 'void SGT::upd(int)':
0_0_38688541_29205.cpp:90:30: error: 'struct SGT::node' has no member named 'sum'
   90 |         #define sum(x) tr[x].sum
      |                              ^~~
0_0_38688541_29205.cpp:94:25: note: in expansion of macro 'sum'
   94 |         void upd(int o){sum(o)=sum(lc(o))+sum(rc(o));}
      |                         ^~~
0_0_38688541_29205.cpp:90:30: error: 'struct SGT::node' has no member named 'sum'
   90 |         #define sum(x) tr[x].sum
      |                              ^~~
0_0_38688541_29205.cpp:94:32: note: in expansion of macro 'sum'
   94 |         void upd(int o){sum(o)=sum(lc(o))+sum(rc(o));}
      |                                ^~~
0_0_38688541_29205.cpp:90:30: error: 'struct SGT::node' has no member named 'sum'
   90 |         #define sum(x) tr[x].sum
      |                              ^~~
0_0_38688541_29205.cpp:94:43: note: in expansion of macro 'sum'
   94 |         void upd(int o){sum(o)=sum(lc(o))+sum(rc(o));}
      |                                           ^~~
0_0_38688541_29205.cpp: In member function 'void SGT::build(int&, int, int)':
0_0_38688541_29205.cpp:90:30: error: 'struct SGT::node' has no member named 'sum'
   90 |         #define sum(x) tr[x].sum
      |                              ^~~
0_0_38688541_29205.cpp:97:26: note: in expansion of macro 'sum'
   97 |                 if(l==r){sum(o)=val[l];return ;}
      |                          ^~~
0_0_38688541_29205.cpp: In member function 'void SGT::modify(int, int&, int, int, int, int, int)':
0_0_38688541_29205.cpp:90:30: error: 'struct SGT::node' has no member named 'sum'
   90 |         #define sum(x) tr[x].sum
      |                              ^~~
0_0_38688541_29205.cpp:105:17: note: in expansion of macro 'sum'
  105 |                 sum(o)=sum(lst)+(min(r,qr)-max(l,ql)+1)*k;
      |                 ^~~
0_0_38688541_29205.cpp:90:30: error: 'struct SGT::node' has no member named 'sum'
   90 |         #define sum(x) tr[x].sum
      |                              ^~~
0_0_38688541_29205.cpp:105:24: note: in expansion of macro 'sum'
  105 |                 sum(o)=sum(lst)+(min(r,qr)-max(l,ql)+1)*k;
      |                        ^~~
0_0_38688541_29205.cpp:91:30: error: 'struct SGT::node' has no member named 'tag'
   91 |         #define tag(x) tr[x].tag
      |                              ^~~
0_0_38688541_29205.cpp:106:17: note: in expansion of macro 'tag'
  106 |                 tag(o)=tag(lst);
      |                 ^~~
0_0_38688541_29205.cpp:91:30: error: 'struct SGT::node' has no member named 'tag'
   91 |         #define tag(x) tr[x].tag
      |                              ^~~
0_0_38688541_29205.cpp:106:24: note: in expansion of macro 'tag'
  106 |                 tag(o)=tag(lst);
      |                        ^~~
0_0_38688541_29205.cpp:91:30: error: 'struct SGT::node' has no member named 'tag'
   91 |         #define tag(x) tr[x].tag
      |                              ^~~
0_0_38688541_29205.cpp:107:34: note: in expansion of macro 'tag'
  107 |                 if(ql<=l&&r<=qr){tag(o)+=k;lc(o)=lc(lst);rc(o)=rc(lst);return ;}
      |                                  ^~~
0_0_38688541_29205.cpp: In function 'int main()':
0_0_38688541_29205.cpp:139:30: error: 'struct SGT' has no member named 'query'
  139 |                         wr(T.query(T.root[tot],1,n,l,r),'\n');
      |                              ^~~~~
0_0_38688541_29205.cpp:143:30: error: 'struct SGT' has no member named 'query'
  143 |                         wr(T.query(T.root[mp[k]],1,n,l,r),'\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-09-28 17:32:50, Gzip enabled