0_0_30212748_24073.cpp: In function 'int Cal(int, int)':
0_0_30212748_24073.cpp:67:16: error: invalid types 'int[int]' for array subscript
ans=query(t[l],t[r+1],1,n,sum/2);
^
0_0_30212748_24073.cpp:67:23: error: invalid types 'int[int]' for array subscript
ans=query(t[l],t[r+1],1,n,sum/2);
^
0_0_30212748_24073.cpp:67:33: error: invalid operands of types 'int [6015000]' and 'int' to binary 'operator/'
ans=query(t[l],t[r+1],1,n,sum/2);
^
0_0_30212748_24073.cpp:69:21: error: invalid types 'int[int]' for array subscript
else ans=query(t[l],t[r+1],1,n,(sum+1)/2);
^
0_0_30212748_24073.cpp:69:28: error: invalid types 'int[int]' for array subscript
else ans=query(t[l],t[r+1],1,n,(sum+1)/2);
^
0_0_30212748_24073.cpp:69:42: error: invalid operands of types 'int*' and 'int' to binary 'operator/'
else ans=query(t[l],t[r+1],1,n,(sum+1)/2);
^
0_0_30212748_24073.cpp: In function 'int main()':
0_0_30212748_24073.cpp:92:31: error: too many arguments to function 'int Insert(int, int, int, int)'
T[i]=Insert(T[i+1],1,n,i,1);
^
0_0_30212748_24073.cpp:23:5: note: declared here
int Insert(int pre,int l,int r,int mark)
^
|