doll.cpp: In function 'vi craete_level(const vi&, vi&, vi&, int&)':
doll.cpp:9:23: error: no match for 'operator<' (operand types are 'size_t' {aka 'long unsigned int'} and 'const vi' {aka 'const std::vector<int>'})
9 | for(size_t i = 0; i < last_level; i++) {
| ~ ^ ~~~~~~~~~~
| | |
| | const vi {aka const std::vector<int>}
| size_t {aka long unsigned int}
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/vector:60,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:489:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)'
489 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/10/bits/stl_pair.h:489:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const std::pair<_T1, _T2>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/vector:60,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:366:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)'
366 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:366:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/vector:60,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:404:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)'
404 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:404:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/vector:60,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:1451:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)'
1451 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:1451:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/vector:60,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:1507:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)'
1507 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:1507:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
In file included from /usr/include/c++/10/vector:67,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:1930:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)'
1930 | operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1930:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/vector:60,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:1096:5: note: candidate: 'template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)'
1096 | operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:1096:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/vector:60,
from doll.h:3,
from doll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:1104:5: note: candidate: 'template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)'
1104 | operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:1104:5: note: template argument deduction/substitution failed:
doll.cpp:9:25: note: mismatched types 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>' and 'size_t' {aka 'long unsigned int'}
9 | for(size_t i = 0; i < last_level; i++) {
| ^~~~~~~~~~
doll.cpp: In function 'int& simulate_untill_next_unassined(int, vi&, vi&, vi&)':
doll.cpp:25:5: error: 'assert' was not declared in this scope
25 | assert(val < 0);
| ^~~~~~
doll.cpp:2:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
1 | #include "doll.h"
+++ |+#include <cassert>
2 | const int UNASSINED = 1'000'000'000;
doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:37:18: error: 'create_level' was not declared in this scope; did you mean 'craete_level'?
37 | last_level = create_level(last_level, X, Y, S);
| ^~~~~~~~~~~~
| craete_level
doll.cpp:53:22: error: 'assert' was not declared in this scope
53 | for(int i : state) assert(i == 0);
| ^~~~~~
doll.cpp:53:22: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
doll.cpp:54:18: error: 'assert' was not declared in this scope
54 | for(int i : X) assert(i != UNASSINED);
| ^~~~~~
doll.cpp:54:18: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
doll.cpp:55:18: error: 'assert' was not declared in this scope
55 | for(int i : Y) assert(i != UNASSINED);
| ^~~~~~
doll.cpp:55:18: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
doll.cpp:56:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
56 | assert(X.size() == -S);
| ~~~~~~~~~^~~~~
doll.cpp:56:3: error: 'assert' was not declared in this scope
56 | assert(X.size() == -S);
| ^~~~~~
doll.cpp:56:3: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
doll.cpp:57:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
57 | assert(Y.size() == -S);
| ~~~~~~~~~^~~~~