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_35106664_31697.cpp:4:1: error: expected ',' or ';' before 'int'
 int sg[MAX];
 ^
0_0_35106664_31697.cpp: In function 'int SG_DFS(int)':
0_0_35106664_31697.cpp:16:5: error: 'sg' was not declared in this scope
  if(sg[x]!=-1)
     ^
0_0_35106664_31697.cpp:25:7: error: 'sg' was not declared in this scope
   vis[sg[u]]=1; 
       ^
0_0_35106664_31697.cpp:29:4: error: 'sg' was not declared in this scope
    sg[x]=i;
    ^
0_0_35106664_31697.cpp:33:9: error: 'sg' was not declared in this scope
  return sg[x];
         ^
0_0_35106664_31697.cpp: At global scope:
0_0_35106664_31697.cpp:36:2: error: expected primary-expression before 'int'
  int N;
  ^
0_0_35106664_31697.cpp:36:2: error: expected '}' before 'int'
0_0_35106664_31697.cpp:36:2: error: expected ',' or ';' before 'int'
0_0_35106664_31697.cpp:37:2: error: expected unqualified-id before 'while'
  while(scanf("%d",&N)!=EOF){
  ^


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-27 00:16:06, Gzip enabled