Borderou de evaluare (job #1108105)
Utilizator | Data | 15 februarie 2014 13:28:31 | |
---|---|---|---|
Problema | Secventa 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int gasit(unsigned int)’:
user.cpp:24:15: error: reference to ‘hash’ is ambiguous
int len = hash[r].size() ;
^
user.cpp:13:14: note: candidates are: std::vector<int> hash [9319]
vector <int> hash[mod] ;
^
In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/random:41,
from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65,
from /usr/local/include/c++/4.8.0/algorithm:62,
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:27:13: error: reference to ‘hash’ is ambiguous
if( hash[r][i] == x )
^
user.cpp:13:14: note: candidates are: std::vector<int> hash [9319]
vector <int> hash[mod] ;
^
In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/random:41,
from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65,
from /usr/local/include/c++/4.8.0/algorithm:62,
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 adauga(unsigned int, int)’:
user.cpp:42:9: error: reference to ‘hash’ is ambiguous
hash[r].push_back( x ) ;
^
user.cpp:13:14: note: candidates are: std::vector<int> hash [9319]
vector <int> hash[mod] ;
^
In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/random:41,
from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65,
from /usr/local/include/c++/4.8.0/algorithm:62,
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 !