F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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) {
      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-01 05:12:27, Gzip enabled