train.cpp:38:10: error: expected unqualified-id before 'not' token
38 | vll is , not ;
| ^~~
train.cpp: In lambda function:
train.cpp:44:18: error: expected '{' before ')' token
44 | if(not[i]){
| ^
train.cpp: In function 'll mem(ll)':
train.cpp:44:12: error: no match for 'operator!' (operand type is 'mem(ll)::<lambda()>')
44 | if(not[i]){
train.cpp:44:12: note: candidate: 'operator!(bool)' (built-in)
train.cpp:44:12: note: no known conversion for argument 1 from 'mem(ll)::<lambda()>' to 'bool'
train.cpp: In lambda function:
train.cpp:54:18: error: expected '{' before ')' token
54 | if(not[i]){
| ^
train.cpp: In function 'll mem(ll)':
train.cpp:54:12: error: no match for 'operator!' (operand type is 'mem(ll)::<lambda()>')
54 | if(not[i]){
train.cpp:54:12: note: candidate: 'operator!(bool)' (built-in)
train.cpp:54:12: note: no known conversion for argument 1 from 'mem(ll)::<lambda()>' to 'bool'
train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:66:7: error: no match for 'operator=' (operand types are 'std::vector<long long int>' and 'std::vector<int>')
66 | is = a , not = r ;
| ^
In file included from /usr/include/c++/10/vector:72,
from train.h:1,
from train.cpp:1:
/usr/include/c++/10/bits/vector.tcc:198:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/vector.tcc:199:42: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::vector<long long int>&'
199 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/10/vector:67,
from train.h:1,
from train.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:709:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ^~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:709:26: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<long long int>&&'
709 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
| ~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:730:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>]'
730 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:730:46: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::initializer_list<long long int>'
730 | operator=(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
train.cpp:66:15: error: expected primary-expression before '=' token
66 | is = a , not = r ;
| ^
train.cpp:78:4: error: could not convert 'ans' from 'vector<long long int>' to 'vector<int>'
78 | R ans ;
| ^~~
| |
| vector<long long int>