0_0_13809723_22707.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13809723_22707.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13809723_22707.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13809723_22707.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13809723_22707.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13809723_22707.cpp:6:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13809723_22707.cpp:17:5: error: 'vector' does not name a type
vector edges;
^
0_0_13809723_22707.cpp:18:5: error: 'vector' does not name a type
vector G[maxn];
^
0_0_13809723_22707.cpp: In member function 'void BellmanFord::init(int)':
0_0_13809723_22707.cpp:26:15: error: lvalue required as left operand of assignment
this-n=n;
^
0_0_13809723_22707.cpp:28:13: error: expected ';' before 'G'
G[i].clear();
^
0_0_13809723_22707.cpp:28:13: error: 'G' was not declared in this scope
0_0_13809723_22707.cpp:28:25: error: expected ')' before ';' token
G[i].clear();
^
0_0_13809723_22707.cpp:29:9: error: 'edges' was not declared in this scope
edges.clear();
^
0_0_13809723_22707.cpp: In member function 'void BellmanFord::AddEdge(int, int, int)':
0_0_13809723_22707.cpp:33:9: error: 'edges' was not declared in this scope
edges.push_back((Edge){from,to,dist});
^
0_0_13809723_22707.cpp:35:9: error: 'G' was not declared in this scope
G[from].push_back(m-1);
^
0_0_13809723_22707.cpp: In member function 'bool BellmanFord::negativeCycle()':
0_0_13809723_22707.cpp:39:9: error: 'queueQ' was not declared in this scope
queueQ;
^
0_0_13809723_22707.cpp:40:33: error: 'memset' was not declared in this scope
memset(inq,0,sizeof(inq));
^
0_0_13809723_22707.cpp:43:9: error: expected ';' before '{' token
{
^
0_0_13809723_22707.cpp:43:9: error: expected primary-expression before '{' token
0_0_13809723_22707.cpp:43:9: error: expected ')' before '{' token
0_0_13809723_22707.cpp:46:13: error: 'Q' was not declared in this scope
Q.push(i);
^
0_0_13809723_22707.cpp:49:16: error: 'Q' was not declared in this scope
while(!Q.empty())
^
0_0_13809723_22707.cpp:56:13: error: expected ';' before '{' token
{
^
0_0_13809723_22707.cpp:56:13: error: expected primary-expression before '{' token
0_0_13809723_22707.cpp:56:13: error: expected ')' before '{' token
0_0_13809723_22707.cpp:57:25: error: 'edges' was not declared in this scope
Edge& e=edges[G[u][i]];
^
0_0_13809723_22707.cpp:57:31: error: 'G' was not declared in this scope
Edge& e=edges[G[u][i]];
^
0_0_13809723_22707.cpp:58:27: error: expected ')' before 'd'
if(d[e.to]d[u]+e.dist)
^
0_0_13809723_22707.cpp:66:39: error: expected ')' before 'n'
if(++cnt[e.to]n)
^
0_0_13809723_22707.cpp: In function 'int main()':
0_0_13809723_22707.cpp:80:23: error: 'scanf' was not declared in this scope
scanf("%d",&case1);
^
0_0_13809723_22707.cpp:88:13: error: expected ';' before '{' token
{
^
0_0_13809723_22707.cpp:88:13: error: expected primary-expression before '{' token
0_0_13809723_22707.cpp:88:13: error: expected ')' before '{' token
0_0_13809723_22707.cpp:95:13: error: expected ';' before '{' token
{
^
0_0_13809723_22707.cpp:95:13: error: expected primary-expression before '{' token
0_0_13809723_22707.cpp:95:13: error: expected ')' before '{' token
0_0_13809723_22707.cpp:103:31: error: 'printf' was not declared in this scope
printf("YES\n");
^
0_0_13809723_22707.cpp:105:30: error: 'printf' was not declared in this scope
printf("NO\n");
^
|