#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 | #50678065 | Utilizator | |
Fișier | chenar.cpp | Dimensiune | 413 B |
Data încărcării | 20 Aprilie 2024, 10:19 | 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:9:10: error: 'n' was not declared in this scope fin>>n;a=0; ^ chenar.cpp:9:12: error: 'a' was not declared in this scope fin>>n;a=0; ^ chenar.cpp:10:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ chenar.cpp:11:9: error: 'j' was not declared in this scope for(j=1;j<=n;j++) ^ chenar.cpp:12:10: error: 'm' was not declared in this scope fin>>m[i][j]; ^ chenar.cpp:13:9: error: 'j' was not declared in this scope for(j=1;j<=n;j++)fout<<m[1][j]; ^ chenar.cpp:13:22: error: 'fout' was not declared in this scope for(j=1;j<=n;j++)fout<<m[1][j]; ^ chenar.cpp:13:28: error: 'm' was not declared in this scope for(j=1;j<=n;j++)fout<<m[1][j]; ^ chenar.cpp:14:9: error: 'i' was not declared in this scope for(i=2;i<=n;i++)fout<<m[i][4]; ^ chenar.cpp:14:22: error: 'fout' was not declared in this scope for(i=2;i<=n;i++)fout<<m[i][4]; ^ chenar.cpp:14:28: error: 'm' was not declared in this scope for(i=2;i<=n;i++)fout<<m[i][4]; ^ chenar.cpp:15:9: error: 'j' was not declared in this scope for(j=n-1;j>=1;j--)fout<<m[4][j]; ^ chenar.cpp:15:24: error: 'fout' was not declared in this scope for(j=n-1;j>=1;j--)fout<<m[4][j]; ^ chenar.cpp:15:30: error: 'm' was not declared in this scope for(j=n-1;j>=1;j--)fout<<m[4][j]; ^ chenar.cpp:16:9: error: 'i' was not declared in this scope for(i=n-1;i>1;i--)fout<<m[i][1]; ^ chenar.cpp:16:23: error: 'fout' was not declared in this scope for(i=n-1;i>1;i--)fout<<m[i][1]; ^ chenar.cpp:16:29: error: 'm' was not declared in this scope for(i=n-1;i>1;i--)fout<<m[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ă.