#210
Chenar
Să se parcurgă în sensul acelor de ceasornic chenarul exterior al unei matrice pătratice.
Variante Bacalaureat 2009
Problema | Chenar | Operații I/O |
![]() chenar.in /chenar.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58422271 | Utilizator | |
Fișier | chenar.cpp | Dimensiune | 480 B |
Data încărcării | 03 Iunie 2025, 12:47 | Scor / rezultat | Eroare de compilare |
chenar.cpp:3:1: error: 'ifstream' does not name a type ifstream fin("chenar.in"); ^ chenar.cpp:4:1: error: 'ofstream' does not name a type ofstream fout("chenar.out"); ^ chenar.cpp: In function 'int main()': chenar.cpp:10:5: error: 'fin' was not declared in this scope fin>>n; ^ chenar.cpp:15:9: error: 'fout' was not declared in this scope fout<<a[0][i]<<' '; ^ chenar.cpp:17:9: error: 'fout' was not declared in this scope fout<<a[i][n-1]<<' '; ^ chenar.cpp:18:17: error: expected primary-expression before '>' token for(i=n-2;i=>0;i--) ^ chenar.cpp:19:9: error: 'fout' was not declared in this scope fout<<a[i][n-1-i]<<' '; ^ chenar.cpp:20:17: error: expected primary-expression before '>' token for(i=n-1;i=>0;i--) ^ chenar.cpp:21:9: error: 'fout' was not declared in this scope fout<<a[0][i]<<' '; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Chenar 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ă.