#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 | #9107086 | Utilizator | |
Fișier | rotire.cpp | Dimensiune | 543 B |
Data încărcării | 05 Aprilie 2018, 21:54 | Scor / rezultat | Eroare de compilare |
rotire.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ rotire.cpp:2:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ rotire.cpp:3:1: error: stray '\302' in program using namespace std; ^ rotire.cpp:3:1: error: stray '\240' in program rotire.cpp:3:1: error: stray '\302' in program rotire.cpp:3:1: error: stray '\240' in program rotire.cpp:5:1: error: stray '\302' in program int main() ^ rotire.cpp:5:1: error: stray '\240' in program rotire.cpp:7:1: error: stray '\302' in program int m,n,i,j; ^ rotire.cpp:7:1: error: stray '\240' in program rotire.cpp:7:1: error: stray '\302' in program rotire.cpp:7:1: error: stray '\240' in program rotire.cpp:7:1: error: stray '\302' in program rotire.cpp:7:1: error: stray '\240' in program rotire.cpp:7:1: error: stray '\302' in program rotire.cpp:7:1: error: stray '\240' in program rotire.cpp:7:1: error: stray '\302' in program rotire.cpp:7:1: error: stray '\240' in program rotire.cpp:8:1: error: stray '\302' in program ifstream fisierin("rotire.in"); ^ rotire.cpp:8:1: error: stray '\240' in program rotire.cpp:8:1: error: stray '\302' in program rotire.cpp:8:1: error: stray '\240' in program rotire.cpp:8:1: error: stray '\302' in program rotire.cpp:8:1: error: stray '\240' in program rotire.cpp:8:1: error: stray '\302' in program rotire.cpp:8:1: error: stray '\240' in program rotire.cpp:8:1: error: stray '\302' in program rotire.cpp:8:1: error: stray '\240' in program rotire.cpp:9:1: error: stray '\302' in program fisierin>>m>>n; ^ rotire.cpp:9:1: error: stray '\240' in program rotire.cpp:9:1: error: stray '\302' in program rotire.cpp:9:1: error: stray '\240' in program rotire.cpp:9:1: error: stray '\302' in program rotire.cpp:9:1: error: stray '\240' in program rotire.cpp:9:1: error: stray '\302' in program rotire.cpp:9:1: error: stray '\240' in program rotire.cpp:10:1: error: stray '\302' in program int a[m][n]; ^ rotire.cpp:10:1: error: stray '\240' in program rotire.cpp:10:1: error: stray '\302' in program rotire.cpp:10:1: error: stray '\240' in program rotire.cpp:10:1: error: stray '\302' in program rotire.cpp:10:1: error: stray '\240' in program rotire.cpp:10:1: error: stray '\302' in program rotire.cpp:10:1: error: stray '\240' in program rotire.cpp:10:1: error: stray '\302' in program rotire.cpp:10:1: error: stray '\240' in program rotire.cpp:11:1: error: stray '\302' in program for(i=0;i<m;i++) ^ rotire.cpp:11:1: error: stray '\240' in program rotire.cpp:11:1: error: stray '\302' in program rotire.cpp:11:1: error: stray '\240' in program rotire.cpp:11:1: error: stray '\302' in program rotire.cpp:11:1: error: stray '\240' in program rotire.cpp:11:1: error: stray '\302' in program rotire.cpp:11:1: error: stray '\240' in program rotire.cpp:12:1: error: stray '\302' in program for(j=0;j<n;j++) ^ rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:12:1: error: stray '\302' in program rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:12:1: error: stray '\302' in program rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:12:1: error: stray '\302' in program rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:12:1: error: stray '\302' in program rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:12:1: error: stray '\302' in program rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:12:1: error: stray '\302' in program rotire.cpp:12:1: error: stray '\240' in program rotire.cpp:13:1: error: stray '\302' in program fisierin>>a[i][j]; ^ 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: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: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 fisierin.close(); ^ 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:15:1: error: stray '\302' in program ofstream fisierout("rotire.out"); ^ rotire.cpp:15:1: error: stray '\240' in program rotire.cpp:15:1: error: stray '\302' in program rotire.cpp:15:1: error: stray '\240' in program rotire.cpp:15:1: error: stray '\302' in program rotire.cpp:15:1: error: stray '\240' in program rotire.cpp:15:1: error: stray '\302' in program rotire.cpp:15:1: error: stray '\240' in program rotire.cpp:15:1: error: stray '\302' in program rotire.cpp:15:1: error: stray '\240' in program rotire.cpp:16:1: error: stray '\302' in program for(i=0;i<n;i++) ^ 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: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 { ^ 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: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 for(j=0;j<m;j++) ^ 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: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 fisierout<<a[j][m-i]<<" "; ^ 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: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 fisierout<<endl; ^ 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: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 } ^ 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:21:1: error: stray '\302' in program rotire.cpp:21:1: error: stray '\240' in program rotire.cpp: In function 'int main()': rotire.cpp:8:9: error: 'ifstream' was not declared in this scope ifstream fisierin("rotire.in"); ^ rotire.cpp:8:19: error: expected ';' before 'fisierin' ifstream fisierin("rotire.in"); ^ rotire.cpp:9:9: error: 'fisierin' was not declared in this scope fisierin>>m>>n; ^ rotire.cpp:15:9: error: 'ofstream' was not declared in this scope ofstream fisierout("rotire.out"); ^ rotire.cpp:15:19: error: expected ';' before 'fisierout' ofstream fisierout("rotire.out"); ^ rotire.cpp:19:17: error: 'fisierout' was not declared in this scope fisierout<<a[j][m-i]<<" "; ^ rotire.cpp:20:17: error: 'fisierout' was not declared in this scope fisierout<<endl; ^ rotire.cpp:20:28: error: 'endl' was not declared in this scope fisierout<<endl; ^ rotire.cpp:22:1: error: 'fisierout' was not declared in this scope fisierout.close(); ^
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ă.