0_0_35104638_9537.cpp: In function 'int main()':
0_0_35104638_9537.cpp:78:42: error: invalid conversion from 'int' to 'int*' [-fpermissive]
printf("%d\n", query_tree(1,1,n,x, y));
^
0_0_35104638_9537.cpp:78:42: error: invalid conversion from 'int' to 'int*' [-fpermissive]
0_0_35104638_9537.cpp:78:42: error: too few arguments to function 'int query_tree(int*, int*, int, int, int, int, int)'
0_0_35104638_9537.cpp:48:5: note: declared here
int query_tree(int arr[],int tree[],int node,int start,int end,int L,int R) {
^
0_0_35104638_9537.cpp:81:29: error: invalid conversion from 'int' to 'int*' [-fpermissive]
update_tree(1,1,n, x, y);
^
0_0_35104638_9537.cpp:81:29: error: invalid conversion from 'int' to 'int*' [-fpermissive]
0_0_35104638_9537.cpp:81:29: error: too few arguments to function 'void update_tree(int*, int*, int, int, int, int, int)'
0_0_35104638_9537.cpp:28:6: note: declared here
void update_tree(int arr[],int tree[],int node,int start,int end,int index,int val) {
^
|