#1518
Scrieţi un program care, pentru o matrice 9 x 9 dată, reprezentând un puzzle SUDOKU, determină o soluţie a unui astfel de puzzle.
| Problema | sudoku | Operații I/O |
sudoku.in/sudoku.out
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #43899011 | Utilizator | |
| Fișier | sudoku.cpp | Dimensiune | 2.17 KB |
| Data încărcării | 24 Mai 2023, 23:26 | Scor/rezultat | 0 puncte |
sudoku.cpp: In function 'int back(int**, int, int, int, int)': sudoku.cpp:75:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ sudoku.cpp: In function 'int fct(int, int)': sudoku.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ sudoku.cpp: In function 'int main()': sudoku.cpp:90:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &mat[i][j]); ^ sudoku.cpp:106:31: warning: 'pozj0' may be used uninitialized in this function [-Wmaybe-uninitialized] back(mat, 0, 0, pozi0, pozj0); ^ sudoku.cpp:106:31: warning: 'pozi0' may be used uninitialized in this function [-Wmaybe-uninitialized]
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sudoku face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.