/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:19: error: reference to 'hash' is ambiguous
                   hash[i]=x[i];
                   ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:31:12: error: reference to 'hash' is ambiguous
       sort(hash+1,hash+n+1);
            ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:31:19: error: reference to 'hash' is ambiguous
       sort(hash+1,hash+n+1);
                   ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:32:16: error: reference to 'hash' is ambiguous
       d=unique(hash+1,hash+n+1)-hash-1;
                ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:32:23: error: reference to 'hash' is ambiguous
       d=unique(hash+1,hash+n+1)-hash-1;
                       ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:32:33: error: reference to 'hash' is ambiguous
       d=unique(hash+1,hash+n+1)-hash-1;
                                 ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:35:27: error: reference to 'hash' is ambiguous
             a=lower_bound(hash+1,hash+d+1,x[i])-hash;
                           ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:35:34: error: reference to 'hash' is ambiguous
             a=lower_bound(hash+1,hash+d+1,x[i])-hash;
                                  ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:35:49: error: reference to 'hash' is ambiguous
             a=lower_bound(hash+1,hash+d+1,x[i])-hash;
                                                 ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:42:19: error: reference to 'hash' is ambiguous
                   hash[i]=y[i];
                   ^~~~
/in/foo.cc:10:5: note: candidates are: int hash [100007]
 int hash[100007];
     ^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6385:0,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:43:12: error: reference to 'hash' is ambiguous
       sort(hash+1,hash+n+1);
            ^~~~
/in/foo.cc:10:5: note: candidates

信息

递交者
类型
递交
题目
Lasers and Mirrors
语言
C++
递交时间
2017-10-04 12:19:56
评测时间
2017-10-04 12:19:56
评测机
分数
0
总耗时
458ms
峰值内存
41.168 MiB