#1313
Se citesc doua matrice din fisier . Sa se calculeze produsul lor .
| Problema | Produs_Matrice | Operații I/O |
produs_matrice.in/produs_matrice.out
|
|---|---|---|---|
| Limita timp | 0.05 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64554821 | Utilizator | |
| Fișier | produs_matrice.cpp | Dimensiune | 587 B |
| Data încărcării | 14 Mai 2026, 09:29 | Scor/rezultat | Eroare de compilare |
produs_matrice.cpp: In function ‘int main()’: produs_matrice.cpp:19:13: error: ‘c’ was not declared in this scope 19 | c[i][j]=0; | ^ produs_matrice.cpp:20:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 20 | for(int k=1;k<=n;k++) | ^~~ produs_matrice.cpp:22:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 22 | fout<<c[i][j]<<' '; | ^~~~ produs_matrice.cpp:16:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for(int i=1;i<=n;i++) | ^~~ produs_matrice.cpp:24:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 24 | fout<<'\n'; | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Produs_Matrice 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ă.