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));
^
|