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