Borderou de evaluare (job #1449950)
Utilizator | Data | 11 iunie 2015 00:43:23 | |
---|---|---|---|
Problema | Unicat | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool in_hash(int, int, int)’:
user.cpp:50:30: error: reference to ‘hash’ is ambiguous
for(int i = 0; i < (int) hash[type][h0].size(); i++)
^
user.cpp:15:26: note: candidates are: std::vector<std::pair<int, int> > hash [2][1000003]
vector< pair<int, int> > hash[2][1000003];
^
In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0,
from /usr/include/c++/4.8/vector:65,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:51:19: error: reference to ‘hash’ is ambiguous
if(h12 == hash[type][h0][i]) return 1;
^
user.cpp:15:26: note: candidates are: std::vector<std::pair<int, int> > hash [2][1000003]
vector< pair<int, int> > hash[2][1000003];
^
In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0,
from /usr/include/c++/4.8/vector:65,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘void add_to_hash(int, int, int)’:
user.cpp:61:5: error: reference to ‘hash’ is ambiguous
hash[type][h0].push_back(h12);
^
user.cpp:15:26: note: candidates are: std::vector<std::pair<int, int> > hash [2][1000003]
vector< pair<int, int> > hash[2][1000003];
^
In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0,
from /usr/include/c++/4.8/vector:65,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘int main()’:
user.cpp:122:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("unicat.in", "r", stdin);
^
user.cpp:123:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("unicat.out", "w", stdout);
^
user.cpp:132:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", a + 1);
^
user.cpp:133:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", b + 1);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !