/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'void update(int)':
/in/foo.cc:20:3: error: reference to 'hash' is ambiguous
   hash[i]=hash[son[i][0]]+key[i]*pre[siz[son[i][0]]]+pre[siz[son[i][0]]+1]*hash[son[i][1]];
   ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:20:11: error: reference to 'hash' is ambiguous
   hash[i]=hash[son[i][0]]+key[i]*pre[siz[son[i][0]]]+pre[siz[son[i][0]]+1]*hash[son[i][1]];
           ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:20:76: error: reference to 'hash' is ambiguous
   hash[i]=hash[son[i][0]]+key[i]*pre[siz[son[i][0]]]+pre[siz[son[i][0]]+1]*hash[son[i][1]];
                                                                            ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc: In function 'void insert(int, int, int&)':
/in/foo.cc:68:18: error: reference to 'hash' is ambiguous
    key[rt=++tot]=hash[tot]=ky;
                  ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:82:3: error: reference to 'hash' is ambiguous
   hash[tot]=key[tot]=ky;
   ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc: In function 'long long unsigned int query(int, int)':
/in/foo.cc:109:11: error: reference to 'hash' is ambiguous
    return hash[son[son[root][1]][0]];
           ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:115:11: error: reference to 'hash' is ambiguous
    return hash[son[root][0]];
           ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:121:11: error: reference to 'hash' is ambiguous
    return hash[son[root][1]];
           ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:124:12: error: reference to 'hash' is ambiguous
     return hash[root];
            ^~~~
/in/foo.cc:16:19: note: candidates are: long long unsigned int hash [100010]
 unsigned lovelive hash[100010],pre[100010],key[100010];
                   ^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5643:0,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:145:13: warning: unused variable 'tmp' [-Wunused-variable]
   int m,x,y,tmp;
             ^~~

信息

递交者
类型
递交
题目
火星人prefix
语言
C++
递交时间
2017-12-04 09:54:32
评测时间
2017-12-04 09:54:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes