sculpture.cpp: In function 'int main()':
sculpture.cpp:19:26: error: 'i' was not declared in this scope
for(int b = 62; ~i; i--) {
^
sculpture.cpp:14: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:15:54: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf("%lld", pref+i), pref[i] += pref[i-1];
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~