Please can you tell me what is wrong with this code

#include
using namespace std;
int main(){
int n;
cin>>n;
int row;
row=1;
while(row<=n){
int col=1;
if(row%2!=0){
while(col<=row)
cout<<1;
col=col+1;

	}
else{
	cout<<1;
	while(col<=row-2){
		cout<<0;
		col=col+1;

	}


              }
cout<<endl;
row=row+1;              


}return 0;

bro here code dont render properly thats why i m asking u to paste in ide and share its link.
if u r facing any issue in saving ur code in cb ide then u can use gfg ide.
https://ide.geeksforgeeks.org/
paste ur code in above link.
and then ss
click on run + url button, it will generate a url , share that url with me

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.