Unique no 2 in challenges section

i am solving this problem in same way that was taught in previous videos as this same example was taken in previous videos but in this its showing time out error

hello @mansi25
pls share ur code using cb ide

i have shared the code

follow these steps->
a) paste ur code here https://ide.codingblocks.com/
b) press ctrl + s and save
c) a link will be generated in ur search tab, share that link with me

but collaborate mode is on so code would be visible to you right

#include using namespace std; int main() { int n,no,res=0; int a[100000]; for(int i=0;i<n;i++){ cin>>no; a[i]=no; res=res^no; } int temp=res; int pos=0; while((temp&1)!=1){ pos++; temp=temp>>1; } int mask=(1<<pos); int n1=0; int n2=0; for(int i=0;i<n;i++){ if((a[i]&mask)>0){ n1=n1^a[i]; } } n2=res^n1; cout<<min(n1,n2)<<" "<<max(n1,n2); return 0; }

its not there .
follow this->

pls share ur code using above steps.

this is not readable at all

link is not getting generated instead its getting downloaded

check now->

file:///C:/Users/MANSI%20SHREY/Downloads/Competitive%20Programming%20_%20%F0%9F%92%A1%20Unique%20Numbers%20-%20II.html

have already shared ur corrected code, pls check my last reply