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_19434660_6300.cpp: In function 'void init(int)':
0_0_19434660_6300.cpp:24:29: error: 'memset' was not declared in this scope
  memset(res, -1, sizeof(res));
                             ^
0_0_19434660_6300.cpp: In function 'int main()':
0_0_19434660_6300.cpp:44:30: error: 'memset' was not declared in this scope
    memset(vis, 0, sizeof(vis));
                              ^
0_0_19434660_6300.cpp: At global scope:
0_0_19434660_6300.cpp:52:1: error: expected unqualified-id before numeric constant
 2:
 ^
0_0_19434660_6300.cpp:57:5: error: redefinition of 'int n'
 int n, m;
     ^
0_0_19434660_6300.cpp:5:5: note: 'int n' previously declared here
 int n, m;
     ^
0_0_19434660_6300.cpp:57:8: error: redefinition of 'int m'
 int n, m;
        ^
0_0_19434660_6300.cpp:5:8: note: 'int m' previously declared here
 int n, m;
        ^
0_0_19434660_6300.cpp:58:13: error: redefinition of 'int res [101]'
 int res[MAXN];
             ^
0_0_19434660_6300.cpp:6:5: note: 'int res [101]' previously declared here
 int res[MAXN];
     ^
0_0_19434660_6300.cpp:59:14: error: redefinition of 'bool vis [101]'
 bool vis[MAXN];
              ^
0_0_19434660_6300.cpp:7:6: note: 'bool vis [101]' previously declared here
 bool vis[MAXN];
      ^
0_0_19434660_6300.cpp:60:22: error: redefinition of 'std::vector<int> edges [101]'
 vector<int>edges[MAXN];
                      ^
0_0_19434660_6300.cpp:8:12: note: 'std::vector<int> edges [101]' previously declared here
 vector<int>edges[MAXN];
            ^
0_0_19434660_6300.cpp: In function 'bool dfs(int)':
0_0_19434660_6300.cpp:61:6: error: redefinition of 'bool dfs(int)'
 bool dfs(int u){
      ^
0_0_19434660_6300.cpp:9:6: note: 'bool dfs(int)' previously defined here
 bool dfs(int u){
      ^
0_0_19434660_6300.cpp: In function 'void init(int)':
0_0_19434660_6300.cpp:75:6: error: redefinition of 'void init(int)'
 void init(int n){
      ^
0_0_19434660_6300.cpp:23:6: note: 'void init(int)' previously defined here
 void init(int n){
      ^
0_0_19434660_6300.cpp:76:29: error: 'memset' was not declared in this scope
  memset(res, -1, sizeof(res));
                             ^
0_0_19434660_6300.cpp: In function 'int main()':
0_0_19434660_6300.cpp:81:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_19434660_6300.cpp:29:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_19434660_6300.cpp:96:30: error: 'memset' was not declared in this scope
    memset(vis, 0, sizeof(vis));
                              ^


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-09-29 07:21:45, Gzip enabled