Borderou de evaluare (job #756473)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Interval 1 (clasa a 10-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 ian. 2024 12:38:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:21:26: error: no match for 'operator==' (operand types are 'std::pair<int, int>' and 'int')
21 | if(v[mod].second == 0) {
| ^~ ~
| |
| int
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iosfwd:42,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ios:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:40,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/postypes.h:192:5: note: candidate: 'template<class _StateT> bool std::operator==(const fpos<_StateT>&, const fpos<_StateT>&)'
192 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/postypes.h:192:5: note: template argument deduction/substitution failed:
main.cpp:21:29: note: 'std::pair<int, int>' is not derived from 'const std::fpos<_StateT>'
21 | if(v[mod].second == 0) {
| ^
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:43,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/locale_classes.h:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/ios_base.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ios:44:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/allocator.h:237:5: note: candidate: 'template<class _T1, class _T2> bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)'
237 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/allocator.h:237:5: note: template argument deduction/substitution failed:
main.cpp:21:29: note: 'std::pair<int, int>' is not derived from 'const std::allocator<_CharT>'
21 | if(v[mod].second == 0) {
| ^
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:48:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
main.cpp:21:29: note: 'std::pair<int, int>' is not derived from 'const std::reverse_iterator<_Iterator>'
21 | if(v[mod].second == 0) {
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator==(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
main.cpp:21:29: note: 'std::pair<int, int>' is not derived from 'const std::reverse_iterator<_Iterator>'
21 | if(v[mod].second == 0) {
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1678:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1678 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1678:5: note: template argument deduction/substitution failed:
main.cpp:21:29: note: 'std::pair<int, int>' is not derived from 'const std::move_iterator<_IteratorL>'
21 | if(v[mod].second == 0) {