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_35106672_24896.cpp:6:1: error: expected ',' or ';' before 'int'
 int sg[MAX];
 ^
0_0_35106672_24896.cpp: In function 'int SG_DFS(int)':
0_0_35106672_24896.cpp:18:5: error: 'sg' was not declared in this scope
  if(sg[x]!=-1)
     ^
0_0_35106672_24896.cpp:27:7: error: 'sg' was not declared in this scope
   vis[sg[u]]=1; 
       ^
0_0_35106672_24896.cpp:31:4: error: 'sg' was not declared in this scope
    sg[x]=i;
    ^
0_0_35106672_24896.cpp:35:9: error: 'sg' was not declared in this scope
  return sg[x];
         ^
0_0_35106672_24896.cpp: At global scope:
0_0_35106672_24896.cpp:38:2: error: expected primary-expression before 'int'
  int N;
  ^
0_0_35106672_24896.cpp:38:2: error: expected '}' before 'int'
0_0_35106672_24896.cpp:38:2: error: expected ',' or ';' before 'int'
0_0_35106672_24896.cpp:39: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:37:23, Gzip enabled