F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_17202033_22532.cpp:106:2: error: stray '#' in program
 }#include <cstdio>
  ^
0_0_17202033_22532.cpp:149:2: error: stray '#' in program
 }#include <cstdio>
  ^
0_0_17202033_22532.cpp: In function 'void addEdge(int, int, int)':
0_0_17202033_22532.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_17202033_22532.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_17202033_22532.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_17202033_22532.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_17202033_22532.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_17202033_22532.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_17202033_22532.cpp: In function 'bool SPFA()':
0_0_17202033_22532.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_17202033_22532.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_17202033_22532.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_17202033_22532.cpp: At global scope:
0_0_17202033_22532.cpp:106:3: error: 'include' does not name a type
 }#include <cstdio>
   ^
0_0_17202033_22532.cpp:111:11: error: redefinition of 'const int N'
 const int N = 22;
           ^
0_0_17202033_22532.cpp:8:11: note: 'const int N' previously defined here
 const int N = 460;
           ^
0_0_17202033_22532.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_17202033_22532.cpp:12:5: note: 'int n' previously declared here
 int n, m;
     ^
0_0_17202033_22532.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_17202033_22532.cpp:13:17: note: 'int b [460]' previously declared here
 int x[N], y[N], b[N], p[N], need[10][N];
                 ^
0_0_17202033_22532.cpp: In function 'int main()':
0_0_17202033_22532.cpp:134:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_17202033_22532.cpp:74:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_17202033_22532.cpp: At global scope:
0_0_17202033_22532.cpp:149:3: error: 'include' does not name a type
 }#include <cstdio>
   ^
0_0_17202033_22532.cpp:154:11: error: redefinition of 'const int N'
 const int N = 330;
           ^
0_0_17202033_22532.cpp:8:11: note: 'const int N' previously defined here
 const int N = 460;
           ^
0_0_17202033_22532.cpp:157:5: error: redefinition of 'int n'
 int n, c[N], d[N];
     ^
0_0_17202033_22532.cpp:12:5: note: 'int n' previously declared here
 int n, m;
     ^
0_0_17202033_22532.cpp:157:17: error: conflicting declaration 'int d [460]'
 int n, c[N], d[N];
                 ^
0_0_17202033_22532.cpp:14:8: note: previous declaration as 'double d [460][460]'
 double d[N][N];
        ^
0_0_17202033_22532.cpp: In function 'int main()':
0_0_17202033_22532.cpp:171:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_17202033_22532.cpp:74:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_17202033_22532.cpp:189:22: error: incompatible types in assignment of 'int' to 'double [460]'
                 d[i] = 0;
                      ^
0_0_17202033_22532.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]++;
                                                                                  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 06:21:37, Gzip enabled