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


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-16 13:45:24, Gzip enabled