sculpture.cpp:5:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
5 | main()
| ^
sculpture.cpp: In function 'int main()':
sculpture.cpp:12:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
12 | for(i=0;i++<n;)for(j=0;j++<n;)dp[i][j]=0;dp[0][0]=1;
| ^~~
sculpture.cpp:12:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
12 | for(i=0;i++<n;)for(j=0;j++<n;)dp[i][j]=0;dp[0][0]=1;
| ^~
sculpture.cpp:31:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
31 | for(i=0;i++<n;)dp2[i]=1e9;chk+=(1LL<<k);
| ^~~
sculpture.cpp:31:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
31 | for(i=0;i++<n;)dp2[i]=1e9;chk+=(1LL<<k);
| ^~~
sculpture.cpp:7:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | for(scanf("%d %d %d", &n, &a, &b);i++<n;)scanf("%lld", &A[i]),A[i]+=A[i-1];
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sculpture.cpp:7:51: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | for(scanf("%d %d %d", &n, &a, &b);i++<n;)scanf("%lld", &A[i]),A[i]+=A[i-1];
| ~~~~~^~~~~~~~~~~~~~~