0_0_30224293_2236.cpp:15:1: error: 'll' does not name a type
ll a[maxn];
^
0_0_30224293_2236.cpp:16:1: error: 'll' does not name a type
ll sum[M];
^
0_0_30224293_2236.cpp: In function 'int build(int, int)':
0_0_30224293_2236.cpp:24:9: error: 'sum' was not declared in this scope
sum[newroot]=a[L];
^
0_0_30224293_2236.cpp:24:22: error: 'a' was not declared in this scope
sum[newroot]=a[L];
^
0_0_30224293_2236.cpp:30:5: error: 'sum' was not declared in this scope
sum[newroot]=sum[lson[newroot] ]+sum[rson[newroot] ];
^
0_0_30224293_2236.cpp: In function 'int update(int, int, int, int, int, int)':
0_0_30224293_2236.cpp:43:9: error: 'sum' was not declared in this scope
sum[newroot]=sum[root]+(r-l+1)*value;
^
0_0_30224293_2236.cpp:48:5: error: 'sum' was not declared in this scope
sum[newroot]=sum[root]+(r-l+1)*value;
^
0_0_30224293_2236.cpp: At global scope:
0_0_30224293_2236.cpp:65:1: error: 'll' does not name a type
ll question(int root,int L,int R,int l,int r)
^
0_0_30224293_2236.cpp: In function 'int main()':
0_0_30224293_2236.cpp:91:27: error: 'a' was not declared in this scope
scanf("%lld",&a[i]);
^
0_0_30224293_2236.cpp:105:55: error: 'question' was not declared in this scope
printf("%lld\n",question(T[tm],1,n,c,d));
^
0_0_30224293_2236.cpp:109:54: error: 'question' was not declared in this scope
printf("%lld\n",question(T[e],1,n,c,d));
^
|