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