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_34748658_6139.cpp:2:1: error: 'vector' does not name a type
 vector<vector<int> > G;
 ^
0_0_34748658_6139.cpp:5:1: error: 'vector' does not name a type
 vector<int> rec;
 ^
0_0_34748658_6139.cpp: In function 'void dfs(int, int)':
0_0_34748658_6139.cpp:10:9: error: 'rec' was not declared in this scope
         rec.clear();
         ^
0_0_34748658_6139.cpp:18:24: error: 'G' was not declared in this scope
     for (int i = 0;i < G[u].size();++i) {
                        ^
0_0_34748658_6139.cpp: In function 'int main(int, const char**)':
0_0_34748658_6139.cpp:38:5: error: 'cin' was not declared in this scope
     cin >> t;
     ^
0_0_34748658_6139.cpp:40:29: error: 'scanf' was not declared in this scope
         scanf("%d%d", &n, &m);
                             ^
0_0_34748658_6139.cpp:41:9: error: 'G' was not declared in this scope
         G.clear();
         ^
0_0_34748658_6139.cpp:48:37: error: 'memset' was not declared in this scope
         memset(color, 0,sizeof color);
                                     ^
0_0_34748658_6139.cpp:51:30: error: 'printf' was not declared in this scope
         printf("%d\n", maxnum);
                              ^
0_0_34748658_6139.cpp:52:28: error: 'rec' was not declared in this scope
         for (int i = 0;i < rec.size();++i)
                            ^
0_0_34748658_6139.cpp: At global scope:
0_0_34748658_6139.cpp:65:5: error: redefinition of 'int n'
 int n, m;
     ^
0_0_34748658_6139.cpp:3:5: note: 'int n' previously declared here
 int n, m;
     ^
0_0_34748658_6139.cpp:65:8: error: redefinition of 'int m'
 int n, m;
        ^
0_0_34748658_6139.cpp:3:8: note: 'int m' previously declared here
 int n, m;
        ^
0_0_34748658_6139.cpp: In function 'void dfs(int)':
0_0_34748658_6139.cpp:70:40: error: 'memcpy' was not declared in this scope
             memcpy(rec, tmp, sizeof tmp);
                                        ^
0_0_34748658_6139.cpp: In function 'int main(int, const char**)':
0_0_34748658_6139.cpp:91:5: error: redefinition of 'int main(int, const char**)'
 int main(int argc, const char * argv[])
     ^
0_0_34748658_6139.cpp:31:5: note: 'int main(int, const char**)' previously defined here
 int main(int argc, const char * argv[])
     ^
0_0_34748658_6139.cpp:98:5: error: 'cin' was not declared in this scope
     cin >> t;
     ^
0_0_34748658_6139.cpp:100:29: error: 'scanf' was not declared in this scope
         scanf("%d%d", &n, &m);
                             ^
0_0_34748658_6139.cpp:101:31: error: 'memset' was not declared in this scope
         memset(mp, 0,sizeof mp);
                               ^
0_0_34748658_6139.cpp:110:27: 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-22 16:22:34, Gzip enabled