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_25963901_15057.cpp: In function 'void push_up(int)':
0_0_25963901_15057.cpp:28:58: error: 'min' was not declared in this scope
     tree[rt].minb=min(tree[rt<<1].minb,tree[rt<<1|1].minb);
                                                          ^
0_0_25963901_15057.cpp:30:58: error: 'max' was not declared in this scope
     tree[rt].maxa=max(tree[rt<<1].maxa,tree[rt<<1|1].maxa);
                                                          ^
0_0_25963901_15057.cpp: In function 'int main()':
0_0_25963901_15057.cpp:87:31: error: 'scanf' was not declared in this scope
     while(~scanf("%d %d",&n,&q)){
                               ^
0_0_25963901_15057.cpp:95:48: error: 'printf' was not declared in this scope
             else printf("%d\n",query(l,r,1,n,1));
                                                ^


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.000000(s) query 1, Server time : 2025-02-28 08:43:31, Gzip enabled