#include #include #include int main() { int arr1[3][3]={8,1,6,3,5,7,4,9,2}; int arr2[3][3]={6,1,8,7,5,3,2,9,4}; int arr3[3][3]={4,9,2,3,5,7,8,1,6}; int arr4[3][3]={2,9,4,7,5,3,6,1,8}; int arr5[3][3]={8,3,4,1,5,9,6,7,2}; int arr6[3][3]={4,3,8,9,5,1,2,7,6}; int arr7[3][3]={6,7,2,1,5,9,8,3,4}; int arr8[3][3]={2,7,6,9,5,1,4,3,8}; int input[3][3]={0},ans1=0,ans2=0,ans3=0,ans4=0,ans5=0,ans6=0,ans7=0,ans8=0; for(size_t i=0;i<3;i++) { for(size_t j=0;j<3;j++) std::cin>>input[i][j]; } for(size_t i=0;i<3;i++) { for(size_t j=0;j<3;j++) { //std::cout<