Borderou de evaluare (job #1480767)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 3 septembrie 2015 09:19:59
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:23:31: error: ‘memset’ was not declared in this scope memset(viz, 0, sizeof(viz)); ^ user.cpp:6:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define sz size() ^ user.cpp:30:32: note: in expansion of macro ‘sz’ for (j = 0; j < G[nod].sz; j++) ^ user.cpp: In function ‘int main()’: user.cpp:52: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:53:25: error: ‘log’ was not declared in this scope C[x][y] += log(z); ^ user.cpp:6:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define sz size() ^ user.cpp:58:30: note: in expansion of macro ‘sz’ for (i = 0; i < G[N].sz; i++) ^ user.cpp:66:71: error: no matching function for call to ‘min(int&, double)’ fmin = min(fmin, C[ TT[nod] ][nod] - F[ TT[nod] ][nod]); ^ user.cpp:66:71: note: candidates are: In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:2: /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:66: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:2: /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:66: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:78:28: error: ‘exp’ was not declared in this scope printf("%.4lf",exp(flow)); ^ user.cpp:45: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);

Ceva nu functioneaza?