Borderou de evaluare (job #1097796)
Utilizator | Data | 3 februarie 2014 22:34:41 | |
---|---|---|---|
Problema | X si 0 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool final(int)’:
user.cpp:37:63: error: reference to ‘hash’ is ambiguous
if(temp[i] && temp[i]==temp[i+3] && temp[i+3]==temp[i+6]) { hash[now]=temp[i]; return 1; }
^
user.cpp:9:5: note: candidates are: int hash [20001]
int hash[20001],lvl[20001],viz[20001];
^
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/bits/locale_classes.h:40,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:41,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:39:63: error: reference to ‘hash’ is ambiguous
if(temp[i] && temp[i]==temp[i+1] && temp[i+1]==temp[i+2]) { hash[now]=temp[i]; return 1; }
^
user.cpp:9:5: note: candidates are: int hash [20001]
int hash[20001],lvl[20001],viz[20001];
^
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/bits/locale_classes.h:40,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:41,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:41:56: error: reference to ‘hash’ is ambiguous
if(temp[1] && temp[1]==temp[5] && temp[1]==temp[9]) { hash[now]=temp[1]; return 1; }
^
user.cpp:9:5: note: candidates are: int hash [20001]
int hash[20001],lvl[20001],viz[20001];
^
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/bits/locale_classes.h:40,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:41,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/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 !