0_0_21597784_22933.cpp:152:10: error: stray '#' in program
if(cmd=='Q')
^
0_0_21597784_22933.cpp:152:16: error: stray '#' in program
if(cmd=='Q')
^
0_0_21597784_22933.cpp:158:10: error: stray '#' in program
if(cmd=='I')
^
0_0_21597784_22933.cpp:158:16: error: stray '#' in program
if(cmd=='I')
^
0_0_21597784_22933.cpp:164:10: error: stray '#' in program
if(cmd=='D')
^
0_0_21597784_22933.cpp:164:16: error: stray '#' in program
if(cmd=='D')
^
0_0_21597784_22933.cpp: In function 'void DFS2(int, int)':
0_0_21597784_22933.cpp:45:1: error: reference to 'rank' is ambiguous
rank[tim]=x;//反向映射
^
0_0_21597784_22933.cpp:17:5: note: candidates are: int rank [300005]
int rank[300005]={0};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
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_21597784_22933.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21597784_22933.cpp: In function 'void Build(int, int, int)':
0_0_21597784_22933.cpp:77:19: error: reference to 'rank' is ambiguous
tree[root].sum=st[rank[l]];
^
0_0_21597784_22933.cpp:17:5: note: candidates are: int rank [300005]
int rank[300005]={0};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
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_21597784_22933.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21597784_22933.cpp: In function 'void pre()':
0_0_21597784_22933.cpp:125:8: error: reference to 'rank' is ambiguous
memset(rank,0,sizeof(rank));
^
0_0_21597784_22933.cpp:17:5: note: candidates are: int rank [300005]
int rank[300005]={0};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
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_21597784_22933.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21597784_22933.cpp:125:22: error: reference to 'rank' is ambiguous
memset(rank,0,sizeof(rank));
^
0_0_21597784_22933.cpp:17:5: note: candidates are: int rank [300005]
int rank[300005]={0};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
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_21597784_22933.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note: template<class> struct std::rank
struct rank
^
0_0_21597784_22933.cpp: In function 'int main()':
0_0_21597784_22933.cpp:152:11: error: lvalue required as unary '&' operand
if(cmd=='Q')
^
0_0_21597784_22933.cpp:152:13: error: expected ')' before ';' token
if(cmd=='Q')
^
0_0_21597784_22933.cpp:152:14: error: 'Q' was not declared in this scope
if(cmd=='Q')
^
0_0_21597784_22933.cpp:152:20: error: expected primary-expression before ')' token
if(cmd=='Q')
^
0_0_21597784_22933.cpp:158:11: error: lvalue required as unary '&' operand
if(cmd=='I')
^
0_0_21597784_22933.cpp:158:13: error: expected ')' before ';' token
if(cmd=='I')
^
0_0_21597784_22933.cpp:158:14: error: 'I' was not declared in this scope
if(cmd=='I')
^
0_0_21597784_22933.cpp:158:20: error: expected primary-expression before ')' token
if(cmd=='I')
^
0_0_21597784_22933.cpp:164:11: error: lvalue required as unary '&' operand
if(cmd=='D')
^
0_0_21597784_22933.cpp:164:13: error: expected ')' before ';' token
if(cmd=='D')
^
0_0_21597784_22933.cpp:164:14: error: 'D' was not declared in this scope
if(cmd=='D')
^
0_0_21597784_22933.cpp:164:20: error: expected primary-expression before ')' token
if(cmd=='D')
^
|