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_19409377_25663.cpp: In function 'void search_up(int)':
0_0_19409377_25663.cpp:21:58: error: 'min' was not declared in this scope
     tree[t].min_dis=min(tree[nl].min_dis,tree[nr].min_dis);
                                                          ^
0_0_19409377_25663.cpp: In function 'int nextInt()':
0_0_19409377_25663.cpp:125:24: error: 'getchar' was not declared in this scope
     while (c = getchar(), c < '0' || c > '9');
                        ^
0_0_19409377_25663.cpp:127:24: error: 'getchar' was not declared in this scope
     while (c = getchar(), c >= '0' && c <= '9') r = r * 10 + c - '0';
                        ^
0_0_19409377_25663.cpp: In function 'int main()':
0_0_19409377_25663.cpp:134:35: error: 'scanf' was not declared in this scope
     while(scanf("%d%d%d",&n,&de,&P)!=EOF)
                                   ^
0_0_19409377_25663.cpp:134:38: error: 'EOF' was not declared in this scope
     while(scanf("%d%d%d",&n,&de,&P)!=EOF)
                                      ^
0_0_19409377_25663.cpp:145:28: error: 'printf' was not declared in this scope
         printf("%d ",ans[i]);
                            ^
0_0_19409377_25663.cpp:146:29: error: 'printf' was not declared in this scope
         printf("%d\n",ans[n]);
                             ^


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-23 03:36:18, Gzip enabled