Borderou de evaluare (job #1876993)
Utilizator | Data | 12 februarie 2017 20:17:40 | |
---|---|---|---|
Problema | Sum Max | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve()’:
user.cpp:63:57: error: no matching function for call to ‘min(__gnu_cxx::__alloc_traits<std::allocator<unsigned int> >::value_type, int)’
A[i][j] = min(A[i + 1][j] + A[i + 1][j + 1], LIM);
^
user.cpp:63:57: note: candidates are:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/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:63:57: note: deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘int’)
A[i][j] = min(A[i + 1][j] + A[i + 1][j + 1], LIM);
^
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/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:63:57: note: deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘int’)
A[i][j] = min(A[i + 1][j] + A[i + 1][j + 1], LIM);
^
user.cpp: In function ‘void read()’:
user.cpp:24:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d %d %d", &P, &N, &X, &Y);
^
user.cpp:32:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &C);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !