Borderou de evaluare (job #1480769)
Utilizator | Data | 3 septembrie 2015 09:21: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:9:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define sz size()
^
user.cpp:33:32: note: in expansion of macro ‘sz’
for (j = 0; j < G[nod].sz; j++)
^
user.cpp: In function ‘int main()’:
user.cpp:55: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:9:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define sz size()
^
user.cpp:61:30: note: in expansion of macro ‘sz’
for (i = 0; i < G[N].sz; i++)
^
user.cpp:69:71: error: no matching function for call to ‘min(int&, double)’
fmin = min(fmin, C[ TT[nod] ][nod] - F[ TT[nod] ][nod]);
^
user.cpp:69: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:69: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:69: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/algorithm:62:0,
from user.cpp:5:
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/include/c++/4.8/bits/stl_algo.h:4244:5: note: template argument deduction/substitution failed:
user.cpp:69:71: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘int’
fmin = min(fmin, C[ TT[nod] ][nod] - F[ TT[nod] ][nod]);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:5:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !