#1461
Meteoriti
Ajutați-l pe vrăjitorul Arpsod să găsească aria maximă unei suprafețe de înălțime maximă, după căderea ploilor de meteoriți.
Problema | Meteoriti | Operații I/O |
meteoriti.in /meteoriti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 32 MB
|
Id soluție | #50689449 | Utilizator | |
Fișier | meteoriti.cpp | Dimensiune | 1.48 KB |
Data încărcării | 21 Aprilie 2024, 13:36 | Scor / rezultat | Eroare de compilare |
meteoriti.cpp: In function 'void Fill()': meteoriti.cpp:20:37: error: no matching function for call to 'fill(int&, int)' if(a[x][y+ 1]== maxi)fill(x, y+ 1); ^ meteoriti.cpp:20:37: 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 meteoriti.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: meteoriti.cpp:20:37: note: candidate expects 3 arguments, 2 provided if(a[x][y+ 1]== maxi)fill(x, y+ 1); ^ meteoriti.cpp:21:37: error: no matching function for call to 'fill(int, int&)' if(a[x+ 1][y]== maxi)fill(x+ 1, y); ^ meteoriti.cpp:21:37: 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 meteoriti.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: meteoriti.cpp:21:37: note: candidate expects 3 arguments, 2 provided if(a[x+ 1][y]== maxi)fill(x+ 1, y); ^ meteoriti.cpp:22:37: error: no matching function for call to 'fill(int&, int)' if(a[x][y- 1]== maxi)fill(x, y- 1); ^ meteoriti.cpp:22:37: 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 meteoriti.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: meteoriti.cpp:22:37: note: candidate expects 3 arguments, 2 provided if(a[x][y- 1]== maxi)fill(x, y- 1); ^ meteoriti.cpp:23:37: error: no matching function for call to 'fill(int, int&)' if(a[x- 1][y]== maxi)fill(x- 1, y); ^ meteoriti.cpp:23:37: 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 meteoriti.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: meteoriti.cpp:23:37: note: candidate expects 3 arguments, 2 provided if(a[x- 1][y]== maxi)fill(x- 1, y); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Meteoriti 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ă.