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_33636766_16028.cpp:8:1: error: 'iny' does not name a type
 iny n,m;
 ^
0_0_33636766_16028.cpp: In function 'void floyd()':
0_0_33636766_16028.cpp:17:25: error: 'n' was not declared in this scope
     for(int k = 1; k <= n; k++)
                         ^
0_0_33636766_16028.cpp: In function 'bool Bellman_ford()':
0_0_33636766_16028.cpp:25:25: error: 'n' was not declared in this scope
     for(int i = 2; i <= n; i++) 
                         ^
0_0_33636766_16028.cpp:27:11: error: 'INF' was not declared in this scope
   d[i] = -INF;
           ^
0_0_33636766_16028.cpp:30:19: error: 'n' was not declared in this scope
     for(int i=1;i<n;i++)
                   ^
0_0_33636766_16028.cpp:32:23: error: 'm' was not declared in this scope
         for(int j=0;j<m;j++)
                       ^
0_0_33636766_16028.cpp:36:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
             if(d[v]<d[u]+w[v] && d[u]+w[v]> 0)
                             ^
0_0_33636766_16028.cpp:37:27: error: 'en' was not declared in this scope
                 d[v]=d[u]+en[v]; 
                           ^
0_0_33636766_16028.cpp:40:24: error: 'm' was not declared in this scope
     for(int i = 0; i < m; i++)
                        ^
0_0_33636766_16028.cpp:44:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         if(d[v]<d[u]+w[v] && d[u]+w[v] > 0)
                         ^
0_0_33636766_16028.cpp:45:23: error: 'n' was not declared in this scope
             if(vis[v][n])  return true;
                       ^
0_0_33636766_16028.cpp:47:14: error: 'n' was not declared in this scope
     return d[n]>0; 
              ^
0_0_33636766_16028.cpp:50:1: error: a function-definition is not allowed here before '{' token
 {
 ^
0_0_33636766_16028.cpp:78:1: error: expected '}' at end of input
 }
 ^


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-25 04:53:13, Gzip enabled