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_29627043_18251.cpp: In function 'int query(int, int, int, int, int, int)':
0_0_29627043_18251.cpp:44:40: error: 'p' was not declared in this scope
         return query(ls,L,mid,l,r,flag,p);
                                        ^
0_0_29627043_18251.cpp:47:46: error: 'p' was not declared in this scope
             return query(rs,mid+1,R,l,r,flag,p);
                                              ^
0_0_29627043_18251.cpp:50:46: error: 'p' was not declared in this scope
             int tmp1=query(ls,L,mid,l,r,flag,p),tmp2=query(rs,mid+1,R,l,r,flag,p);
                                              ^
0_0_29627043_18251.cpp:52:33: error: 'tmp2' was not declared in this scope
                 return lcm(tmp1,tmp2);
                                 ^
0_0_29627043_18251.cpp:54:33: error: 'tmp2' was not declared in this scope
                 return gcd(tmp1,tmp2);
                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-26 06:47:32, Gzip enabled