foo.cc: In function 'int main()':
foo.cc:7:20: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
7 | while(2^i-1<N) {a[i]=2^i-1;i++;}
| ~~~^~
foo.cc:7:33: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
7 | while(2^i-1<N) {a[i]=2^i-1;i++;}
| ~^~
foo.cc:9:17: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
9 | p=N-(2^i-1)
| ~^~
foo.cc:9:20: error: expected ';' before 'i'
9 | p=N-(2^i-1)
| ^
| ;
10 | i=1;
| ~
[Hydro](https://hydro.ac)提供评测服务