foo.cc: In function 'bool spfa()':
foo.cc:27:13: error: expected primary-expression before ';' token
27 | for(int i=; i<=n; ++i) d[i]=inf;
| ^
foo.cc:28:12: error: expected primary-expression before ',' token
28 | memset(v,,sizeof(v));
| ^
foo.cc:29:9: error: expected primary-expression before ',' token
29 | int l=,r=,x,y;
| ^
foo.cc:30:5: error: expected primary-expression before ']' token
30 | q[]=s;
| ^
foo.cc:31:8: error: expected primary-expression before ';' token
31 | d[s]=;
| ^
foo.cc:32:8: error: expected primary-expression before ';' token
32 | c[s]=;
| ^
foo.cc:33:12: error: 'r' was not declared in this scope
33 | while(l!=r)
| ^
foo.cc:35:5: error: 'x' was not declared in this scope
35 | x=q[++l];
| ^
foo.cc:36:18: error: expected primary-expression before ';' token
36 | if(l==MAXN)l=;
| ^
foo.cc:37:10: error: expected primary-expression before ';' token
37 | v[x]=;
| ^
foo.cc:39:24: error: 'y' was not declared in this scope
39 | if(d[x]+e[i].w<d[y=e[i].go]&&c[x]+e[i].c<=k)
| ^
foo.cc:45:16: error: expected primary-expression before ';' token
45 | v[y]=;
| ^
foo.cc:47:24: error: expected primary-expression before ';' token
47 | if(r==MAXN)r=;
| ^
foo.cc: In function 'int main()':
foo.cc:59:13: error: expected primary-expression before ';' token
59 | for(int i=; i<=m; ++i)
| ^
foo.cc:68:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
68 | return ;
| ^~~~~~
foo.cc:55:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
55 | freopen("input.txt","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:56:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
56 | freopen("output.txt","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务