#787
Se dă o matrice cu n linii şi n coloane şi elemente numere naturale. Să se construiască o matrice care să fie simetrica față de diagonala secundară a matricei date.
| Problema | MatSim1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64556730 | Utilizator | |
| Fișier | matsim1.cpp | Dimensiune | 584 B |
| Data încărcării | 14 Mai 2026, 10:18 | Scor/rezultat | 0 puncte |
matsim1.cpp: In function ‘int main()’: matsim1.cpp:13:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for (j=1;j<=n;j++) | ^~~ matsim1.cpp:21:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 21 | for (i=1;i<=n;i++) | ^~~ matsim1.cpp:24:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 24 | for (j=1;j<=n;j++) | ^~~ matsim1.cpp:26:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 26 | cout<<endl; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 40 | 0 | ||
| 3 | 0.004 secunde | Raspuns gresit. | 40 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MatSim1 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ă.