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_14503357_29174.cpp: In function 'void relax(int)':
0_0_14503357_29174.cpp:11:6: error: 'i' was not declared in this scope
  for(i=0;i<go[x].size;i++)
      ^
0_0_14503357_29174.cpp:12:7: error: 'fa' was not declared in this scope
   if(!fa[v[go[x][i]]] && !ok[v[go[x][i]]])
       ^
0_0_14503357_29174.cpp:12:27: error: 'ok' was not declared in this scope
   if(!fa[v[go[x][i]]] && !ok[v[go[x][i]]])
                           ^
0_0_14503357_29174.cpp: In function 'int main()':
0_0_14503357_29174.cpp:22:21: error: 'fa' was not declared in this scope
   for(i=1;i<=n;i++) fa[i]=ok[i]=dis[i]=0;
                     ^
0_0_14503357_29174.cpp:22:27: error: 'ok' was not declared in this scope
   for(i=1;i<=n;i++) fa[i]=ok[i]=dis[i]=0;
                           ^
0_0_14503357_29174.cpp:22:33: error: 'dis' was not declared in this scope
   for(i=1;i<=n;i++) fa[i]=ok[i]=dis[i]=0;
                                 ^
0_0_14503357_29174.cpp:27:3: error: 'ok' was not declared in this scope
   ok[1]=1;
   ^
0_0_14503357_29174.cpp:28:3: error: 'dis' was not declared in this scope
   dis[1]=0;
   ^
0_0_14503357_29174.cpp:32:7: error: 'fa' was not declared in this scope
    if(fa[pre]){
       ^
0_0_14503357_29174.cpp:39:7: error: 'fa' was not declared in this scope
    if(fa[last]){
       ^
0_0_14503357_29174.cpp:48:13: error: 'fa' was not declared in this scope
    if(u[i]!=fa[v[i]]) printf("%d\n",n);
             ^


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-24 17:32:41, Gzip enabled