WA in MYSARA

https://www.codechef.com/viewsolution/32966328

i performed the bitwise or the store the prefix which is the orprefix array in my code
after that i checked that i checked for every i from 1 to n-1 whether jth bit of orprefix[i-1] and a[i] is set if that is the case i increment my answer by one and finally i perform 2^ans using binary exponentiation.

Can anyone help with my code

https://www.codechef.com/viewsolution/30672368

Don’t forget to check the condition where sequence is increasing. Refer to my solution, depicted by bool inc