#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 | #55079079 | Utilizator | |
Fișier | produs_matrice.cpp | Dimensiune | 581 B |
Data încărcării | 21 Decembrie 2024, 00:44 | Scor / rezultat | Eroare de compilare |
produs_matrice.cpp: In function 'int main()': produs_matrice.cpp:7:2: error: 'shint' was not declared in this scope {shint a[101][101],b[101][101],m,n,p,i,j,k; ^ produs_matrice.cpp:7:8: error: expected ';' before 'a' {shint a[101][101],b[101][101],m,n,p,i,j,k; ^ produs_matrice.cpp:9:5: error: 'm' was not declared in this scope f>>m>>n; ^ produs_matrice.cpp:9:8: error: 'n' was not declared in this scope f>>m>>n; ^ produs_matrice.cpp:10:6: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:11:10: error: 'j' was not declared in this scope for(j=1;j<=n;j++) ^ produs_matrice.cpp:12:9: error: 'a' was not declared in this scope f>>a[i][j]; ^ produs_matrice.cpp:13:6: error: 'p' was not declared in this scope f>>p; ^ produs_matrice.cpp:14:6: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ produs_matrice.cpp:15:10: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:16:9: error: 'b' was not declared in this scope f>>b[i][j]; ^ produs_matrice.cpp:17:6: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:18:6: error: 'j' was not declared in this scope for(j=1;j<=p;j++) ^ produs_matrice.cpp:19:7: error: 'k' was not declared in this scope {for(k=1;k<=n;k++) ^ produs_matrice.cpp:20:22: error: 'a' was not declared in this scope c[i][j]=c[i][j]+a[i][k]*b[k][j]; ^ produs_matrice.cpp:20:30: error: 'b' was not declared in this scope c[i][j]=c[i][j]+a[i][k]*b[k][j]; ^ produs_matrice.cpp:22:7: error: 'i' was not declared in this scope for(i=1;i<=m;i++) ^ produs_matrice.cpp:23:7: error: 'j' was not declared in this scope {for(j=1;j<=p;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ă.