Borderou de evaluare (job #2855245)
Utilizator | Data | 22 februarie 2022 11:24:00 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void aflarest()':
main.cpp:23:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int f = 1 ; f < a.size() ; f ++)
| ~~^~~~~~~~~~
main.cpp: In function 'bool incaunul(char*)':
main.cpp:36:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for(int f = 0 ; f < rest.size() ; f ++)
| ~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:52:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
52 | while(ptr = strstr(ptr, &a[0]))
| ~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:64:45: error: no matching function for call to 'min(std::vector<int>::size_type, int)'
64 | for(int f = 0 ; f < min(rez.size(), 1000) ; f ++)
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
230 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: template argument deduction/substitution failed:
main.cpp:64:45: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
64 | for(int f = 0 ; f < min(rez.size(), 1000) ; f ++)
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: template argument deduction/substitution failed:
main.cpp:64:45: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
64 | for(int f = 0 ; f < min(rez.size(), 1000) ; f ++)
| ^
In file included from /usr/include/c++/10/algorithm:62,
from main.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
3468 | min(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
main.cpp:64:45: note: mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
64 | for(int f = 0 ; f < min(rez.size(), 1000) ; f ++)
| ^
In file included from /usr/include/c++/10/algorithm:62,
from main.cpp:6:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !