0_0_17795790_13373.cpp:1:1: error: 'include' does not name a type
include <cstdio>
^
0_0_17795790_13373.cpp: In function 'void read(TP&)':
0_0_17795790_13373.cpp:10:39: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
ret = NEG = 0 ; while (CH=getchar() , CH<'!') ;
^
0_0_17795790_13373.cpp:10:39: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_17795790_13373.cpp:11:46: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
if (CH == '-') NEG = true , CH = getchar() ;
^
0_0_17795790_13373.cpp:12:45: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (ret = ret*10+CH-'0' , CH=getchar() , CH>'!') ;
^
0_0_17795790_13373.cpp: In function 'void readc(TP&)':
0_0_17795790_13373.cpp:16:24: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (ret=getchar() , ret<'!') ;
^
0_0_17795790_13373.cpp:17:23: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (CH=getchar() , CH>'!') ;
^
0_0_17795790_13373.cpp: In function 'void reads(TP*)':
0_0_17795790_13373.cpp:20:32: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
ret[0]=0;while (CH=getchar() , CH<'!') ;
^
0_0_17795790_13373.cpp:21:40: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
while (ret[++ret[0]]=CH,CH=getchar(),CH>'!') ;
^
0_0_17795790_13373.cpp: At global scope:
0_0_17795790_13373.cpp:33:1: error: 'll' does not name a type
ll ans;
^
0_0_17795790_13373.cpp:47:5: error: 'll' does not name a type
ll sum, lazy;
^
0_0_17795790_13373.cpp:49:21: error: 'll' has not been declared
inline void add(ll);
^
0_0_17795790_13373.cpp: In function 'node* newnode(int, int)':
0_0_17795790_13373.cpp:52:40: error: 'struct node' has no member named 'lazy'
nodes[++tott].sz = sz, nodes[tott].lazy = 0;
^
0_0_17795790_13373.cpp:53:17: error: 'struct node' has no member named 'sum'
nodes[tott].sum = nodes[tott].maxx = nodes[tott].minn = w ;
^
0_0_17795790_13373.cpp: In member function 'void node::maintain()':
0_0_17795790_13373.cpp:60:5: error: 'sum' was not declared in this scope
sum = lc->sum + rc->sum + lazy*sz;
^
0_0_17795790_13373.cpp:60:15: error: 'struct node' has no member named 'sum'
sum = lc->sum + rc->sum + lazy*sz;
^
0_0_17795790_13373.cpp:60:25: error: 'struct node' has no member named 'sum'
sum = lc->sum + rc->sum + lazy*sz;
^
0_0_17795790_13373.cpp:60:31: error: 'lazy' was not declared in this scope
sum = lc->sum + rc->sum + lazy*sz;
^
0_0_17795790_13373.cpp: At global scope:
0_0_17795790_13373.cpp:64:23: error: variable or field 'add' declared void
inline void node::add(ll v) {
^
0_0_17795790_13373.cpp:64:23: error: 'll' was not declared in this scope
0_0_17795790_13373.cpp:81:31: error: 'll' has not been declared
void query(node*o,int L,int R,ll lazys) {
^
0_0_17795790_13373.cpp: In function 'void query(node*, int, int, int)':
0_0_17795790_13373.cpp:83:21: error: 'ans' was not declared in this scope
if (T == 1) ans += o->sum+lazys*o->sz;
^
0_0_17795790_13373.cpp:83:31: error: 'struct node' has no member named 'sum'
if (T == 1) ans += o->sum+lazys*o->sz;
^
0_0_17795790_13373.cpp:84:21: error: 'ans' was not declared in this scope
if (T == 2) ans = std::min(ans,o->minn+lazys);
^
0_0_17795790_13373.cpp:85:21: error: 'ans' was not declared in this scope
if (T == 3) ans = std::max(ans,o->maxx+lazys);
^
0_0_17795790_13373.cpp:88:41: error: 'struct node' has no member named 'lazy'
if (ql<=M) query(o->lc,L,M,lazys+o->lazy);
^
0_0_17795790_13373.cpp:89:42: error: 'struct node' has no member named 'lazy'
if (qr>M) query(o->rc,M+1,R,lazys+o->lazy);
^
0_0_17795790_13373.cpp: In function 'void work()':
0_0_17795790_13373.cpp:120:5: error: 'ans' was not declared in this scope
ans = 0;
^
0_0_17795790_13373.cpp:124:15: error: 'll' was not declared in this scope
P = ((ll)P+ans) % n + 1;
^
0_0_17795790_13373.cpp:124:18: error: expected ')' before 'P'
P = ((ll)P+ans) % n + 1;
^
|