Borderou de evaluare (job #1000781)
Utilizator | Data | 23 septembrie 2013 19:01:12 | |
---|---|---|---|
Problema | Cabane | Status | done |
Runda | Lista lui wefgef | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void insert(int, str)’:
user.cpp:13:12: error: reference to ‘hash’ is ambiguous
for(it=hash[lin].begin();it!=hash[lin].end();it++)
^
user.cpp:7:16: note: candidates are: std::vector<int> hash [1007]
vector < int > hash[1007];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:13:34: error: reference to ‘hash’ is ambiguous
for(it=hash[lin].begin();it!=hash[lin].end();it++)
^
user.cpp:7:16: note: candidates are: std::vector<int> hash [1007]
vector < int > hash[1007];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:21:5: error: reference to ‘hash’ is ambiguous
hash[lin].push_back(v[shi].size()-1);
^
user.cpp:7:16: note: candidates are: std::vector<int> hash [1007]
vector < int > hash[1007];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:2:
/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 ‘int main()’:
user.cpp:56:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<v[(i&1)^1].size();j++)
^
user.cpp:95:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<v[i&1].size();j++)
^
user.cpp:96:9: error: reference to ‘hash’ is ambiguous
hash[key(v[i&1][j])].clear();
^
user.cpp:7:16: note: candidates are: std::vector<int> hash [1007]
vector < int > hash[1007];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !