#1313
Produs_Matrice
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 | #54136874 | Utilizator | |
Fișier | produs_matrice.cpp | Dimensiune | 749 B |
Data încărcării | 20 Noiembrie 2024, 16:23 | Scor / rezultat | Eroare de compilare |
produs_matrice.cpp:6:1: error: expected ',' or ';' before 'ofstream' ofstream fout("produs_matrice.out") ^ produs_matrice.cpp: In function 'void ProdusMatrice()': produs_matrice.cpp:13:9: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:13:16: error: 'm' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:14:13: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:14:20: error: 'p' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:15:28: error: 'n' was not declared in this scope for(int k=1;k<=n;k++) ^ produs_matrice.cpp:16:25: error: 'a' was not declared in this scope c[i][j]=c[i][j]+a[i][k]*b[k][j]; ^ produs_matrice.cpp:16:33: error: 'b' was not declared in this scope c[i][j]=c[i][j]+a[i][k]*b[k][j]; ^ produs_matrice.cpp:18:13: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:18:20: error: 'm' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:20:17: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:20:24: error: 'p' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:21:17: error: 'fout' was not declared in this scope fout<<c[i][j]<<" "; ^ produs_matrice.cpp:22:17: error: 'fout' was not declared in this scope fout<<endl; ^ produs_matrice.cpp: In function 'int main()': produs_matrice.cpp:30:10: error: 'm' was not declared in this scope fin>>m>>n; ^ produs_matrice.cpp:30:13: error: 'n' was not declared in this scope fin>>m>>n; ^ produs_matrice.cpp:31:9: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:32:13: error: 'j' was not declared in this scope for(j=1;j<=n;j++) ^ produs_matrice.cpp:33:14: error: 'a' was not declared in this scope fin>>a[i][j]; ^ produs_matrice.cpp:34:10: error: 'p' was not declared in this scope fin>>p; ^ produs_matrice.cpp:35:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ produs_matrice.cpp:36:13: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:37:14: error: 'b' was not declared in this scope fin>>b[i][j]; ^
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ă.