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_17197444_8652.cpp: In function 'void init()':
0_0_17197444_8652.cpp:12:28: error: 'memset' was not declared in this scope
     memset(k,'\0',sizeof(k));
                            ^
0_0_17197444_8652.cpp: In function 'int Merge(int, int)':
0_0_17197444_8652.cpp:17:30: error: 'swap' was not declared in this scope
     if(k[b].v>k[a].v)swap(a,b);
                              ^
0_0_17197444_8652.cpp:20:56: error: 'swap' was not declared in this scope
     if(k[k[a].l].dis < k[k[a].r].dis)swap(k[a].r,k[a].l);
                                                        ^
0_0_17197444_8652.cpp: In function 'int main()':
0_0_17197444_8652.cpp:57:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n) != -1){
                        ^
0_0_17197444_8652.cpp:67:30: error: 'printf' was not declared in this scope
             printf("%d\n",ans);
                              ^


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-17 00:18:31, Gzip enabled