Borderou de evaluare (job #1035585)
Utilizator | Data | 18 noiembrie 2013 17:58:49 | |
---|---|---|---|
Problema | Autobuze | 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:23:5: error: reference to ‘hash’ is ambiguous
hash[(a[i] * 11 + 5) % 666013].push_back(i);
^
user.cpp:9:14: note: candidates are: std::vector<int> hash [666013]
vector <int> hash[666013];
^
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 /usr/local/include/c++/4.8.0/queue:61,
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:35:43: error: reference to ‘hash’ is ambiguous
for(vector <int> :: iterator it = hash[z].begin(); it != hash[z].end(); ++ it)
^
user.cpp:9:14: note: candidates are: std::vector<int> hash [666013]
vector <int> hash[666013];
^
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 /usr/local/include/c++/4.8.0/queue:61,
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:35:66: error: reference to ‘hash’ is ambiguous
for(vector <int> :: iterator it = hash[z].begin(); it != hash[z].end(); ++ it)
^
user.cpp:9:14: note: candidates are: std::vector<int> hash [666013]
vector <int> hash[666013];
^
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 /usr/local/include/c++/4.8.0/queue:61,
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;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !