Borderou de evaluare (job #3125450)

Utilizator VladNANegoita Vlad-Andrei VladNA Data 3 mai 2023 11:25:57
Problema 2SAT Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:69:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 69 | for (int i = 0; i < ctcs.size(); ++i) | ~~^~~~~~~~~~~~~ main.cpp:80:26: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}) 80 | cout << belonging[i] < belonging[i ^ 1] ? "1 " : "0 "; In file included from /usr/include/c++/12.2.1/regex:66, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:110, from main.cpp:1: /usr/include/c++/12.2.1/bits/regex.h:1252:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Alloc> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' (reversed) 1252 | operator<=>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/12.2.1/bits/regex.h:1252:5: note: template argument deduction/substitution failed: main.cpp:80:43: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 80 | cout << belonging[i] < belonging[i ^ 1] ? "1 " : "0 "; | ^ /usr/include/c++/12.2.1/bits/regex.h:1420:5: note: candidate: 'template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' (reversed) 1420 | operator<=>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/12.2.1/bits/regex.h:1420:5: note: template argument deduction/substitution failed: main.cpp:80:43: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 80 | cout << belonging[i] < belonging[i ^ 1] ? "1 " : "0 "; | ^ /usr/include/c++/12.2.1/bits/regex.h:1593:5: note: candidate: 'template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' (reversed) 1593 | operator<=>(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/12.2.1/bits/regex.h:1593:5: note: template argument deduction/substitution failed: main.cpp:80:43: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 80 | cout << belonging[i] < belonging[i ^ 1] ? "1 " : "0 "; | ^ In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:67, from /usr/include/c++/12.2.1/bits/specfun.h:45, from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41: /usr/include/c++/12.2.1/bits/stl_iterator.h:579:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)' (reversed) 579 | operator<=>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_iterator.h:579:5: note: template argument deduction/substitution failed: main.cpp:80:43: note: mismatched types 'const std::reverse_iterator<_IteratorL>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 80 | cout << belonging[i] < belonging[i ^ 1] ? "1 " : "0 "; | ^ /usr/include/c++/12.2.1/bits/stl_iterator.h:1668:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' (reversed) 1668 | operator<=>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/12.2.1/bits/stl_iterator.h:1668:5: note: template argument deduction/substitution failed: main.cpp:80:43: note: mismatched types 'const std::move_iterator<_IteratorL>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 80 | cout << belonging[i] < belonging[i ^ 1] ? "1 " : "0 "; | ^ In file included from /usr/include/c++/12.2.1/bits/basic_string.h:47, from /usr/include/c++/12.2.1/string:53, Non zero exit status: 1

Ceva nu functioneaza?