0_0_32868178_5086.cpp:1:7: error: stray '#' in program
<code>#include <bits/stdc++.h>
^
0_0_32868178_5086.cpp:1:1: error: expected unqualified-id before '<' token
<code>#include <bits/stdc++.h>
^
0_0_32868178_5086.cpp: In function 'int read()':
0_0_32868178_5086.cpp:5:35: error: 'getchar' was not declared in this scope
int rtn=0,f=1;char ch=getchar();
^
0_0_32868178_5086.cpp:6:22: error: 'isdigit' was not declared in this scope
while(!isdigit(ch)){if(ch=='-')f=-1;ch=getchar();}
^
0_0_32868178_5086.cpp:7:21: error: 'isdigit' was not declared in this scope
while(isdigit(ch))rtn=(rtn<<1)+(rtn<<3)+ch-'0',ch=getchar();
^
0_0_32868178_5086.cpp: In function 'void SegmentTree::pushup(int)':
0_0_32868178_5086.cpp:20:47: error: 'max' was not declared in this scope
T[p].max=max(T[p<<1].max,T[p<<1|1].max);
^
0_0_32868178_5086.cpp: In function 'int SegmentTree::query_max(int, int, int, int, int)':
0_0_32868178_5086.cpp:74:88: error: 'max' was not declared in this scope
else return max(query_max(p<<1,lp,mid,l,mid),query_max(p<<1|1,mid+1,rp,mid+1,r));
^
0_0_32868178_5086.cpp: In function 'int main()':
0_0_32868178_5086.cpp:86:62: error: 'printf' was not declared in this scope
else if(opt==1)printf("%d\n",query_max(1,1,n,l,r));
^
0_0_32868178_5086.cpp:87:64: error: 'printf' was not declared in this scope
else if(opt==2)printf("%lld\n",query_sum(1,1,n,l,r));
^
|