feast.cpp: In function 'bool Aliens_trick(long long int)':
feast.cpp:21:24: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct std::pair<long long int, long long int>' with no trivial copy-assignment; use assignment instead [-Wclass-memaccess]
21 | memset(dp,0,sizeof(dp));
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
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 feast.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:211:12: note: 'struct std::pair<long long int, long long int>' declared here
211 | struct pair
| ^~~~
feast.cpp:25:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
25 | if(cur.fi>mx.fi||cur.fi==mx.fi&&cur.se<mx.se) {
| ^
feast.cpp:30:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
30 | if(res.fi>dp[i+1].fi||res.fi==dp[i+1].fi&&res.se<dp[i+1].se) {
| ^