#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 | #54237202 | Utilizator | |
Fișier | produs_matrice.cpp | Dimensiune | 785 B |
Data încărcării | 23 Noiembrie 2024, 02:03 | Scor / rezultat | Eroare de compilare |
produs_matrice.cpp: In function 'int main()': produs_matrice.cpp:9:5: error: reference to 'cin' is ambiguous cin >> m >> n; ^ produs_matrice.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("produs_matrice.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from produs_matrice.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ produs_matrice.cpp:12:13: error: reference to 'cin' is ambiguous cin >> a[i][j] ; ^ produs_matrice.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("produs_matrice.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from produs_matrice.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ produs_matrice.cpp:13:5: error: reference to 'cin' is ambiguous cin >> p; ^ produs_matrice.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("produs_matrice.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from produs_matrice.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ produs_matrice.cpp:16:13: error: reference to 'cin' is ambiguous cin >> b[i][j] ; ^ produs_matrice.cpp:3:10: note: candidates are: std::ifstream cin ifstream cin("produs_matrice.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from produs_matrice.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ produs_matrice.cpp:24:13: error: reference to 'cout' is ambiguous cout << c[i][j] << " " ; ^ produs_matrice.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("produs_matrice.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from produs_matrice.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ produs_matrice.cpp:25:10: error: reference to 'cout' is ambiguous cout << '\n'; ^ produs_matrice.cpp:4:10: note: candidates are: std::ofstream cout ofstream cout("produs_matrice.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from produs_matrice.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
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ă.