#1507
grupuri
Scrieți un program care, pentru o matrice pătratică dată, determină câte grupuri conţine.
Problema | grupuri | Operații I/O |
grupuri.in /grupuri.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54798028 | Utilizator | |
Fișier | grupuri.cpp | Dimensiune | 913 B |
Data încărcării | 09 Decembrie 2024, 09:22 | Scor / rezultat | Eroare de compilare |
grupuri.cpp: In function 'void fill(int, int, int&)': grupuri.cpp:23:27: error: no matching function for call to 'fill(int&, int&)' fill(in,jn); ^ grupuri.cpp:23:27: note: candidates are: grupuri.cpp:14:6: note: void fill(int, int, int&) void fill (int i , int j , int &c ) ^ grupuri.cpp:14:6: note: candidate expects 3 arguments, 2 provided In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from grupuri.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:721:5: note: template<class _ForwardIterator, class _Tp> void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) ^ /usr/include/c++/4.8/bits/stl_algobase.h:721:5: note: template argument deduction/substitution failed: grupuri.cpp:23:27: note: candidate expects 3 arguments, 2 provided fill(in,jn); ^ grupuri.cpp: In function 'int main()': grupuri.cpp:38:30: error: no matching function for call to 'fill(int&, int&)' fill(im , jm ); ^ grupuri.cpp:38:30: note: candidates are: grupuri.cpp:14:6: note: void fill(int, int, int&) void fill (int i , int j , int &c ) ^ grupuri.cpp:14:6: note: candidate expects 3 arguments, 2 provided In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from grupuri.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:721:5: note: template<class _ForwardIterator, class _Tp> void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) ^ /usr/include/c++/4.8/bits/stl_algobase.h:721:5: note: template argument deduction/substitution failed: grupuri.cpp:38:30: note: candidate expects 3 arguments, 2 provided fill(im , jm ); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema grupuri 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ă.