#4750
GOT_S9
La cererea telespectatorilor, producătorii filmului Game of Thrones au decis să o învie pe Daenerys și să filmeze sezonul 9! Stați așa! Chiar ați crezut? Ce ușor e păcălită lumea în ziua de azi! Dar nu părăsiți pagina, deoarece vă puteți întâlni cu personajele preferate sub forma unei probleme de programare. E mai bine decât nimic, nu-i așa?
Problema | GOT_S9 | Operații I/O |
![]() got_s9.in /got_s9.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57570830 | Utilizator | |
Fișier | got_s9.cpp | Dimensiune | 1.84 KB |
Data încărcării | 05 Aprilie 2025, 12:23 | Scor / rezultat | Eroare de compilare |
got_s9.cpp: In function 'void fill1(int, int)': got_s9.cpp:19:53: error: no matching function for call to 'fill(int, int)' if(i > 1 && j > 1 && A[i-1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:19:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:19:53: note: candidate expects 3 arguments, 2 provided if(i > 1 && j > 1 && A[i-1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:20:53: error: no matching function for call to 'fill(int, int)' if(i > 1 && j < m && A[i-1][j+1]>0) fill(i-1,j+1); ^ got_s9.cpp:20:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:20:53: note: candidate expects 3 arguments, 2 provided if(i > 1 && j < m && A[i-1][j+1]>0) fill(i-1,j+1); ^ got_s9.cpp:21:53: error: no matching function for call to 'fill(int, int)' if(i < n && j > 1 && A[i+1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:21:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:21:53: note: candidate expects 3 arguments, 2 provided if(i < n && j > 1 && A[i+1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:22:53: error: no matching function for call to 'fill(int, int)' if(i < n && j < m && A[i+1][j+1]>0) fill(i-1,j-1); ^ got_s9.cpp:22:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:22:53: note: candidate expects 3 arguments, 2 provided if(i < n && j < m && A[i+1][j+1]>0) fill(i-1,j-1); ^ got_s9.cpp: In function 'void fill2(int, int)': got_s9.cpp:34:53: error: no matching function for call to 'fill(int, int)' if(i > 1 && j > 1 && A[i-1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:34:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:34:53: note: candidate expects 3 arguments, 2 provided if(i > 1 && j > 1 && A[i-1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:35:53: error: no matching function for call to 'fill(int, int)' if(i > 1 && j < m && A[i-1][j+1]>0) fill(i-1,j+1); ^ got_s9.cpp:35:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:35:53: note: candidate expects 3 arguments, 2 provided if(i > 1 && j < m && A[i-1][j+1]>0) fill(i-1,j+1); ^ got_s9.cpp:36:53: error: no matching function for call to 'fill(int, int)' if(i < n && j > 1 && A[i+1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:36:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:36:53: note: candidate expects 3 arguments, 2 provided if(i < n && j > 1 && A[i+1][j-1]>0) fill(i-1,j-1); ^ got_s9.cpp:37:53: error: no matching function for call to 'fill(int, int)' if(i < n && j < m && A[i+1][j+1]>0) fill(i-1,j-1); ^ got_s9.cpp:37:53: note: candidate is: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from got_s9.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: got_s9.cpp:37:53: note: candidate expects 3 arguments, 2 provided if(i < n && j < m && A[i+1][j+1]>0) fill(i-1,j-1); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GOT_S9 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ă.