#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 | #57281117 | Utilizator | |
Fișier | chenar.cpp | Dimensiune | 403 B |
Data încărcării | 24 Martie 2025, 09:50 | Scor / rezultat | Eroare de compilare |
chenar.cpp:3:14: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin ("chenar.in"); ^ chenar.cpp:4:15: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout ("chenar.out"); ^ chenar.cpp: In function 'int main()': chenar.cpp:18:29: error: expected primary-expression before ';' token fout<<a[i][n]<<" ">>; ^ chenar.cpp:20:18: error: expected primary-expression at end of input for(int j=n-1; ^ chenar.cpp:20:18: error: expected ';' at end of input chenar.cpp:20:18: error: expected primary-expression at end of input chenar.cpp:20:18: error: expected ')' at end of input chenar.cpp:20:18: error: expected statement at end of input chenar.cpp:20:13: warning: unused variable 'j' [-Wunused-variable] for(int j=n-1; ^ chenar.cpp:7:11: warning: unused variable 'm' [-Wunused-variable] int n,m,a [50][50]; ^ chenar.cpp:20:18: error: expected '}' at end of input for(int j=n-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ă.