segments.c:7:1: warning: data definition has no type or storage class
7 | i,j,n,dp[N];
| ^
segments.c:7:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
segments.c:7:3: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
7 | i,j,n,dp[N];
| ^
segments.c:7:5: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
7 | i,j,n,dp[N];
| ^
segments.c:7:7: warning: type defaults to 'int' in declaration of 'dp' [-Wimplicit-int]
7 | i,j,n,dp[N];
| ^~
segments.c:9:1: warning: return type defaults to 'int' [-Wimplicit-int]
9 | u(p) { for (;p<N;p+=p&-p) fw[p]-=(fw[p]-x)*(x<fw[p]); }
| ^
segments.c: In function 'u':
segments.c:9:1: warning: type of 'p' defaults to 'int' [-Wimplicit-int]
segments.c: At top level:
segments.c:11:1: warning: return type defaults to 'int' [-Wimplicit-int]
11 | s(){
| ^
segments.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int]
16 | main()
| ^~~~
segments.c: In function 'u':
segments.c:9:55: warning: control reaches end of non-void function [-Wreturn-type]
9 | u(p) { for (;p<N;p+=p&-p) fw[p]-=(fw[p]-x)*(x<fw[p]); }
| ^
segments.c: In function 'main':
segments.c:18:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d",&n);for(;++i<N;fw[i]=1e18);
| ^~~~~~~~~~~~~~
segments.c:19:24: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | for (i=1;i<=n;++i) scanf("%lld",a+i),x=a[i]+=a[i-1],dp[i]=1+dp[j=n+1-s(),j>0?j:(j=0)],x=2*a[i]-a[j],u(n-i+1);
| ^~~~~~~~~~~~~~~~~