/*Sudoku Solver By Raymond Le Grand */ #include #include #define SIZE 9 #define SUM9 (9+8+7+6+5+4+3+2+1) using namespace std; int board[SIZE][SIZE]; bool ispossible(int n, int x, int y){ //ck horizontally and vertically for (int i=0;i soln; //process possible solns for (int i=0;i0){ board[i][j]=soln.back(); soln.pop_back(); if (solveBoard()==true) return true; //that doesn't work, so try different number board[i][j]=0; } return false; } } } return false; } int main(){ int num,flag; flag=0; while(true){ //read in 1 puzzle for (int i=0;i<9;i++){ for (int j=0;j<9;j++){ cin>>num; board[i][j]=num; } } if (cin.eof()) break; if (flag!=0) cout<