gondola.cpp: In function 'int32_t valid(int32_t, int32_t*)':
gondola.cpp:20:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
20 | for (int i = 0; i < n; i ++) {
| ~~^~~
gondola.cpp:23:35: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
23 | for (int j = i + 1; j < n; j ++) {
| ~~^~~
gondola.cpp:40:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
40 | for (int i = 0; i < n; i ++) {
| ~~^~~
gondola.cpp:44:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
44 | for (int i = 1; i < n; i ++) {
| ~~^~~
gondola.cpp:49:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
49 | for (int i = 0; i < n; i ++) {
| ~~^~~
gondola.cpp:50:46: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'} [-Wsign-compare]
50 | if (inputSeq[i] <= n and inputSeq[i] != a[i]) return 0;
gondola.cpp: In function 'int32_t replacement(int32_t, int32_t*, int32_t*)':
gondola.cpp:62:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
62 | for (int i = 0; i < n; i ++) {
| ~~^~~
gondola.cpp:65:35: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
65 | for (int j = i + 1; j < n; j ++) {
| ~~^~~
gondola.cpp:67:37: error: no matching function for call to 'max(long long int, __gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type&)'
67 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
gondola.cpp:67:37: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'})
67 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
gondola.cpp:67:37: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'})
67 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
gondola.cpp:67:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
67 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: template argument deduction/substitution failed:
gondola.cpp:67:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
67 | a[j] = max(1ll, a[j]);
| ^
gondola.cpp:71:37: error: no matching function for call to 'max(long long int, __gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type&)'
71 | a[0] = max(1ll, a[0]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
gondola.cpp:71:37: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'})
71 | a[0] = max(1ll, a[0]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
gondola.cpp:71:37: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'})
71 | a[0] = max(1ll, a[0]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
gondola.cpp:71:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
71 | a[0] = max(1ll, a[0]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: template argument deduction/substitution failed:
gondola.cpp:71:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
71 | a[0] = max(1ll, a[0]);
| ^
gondola.cpp:75:37: error: no matching function for call to 'max(long long int, __gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type&)'
75 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
gondola.cpp:75:37: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'})
75 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
gondola.cpp:75:37: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and '__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type' {aka 'long long unsigned int'})
75 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
gondola.cpp:75:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
75 | a[j] = max(1ll, a[j]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: template argument deduction/substitution failed:
gondola.cpp:75:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
75 | a[j] = max(1ll, a[j]);
| ^
gondola.cpp:82:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
82 | for (int i = 0; i < n; i ++) {
| ~~^~~
gondola.cpp:87:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
87 | for (int i = 0; i < n; i ++) {
| ~~^~~
gondola.cpp: In function 'int32_t countReplacement(int32_t, int32_t*)':
gondola.cpp:110:23: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int32_t' {aka 'int'} [-Wsign-compare]
110 | for (int i = 0; i < n; i ++) {
| ~~^~~
gondola.cpp:113:37: error: no matching function for call to 'max(long long unsigned int&, long long int)'
113 | mx = max(mx, 1ll*inputSeq[i]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
gondola.cpp:113:37: note: deduced conflicting types for parameter 'const _Tp' ('long long unsigned int' and 'long long int')
113 | mx = max(mx, 1ll*inputSeq[i]);
| ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
from /usr/include/c++/10/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
gondola.cpp:113:37: note: deduced conflicting types for parameter 'const _Tp' ('long long unsigned int' and 'long long int')
113 | mx = max(mx, 1ll*inputSeq[i]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3480 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: template argument deduction/substitution failed:
gondola.cpp:113:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long unsigned int'
113 | mx = max(mx, 1ll*inputSeq[i]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from gondola.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3486 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: template argument deduction/substitution failed:
gondola.cpp:113:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long long unsigned int'
113 | mx = max(mx, 1ll*inputSeq[i]);
| ^