Borderou de evaluare (job #2001313)
Utilizator | Data | 16 iulie 2017 13:41:18 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:41:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (p == pat.length()) {
^
user.cpp:48:46: error: no matching function for call to ‘min(std::vector<int>::size_type, int)’
for (int i = 0, to = min(ans.size(), 1000); i < to; i += 1) {
^
user.cpp:48:46: 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:48:46: note: deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘int’)
for (int i = 0, to = min(ans.size(), 1000); i < to; i += 1) {
^
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:48:46: note: deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘int’)
for (int i = 0, to = min(ans.size(), 1000); i < to; i += 1) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !