where am i wrong PERMUT2

#include
#include<string.h>
using namespace std;

int main()
{
int t,flag;
long int n;
int a[100000],b[100000];
for(int i=1;n!=0;i++)
{ cin>>n;
for(int j=1;j<=n;j++)
{
a[j]=n-j+2;
a[1]=1;
cin>>b[j];}
for(int j=1;j<=n;j++)
{
flag=0;
if(b[j]!=a[j])
{
cout<<“not ambiguous”<<endl;
break;
}
else flag=1;
}
if(flag==1&&n!=0)
{
cout<<“ambiguous”<<endl;
}
}
return 0;
}

Its hard to read your code this way can u upload the coe then send the link!

//