#210
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 | #58422535 | Utilizator | |
Fișier | chenar.cpp | Dimensiune | 518 B |
Data încărcării | 03 Iunie 2025, 12:56 | Scor / rezultat | Eroare de compilare |
chenar.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream fout("chenar.out") ^ chenar.cpp: In function 'int main()': chenar.cpp:13:16: error: 'a' was not declared in this scope fin >> a[i][j]; ^ chenar.cpp:16:10: error: 'a' was not declared in this scope cout << a[0][j]<<' '; ^ chenar.cpp:19:5: error: 'fout' was not declared in this scope fout << a[1][i]<<' '; ^ chenar.cpp:19:13: error: 'a' was not declared in this scope fout << a[1][i]<<' '; ^ chenar.cpp:21:5: error: 'fout' was not declared in this scope fout <<a[i][n]<<' '; ^ chenar.cpp:21:12: error: 'a' was not declared in this scope fout <<a[i][n]<<' '; ^ chenar.cpp:23:13: error: 'a' was not declared in this scope cout << a[n][i]<<' '; ^ chenar.cpp:25:5: error: 'fout' was not declared in this scope fout << a[1][i]; ^ chenar.cpp:25:13: error: 'a' was not declared in this scope fout << a[1][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ă.