0_0_29545293_12380.cpp:1:1: error: 'vector' does not name a type
vector<int> edge[MAXN];
^
0_0_29545293_12380.cpp:2:9: error: 'MAXN' was not declared in this scope
int vis[MAXN];
^
0_0_29545293_12380.cpp:4:8: error: 'MAXN' was not declared in this scope
int in[MAXN];
^
0_0_29545293_12380.cpp: In function 'int DFS(int)':
0_0_29545293_12380.cpp:9:16: error: 'edge' was not declared in this scope
for(int i=0;i<edge[pp].size();i++){
^
0_0_29545293_12380.cpp:10:6: error: 'vis' was not declared in this scope
if(vis[edge[pp][i]]==0){
^
0_0_29545293_12380.cpp: In function 'int main()':
0_0_29545293_12380.cpp:23:26: error: 'scanf' was not declared in this scope
while(scanf("%d%d",&n,&m)!=EOF){
^
0_0_29545293_12380.cpp:23:29: error: 'EOF' was not declared in this scope
while(scanf("%d%d",&n,&m)!=EOF){
^
0_0_29545293_12380.cpp:25:10: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_29545293_12380.cpp:25:27: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_29545293_12380.cpp:26:10: error: 'in' was not declared in this scope
memset(in,0,sizeof(vis));
^
0_0_29545293_12380.cpp:28:4: error: 'edge' was not declared in this scope
edge[i].clear();
^
0_0_29545293_12380.cpp:32:4: error: 'edge' was not declared in this scope
edge[a].push_back(b);
^
0_0_29545293_12380.cpp:50:3: error: 'cout' was not declared in this scope
cout<<group<<endl;
^
0_0_29545293_12380.cpp:50:16: error: 'endl' was not declared in this scope
cout<<group<<endl;
^
|