VisitingSingapore.cpp: In function 'void Out(std::vector<long long int>)':
VisitingSingapore.cpp:14:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,a,b) for(ll i=a; i<b; i++)
VisitingSingapore.cpp:23:29:
void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
~~~~~~~~~~~~
VisitingSingapore.cpp:23:25: note: in expansion of macro 'REP'
void Out(vector<ll> x) {REP(i,0,x.size()) {cout<<x[i]<<" ";} cout<<endl;}
^~~
VisitingSingapore.cpp: In function 'int main()':
VisitingSingapore.cpp:53:73: error: no matching function for call to 'max(ll&)'
else {cur[j].ss=max(cur[j-1].ss+v[s[i]],max(lastmaxv))}
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from VisitingSingapore.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
VisitingSingapore.cpp:53:73: note: candidate expects 2 arguments, 1 provided
else {cur[j].ss=max(cur[j-1].ss+v[s[i]],max(lastmaxv))}
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from VisitingSingapore.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
VisitingSingapore.cpp:53:73: note: candidate expects 3 arguments, 1 provided
else {cur[j].ss=max(cur[j-1].ss+v[s[i]],max(lastmaxv))}
^
In file included from /usr/include/c++/7/algorithm:62:0,
from VisitingSingapore.cpp:4:
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^~~
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
VisitingSingapore.cpp:53:73: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
else {cur[j].ss=max(cur[j-1].ss+v[s[i]],max(lastmaxv))}
^
In file included from /usr/include/c++/7/algorithm:62:0,
from VisitingSingapore.cpp:4:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
VisitingSingapore.cpp:53:73: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
else {cur[j].ss=max(cur[j-1].ss+v[s[i]],max(lastmaxv))}
^
VisitingSingapore.cpp:46:16: warning: unused variable 'maxv' [-Wunused-variable]
ll maxv=0LL; ll lastmaxv=0LL;
^~~~