0_0_20975592_13459.cpp:30:20: error: stray '#' in program
head[s] = num ++;
^
0_0_20975592_13459.cpp:30:25: error: stray '#' in program
head[s] = num ++;
^
0_0_20975592_13459.cpp:35:25: error: stray '#' in program
for(i = 0;i <= n;i ++)
^
0_0_20975592_13459.cpp:35:30: error: stray '#' in program
for(i = 0;i <= n;i ++)
^
0_0_20975592_13459.cpp:43:15: error: stray '#' in program
que[rear ++] = 0;
^
0_0_20975592_13459.cpp:43:20: error: stray '#' in program
que[rear ++] = 0;
^
0_0_20975592_13459.cpp:45:15: error: stray '#' in program
times[0] ++;
^
0_0_20975592_13459.cpp:45:20: error: stray '#' in program
times[0] ++;
^
0_0_20975592_13459.cpp:48:28: error: stray '#' in program
int u = que[front ++];
^
0_0_20975592_13459.cpp:48:33: error: stray '#' in program
int u = que[front ++];
^
0_0_20975592_13459.cpp:53:39: error: stray '#' in program
if(dis[g[i].to] < dis[u] + g[i].val)
^
0_0_20975592_13459.cpp:55:40: error: stray '#' in program
dis[g[i].to] = dis[u] + g[i].val;
^
0_0_20975592_13459.cpp:59:37: error: stray '#' in program
times[g[i].to] ++;
^
0_0_20975592_13459.cpp:59:42: error: stray '#' in program
times[g[i].to] ++;
^
0_0_20975592_13459.cpp:60:31: error: stray '#' in program
que[rear ++] = g[i].to;
^
0_0_20975592_13459.cpp:60:36: error: stray '#' in program
que[rear ++] = g[i].to;
^
0_0_20975592_13459.cpp:70:29: error: stray '#' in program
for(int i = 1;i <= n;i ++)
^
0_0_20975592_13459.cpp:70:34: error: stray '#' in program
for(int i = 1;i <= n;i ++)
^
0_0_20975592_13459.cpp:74:14: error: stray '#' in program
ans += p[i] * w[i];
^
0_0_20975592_13459.cpp:86:29: error: stray '#' in program
for(i = 1;i <= n;i ++)
^
0_0_20975592_13459.cpp:86:34: error: stray '#' in program
for(i = 1;i <= n;i ++)
^
0_0_20975592_13459.cpp: In function 'void build(int, int, double)':
0_0_20975592_13459.cpp:30:26: error: lvalue required as unary '&' operand
head[s] = num ++;
^
0_0_20975592_13459.cpp: In function 'void SPFA()':
0_0_20975592_13459.cpp:35:28: error: expected ')' before ';' token
for(i = 0;i <= n;i ++)
^
0_0_20975592_13459.cpp:35:31: error: lvalue required as unary '&' operand
for(i = 0;i <= n;i ++)
^
0_0_20975592_13459.cpp:35:34: error: expected primary-expression before ')' token
for(i = 0;i <= n;i ++)
^
0_0_20975592_13459.cpp:43:18: error: expected ']' before ';' token
que[rear ++] = 0;
^
0_0_20975592_13459.cpp:43:21: error: lvalue required as unary '&' operand
que[rear ++] = 0;
^
0_0_20975592_13459.cpp:43:24: error: expected primary-expression before ']' token
que[rear ++] = 0;
^
0_0_20975592_13459.cpp:45:21: error: lvalue required as unary '&' operand
times[0] ++;
^
0_0_20975592_13459.cpp:48:31: error: expected ']' before ';' token
int u = que[front ++];
^
0_0_20975592_13459.cpp:48:34: error: lvalue required as unary '&' operand
int u = que[front ++];
^
0_0_20975592_13459.cpp:48:37: error: expected primary-expression before ']' token
int u = que[front ++];
^
0_0_20975592_13459.cpp:53:42: error: expected ')' before ';' token
if(dis[g[i].to] < dis[u] + g[i].val)
^
0_0_20975592_13459.cpp:53:52: error: expected ';' before ')' token
if(dis[g[i].to] < dis[u] + g[i].val)
^
0_0_20975592_13459.cpp:108:1: error: expected '}' at end of input
}
^
0_0_20975592_13459.cpp:108:1: error: expected '}' at end of input
|