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_33110769_21371.cpp: In function 'void init_edge()':
0_0_33110769_21371.cpp:20:34: error: 'memset' was not declared in this scope
     memset(head, -1, sizeof(head));
                                  ^
0_0_33110769_21371.cpp: In function 'void bfs(int)':
0_0_33110769_21371.cpp:75:5: error: 'seq2_cnt' was not declared in this scope
     seq2_cnt = 0;
     ^
0_0_33110769_21371.cpp:81:9: error: 'seq2' was not declared in this scope
         seq2[seq2_cnt++] = u;
         ^
0_0_33110769_21371.cpp: In function 'void init_LCA(int)':
0_0_33110769_21371.cpp:99:17: error: 'node_num' was not declared in this scope
     fill_n(vis, node_num + 1, 0);
                 ^
0_0_33110769_21371.cpp:99:32: error: 'fill_n' was not declared in this scope
     fill_n(vis, node_num + 1, 0);
                                ^
0_0_33110769_21371.cpp:100:37: error: 'memset' was not declared in this scope
     memset(father, 0, sizeof(father));
                                     ^
0_0_33110769_21371.cpp: In function 'int LCA(int, int)':
0_0_33110769_21371.cpp:128:18: error: 'swap' was not declared in this scope
         swap(x, y);
                  ^


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-10-06 19:46:16, Gzip enabled