0_0_33534438_20778.cpp:9:12: error: stray '#' in program
int n, m, N#include <bits/stdc++.h>
^
0_0_33534438_20778.cpp:9:13: error: expected initializer before 'include'
int n, m, N#include <bits/stdc++.h>
^
0_0_33534438_20778.cpp:17:11: error: redefinition of 'const int maxn'
const int maxn=2e3+7,mod=1e9+7;;
^
0_0_33534438_20778.cpp:5:11: note: 'const int maxn' previously defined here
const int maxn = 1010;
^
0_0_33534438_20778.cpp:18:11: error: redefinition of 'const int inf'
const int inf=0x3f3f3f3f;
^
0_0_33534438_20778.cpp:4:11: note: 'const int inf' previously defined here
const int inf = 0x3f3f3f3f;
^
0_0_33534438_20778.cpp:109:5: error: redefinition of 'int n'
int n, m;
^
0_0_33534438_20778.cpp:9:5: note: 'int n' previously declared here
int n, m, N#include <bits/stdc++.h>
^
0_0_33534438_20778.cpp:109:8: error: redefinition of 'int m'
int n, m;
^
0_0_33534438_20778.cpp:9:8: note: 'int m' previously declared here
int n, m, N#include <bits/stdc++.h>
^
0_0_33534438_20778.cpp:156:11: error: redefinition of 'const int maxm'
const int maxm=1e5+7;
^
0_0_33534438_20778.cpp:6:11: note: 'const int maxm' previously defined here
const int maxm = 200010;
^
0_0_33534438_20778.cpp:205:8: error: redefinition of 'struct Edge'
struct Edge
^
0_0_33534438_20778.cpp:21:8: error: previous definition of 'struct Edge'
struct Edge
^
0_0_33534438_20778.cpp: In function 'void addedge(int, int, int)':
0_0_33534438_20778.cpp:215:32: error: no matching function for call to 'Edge::Edge(int&, int&)'
edge[u].push_back(Edge(v, w));
^
0_0_33534438_20778.cpp:215:32: note: candidates are:
0_0_33534438_20778.cpp:21:8: note: Edge::Edge()
struct Edge
^
0_0_33534438_20778.cpp:21:8: note: candidate expects 0 arguments, 2 provided
0_0_33534438_20778.cpp:21:8: note: constexpr Edge::Edge(const Edge&)
0_0_33534438_20778.cpp:21:8: note: candidate expects 1 argument, 2 provided
0_0_33534438_20778.cpp:21:8: note: constexpr Edge::Edge(Edge&&)
0_0_33534438_20778.cpp:21:8: note: candidate expects 1 argument, 2 provided
0_0_33534438_20778.cpp: In function 'void dijkstra(int, int*)':
0_0_33534438_20778.cpp:220:26: error: 'N' was not declared in this scope
for (int i = 1; i <= N; ++i)
^
0_0_33534438_20778.cpp:238:54: error: '__gnu_cxx::__alloc_traits<std::allocator<Edge> >::value_type' has no member named 'cost'
int v = edge[u][i].to, cost = edge[u][i].cost;
^
0_0_33534438_20778.cpp: At global scope:
0_0_33534438_20778.cpp:256:13: error: conflicting declaration 'int dis [1010]'
int dis[maxn];
^
0_0_33534438_20778.cpp:110:4: note: previous declaration as 'll dis [2][1010]'
ll dis[2][maxn];
^
0_0_33534438_20778.cpp: In function 'int BFS()':
0_0_33534438_20778.cpp:273:12: error: incompatible types in assignment of 'int' to 'll [1010] {aka long long int [1010]}'
dis[S] = 0;
^
0_0_33534438_20778.cpp:281:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (e.cap > 0 && dis[e.v] == 0x3f3f3f3f)
^
0_0_33534438_20778.cpp:283:26: error: incompatible types in assignment of 'll* {aka long long int*}' to 'll [1010] {aka long long int [1010]}'
dis[e.v] = dis[h] + 1;
^
0_0_33534438_20778.cpp:288:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
return dis[T] < 0x3f3f3f3f; // 返回是否能够到达汇点
^
0_0_33534438_20778.cpp: At global scope:
0_0_33534438_20778.cpp:327:11: error: redefinition of 'int a [200010]'
int a[maxm], b[maxm], c[maxm];
^
0_0_33534438_20778.cpp:157:5: note: 'int a [200010]' previously declared here
int a[maxm],b[maxm],c[maxm];
^
0_0_33534438_20778.cpp:327:20: error: redefinition of 'int b [200010]'
int a[maxm], b[maxm], c[maxm];
^
0_0_33534438_20778.cpp:157:13: note: 'int b [200010]' previously declared here
int a[maxm],b[maxm],c[maxm];
^
0_0_33534438_20778.cpp:327:29: error: redefinition of 'int c [200010]'
int a[maxm], b[maxm], c[maxm];
^
0_0_33534438_20778.cpp:157:21: note: 'int c [200010]' previously declared here
int a[maxm],b[maxm],c[maxm];
^
0_0_33534438_20778.cpp: In function 'int main()':
0_0_33534438_20778.cpp:329:5: error: redefinition of 'int main()'
int main()
^
0_0_33534438_20778.cpp:159:5: note: 'int main()' previously defined here
int main()
^
0_0_33534438_20778.cpp:336:9: error: 'N' was not declared in this scope
N = n;
^
|