Borderou de evaluare (job #1296394)
Utilizator | Data | 21 decembrie 2014 08:35:05 | |
---|---|---|---|
Problema | Dictree | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long int readS(long int)’:
user.cpp:35:22: error: reference to ‘hash’ is ambiguous
if(posS > 0) hash[dest][posS] = (hash[dest][posS-1] * base);
^
user.cpp:12:6: note: candidates are: long int hash [25011][111]
long hash[25011][111];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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:35:42: error: reference to ‘hash’ is ambiguous
if(posS > 0) hash[dest][posS] = (hash[dest][posS-1] * base);
^
user.cpp:12:6: note: candidates are: long int hash [25011][111]
long hash[25011][111];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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:36:9: error: reference to ‘hash’ is ambiguous
hash[dest][posS] = (hash[dest][posS]+Buff[pos])%mod;
^
user.cpp:12:6: note: candidates are: long int hash [25011][111]
long hash[25011][111];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !