Problema | Matrice_Rara | Operații I/O |
matrice_rara.in /matrice_rara.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55041257 | Utilizator | |
Fișier | matrice_rara.cpp | Dimensiune | 1.07 KB |
Data încărcării | 17 Decembrie 2024, 23:28 | Scor / rezultat | Eroare de compilare |
matrice_rara.cpp: In function 'int main()': matrice_rara.cpp:30:7: error: reference to 'less' is ambiguous if( less(s2[j], s1[i]) ) ^ matrice_rara.cpp:13:6: note: candidates are: bool less(mat, mat) bool less(mat a, mat b) ^ In file included from /usr/include/c++/4.8/string:48:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from matrice_rara.cpp:1: /usr/include/c++/4.8/bits/stl_function.h:231:12: note: template<class _Tp> struct std::less struct less : public binary_function<_Tp, _Tp, bool> ^ matrice_rara.cpp:32:12: error: reference to 'less' is ambiguous else if( less(s1[i], s2[j]) ) ^ matrice_rara.cpp:13:6: note: candidates are: bool less(mat, mat) bool less(mat a, mat b) ^ In file included from /usr/include/c++/4.8/string:48:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from matrice_rara.cpp:1: /usr/include/c++/4.8/bits/stl_function.h:231:12: note: template<class _Tp> struct std::less struct less : public binary_function<_Tp, _Tp, bool> ^ matrice_rara.cpp:19:20: warning: unused variable 'x' [-Wunused-variable] int n, m, N1, N2, x, nr = 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice_Rara 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ă.