xor.cpp: In function 'int get(int)':
xor.cpp:21:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
21 | if(val+(1<<i)>=k)
| ^~
xor.cpp:23:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
23 | val+=(1<<i);
| ^~~
xor.cpp: In function 'int main()':
xor.cpp:32:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d%d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~
xor.cpp:34:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | scanf("%d",&par[i]);
| ~~~~~^~~~~~~~~~~~~~