sculpture.cpp: In function 'bool f(int, int)':
sculpture.cpp:21:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
21 | return dp [x][num] = ans;
| ~~~~~~~~~~~~^~~~~
sculpture.cpp: In function 'int main()':
sculpture.cpp:51:15: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
51 | scanf ( "%d%d%d" , &n , &a , &b );
| ~^ ~~
| | |
| int* long long int*
| %lld
sculpture.cpp:51:17: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
51 | scanf ( "%d%d%d" , &n , &a , &b );
| ~^ ~~
| | |
| int* long long int*
| %lld
sculpture.cpp:51:19: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
51 | scanf ( "%d%d%d" , &n , &a , &b );
| ~^ ~~
| | |
| int* long long int*
| %lld
sculpture.cpp:54:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
54 | scanf ( "%d" , &y [i] );
| ~^ ~~~~~~
| | |
| int* long long int*
| %lld
sculpture.cpp:51:11: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | scanf ( "%d%d%d" , &n , &a , &b );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
sculpture.cpp:54:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | scanf ( "%d" , &y [i] );
| ~~~~~~^~~~~~~~~~~~~~~~~