#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 | #63597922 | Utilizator | |
| Fișier | chenar.cpp | Dimensiune | 739 B |
| Data încărcării | 10 Martie 2026, 20:51 | Scor/rezultat | Eroare de compilare |
chenar.cpp: In function 'int main()': chenar.cpp:9:5: error: expected ',' or ';' before 'ofstream' ofstream ki("chenar.out") ^ chenar.cpp:11:8: error: 'n' was not declared in this scope be>>n; ^ chenar.cpp:12:8: error: 'i' was not declared in this scope for(i=0;i<n;i++) ^ chenar.cpp:14:12: error: 'j' was not declared in this scope for(j=0;j<n;j++) ^ chenar.cpp:16:16: error: 't' was not declared in this scope be>>t[i][j]; ^ chenar.cpp:19:8: error: 'i' was not declared in this scope for(i=0;i<1;i++) ^ chenar.cpp:21:12: error: 'j' was not declared in this scope for(j=0;j<n;j++) ^ chenar.cpp:23:12: error: 'ki' was not declared in this scope ki<<t[i][j]<<" "; ^ chenar.cpp:23:16: error: 't' was not declared in this scope ki<<t[i][j]<<" "; ^ chenar.cpp:26:9: error: 'i' was not declared in this scope for(i=0;i<n;i++) ^ chenar.cpp:28:12: error: 'j' was not declared in this scope for(j=n-1;j>n-2;j--) ^ chenar.cpp:30:12: error: 'ki' was not declared in this scope ki<<t[i][j]<<" "; ^ chenar.cpp:30:16: error: 't' was not declared in this scope ki<<t[i][j]<<" "; ^ chenar.cpp:33:9: error: 'i' was not declared in this scope for(i=n-1;i>n-2;i--) ^ chenar.cpp:35:12: error: 'j' was not declared in this scope for(j=n-1;j>=0;j--) ^ chenar.cpp:37:12: error: 'ki' was not declared in this scope ki<<t[i][j]<<" "; ^ chenar.cpp:37:16: error: 't' was not declared in this scope ki<<t[i][j]<<" "; ^ chenar.cpp:40:9: error: 'i' was not declared in this scope for(i=n-1;i>=0;i--) ^ chenar.cpp:42:12: error: 'j' was not declared in this scope for(j=0;j<1;j++) ^ chenar.cpp:44:12: error: 'ki' was not declared in this scope ki<<t[i][j]<<" "; ^ chenar.cpp:44:16: error: 't' was not declared in this scope ki<<t[i][j]<<" "; ^
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ă.