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_35860124_1303.cpp:6:11: error: expected unqualified-id before numeric constant
 #define N 10010
           ^
0_0_35860124_1303.cpp:17:48: note: in expansion of macro 'N'
 int ver[M],Next[M],next[M],head[M],now[N],h[M],N[M],ve[M];
                                                ^
0_0_35860124_1303.cpp: In function 'void add(int, int, long long int)':
0_0_35860124_1303.cpp:21:2: error: 've' was not declared in this scope
  ve[++l]=y;
  ^
0_0_35860124_1303.cpp:23:5: error: invalid types 'int[int]' for array subscript
  N[l]=h[x];
     ^
0_0_35860124_1303.cpp: In function 'void dij()':
0_0_35860124_1303.cpp:42:26: error: invalid types 'int[int]' for array subscript
   for (int i=h[x];i;i=N[i]){
                          ^
0_0_35860124_1303.cpp:43:10: error: 've' was not declared in this scope
    int y=ve[i];
          ^


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-17 01:48:19, Gzip enabled