/in/foo.cc:16:23: warning: integer constant is too large for its type
16 | if(t>-100000000000000000000000) nd=max(nd,t+1);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:42: warning: overflow in conversion from 'long int' to 'int' changes value from '-10000000000' to '-1410065408' [-Woverflow]
8 | for(int i=1;i<=maxn;i++) best[i]=-10000000000;
| ^~~~~~~~~~~~
/in/foo.cc:8:41: warning: iteration 2097151 invokes undefined behavior [-Waggressive-loop-optimizations]
8 | for(int i=1;i<=maxn;i++) best[i]=-10000000000;
| ~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:8:22: note: within this loop
8 | for(int i=1;i<=maxn;i++) best[i]=-10000000000;
| ~^~~~~~