#3935
determinanta
Se consideră o matrice cu n
linii şi n
coloane şi elemente egale cu 0
sau 1
. Să se calculeze determinantul matricei.
Problema | determinanta | Operații I/O |
determinanta.in /determinanta.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50355713 | Utilizator | |
Fișier | determinanta.cpp | Dimensiune | 1013 B |
Data încărcării | 05 Aprilie 2024, 19:21 | Scor / rezultat | Eroare de compilare |
determinanta.cpp: In function 'int main()': determinanta.cpp:28:5: error: reference to 'cin' is ambiguous cin >> n; ^ determinanta.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("determinanta.in"); ^ In file included from determinanta.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ determinanta.cpp:31:9: error: reference to 'cin' is ambiguous cin >> l >> c; ^ determinanta.cpp:5:10: note: candidates are: std::ifstream cin ifstream cin("determinanta.in"); ^ In file included from determinanta.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ determinanta.cpp:39:9: error: reference to 'cout' is ambiguous cout << "0"; ^ determinanta.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("determinanta.out"); ^ In file included from determinanta.cpp:2:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ determinanta.cpp:50:9: error: reference to 'cout' is ambiguous cout << "-1"; ^ determinanta.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("determinanta.out"); ^ In file included from determinanta.cpp:2:0: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ determinanta.cpp:52:9: error: reference to 'cout' is ambiguous cout << "1"; ^ determinanta.cpp:6:10: note: candidates are: std::ofstream cout ofstream cout("determinanta.out"); ^ In file included from determinanta.cpp:2:0: /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 determinanta 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ă.