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_29254389_14767.cpp: In function 'int quriy(int, int, int, int)':
0_0_29254389_14767.cpp:63:30: error: 'ans' was not declared in this scope
         quriy(l,mid,num<<1,x,ans);
                              ^
0_0_29254389_14767.cpp:69:34: error: 'ans' was not declared in this scope
         quriy(mid+1,r,num<<1|1,x,ans);
                                  ^
0_0_29254389_14767.cpp:74:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
     return ;
     ^
0_0_29254389_14767.cpp: In function 'int main()':
0_0_29254389_14767.cpp:101:36: error: too many arguments to function 'int quriy(int, int, int, int)'
                 quriy(1,n,1,num,ans);
                                    ^
0_0_29254389_14767.cpp:52:5: note: declared here
 int quriy(int l,int r,int num,int x) {
     ^


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-11-02 10:23:32, Gzip enabled