Borderou de evaluare (job #1161610)
Utilizator | Data | 31 martie 2014 12:37:26 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:24:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(op==3)
^
user.cpp: In function ‘void insert(int)’:
user.cpp:37:9: error: reference to ‘hash’ is ambiguous
hash[x%MOD].push_back(x);
^
user.cpp:7:14: note: candidates are: std::vector<int> hash [666013]
vector <int> hash[MOD];
^
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 ‘void sterge(int)’:
user.cpp:44:9: error: reference to ‘hash’ is ambiguous
hash[poz].erase(hash[poz].begin()+i);
^
user.cpp:7:14: note: candidates are: std::vector<int> hash [666013]
vector <int> hash[MOD];
^
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:44:25: error: reference to ‘hash’ is ambiguous
hash[poz].erase(hash[poz].begin()+i);
^
user.cpp:7:14: note: candidates are: std::vector<int> hash [666013]
vector <int> hash[MOD];
^
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 check(int)’:
user.cpp:49:16: error: reference to ‘hash’ is ambiguous
for(i=0; i<hash[poz].size(); i++)
^
user.cpp:7:14: note: candidates are: std::vector<int> hash [666013]
vector <int> hash[MOD];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !