Borderou de evaluare (job #1480768)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 3 septembrie 2015 09:20:51
Problema Fear Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int BF()’: user.cpp:8:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define sz size() ^ user.cpp:32:32: note: in expansion of macro ‘sz’ for (j = 0; j < G[nod].sz; j++) ^ user.cpp: In function ‘int main()’: user.cpp:54:39: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 4 has type ‘int*’ [-Wformat=] scanf("%d %d %lf ", &x, &y, &z); ^ user.cpp:8:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define sz size() ^ user.cpp:60:30: note: in expansion of macro ‘sz’ for (i = 0; i < G[N].sz; i++) ^ user.cpp:68:71: error: no matching function for call to ‘min(int&, double)’ fmin = min(fmin, C[ TT[nod] ][nod] - F[ TT[nod] ][nod]); ^ user.cpp:68:71: note: candidates are: In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed: user.cpp:68:71: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘double’) fmin = min(fmin, C[ TT[nod] ][nod] - F[ TT[nod] ][nod]); ^ In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed: user.cpp:68:71: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘double’) fmin = min(fmin, C[ TT[nod] ][nod] - F[ TT[nod] ][nod]); ^ user.cpp:47:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fear.in", "r", stdin); ^ user.cpp:48:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("fear.out", "w", stdout); ^ user.cpp:51:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &N, &M); ^ user.cpp:54:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %lf ", &x, &y, &z);

Ceva nu functioneaza?