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_27948606_719.cpp:9:9: error: macro names must be identifiers
 #define ?maxn ? 1000005
         ^
0_0_27948606_719.cpp:11:11: error: 'maxn' was not declared in this scope
 int first[maxn],next1[maxn*4],flag[maxn],bcj[maxn],ne;
           ^
0_0_27948606_719.cpp:11:23: error: 'maxn' was not declared in this scope
 int first[maxn],next1[maxn*4],flag[maxn],bcj[maxn],ne;
                       ^
0_0_27948606_719.cpp:11:36: error: 'maxn' was not declared in this scope
 int first[maxn],next1[maxn*4],flag[maxn],bcj[maxn],ne;
                                    ^
0_0_27948606_719.cpp:11:46: error: 'maxn' was not declared in this scope
 int first[maxn],next1[maxn*4],flag[maxn],bcj[maxn],ne;
                                              ^
0_0_27948606_719.cpp:17:1: error: expected unqualified-id before '?' token
 ? ? int u,v,w;
 ^
0_0_27948606_719.cpp:19:1: error: expected unqualified-id before '?' token
 ? ? void  Set(int u,int v,int w)//存边,w为边的权值若果权值一样就说明是一条边
 ^
0_0_27948606_719.cpp:31:5: error: 'maxn' was not declared in this scope
 }ed[maxn*4];//把所有的边都存到ed数组里
     ^
0_0_27948606_719.cpp: In function 'void add_Edge(int, int, int)':
0_0_27948606_719.cpp:37:1: error: expected primary-expression before '?' token
 ? ? ed[ne].Set(u,v,w);
 ^
0_0_27948606_719.cpp:37:3: error: expected primary-expression before '?' token
 ? ? ed[ne].Set(u,v,w);
   ^
0_0_27948606_719.cpp:37:5: error: 'ed' was not declared in this scope
 ? ? ed[ne].Set(u,v,w);
     ^
0_0_27948606_719.cpp:37:22: error: expected ':' before ';' token
 ? ? ed[ne].Set(u,v,w);
                      ^
0_0_27948606_719.cpp:37:22: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:37:22: error: expected ':' before ';' token
0_0_27948606_719.cpp:37:22: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:39:1: error: expected primary-expression before '?' token
 ? ? next1[ne]=first[u];//这时邻接表存图
 ^
0_0_27948606_719.cpp:39:3: error: expected primary-expression before '?' token
 ? ? next1[ne]=first[u];//这时邻接表存图
   ^
0_0_27948606_719.cpp:39:5: error: 'next1' was not declared in this scope
 ? ? next1[ne]=first[u];//这时邻接表存图
     ^
0_0_27948606_719.cpp:39:15: error: 'first' was not declared in this scope
 ? ? next1[ne]=first[u];//这时邻接表存图
               ^
0_0_27948606_719.cpp:39:23: error: expected ':' before ';' token
 ? ? next1[ne]=first[u];//这时邻接表存图
                       ^
0_0_27948606_719.cpp:39:23: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:39:23: error: expected ':' before ';' token
0_0_27948606_719.cpp:39:23: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:41:1: error: expected primary-expression before '?' token
 ? ? first[u]=ne++;
 ^
0_0_27948606_719.cpp:41:3: error: expected primary-expression before '?' token
 ? ? first[u]=ne++;
   ^
0_0_27948606_719.cpp:41:18: error: expected ':' before ';' token
 ? ? first[u]=ne++;
                  ^
0_0_27948606_719.cpp:41:18: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:41:18: error: expected ':' before ';' token
0_0_27948606_719.cpp:41:18: error: expected primary-expression before ';' token
0_0_27948606_719.cpp: In function 'bool dfs(int, int)':
0_0_27948606_719.cpp:49:1: error: expected primary-expression before '?' token
 ? ? flag[u]=-1;
 ^
0_0_27948606_719.cpp:49:3: error: expected primary-expression before '?' token
 ? ? flag[u]=-1;
   ^
0_0_27948606_719.cpp:49:5: error: 'flag' was not declared in this scope
 ? ? flag[u]=-1;
     ^
0_0_27948606_719.cpp:49:15: error: expected ':' before ';' token
 ? ? flag[u]=-1;
               ^
0_0_27948606_719.cpp:49:15: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:49:15: error: expected ':' before ';' token
0_0_27948606_719.cpp:49:15: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:51:1: error: expected primary-expression before '?' token
 ? ? for(int i=first[u];i+1;i=next1[i])
 ^
0_0_27948606_719.cpp:51:3: error: expected primary-expression before '?' token
 ? ? for(int i=first[u];i+1;i=next1[i])
   ^
0_0_27948606_719.cpp:51:5: error: expected primary-expression before 'for'
 ? ? for(int i=first[u];i+1;i=next1[i])
     ^
0_0_27948606_719.cpp:51:5: error: expected ':' before 'for'
0_0_27948606_719.cpp:51:5: error: expected primary-expression before 'for'
0_0_27948606_719.cpp:51:5: error: expected ':' before 'for'
0_0_27948606_719.cpp:51:5: error: expected primary-expression before 'for'
0_0_27948606_719.cpp:51:24: error: 'i' was not declared in this scope
 ? ? for(int i=first[u];i+1;i=next1[i])
                        ^
0_0_27948606_719.cpp:51:30: error: 'next1' was not declared in this scope
 ? ? for(int i=first[u];i+1;i=next1[i])
                              ^
0_0_27948606_719.cpp:71:1: error: expected primary-expression before '?' token
 ? ? flag[u]=1;
 ^
0_0_27948606_719.cpp:71:3: error: expected primary-expression before '?' token
 ? ? flag[u]=1;
   ^
0_0_27948606_719.cpp:71:14: error: expected ':' before ';' token
 ? ? flag[u]=1;
              ^
0_0_27948606_719.cpp:71:14: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:71:14: error: expected ':' before ';' token
0_0_27948606_719.cpp:71:14: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:73:1: error: expected primary-expression before '?' token
 ? ? return false;
 ^
0_0_27948606_719.cpp:73:3: error: expected primary-expression before '?' token
 ? ? return false;
   ^
0_0_27948606_719.cpp:73:5: error: expected primary-expression before 'return'
 ? ? return false;
     ^
0_0_27948606_719.cpp:73:5: error: expected ':' before 'return'
0_0_27948606_719.cpp:73:5: error: expected primary-expression before 'return'
0_0_27948606_719.cpp:73:5: error: expected ':' before 'return'
0_0_27948606_719.cpp:73:5: error: expected primary-expression before 'return'
0_0_27948606_719.cpp: In function 'bool toposort(int)':
0_0_27948606_719.cpp:81:1: error: expected primary-expression before '?' token
 ? ? memset(flag,0,sizeof(flag));
 ^
0_0_27948606_719.cpp:81:3: error: expected primary-expression before '?' token
 ? ? memset(flag,0,sizeof(flag));
   ^
0_0_27948606_719.cpp:81:12: error: 'flag' was not declared in this scope
 ? ? memset(flag,0,sizeof(flag));
            ^
0_0_27948606_719.cpp:81:32: error: expected ':' before ';' token
 ? ? memset(flag,0,sizeof(flag));
                                ^
0_0_27948606_719.cpp:81:32: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:81:32: error: expected ':' before ';' token
0_0_27948606_719.cpp:81:32: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:83:1: error: expected primary-expression before '?' token
 ? ? for(int i=1;i<=n;i++)
 ^
0_0_27948606_719.cpp:83:3: error: expected primary-expression before '?' token
 ? ? for(int i=1;i<=n;i++)
   ^
0_0_27948606_719.cpp:83:5: error: expected primary-expression before 'for'
 ? ? for(int i=1;i<=n;i++)
     ^
0_0_27948606_719.cpp:83:5: error: expected ':' before 'for'
0_0_27948606_719.cpp:83:5: error: expected primary-expression before 'for'
0_0_27948606_719.cpp:83:5: error: expected ':' before 'for'
0_0_27948606_719.cpp:83:5: error: expected primary-expression before 'for'
0_0_27948606_719.cpp:83:17: error: 'i' was not declared in this scope
 ? ? for(int i=1;i<=n;i++)
                 ^
0_0_27948606_719.cpp:93:1: error: expected primary-expression before '?' token
 ? ? return false;
 ^
0_0_27948606_719.cpp:93:3: error: expected primary-expression before '?' token
 ? ? return false;
   ^
0_0_27948606_719.cpp:93:5: error: expected primary-expression before 'return'
 ? ? return false;
     ^
0_0_27948606_719.cpp:93:5: error: expected ':' before 'return'
0_0_27948606_719.cpp:93:5: error: expected primary-expression before 'return'
0_0_27948606_719.cpp:93:5: error: expected ':' before 'return'
0_0_27948606_719.cpp:93:5: error: expected primary-expression before 'return'
0_0_27948606_719.cpp: In function 'int main()':
0_0_27948606_719.cpp:101:1: error: expected primary-expression before '?' token
 ? ? int t;
 ^
0_0_27948606_719.cpp:101:3: error: expected primary-expression before '?' token
 ? ? int t;
   ^
0_0_27948606_719.cpp:101:5: error: expected primary-expression before 'int'
 ? ? int t;
     ^
0_0_27948606_719.cpp:101:5: error: expected ':' before 'int'
0_0_27948606_719.cpp:101:5: error: expected primary-expression before 'int'
0_0_27948606_719.cpp:101:5: error: expected ':' before 'int'
0_0_27948606_719.cpp:101:5: error: expected primary-expression before 'int'
0_0_27948606_719.cpp:103:1: error: expected primary-expression before '?' token
 ? ? scanf("%d",&t);
 ^
0_0_27948606_719.cpp:103:3: error: expected primary-expression before '?' token
 ? ? scanf("%d",&t);
   ^
0_0_27948606_719.cpp:103:17: error: 't' was not declared in this scope
 ? ? scanf("%d",&t);
                 ^
0_0_27948606_719.cpp:103:19: error: expected ':' before ';' token
 ? ? scanf("%d",&t);
                   ^
0_0_27948606_719.cpp:103:19: error: expected primary-expression before ';' token
0_0_27948606_719.cpp:103:19: error: expected ':' before ';' token
0_0_27948606_719.cpp:103:19: error: expected primary-expression be


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-23 04:07:19, Gzip enabled