#337
Saritura_Calului
Să se determine o modalitate de parcurgere integrală a unei tablei de către un cal care se deplasează în maniera specifică calului de șah, astfel încât acesta să nu treacă de două ori prin aceeaşi poziţie.
Problema | Saritura_Calului | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54899132 | Utilizator | |
Fișier | saritura_calului.cpp | Dimensiune | 927 B |
Data încărcării | 11 Decembrie 2024, 17:45 | Scor / rezultat | Eroare de compilare |
saritura_calului.cpp:10:1: error: stray '\302' in program for(int i=1;i<=n;i++) ^ saritura_calului.cpp:10:1: error: stray '\240' in program saritura_calului.cpp:10:1: error: stray '\302' in program saritura_calului.cpp:10:1: error: stray '\240' in program saritura_calului.cpp:11:1: error: stray '\302' in program { ^ saritura_calului.cpp:11:1: error: stray '\240' in program saritura_calului.cpp:11:1: error: stray '\302' in program saritura_calului.cpp:11:1: error: stray '\240' in program saritura_calului.cpp:12:1: error: stray '\302' in program for(int j=1;j<=m;j++) ^ saritura_calului.cpp:12:1: error: stray '\240' in program saritura_calului.cpp:12:1: error: stray '\302' in program saritura_calului.cpp:12:1: error: stray '\240' in program saritura_calului.cpp:12:1: error: stray '\302' in program saritura_calului.cpp:12:1: error: stray '\240' in program saritura_calului.cpp:12:1: error: stray '\302' in program saritura_calului.cpp:12:1: error: stray '\240' in program saritura_calului.cpp:13:1: error: stray '\302' in program printf("%d ",a[i][j] ); ^ saritura_calului.cpp:13:1: error: stray '\240' in program saritura_calului.cpp:13:1: error: stray '\302' in program saritura_calului.cpp:13:1: error: stray '\240' in program saritura_calului.cpp:13:1: error: stray '\302' in program saritura_calului.cpp:13:1: error: stray '\240' in program saritura_calului.cpp:13:1: error: stray '\302' in program saritura_calului.cpp:13:1: error: stray '\240' in program saritura_calului.cpp:13:1: error: stray '\302' in program saritura_calului.cpp:13:1: error: stray '\240' in program saritura_calului.cpp:13:1: error: stray '\302' in program saritura_calului.cpp:13:1: error: stray '\240' in program saritura_calului.cpp:14:1: error: stray '\302' in program printf("\n"); ^ saritura_calului.cpp:14:1: error: stray '\240' in program saritura_calului.cpp:14:1: error: stray '\302' in program saritura_calului.cpp:14:1: error: stray '\240' in program saritura_calului.cpp:14:1: error: stray '\302' in program saritura_calului.cpp:14:1: error: stray '\240' in program saritura_calului.cpp:14:1: error: stray '\302' in program saritura_calului.cpp:14:1: error: stray '\240' in program saritura_calului.cpp:15:1: error: stray '\302' in program } ^ saritura_calului.cpp:15:1: error: stray '\240' in program saritura_calului.cpp:15:1: error: stray '\302' in program saritura_calului.cpp:15:1: error: stray '\240' in program saritura_calului.cpp:16:1: error: stray '\302' in program gata=1; ^ saritura_calului.cpp:16:1: error: stray '\240' in program saritura_calului.cpp:16:1: error: stray '\302' in program saritura_calului.cpp:16:1: error: stray '\240' in program saritura_calului.cpp:21:1: error: stray '\302' in program return x>=1&&x<=n&&y>=1&&y<=m; ^ saritura_calului.cpp:21:1: error: stray '\240' in program saritura_calului.cpp:21:1: error: stray '\302' in program saritura_calului.cpp:21:1: error: stray '\240' in program saritura_calului.cpp:25:1: error: stray '\302' in program a[x][y]=k; ^ saritura_calului.cpp:25:1: error: stray '\240' in program saritura_calului.cpp:25:1: error: stray '\302' in program saritura_calului.cpp:25:1: error: stray '\240' in program saritura_calului.cpp:26:1: error: stray '\302' in program if(k==n*m)afisare(); ^ saritura_calului.cpp:26:1: error: stray '\240' in program saritura_calului.cpp:26:1: error: stray '\302' in program saritura_calului.cpp:26:1: error: stray '\240' in program saritura_calului.cpp:27:1: error: stray '\302' in program else{ ^ saritura_calului.cpp:27:1: error: stray '\240' in program saritura_calului.cpp:27:1: error: stray '\302' in program saritura_calului.cpp:27:1: error: stray '\240' in program saritura_calului.cpp:28:1: error: stray '\302' in program for(int i=0;i<=7&&!gata;i++) ^ saritura_calului.cpp:28:1: error: stray '\240' in program saritura_calului.cpp:28:1: error: stray '\302' in program saritura_calului.cpp:28:1: error: stray '\240' in program saritura_calului.cpp:28:1: error: stray '\302' in program saritura_calului.cpp:28:1: error: stray '\240' in program saritura_calului.cpp:28:1: error: stray '\302' in program saritura_calului.cpp:28:1: error: stray '\240' in program saritura_calului.cpp:29:1: error: stray '\302' in program { ^ saritura_calului.cpp:29:1: error: stray '\240' in program saritura_calului.cpp:29:1: error: stray '\302' in program saritura_calului.cpp:29:1: error: stray '\240' in program saritura_calului.cpp:29:1: error: stray '\302' in program saritura_calului.cpp:29:1: error: stray '\240' in program saritura_calului.cpp:29:1: error: stray '\302' in program saritura_calului.cpp:29:1: error: stray '\240' in program saritura_calului.cpp:30:1: error: stray '\302' in program int xn=x+dx[i]; ^ saritura_calului.cpp:30:1: error: stray '\240' in program saritura_calului.cpp:30:1: error: stray '\302' in program saritura_calului.cpp:30:1: error: stray '\240' in program saritura_calului.cpp:30:1: error: stray '\302' in program saritura_calului.cpp:30:1: error: stray '\240' in program saritura_calului.cpp:30:1: error: stray '\302' in program saritura_calului.cpp:30:1: error: stray '\240' in program saritura_calului.cpp:30:1: error: stray '\302' in program saritura_calului.cpp:30:1: error: stray '\240' in program saritura_calului.cpp:30:1: error: stray '\302' in program saritura_calului.cpp:30:1: error: stray '\240' in program saritura_calului.cpp:31:1: error: stray '\302' in program int yn=y+dy[i]; ^ saritura_calului.cpp:31:1: error: stray '\240' in program saritura_calului.cpp:31:1: error: stray '\302' in program saritura_calului.cpp:31:1: error: stray '\240' in program saritura_calului.cpp:31:1: error: stray '\302' in program saritura_calului.cpp:31:1: error: stray '\240' in program saritura_calului.cpp:31:1: error: stray '\302' in program saritura_calului.cpp:31:1: error: stray '\240' in program saritura_calului.cpp:31:1: error: stray '\302' in program saritura_calului.cpp:31:1: error: stray '\240' in program saritura_calului.cpp:31:1: error: stray '\302' in program saritura_calului.cpp:31:1: error: stray '\240' in program saritura_calului.cpp:32:1: error: stray '\302' in program if(inmat(xn,yn)&&a[xn][yn]==0) ^ saritura_calului.cpp:32:1: error: stray '\240' in program saritura_calului.cpp:32:1: error: stray '\302' in program saritura_calului.cpp:32:1: error: stray '\240' in program saritura_calului.cpp:32:1: error: stray '\302' in program saritura_calului.cpp:32:1: error: stray '\240' in program saritura_calului.cpp:32:1: error: stray '\302' in program saritura_calului.cpp:32:1: error: stray '\240' in program saritura_calului.cpp:32:1: error: stray '\302' in program saritura_calului.cpp:32:1: error: stray '\240' in program saritura_calului.cpp:32:1: error: stray '\302' in program saritura_calului.cpp:32:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program { ^ saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:33:1: error: stray '\302' in program saritura_calului.cpp:33:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program bkt(xn,yn,k+1); ^ saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:34:1: error: stray '\302' in program saritura_calului.cpp:34:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program } ^ saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:35:1: error: stray '\302' in program saritura_calului.cpp:35:1: error: stray '\240' in program saritura_calului.cpp:37:1: error: stray '\302' in program } ^ saritura_calului.cpp:37:1: error: stray '\240' in program saritura_calului.cpp:37:1: error: stray '\302' in program saritura_calului.cpp:37:1: error: stray '\240' in program saritura_calului.cpp:37:1: error: stray '\302' in program saritura_calului.cpp:37:1: error: stray '\240' in program saritura_calului.cpp:37:1: error: stray '\302' in program saritura_calului.cpp:37:1: error: stray '\240' in program saritura_calului.cpp:38:1: error: stray '\302' in program a[x][y]=0; ^ saritura_calului.cpp:38:1: error: stray '\240' in program saritura_calului.cpp:38:1: error: stray '\302' in program saritura_calului.cpp:38:1: error: stray '\240' in program saritura_calului.cpp:38:1: error: stray '\302' in program saritura_calului.cpp:38:1: error: stray '\240' in program saritura_calului.cpp:38:1: error: stray '\302' in program saritura_calului.cpp:38:1: error: stray '\240' in program saritura_calului.cpp:39:1: error: stray '\302' in program } ^ saritura_calului.cpp:39:1: error: stray '\240' in program saritura_calului.cpp:39:1: error: stray '\302' in program saritura_calului.cpp:39:1: error: stray '\240' in program saritura_calului.cpp:43:1: error: stray '\302' in program cin>>n>>m>>x>>y; ^ saritura_calului.cpp:43:1: error: stray '\240' in program saritura_calului.cpp:43:1: error: stray '\302' in program saritura_calului.cpp:43:1: error: stray '\240' in program saritura_calului.cpp:44:1: error: stray '\302' in program bkt(x,y,1); ^ saritura_calului.cpp:44:1: error: stray '\240' in program saritura_calului.cpp:44:1: error: stray '\302' in program saritura_calului.cpp:44:1: error: stray '\240' in program saritura_calului.cpp:45:1: error: stray '\302' in program return 0; ^ saritura_calului.cpp:45:1: error: stray '\240' in program saritura_calului.cpp:45:1: error: stray '\302' in program saritura_calului.cpp:45:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Saritura_Calului 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ă.