#include #include class Sudoku { // your code here }; using namespace std; int main() { using row = array; Sudoku s { array { row { 4, 7, 8, 6, 2, 5, 9, 3, 1 }, row { 5, 2, 1, 3, 9, 8, 4, 7, 6 }, row { 9, 6, 3, 7, 1, 4, 8, 2, 5 }, row { 3, 8, 5, 2, 6, 9, 7, 1, 4 }, row { 2, 4, 6, 1, 8, 7, 5, 9, 3 }, row { 1, 9, 7, 5, 4, 3, 2, 6, 8 }, row { 6, 5, 2, 4, 7, 1, 3, 8, 9 }, row { 8, 1, 4, 9, 3, 2, 6, 5, 7 }, row { 7, 3, 9, 8, 5, 6, 1, 4, 2 } } }; if ( s.is_solved() ) { cout << "Rätt lösning" << endl; } else { cout << "Felaktig kontroll!" << endl; } }