0_0_18759440_32077.cpp:46:1: error: stray '\313' in program
3. Tarjan缩点(hdu1827)
^
0_0_18759440_32077.cpp:46:1: error: stray '\365' in program
0_0_18759440_32077.cpp:46:1: error: stray '\265' in program
0_0_18759440_32077.cpp:46:1: error: stray '\343' in program
0_0_18759440_32077.cpp:46:1: error: stray '\243' in program
0_0_18759440_32077.cpp:46:1: error: stray '\250' in program
0_0_18759440_32077.cpp:46:1: error: stray '\243' in program
0_0_18759440_32077.cpp:46:1: error: stray '\251' in program
0_0_18759440_32077.cpp:48:1: error: stray '\243' in program
Tips:缩点的tarjan,dfs的时候不需要弄fa。也就是代码里没有fago
^
0_0_18759440_32077.cpp:48:1: error: stray '\272' in program
0_0_18759440_32077.cpp:48:1: error: stray '\313' in program
0_0_18759440_32077.cpp:48:1: error: stray '\365' in program
0_0_18759440_32077.cpp:48:1: error: stray '\265' in program
0_0_18759440_32077.cpp:48:1: error: stray '\343' in program
0_0_18759440_32077.cpp:48:1: error: stray '\265' in program
0_0_18759440_32077.cpp:48:1: error: stray '\304' in program
0_0_18759440_32077.cpp:48:1: error: stray '\243' in program
0_0_18759440_32077.cpp:48:1: error: stray '\254' in program
0_0_18759440_32077.cpp:48:1: error: stray '\265' in program
0_0_18759440_32077.cpp:48:1: error: stray '\304' in program
0_0_18759440_32077.cpp:48:1: error: stray '\312' in program
0_0_18759440_32077.cpp:48:1: error: stray '\261' in program
0_0_18759440_32077.cpp:48:1: error: stray '\272' in program
0_0_18759440_32077.cpp:48:1: error: stray '\362' in program
0_0_18759440_32077.cpp:48:1: error: stray '\262' in program
0_0_18759440_32077.cpp:48:1: error: stray '\273' in program
0_0_18759440_32077.cpp:48:1: error: stray '\320' in program
0_0_18759440_32077.cpp:48:1: error: stray '\350' in program
0_0_18759440_32077.cpp:48:1: error: stray '\322' in program
0_0_18759440_32077.cpp:48:1: error: stray '\252' in program
0_0_18759440_32077.cpp:48:1: error: stray '\305' in program
0_0_18759440_32077.cpp:48:1: error: stray '\252' in program
0_0_18759440_32077.cpp:48:1: error: stray '\241' in program
0_0_18759440_32077.cpp:48:1: error: stray '\243' in program
0_0_18759440_32077.cpp:48:1: error: stray '\322' in program
0_0_18759440_32077.cpp:48:1: error: stray '\262' in program
0_0_18759440_32077.cpp:48:1: error: stray '\276' in program
0_0_18759440_32077.cpp:48:1: error: stray '\315' in program
0_0_18759440_32077.cpp:48:1: error: stray '\312' in program
0_0_18759440_32077.cpp:48:1: error: stray '\307' in program
0_0_18759440_32077.cpp:48:1: error: stray '\264' in program
0_0_18759440_32077.cpp:48:1: error: stray '\372' in program
0_0_18759440_32077.cpp:48:1: error: stray '\302' in program
0_0_18759440_32077.cpp:48:1: error: stray '\353' in program
0_0_18759440_32077.cpp:48:1: error: stray '\300' in program
0_0_18759440_32077.cpp:48:1: error: stray '\357' in program
0_0_18759440_32077.cpp:48:1: error: stray '\303' in program
0_0_18759440_32077.cpp:48:1: error: stray '\273' in program
0_0_18759440_32077.cpp:48:1: error: stray '\323' in program
0_0_18759440_32077.cpp:48:1: error: stray '\320' in program
0_0_18759440_32077.cpp:50:1: error: stray '\326' in program
至于为啥#define next nxt 因为hdu用next变量名有问题。
^
0_0_18759440_32077.cpp:50:1: error: stray '\301' in program
0_0_18759440_32077.cpp:50:1: error: stray '\323' in program
0_0_18759440_32077.cpp:50:1: error: stray '\332' in program
0_0_18759440_32077.cpp:50:1: error: stray '\316' in program
0_0_18759440_32077.cpp:50:1: error: stray '\252' in program
0_0_18759440_32077.cpp:50:1: error: stray '\311' in program
0_0_18759440_32077.cpp:50:1: error: stray '\266' in program
0_0_18759440_32077.cpp:50:9: error: stray '#' in program
至于为啥#define next nxt 因为hdu用next变量名有问题。
^
0_0_18759440_32077.cpp:50:1: error: stray '\322' in program
至于为啥#define next nxt 因为hdu用next变量名有问题。
^
0_0_18759440_32077.cpp:50:1: error: stray '\362' in program
0_0_18759440_32077.cpp:50:1: error: stray '\316' in program
0_0_18759440_32077.cpp:50:1: error: stray '\252' in program
0_0_18759440_32077.cpp:50:1: error: stray '\323' in program
0_0_18759440_32077.cpp:50:1: error: stray '\303' in program
0_0_18759440_32077.cpp:50:1: error: stray '\261' in program
0_0_18759440_32077.cpp:50:1: error: stray '\344' in program
0_0_18759440_32077.cpp:50:1: error: stray '\301' in program
0_0_18759440_32077.cpp:50:1: error: stray '\277' in program
0_0_18759440_32077.cpp:50:1: error: stray '\303' in program
0_0_18759440_32077.cpp:50:1: error: stray '\373' in program
0_0_18759440_32077.cpp:50:1: error: stray '\323' in program
0_0_18759440_32077.cpp:50:1: error: stray '\320' in program
0_0_18759440_32077.cpp:50:1: error: stray '\316' in program
0_0_18759440_32077.cpp:50:1: error: stray '\312' in program
0_0_18759440_32077.cpp:50:1: error: stray '\314' in program
0_0_18759440_32077.cpp:50:1: error: stray '\342' in program
0_0_18759440_32077.cpp:50:1: error: stray '\241' in program
0_0_18759440_32077.cpp:50:1: error: stray '\243' in program
0_0_18759440_32077.cpp: In function 'void add_e(int, int)':
0_0_18759440_32077.cpp:14:41: error: reference to 'next' is ambiguous
inline void add_e(int u, int v) {++tot; next[tot]=head[u]; head[u]=tot; to[tot]=v;}
^
0_0_18759440_32077.cpp:10:14: note: candidates are: int next [260010]
int head[N], next[M], to[M], tot;
^
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++/algorithm:61,
from 0_0_18759440_32077.cpp:3:
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_18759440_32077.cpp: In function 'void tarjan(int, int)':
0_0_18759440_32077.cpp:22:30: error: reference to 'next' is ambiguous
for (int i=head[x]; i; i=next[i]) {
^
0_0_18759440_32077.cpp:10:14: note: candidates are: int next [260010]
int head[N], next[M], to[M], tot;
^
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++/algorithm:61,
from 0_0_18759440_32077.cpp:3:
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_18759440_32077.cpp: At global scope:
0_0_18759440_32077.cpp:46:1: error: expected unqualified-id before numeric constant
3. Tarjan缩点(hdu1827)
^
0_0_18759440_32077.cpp:50:10: error: 'define' does not name a type
至于为啥#define next nxt 因为hdu用next变量名有问题。
^
0_0_18759440_32077.cpp:142:11: error: redefinition of 'const int N'
const int N = 100010, M = 260010;
^
0_0_18759440_32077.cpp:8:11: note: 'const int N' previously defined here
const int N = 100010, M = 260010;
^
0_0_18759440_32077.cpp:142:23: error: redefinition of 'const int M'
const int N = 100010, M = 260010;
^
0_0_18759440_32077.cpp:8:23: note: 'const int M' previously defined here
const int N = 100010, M = 260010;
^
0_0_18759440_32077.cpp:143:10: error: redefinition of 'int dfn [100010]'
int dfn[N], low[N], DFN, d[N];
^
0_0_18759440_32077.cpp:9:5: note: 'int dfn [100010]' previously declared here
int dfn[N], low[N], DFN;
^
0_0_18759440_32077.cpp:143:18: error: redefinition of 'int low [100010]'
int dfn[N], low[N], DFN, d[N];
^
0_0_18759440_32077.cpp:9:13: note: 'int low [100010]' previously declared here
int dfn[N], low[N], DFN;
^
0_0_18759440_32077.cpp:143:21: error: redefinition of 'int DFN'
int dfn[N], low[N], DFN, d[N];
^
0_0_18759440_32077.cpp:9:21: note: 'int DFN' previously declared here
int dfn[N], low[N], DFN;
^
0_0_18759440_32077.cpp:144:11: error: redefinition of 'int head [100010]'
int head[N], next[M], to[M], tot;
^
0_0_18759440_32077.cpp:10:5: note: 'int head [100010]' previously declared here
int head[N], next[M], to[M], tot;
^
0_0_18759440_32077.cpp:144:27: error: redefinition of 'int to [260010]'
int head[N], next[M], to[M], tot;
^
0_0_18759440_32077.cpp:10:23: note: 'int to [260010]' previously declared here
int head[N], next[M], to[M], tot;
^
0_0_18759440_32077.cpp:144:30: error: redefinition of 'int tot'
int head[N], next[M], to[M], tot;
^
0_0_18759440_32077.cpp:10:30: note: 'int tot' previously declared here
int head[N], next[M], to[M], tot;
^
0_0_18759440_32077.cpp:145:5: error: redefinition of 'int n'
int n, m, belong[N], scc, du[N];
^
0_0_18759440_3
|