0_0_30056856_16282.cpp: In function 'int main()':
0_0_30056856_16282.cpp:9:9: error: expected unqualified-id before ',' token
int n,,ans[maxn]
^
0_0_30056856_16282.cpp:2:12: error: expected initializer before 'long'
#define ll long long
^
0_0_30056856_16282.cpp:10:3: note: in expansion of macro 'll'
ll sum=0;
^
0_0_30056856_16282.cpp:17:6: error: 'ans' was not declared in this scope
ans[i]=1<<j;
^
0_0_30056856_16282.cpp:23:19: error: 'ans' was not declared in this scope
if((1<<j)<=n) ans[i]=(1<<j);
^
0_0_30056856_16282.cpp:24:10: error: 'ans' was not declared in this scope
else ans[i]=1;
^
0_0_30056856_16282.cpp:26:4: error: 'sum' was not declared in this scope
sum+=(i&ans[i]);
^
0_0_30056856_16282.cpp:26:12: error: 'ans' was not declared in this scope
sum+=(i&ans[i]);
^
0_0_30056856_16282.cpp:28:9: error: 'sum' was not declared in this scope
cout<<sum<<endl;
^
0_0_30056856_16282.cpp:31:19: error: 'ans' was not declared in this scope
cout<<ans[i];
^
|