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