Borderou de evaluare (job #1662696)
Utilizator | Data | 24 martie 2016 23:10:46 | |
---|---|---|---|
Problema | Banana | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void adauga(int, int)’:
user.cpp:41:11: error: reference to ‘hash’ is ambiguous
first=hash[i];
^
user.cpp:7:48: note: candidates are: int hash [187946]
int v[lim],sef[lim],fr[lim],next[lim],val[lim],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 /usr/include/c++/4.8/random:41,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
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:42:5: error: reference to ‘hash’ is ambiguous
hash[x%MOD]=i;
^
user.cpp:7:48: note: candidates are: int hash [187946]
int v[lim],sef[lim],fr[lim],next[lim],val[lim],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 /usr/include/c++/4.8/random:41,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
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:43:5: error: reference to ‘next’ is ambiguous
next[i]=first;
^
user.cpp:7:29: note: candidates are: int next [16005]
int v[lim],sef[lim],fr[lim],next[lim],val[lim],hash[MOD];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:44:5: error: reference to ‘next’ is ambiguous
next[first]=0;
^
user.cpp:7:29: note: candidates are: int next [16005]
int v[lim],sef[lim],fr[lim],next[lim],val[lim],hash[MOD];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !