/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'void solve()':
/in/foo.cc:63:9: error: reference to 'hash' is ambiguous
         hash[i]+=dp(sz,i,1);
         ^~~~
/in/foo.cc:12:30: note: candidates are: long long int hash [15000]
 LL ls[500000],d[maxn][15000],hash[15000];
                              ^~~~
In file included from /usr/include/c++/7/bits/stl_bvector.h:1273:0,
                 from /usr/include/c++/7/vector:65,
                 from /usr/include/c++/7/queue:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:66:13: error: reference to 'hash' is ambiguous
             hash[i]+=dp(j,i,0);//现在hash表里面存储的是离散表第i个元素有多少个可以达到的值
             ^~~~
/in/foo.cc:12:30: note: candidates are: long long int hash [15000]
 LL ls[500000],d[maxn][15000],hash[15000];
                              ^~~~
In file included from /usr/include/c++/7/bits/stl_bvector.h:1273:0,
                 from /usr/include/c++/7/vector:65,
                 from /usr/include/c++/7/queue:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:67:10: error: reference to 'hash' is ambiguous
     sort(hash+1,hash+cnt+1,cmp);
          ^~~~
/in/foo.cc:12:30: note: candidates are: long long int hash [15000]
 LL ls[500000],d[maxn][15000],hash[15000];
                              ^~~~
In file included from /usr/include/c++/7/bits/stl_bvector.h:1273:0,
                 from /usr/include/c++/7/vector:65,
                 from /usr/include/c++/7/queue:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:67:17: error: reference to 'hash' is ambiguous
     sort(hash+1,hash+cnt+1,cmp);
                 ^~~~
/in/foo.cc:12:30: note: candidates are: long long int hash [15000]
 LL ls[500000],d[maxn][15000],hash[15000];
                              ^~~~
In file included from /usr/include/c++/7/bits/stl_bvector.h:1273:0,
                 from /usr/include/c++/7/vector:65,
                 from /usr/include/c++/7/queue:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:68:21: error: reference to 'hash' is ambiguous
     cnt=lower_bound(hash+1,hash+cnt+1,0,cmp)-hash-1;
                     ^~~~
/in/foo.cc:12:30: note: candidates are: long long int hash [15000]
 LL ls[500000],d[maxn][15000],hash[15000];
                              ^~~~
In file included from /usr/include/c++/7/bits/stl_bvector.h:1273:0,
                 from /usr/include/c++/7/vector:65,
                 from /usr/include/c++/7/queue:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:68:28: error: reference to 'hash' is ambiguous
     cnt=lower_bound(hash+1,hash+cnt+1,0,cmp)-hash-1;
                            ^~~~
/in/foo.cc:12:30: note: candidates are: long long int hash [15000]
 LL ls[500000],d[maxn][15000],hash[15000];
                              ^~~~
In file included from /usr/include/c++/7/bits/stl_bvector.h:1273:0,
                 from /usr/include/c++/7/vector:65,
                 from /usr/include/c++/7/queue:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:68:46: error: reference to 'hash' is ambiguous
     cnt=lower_bound(hash+1,hash+cnt+1,0,cmp)-hash-1;
                                              ^~~~
/in/foo.cc:12:30: note: candidates are: long long int hash [15000]
 LL ls[500000],d[maxn][15000],hash[15000];
                              ^~~~
In file included from /usr/include/c++/7/bits/stl_bvector.h:1273:0,
                 from /usr/include/c++/7/vector:65,
                 from /usr/include/c++/7/queue:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^~~~
/in/foo.cc:71:22: error: expected primary-expression before ')' token
         pq.push((data){i,1,hash[1]*hash[i]});
                      ^
/in/foo.cc:79:37: error: expected primary-expression before ')' token
         if(tmp.id2<cnt)pq.push((data){tmp.id1,tmp.id2+1,hash[tmp.id1]*hash[tmp.id2+1]});
                                     ^

信息

递交者
类型
递交
题目
淘金
语言
C++
递交时间
2018-12-14 22:28:35
评测时间
2018-12-14 22:28:36
评测机
分数
0
总耗时
400ms
峰值内存
44.312 MiB