Borderou de evaluare (job #1275788)
Utilizator | Data | 25 noiembrie 2014 16:31:55 | |
---|---|---|---|
Problema | Perspico | 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:122:20: error: reference to ‘hash’ is ambiguous
if(hash[h])continue;
^
user.cpp:10:6: note: candidates are: bool hash [1000003]
bool hash[MOD];
^
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:2:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:123:17: error: reference to ‘hash’ is ambiguous
hash[h]=true;
^
user.cpp:10:6: note: candidates are: bool hash [1000003]
bool hash[MOD];
^
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:2:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:131:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<Q.top().op.size();++i)printf("%d ",Q.top().op[i]);
^
user.cpp:94:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perspico.in","r",stdin);
^
user.cpp:95:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perspico.out","w",stdout);
^
user.cpp:96:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:102:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd",&c.mat[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !