Borderou de evaluare (job #1679880)
Utilizator | Data | 8 aprilie 2016 12:22:59 | |
---|---|---|---|
Problema | Loto | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void insert(int, int, int, int)’:
user.cpp:19:5: error: reference to ‘hash’ is ambiguous
hash[a%MOD].push_back(curent);
^
user.cpp:10:11: note: candidates are: std::vector<aa> hash [1000003]
vector<aa>hash[MOD];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/random:41,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:2:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘int search(int)’:
user.cpp:24:12: error: reference to ‘hash’ is ambiguous
while(!hash[a%MOD].empty()&&i<hash[a%MOD].size()&&(!(f))){
^
user.cpp:10:11: note: candidates are: std::vector<aa> hash [1000003]
vector<aa>hash[MOD];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/random:41,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:2:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:24:35: error: reference to ‘hash’ is ambiguous
while(!hash[a%MOD].empty()&&i<hash[a%MOD].size()&&(!(f))){
^
user.cpp:10:11: note: candidates are: std::vector<aa> hash [1000003]
vector<aa>hash[MOD];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/random:41,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:2:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:25:12: error: reference to ‘hash’ is ambiguous
if(hash[a%MOD][i].s==a)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !