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
}
^
|