0_0_17202021_16962.cpp:106:2: error: stray '#' in program
}#include <cstdio>
^
0_0_17202021_16962.cpp:149:2: error: stray '#' in program
}#include <cstdio>
^
0_0_17202021_16962.cpp: In function 'void addEdge(int, int, int)':
0_0_17202021_16962.cpp:20:45: error: reference to 'next' is ambiguous
from[en] = u, to[en] = v, cost[en] = c, next[en] = head[u], head[u] = en++;
^
0_0_17202021_16962.cpp:15:62: note: candidates are: int next [425960]
int en, S, T, NV, head[N], from[M], to[M], cost[M], flow[M], next[M];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17202021_16962.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17202021_16962.cpp:21:46: error: reference to 'next' is ambiguous
from[en] = v, to[en] = u, cost[en] = -c, next[en] = head[v], head[v] = en++;
^
0_0_17202021_16962.cpp:15:62: note: candidates are: int next [425960]
int en, S, T, NV, head[N], from[M], to[M], cost[M], flow[M], next[M];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17202021_16962.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17202021_16962.cpp: In function 'bool SPFA()':
0_0_17202021_16962.cpp:32:44: error: reference to 'next' is ambiguous
for (int i = head[u]; i != -1; i = next[i]) if (flow[i] > 0) {
^
0_0_17202021_16962.cpp:15:62: note: candidates are: int next [425960]
int en, S, T, NV, head[N], from[M], to[M], cost[M], flow[M], next[M];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17202021_16962.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17202021_16962.cpp: At global scope:
0_0_17202021_16962.cpp:106:3: error: 'include' does not name a type
}#include <cstdio>
^
0_0_17202021_16962.cpp:111:11: error: redefinition of 'const int N'
const int N = 22;
^
0_0_17202021_16962.cpp:8:11: note: 'const int N' previously defined here
const int N = 460;
^
0_0_17202021_16962.cpp:113:5: error: redefinition of 'int n'
int n, dp[N][N][N][N], a[N], b[N], sa[N], sb[N];
^
0_0_17202021_16962.cpp:12:5: note: 'int n' previously declared here
int n, m;
^
0_0_17202021_16962.cpp:113:33: error: redefinition of 'int b [460]'
int n, dp[N][N][N][N], a[N], b[N], sa[N], sb[N];
^
0_0_17202021_16962.cpp:13:17: note: 'int b [460]' previously declared here
int x[N], y[N], b[N], p[N], need[10][N];
^
0_0_17202021_16962.cpp: In function 'int main()':
0_0_17202021_16962.cpp:134:5: error: redefinition of 'int main()'
int main() {
^
0_0_17202021_16962.cpp:74:5: note: 'int main()' previously defined here
int main() {
^
0_0_17202021_16962.cpp: At global scope:
0_0_17202021_16962.cpp:149:3: error: 'include' does not name a type
}#include <cstdio>
^
0_0_17202021_16962.cpp:154:11: error: redefinition of 'const int N'
const int N = 330;
^
0_0_17202021_16962.cpp:8:11: note: 'const int N' previously defined here
const int N = 460;
^
0_0_17202021_16962.cpp:157:5: error: redefinition of 'int n'
int n, c[N], d[N];
^
0_0_17202021_16962.cpp:12:5: note: 'int n' previously declared here
int n, m;
^
0_0_17202021_16962.cpp:157:17: error: conflicting declaration 'int d [460]'
int n, c[N], d[N];
^
0_0_17202021_16962.cpp:14:8: note: previous declaration as 'double d [460][460]'
double d[N][N];
^
0_0_17202021_16962.cpp: In function 'int main()':
0_0_17202021_16962.cpp:171:5: error: redefinition of 'int main()'
int main() {
^
0_0_17202021_16962.cpp:74:5: note: 'int main()' previously defined here
int main() {
^
0_0_17202021_16962.cpp:189:22: error: incompatible types in assignment of 'int' to 'double [460]'
d[i] = 0;
^
0_0_17202021_16962.cpp:190:82: error: lvalue required as increment operand
for (int j = 0; j < n; j++) if (g[i][j] == '1' && c[j] == 0) d[i]++;
^
|