Borderou de evaluare (job #1444974)
Utilizator | Data | 30 mai 2015 11:12:18 | |
---|---|---|---|
Problema | Caroiaj | Status | done |
Runda | Adolescent Grigore Moisil 2015 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool dfs(int)’:
user.cpp:41:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < v[x].size(); j++)
^
user.cpp:49:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < v[x].size(); j++)
^
user.cpp: In function ‘int main()’:
user.cpp:76:17: error: reference to ‘hash’ is ambiguous
hash(V[i][j]);
^
user.cpp:27:6: note: candidates are: void hash(int)
void hash(int x)
^
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:5:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:61:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("caroiaj.in","r",stdin);
^
user.cpp:62:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("caroiaj.out","w",stdout);
^
user.cpp:63:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.cpp:69:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
user.cpp:75:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &V[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !