Sunteți pe pagina 1din 1

#include

#include
#include
#include
#include

<iostream.h>
<math.h>
<fstream.h>
<graphics.h>
<conio.h>

using namespace std;


int m[50][50],as,ev,k;
void init()
{
st[k][1]=0;
st[k][2]=x;
st[k][3]=y;
}
void succesor()
{
if(st[k]<n){st[k]++;
as=1;
}
else as=0;
}
void valid()
{
ev=1;
for(int i=1;i<=k-1;i++)
if(st[k]==st[i])
ev=0;
}
int solutie ()
{
if(k==n) return 1;
else return 0;
}
void tipar ()
{int i
for(i=1;i<=n;i++
)
}

S-ar putea să vă placă și