#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 | #57172787 | Utilizator | |
Fișier | chenar.cpp | Dimensiune | 513 B |
Data încărcării | 19 Martie 2025, 09:07 | Scor / rezultat | Eroare de compilare |
chenar.cpp:4:13: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin("chenar.in") ^ chenar.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream fout ("chenar.out") ^ chenar.cpp: In function 'int main()': chenar.cpp:9:12: error: 'n' was not declared in this scope fin >> n; ^ chenar.cpp:12:15: error: 'a' was not declared in this scope fin>> a[i][j]; ^ chenar.cpp:14:13: error: 'fout' was not declared in this scope fout << a[1][j] << " "; ^ chenar.cpp:14:21: error: 'a' was not declared in this scope fout << a[1][j] << " "; ^ chenar.cpp:16:13: error: 'fout' was not declared in this scope fout << a[i][n] << " "; ^ chenar.cpp:16:21: error: 'a' was not declared in this scope fout << a[i][n] << " "; ^ chenar.cpp:18:27: error: unable to find numeric literal operator 'operator"" n' for(int i=1n-1;i>=2;i--) ^ chenar.cpp:19:17: error: 'fout' was not declared in this scope fout << a[i][1] << " "; ^ chenar.cpp:19:25: error: 'a' was not declared in this scope fout << a[i][1] << " "; ^
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ă.