sculpture.cpp: In function 'll f(int, int, int)':
sculpture.cpp:11:46: warning: integer overflow in expression [-Woverflow]
if(arr[i] & 1<<bit) return 1987654321*1987654321;
~~~~~~~~~~^~~~~~~~~~~
sculpture.cpp:14:22: warning: integer overflow in expression [-Woverflow]
ll ret=1987654321*1987654321;
~~~~~~~~~~^~~~~~~~~~~
sculpture.cpp:25:22: warning: zero-length gnu_printf format string [-Wformat-zero-length]
if(x<0) printf("");
^
sculpture.cpp:26:34: warning: zero-length gnu_printf format string [-Wformat-zero-length]
else if(x & 1<<bit) printf("");
^
sculpture.cpp:27:34: warning: zero-length gnu_printf format string [-Wformat-zero-length]
else if(x > 1<<bit) printf("");
^
sculpture.cpp: In function 'int main()':
sculpture.cpp:35:30: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
scanf("%d %d %d",&N,&A,&B);
~~ ^
sculpture.cpp:35:30: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll* {aka long long int*}' [-Wformat=]
sculpture.cpp:35:30: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll* {aka long long int*}' [-Wformat=]
sculpture.cpp:40:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type* {aka long long int*}' [-Wformat=]
scanf("%d",&arr[i]);
^
sculpture.cpp:35: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:40:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&arr[i]);
~~~~~^~~~~~~~~~~~~~