Home > Back-end >  Bosses, please have a look at the deep search I wrote what's the problem
Bosses, please have a look at the deep search I wrote what's the problem

Time:05-03

# include
using namespace std;
Int I=0, k=0, p=0;
int n;
Int a, [10].
Void f (int the begin, int last)
{
Int I=0, k=0, p=0;
Bool check=true;
If (the begin==+ 1) (last)
{
for(i=1; I <=last; I++)
Cout coutreturn ;
}
for(i=1; I <=last; I++)
{
Check=true;
For (k=1; K {
If (a==[k] I)
{
Check=false;
break;
}
}
If (check==true)
{
A [begin]=I;
F (I + 1, the last);
A (begin)=0;
}
}
}
Int main ()
{
Memset (a, 0, sizeof (a));
Cin> n.
F (1, n);
}