foo.cpp: In function 'int main()':
foo.cpp:14:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d",puzzle[i][j]);
^
foo.cpp:16:25: error: 'ex' was not declared in this scope
scanf("%d%d%d%d%d%d",&ex,&ey,&sx,&sy,&tx,&ty);
^~
foo.cpp:16:29: error: 'ey' was not declared in this scope
scanf("%d%d%d%d%d%d",&ex,&ey,&sx,&sy,&tx,&ty);
^~
foo.cpp:16:33: error: 'sx' was not declared in this scope
scanf("%d%d%d%d%d%d",&ex,&ey,&sx,&sy,&tx,&ty);
^~
foo.cpp:16:37: error: 'sy' was not declared in this scope
scanf("%d%d%d%d%d%d",&ex,&ey,&sx,&sy,&tx,&ty);
^~
foo.cpp:16:41: error: 'tx' was not declared in this scope
scanf("%d%d%d%d%d%d",&ex,&ey,&sx,&sy,&tx,&ty);
^~
foo.cpp:16:45: error: 'ty' was not declared in this scope
scanf("%d%d%d%d%d%d",&ex,&ey,&sx,&sy,&tx,&ty);
^~