#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 | #50395776 | Utilizator | |
Fișier | produs_matrice.cpp | Dimensiune | 808 B |
Data încărcării | 08 Aprilie 2024, 10:09 | Scor / rezultat | Eroare de compilare |
produs_matrice.cpp:1:20: warning: extra tokens at end of #include directive [enabled by default] #include <iostream>#include <fstream>using namespace std;ifstream fin("produs_matrice.in");ofstream fout("produs_matrice.out");int a[101][101],b[101][101];long long c[101][101]; ^ produs_matrice.cpp:1:29: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] #include <iostream>#include <fstream>using namespace std;ifstream fin("produs_matrice.in");ofstream fout("produs_matrice.out");int a[101][101],b[101][101];long long c[101][101]; ^ produs_matrice.cpp: In function 'int main()': produs_matrice.cpp:5:5: error: 'fin' was not declared in this scope fin>>m>>n; ^ produs_matrice.cpp:8:18: error: 'a' was not declared in this scope fin>>a[i][j]; ^ produs_matrice.cpp:12:18: error: 'b' was not declared in this scope fin>>b[i][j]; ^ produs_matrice.cpp:18:35: error: 'a' was not declared in this scope { s=s+(a[i][j]*b[j][q]); ^ produs_matrice.cpp:18:43: error: 'b' was not declared in this scope { s=s+(a[i][j]*b[j][q]); ^ produs_matrice.cpp:19:26: error: 'c' was not declared in this scope } c[i][q]=s; ^ produs_matrice.cpp:22:13: error: 'fout' was not declared in this scope fout<<c[i][j]<<' '; ^ produs_matrice.cpp:22:19: error: 'c' was not declared in this scope fout<<c[i][j]<<' '; ^ produs_matrice.cpp:23:9: error: 'fout' was not declared in this scope 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ă.