#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 | #50923288 | Utilizator | |
Fișier | chenar.cpp | Dimensiune | 450 B |
Data încărcării | 14 Mai 2024, 14:14 | Scor / rezultat | Eroare de compilare |
chenar.cpp: In function 'int main()': chenar.cpp:7:2: error: expected ',' or ';' before 'ofstream' ofstream fout("chenar.out") ^ chenar.cpp:10:6: error: 'i' was not declared in this scope for(i=0;i<n;i++) ^ chenar.cpp:10:12: error: 'n' was not declared in this scope for(i=0;i<n;i++) ^ chenar.cpp:11:13: error: 'j' was not declared in this scope for(j=0;j<n;j++) ^ chenar.cpp:12:14: error: 'a' was not declared in this scope fin>>a[i][j]; ^ chenar.cpp:13:9: error: 'j' was not declared in this scope for(j=0;j<n;j++) ^ chenar.cpp:13:15: error: 'n' was not declared in this scope for(j=0;j<n;j++) ^ chenar.cpp:14:9: error: 'fout' was not declared in this scope fout<<a[0][j]<<' '; ^ chenar.cpp:14:15: error: 'a' was not declared in this scope fout<<a[0][j]<<' '; ^ chenar.cpp:15:9: error: 'i' was not declared in this scope for(i=1;i<n;i++) ^ chenar.cpp:15:15: error: 'n' was not declared in this scope for(i=1;i<n;i++) ^ chenar.cpp:16:9: error: 'fout' was not declared in this scope fout<<a[i][n-1]<<' '; ^ chenar.cpp:16:15: error: 'a' was not declared in this scope fout<<a[i][n-1]<<' '; ^ chenar.cpp:17:9: error: 'j' was not declared in this scope for(j=n-2;j>=0;j--) ^ chenar.cpp:17:11: error: 'n' was not declared in this scope for(j=n-2;j>=0;j--) ^ chenar.cpp:18:9: error: 'fout' was not declared in this scope fout<<a[n-1][j]<<' '; ^ chenar.cpp:18:15: error: 'a' was not declared in this scope fout<<a[n-1][j]<<' '; ^ chenar.cpp:19:9: error: 'i' was not declared in this scope for(i=n-2;i>0;i--) ^ chenar.cpp:19:11: error: 'n' was not declared in this scope for(i=n-2;i>0;i--) ^ chenar.cpp:20:9: error: 'fout' was not declared in this scope fout<<a[i][0]<<' '; ^ chenar.cpp:20:15: error: 'a' was not declared in this scope fout<<a[i][0]<<' '; ^
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ă.