Borderou de evaluare (job #1239033)
Utilizator | Data | 8 octombrie 2014 07:24:07 | |
---|---|---|---|
Problema | String | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:24:3: error: reference to ‘hash’ is ambiguous
hash[current] = 1;
^
user.cpp:10:5: note: candidates are: int hash [666013]
int 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 user.cpp:1:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:29:4: error: reference to ‘hash’ is ambiguous
hash[current] = 1;
^
user.cpp:10:5: note: candidates are: int hash [666013]
int 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 user.cpp:1:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:33:8: error: reference to ‘hash’ is ambiguous
if (!hash[i]) {
^
user.cpp:10:5: note: candidates are: int hash [666013]
int 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 user.cpp:1:
/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 !