Borderou de evaluare (job #1016567)
Utilizator | Data | 26 octombrie 2013 14:21:50 | |
---|---|---|---|
Problema | Lacusta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Read()’:
user.cpp:21:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=]
scanf("%d %d", &L, &C);
^
user.cpp:21:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=]
user.cpp:24:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short unsigned int*’ [-Wformat=]
scanf("%d", &a[i][j]);
^
user.cpp: In function ‘void Solve()’:
user.cpp:73:32: error: no matching function for call to ‘min(int&, short unsigned int&)’
sol = min(sol, dp[L][i]);
^
user.cpp:73:32: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed:
user.cpp:73:32: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘short unsigned int’)
sol = min(sol, dp[L][i]);
^
In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,
from /usr/local/include/c++/4.8.0/ios:40,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:2:
/usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed:
user.cpp:73:32: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘short unsigned int’)
sol = min(sol, dp[L][i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !