#224
Rotire
Se dă o matrice cu m
linii şi n
coloane şi elemente numere naturale. Să se construiască un nou tablou bidimensional cu n
linii şi m
coloane, obţinut din primul prin rotirea acestuia în sens trigonometric cu 90 o.
Variante Bacalaureat 2009
Problema | Rotire | Operații I/O |
rotire.in /rotire.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #11287342 | Utilizator | |
Fișier | rotire.cpp | Dimensiune | 433 B |
Data încărcării | 23 Octombrie 2018, 20:33 | Scor / rezultat | Eroare de compilare |
rotire.cpp:12:1: error: stray '\302' in program for (j=1;j<=m;++j) ^ rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:13:1: error: stray '\302' in program if (i<j) a[i][j]=i; ^ rotire.cpp:13:1: error: stray '\240' in program rotire.cpp:13:1: error: stray '\302' in program rotire.cpp:13:1: error: stray '\240' in program rotire.cpp:13:1: error: stray '\302' in program rotire.cpp:13:1: error: stray '\240' in program rotire.cpp:14:1: error: stray '\302' in program else a[i][j]=j; ^ rotire.cpp:14:1: error: stray '\240' in program rotire.cpp:14:1: error: stray '\302' in program rotire.cpp:14:1: error: stray '\240' in program rotire.cpp:14:1: error: stray '\302' in program rotire.cpp:14:1: error: stray '\240' in program rotire.cpp:14:1: error: stray '\302' in program rotire.cpp:14:1: error: stray '\240' in program rotire.cpp:16:1: error: stray '\302' in program { ^ rotire.cpp:16:1: error: stray '\240' in program rotire.cpp:16:1: error: stray '\302' in program rotire.cpp:16:1: error: stray '\240' in program rotire.cpp:17:1: error: stray '\302' in program for (j=1;j<=m;++j) ^ rotire.cpp:17:1: error: stray '\240' in program rotire.cpp:17:1: error: stray '\302' in program rotire.cpp:17:1: error: stray '\240' in program rotire.cpp:17:1: error: stray '\302' in program rotire.cpp:17:1: error: stray '\240' in program rotire.cpp:18:1: error: stray '\302' in program { ^ rotire.cpp:18:1: error: stray '\240' in program rotire.cpp:18:1: error: stray '\302' in program rotire.cpp:18:1: error: stray '\240' in program rotire.cpp:18:1: error: stray '\302' in program rotire.cpp:18:1: error: stray '\240' in program rotire.cpp:18:1: error: stray '\302' in program rotire.cpp:18:1: error: stray '\240' in program rotire.cpp:18:1: error: stray '\302' in program rotire.cpp:18:1: error: stray '\240' in program rotire.cpp:19:1: error: stray '\302' in program cout<<a[i][j]<<" "; ^ rotire.cpp:19:1: error: stray '\240' in program rotire.cpp:19:1: error: stray '\302' in program rotire.cpp:19:1: error: stray '\240' in program rotire.cpp:19:1: error: stray '\302' in program rotire.cpp:19:1: error: stray '\240' in program rotire.cpp:19:1: error: stray '\302' in program rotire.cpp:19:1: error: stray '\240' in program rotire.cpp:19:1: error: stray '\302' in program rotire.cpp:19:1: error: stray '\240' in program rotire.cpp:20:1: error: stray '\302' in program } ^ rotire.cpp:20:1: error: stray '\240' in program rotire.cpp:20:1: error: stray '\302' in program rotire.cpp:20:1: error: stray '\240' in program rotire.cpp:20:1: error: stray '\302' in program rotire.cpp:20:1: error: stray '\240' in program rotire.cpp:20:1: error: stray '\302' in program rotire.cpp:20:1: error: stray '\240' in program rotire.cpp:20:1: error: stray '\302' in program rotire.cpp:20:1: error: stray '\240' in program rotire.cpp:21:1: error: stray '\302' in program cout<<endl; ^ rotire.cpp:21:1: error: stray '\240' in program rotire.cpp:21:1: error: stray '\302' in program rotire.cpp:21:1: error: stray '\240' in program rotire.cpp:21:1: error: stray '\302' in program rotire.cpp:21:1: error: stray '\240' in program rotire.cpp:22:1: error: stray '\302' in program } ^ rotire.cpp:22:1: error: stray '\240' in program rotire.cpp:22:1: error: stray '\302' in program rotire.cpp:22:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Rotire 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ă.