gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:36:9: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^~~~
gondola.cpp:36:33: error: no match for 'operator!=' (operand types are 'int' and 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}')
if (seen.find(inputSeq[ind] != seen.end()) return 0;
~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/7/utility:70:0,
from /usr/include/c++/7/algorithm:60,
from gondola.cpp:4:
/usr/include/c++/7/bits/stl_pair.h:456:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:456:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from gondola.cpp:4:
/usr/include/c++/7/bits/stl_iterator.h:311:5: note: candidate: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator!=(const reverse_iterator<_Iterator>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:311:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from gondola.cpp:4:
/usr/include/c++/7/bits/stl_iterator.h:349:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator!=(const reverse_iterator<_IteratorL>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:349:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from gondola.cpp:4:
/usr/include/c++/7/bits/stl_iterator.h:1130:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
operator!=(const move_iterator<_IteratorL>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1130:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
from /usr/include/c++/7/algorithm:61,
from gondola.cpp:4:
/usr/include/c++/7/bits/stl_iterator.h:1136:5: note: candidate: template<class _Iterator> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
operator!=(const move_iterator<_Iterator>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1136:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/vector:61:0,
from gondola.cpp:5:
/usr/include/c++/7/bits/allocator.h:158:5: note: candidate: template<class _T1, class _T2> bool std::operator!=(const std::allocator<_Tp>&, const std::allocator<_Tp>&)
operator!=(const allocator<_T1>&, const allocator<_T2>&)
^~~~~~~~
/usr/include/c++/7/bits/allocator.h:158:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::allocator<_Tp>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/vector:61:0,
from gondola.cpp:5:
/usr/include/c++/7/bits/allocator.h:164:5: note: candidate: template<class _Tp> bool std::operator!=(const std::allocator<_Tp>&, const std::allocator<_Tp>&)
operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
^~~~~~~~
/usr/include/c++/7/bits/allocator.h:164:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::allocator<_Tp>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/vector:64:0,
from gondola.cpp:5:
/usr/include/c++/7/bits/stl_vector.h:1620:5: note: candidate: template<class _Tp, class _Alloc> bool std::operator!=(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:1620:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/set:60:0,
from gondola.cpp:7:
/usr/include/c++/7/bits/stl_tree.h:412:5: note: candidate: template<class _Val> bool std::operator!=(const std::_Rb_tree_iterator<_Tp>&, const std::_Rb_tree_const_iterator<_Val>&)
operator!=(const _Rb_tree_iterator<_Val>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_tree.h:412:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::_Rb_tree_iterator<_Tp>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/set:60:0,
from gondola.cpp:7:
/usr/include/c++/7/bits/stl_tree.h:1553:5: note: candidate: template<class _Key, class _Val, class _KeyOfValue, class _Compare, class _Alloc> bool std::operator!=(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)
operator!=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_tree.h:1553:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/set:61:0,
from gondola.cpp:7:
/usr/include/c++/7/bits/stl_set.h:937:5: note: candidate: template<class _Key, class _Compare, class _Alloc> bool std::operator!=(const std::set<_Key, _Compare, _Alloc>&, const std::set<_Key, _Compare, _Alloc>&)
operator!=(const set<_Key, _Compare, _Alloc>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_set.h:937:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::set<_Key, _Compare, _Alloc>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
In file included from /usr/include/c++/7/set:62:0,
from gondola.cpp:7:
/usr/include/c++/7/bits/stl_multiset.h:920:5: note: candidate: template<class _Key, class _Compare, class _Alloc> bool std::operator!=(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&)
operator!=(const multiset<_Key, _Compare, _Alloc>& __x,
^~~~~~~~
/usr/include/c++/7/bits/stl_multiset.h:920:5: note: template argument deduction/substitution failed:
gondola.cpp:36:45: note: mismatched types 'const std::multiset<_Key, _Compare, _Alloc>' and 'int'
if (seen.find(inputSeq[ind] != seen.end()) return 0;
^
gondola.cpp:37:31: error: expected ')' before ';' token
seen.insert(inputSeq[ind]);
^
gondola.cpp:37:16: error: could not convert 'seen.std::set<int>::insert((*(const value_type*)(inputSeq + ((sizetype)(((long unsigned int)ind) * 4)))))' from 'std::pair<std::_Rb_tree_const_iterator<int>, bool>' to 'bool'
seen.insert(inputSeq[ind]);
~~~~~~~~~~~^~~~~~~~~~~~~~~
gondola.cpp: In function 'int T2::replacement(int, int*, int*)':
gondola.cpp:71:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < elems.size(); i++) {
~~^~~~~~~~~~~~~~
gondola.cpp: In function 'int T3::countReplacement(int, int*)':
gondola.cpp:126:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < elems.size(); i++) {
~~^~~~~~~~~~~~~~