Why this is giving error? https://ide.codingblocks.com/s/339220 https://leetcode.com/explore/featured/card/fun-with-arrays/527/searching-for-items-in-an-array/3250/ Why this is giving error? Please tell asap

Why this is giving error?

Why this is giving error? Please tell asap.

Please tell why I face a lot of issues while creating doubts.

Hey @cbcao263
Add this

if(i==j) continue;

Otherwise if arr[i]=0 then in will give True

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.