Borderou de evaluare (job #1340903)
Utilizator | Data | 12 februarie 2015 10:02:24 | |
---|---|---|---|
Problema | Radio2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void intro(int, int, int)’:
user.cpp:27:5: error: reference to ‘hash’ is ambiguous
hash[line].push_back(make_pair(make_pair(a,b),i));
^
user.cpp:16:46: note: candidates are: std::vector<std::pair<std::pair<int, int>, int> > hash [666017]
vector < pair < pair< int , int > , int > > hash[hMOD];
^
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: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 ‘bool go(int, int, int)’:
user.cpp:50:20: error: reference to ‘hash’ is ambiguous
for (int u=0;u<hash[line].size();++u)
^
user.cpp:16:46: note: candidates are: std::vector<std::pair<std::pair<int, int>, int> > hash [666017]
vector < pair < pair< int , int > , int > > hash[hMOD];
^
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:2:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:51:9: error: reference to ‘hash’ is ambiguous
if (hash[line][u].first==make_pair(a,b))
^
user.cpp:16:46: note: candidates are: std::vector<std::pair<std::pair<int, int>, int> > hash [666017]
vector < pair < pair< int , int > , int > > hash[hMOD];
^
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:2:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:52:21: error: reference to ‘hash’ is ambiguous
if (match(start,hash[line][u].second))
^
user.cpp:16:46: note: candidates are: std::vector<std::pair<std::pair<int, int>, int> > hash [666017]
vector < pair < pair< int , int > , int > > hash[hMOD];
^
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:2:
/usr/include/c++/4.8/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 !