sculpture.cpp:36:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
sculpture.cpp: In function 'int main()':
sculpture.cpp:9:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
#define Scan(a) scanf ("%I64d", &a)
~~^~
#define scan(a) scanf ("%d", &a)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define pi pair < int, int >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
using namespace std;
~~~~~~~~~~~~~~~~~~~~~
~
const long long INF = (int)1e18 + 7;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const int N = (int)2007;
~~~~~~~~~~~~~~~~~~~~~~~~~
const int mod = 1000000007;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
int n, a, b, ans = INF, arr[N];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void dfs(int g,int pos,int sum,int an){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(pos - 1 == n){
~~~~~~~~~~~~~~~~~~
if(g == 1){
~~~~~~~~~~~~
ans = min(ans,(an | sum));
~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
~~
}
~~
else{
~~~~~~
if(g == 1){
~~~~~~~~~~~~
dfs(g, pos + 1, sum + arr[pos], an);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
~~
else{
~~~~~~
dfs(g,pos + 1, sum + arr[pos], an);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dfs(g - 1,pos + 1, arr[pos], (an | sum));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
~~
}
~~
}
~~
main(){
~~~~~~~~
cin >> n >> a >> b;
~~~~~~~~~~~~~~~~~~~~
if(n < a){
~~~~~~~~~~~
cout << 0;
~~~~~~~~~~~
return 0;
~~~~~~~~~~
}
~~
for(int i = 1;i <= n; i++){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scan(arr[i]);
~~~~~~~~~~~
sculpture.cpp:43:13: note: in expansion of macro 'Scan'
Scan(arr[i]);
^~~~
sculpture.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define Scan(a) scanf ("%I64d", &a)
~~~~~~^~~~~~~~~~~~~
sculpture.cpp:43:13: note: in expansion of macro 'Scan'
Scan(arr[i]);
^~~~