Borderou de evaluare (job #805313)

Utilizator avatar Andrei_Rizea Andrei Rizea Andrei_Rizea IP ascuns
Problemă Numărare (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 21 ian. 2025 17:51:46 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:5: error: 'f' was not declared in this scope 11 | f.get(c); | ^ main.cpp:35:15: error: no matching function for call to 'get(char&)' 35 | f, get(c); | ~~~^~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_algobase.h:64, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/string:51, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/locale_classes.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/ios_base.h:41, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/ios:44, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/ostream:40, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/iostream:41, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1250:5: note: candidate: 'template<unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(pair<_Tp1, _Tp2>&)' 1250 | get(pair<_Tp1, _Tp2>& __in) noexcept | ^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1250:5: note: template argument deduction/substitution failed: main.cpp:35:15: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'char' 35 | f, get(c); | ~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1255:5: note: candidate: 'template<unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(pair<_Tp1, _Tp2>&&)' 1255 | get(pair<_Tp1, _Tp2>&& __in) noexcept | ^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1255:5: note: template argument deduction/substitution failed: main.cpp:35:15: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'char' 35 | f, get(c); | ~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1260:5: note: candidate: 'template<unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const pair<_Tp1, _Tp2>&)' 1260 | get(const pair<_Tp1, _Tp2>& __in) noexcept | ^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1260:5: note: template argument deduction/substitution failed: main.cpp:35:15: note: mismatched types 'const std::pair<_Tp1, _Tp2>' and 'char' 35 | f, get(c); | ~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1265:5: note: candidate: 'template<unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const pair<_Tp1, _Tp2>&&)' 1265 | get(const pair<_Tp1, _Tp2>&& __in) noexcept | ^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:1265:5: note: template argument deduction/substitution failed: main.cpp:35:15: note: mismatched types 'const std::pair<_Tp1, _Tp2>' and 'char' 35 | f, get(c); | ~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:122:5: note: candidate: 'template<unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(tuple<_Elements ...>&)' 122 | get(tuple<_Elements...>& __t) noexcept; | ^~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_pair.h:122:5: note: template argument deduction/substitution failed: main.cpp:35:15: note: mismatched types 'std::tuple<_Elements ...>' and 'char' 35 | f, get(c); | ~~~^~~