Borderou de evaluare (job #1703555)
Utilizator | Data | 17 mai 2016 09:25:56 | |
---|---|---|---|
Problema | NKPerm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int numara(int)’:
user.cpp:48:9: error: reference to ‘hash’ is ambiguous
if (hash.find(cf) != hash.end())
^
user.cpp:33:15: note: candidates are: std::map<int, long long int> hash
map <int, ll> hash;
^
In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0,
from /usr/include/c++/4.8/vector:65,
from user.cpp:4:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:48:26: error: reference to ‘hash’ is ambiguous
if (hash.find(cf) != hash.end())
^
user.cpp:33:15: note: candidates are: std::map<int, long long int> hash
map <int, ll> hash;
^
In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0,
from /usr/include/c++/4.8/vector:65,
from user.cpp:4:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:49:16: error: reference to ‘hash’ is ambiguous
return hash[cf];
^
user.cpp:33:15: note: candidates are: std::map<int, long long int> hash
map <int, ll> hash;
^
In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0,
from /usr/include/c++/4.8/vector:65,
from user.cpp:4:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:82:12: error: reference to ‘hash’ is ambiguous
return hash[cf] = ret;
^
user.cpp:33:15: note: candidates are: std::map<int, long long int> hash
map <int, ll> hash;
^
In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0,
from /usr/include/c++/4.8/vector:65,
from user.cpp:4:
/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 main()’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !