sculpture.cpp: In function 'll sum(ll, ll)':
sculpture.cpp:20:18: error: 'll sum(ll, ll)' redeclared as different kind of symbol
ll sum(ll x, ll y){
^
sculpture.cpp:17:4: note: previous declaration 'll sum [101]'
ll sum[MAX_N+1];
^~~
sculpture.cpp: In function 'int main()':
sculpture.cpp:38:39: error: 'sum' cannot be used as a function
dp[k][i] = min(dp[k][i], (sum(j, i) | dp[k-1][j-1]));
^
sculpture.cpp:25:7: 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:28:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
ll x; scanf("%lld", &x);
~~~~~^~~~~~~~~~~~