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_15914519_13689.cpp:13:5: error: conflicting declaration 'int EC'
 int EC;
     ^
0_0_15914519_13689.cpp:11:15: note: previous declaration as 'point EC [10000]'
 point*v[1000],EC[10000];
               ^
0_0_15914519_13689.cpp: In function 'void addedge(int, int, int)':
0_0_15914519_13689.cpp:16:2: error: 'ES' was not declared in this scope
  ES[++EC].next=v[x];v[x]=ES+EC;v[x]->data=y;v[x]->cost=z;
  ^
0_0_15914519_13689.cpp:16:7: error: lvalue required as increment operand
  ES[++EC].next=v[x];v[x]=ES+EC;v[x]->data=y;v[x]->cost=z;
       ^
0_0_15914519_13689.cpp: In function 'int main()':
0_0_15914519_13689.cpp:23:5: error: incompatible types in assignment of 'int' to 'point [10000]'
   EC=0;
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-28 00:54:09, Gzip enabled