Borderou de evaluare (job #1056431)
Utilizator | Data | 14 decembrie 2013 13:04:26 | |
---|---|---|---|
Problema | Carte | Status | done |
Runda | ONIS 2014, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void add(char*)’:
user.cpp:68:5: error: reference to ‘hash’ is ambiguous
hash.insert(h);
^
user.cpp:14:10: note: candidates are: std::set<long long int> hash
set <ll> hash;
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:3:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘void solve()’:
user.cpp:96:17: error: reference to ‘hash’ is ambiguous
if (hash.find(h) != hash.end()) {
^
user.cpp:14:10: note: candidates are: std::set<long long int> hash
set <ll> hash;
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:3:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:96:33: error: reference to ‘hash’ is ambiguous
if (hash.find(h) != hash.end()) {
^
user.cpp:14:10: note: candidates are: std::set<long long int> hash
set <ll> hash;
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:3:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘void clear()’:
user.cpp:120:5: error: reference to ‘hash’ is ambiguous
hash.clear();
^
user.cpp:14:10: note: candidates are: std::set<long long int> hash
set <ll> hash;
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:3:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !