sculpture.cpp: In function 'int main()':
sculpture.cpp:27:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(j=1; j<=N; j++) dp1[j]=987654321; dp1[0]=0;
^~~
sculpture.cpp:27:51: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(j=1; j<=N; j++) dp1[j]=987654321; dp1[0]=0;
^~~
sculpture.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &N, &A, &B);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
sculpture.cpp:18:45: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) scanf("%lld", &Y[i]), Y[i]+=Y[i-1];
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~