#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56931387 | Utilizator | |
Fișier | matsim1.cpp | Dimensiune | 436 B |
Data încărcării | 11 Martie 2025, 09:46 | Scor / rezultat | Eroare de compilare |
matsim1.cpp:2:7: error: expected nested-name-specifier before 'namespce' using namespce std; ^ matsim1.cpp:2:7: error: 'namespce' has not been declared matsim1.cpp:2:16: error: expected ';' before 'std' using namespce std; ^ matsim1.cpp:2:16: error: 'std' does not name a type matsim1.cpp: In function 'int main()': matsim1.cpp:6:5: error: 'cin' was not declared in this scope cin>>n; ^ matsim1.cpp:6:5: note: suggested alternative: In file included from matsim1.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ matsim1.cpp:15:13: error: 'cout' was not declared in this scope cout<<b[i][j]<<" "; ^ matsim1.cpp:15:13: note: suggested alternative: In file included from matsim1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ matsim1.cpp:17:11: error: 'cout' was not declared in this scope cout << endl; ^ matsim1.cpp:17:11: note: suggested alternative: In file included from matsim1.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ matsim1.cpp:17:19: error: 'endl' was not declared in this scope cout << endl; ^ matsim1.cpp:17:19: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from matsim1.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^
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ă.