0_0_13823297_23187.cpp: In function 'bool exist(int, int, int)':
0_0_13823297_23187.cpp:82:19: error: reference to 'hash' is ambiguous
int L = 0,R = hash[now].size()-1;
^
0_0_13823297_23187.cpp:15:14: note: candidates are: std::vector<int> hash [1000033]
vector <int> hash[rhl];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_13823297_23187.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_13823297_23187.cpp:86:13: error: reference to 'hash' is ambiguous
if (hash[now][mid] < l) L = mid+1;
^
0_0_13823297_23187.cpp:15:14: note: candidates are: std::vector<int> hash [1000033]
vector <int> hash[rhl];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_13823297_23187.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_13823297_23187.cpp:89:14: error: reference to 'hash' is ambiguous
if (L != hash[now].size()&&hash[now][L] <= r) return true;
^
0_0_13823297_23187.cpp:15:14: note: candidates are: std::vector<int> hash [1000033]
vector <int> hash[rhl];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_13823297_23187.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_13823297_23187.cpp:89:32: error: reference to 'hash' is ambiguous
if (L != hash[now].size()&&hash[now][L] <= r) return true;
^
0_0_13823297_23187.cpp:15:14: note: candidates are: std::vector<int> hash [1000033]
vector <int> hash[rhl];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_13823297_23187.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_13823297_23187.cpp: In function 'int main()':
0_0_13823297_23187.cpp:100:50: error: reference to 'hash' is ambiguous
for (int i = 1;i <= N;++i) A[i] = read(),hash[A[i]%rhl*233%rhl].push_back(i);
^
0_0_13823297_23187.cpp:15:14: note: candidates are: std::vector<int> hash [1000033]
vector <int> hash[rhl];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_13823297_23187.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_13823297_23187.cpp:118:36: error: reference to 'hash' is ambiguous
for (int i = 1;i <= N;++i) hash[A[i]%rhl*233%rhl].clear();
^
0_0_13823297_23187.cpp:15:14: note: candidates are: std::vector<int> hash [1000033]
vector <int> hash[rhl];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_13823297_23187.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|