#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 | #54136857 | Utilizator | |
Fișier | produs_matrice.cpp | Dimensiune | 747 B |
Data încărcării | 20 Noiembrie 2024, 16:22 | 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:12:9: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:12:16: error: 'm' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:13:13: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:13:20: error: 'p' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:14:28: error: 'n' was not declared in this scope for(int k=1;k<=n;k++) ^ produs_matrice.cpp:15:25: error: 'a' was not declared in this scope c[i][j]=c[i][j]+a[i][k]*b[k][j]; ^ produs_matrice.cpp:15:33: error: 'b' was not declared in this scope c[i][j]=c[i][j]+a[i][k]*b[k][j]; ^ produs_matrice.cpp:17:13: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:17:20: error: 'm' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:19:17: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:19:24: error: 'p' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:20:17: error: 'fout' was not declared in this scope fout<<c[i][j]<<" "; ^ produs_matrice.cpp:21:17: error: 'fout' was not declared in this scope fout<<endl; ^ produs_matrice.cpp: In function 'int main()': produs_matrice.cpp:29:10: error: 'm' was not declared in this scope fin>>m>>n; ^ produs_matrice.cpp:29:13: error: 'n' was not declared in this scope fin>>m>>n; ^ produs_matrice.cpp:30:9: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:31:13: error: 'j' was not declared in this scope for(j=1;j<=n;j++) ^ produs_matrice.cpp:32:14: error: 'a' was not declared in this scope fin>>a[i][j]; ^ produs_matrice.cpp:33:10: error: 'p' was not declared in this scope fin>>p; ^ produs_matrice.cpp:34:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ produs_matrice.cpp:35:13: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:36: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ă.