Borderou de evaluare (job #2605165)
Utilizator | Data | 24 aprilie 2020 16:03:13 | |
---|---|---|---|
Problema | Spiridusi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:121:62: error: no matching function for call to 'get(Node*&, int&, int&)'
bool ok = (get(root_c, mid, r) > c);
^
main.cpp:60:5: note: candidate: int get(Node*)
int get(Node *cur) {
^~~
main.cpp:60:5: note: candidate expects 1 argument, 3 provided
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from main.cpp:1:
/usr/include/c++/6/tuple:1305:5: note: candidate: template<class _Tp, class ... _Types> constexpr const _Tp& std::get(const std::tuple<_Elements ...>&)
get(const tuple<_Types...>& __t) noexcept
^~~
/usr/include/c++/6/tuple:1305:5: note: template argument deduction/substitution failed:
main.cpp:121:62: note: mismatched types 'const std::tuple<_Elements ...>' and 'Node*'
bool ok = (get(root_c, mid, r) > c);
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from main.cpp:1:
/usr/include/c++/6/tuple:1299:5: note: candidate: template<class _Tp, class ... _Types> constexpr _Tp&& std::get(std::tuple<_Elements ...>&&)
get(tuple<_Types...>&& __t) noexcept
^~~
/usr/include/c++/6/tuple:1299:5: note: template argument deduction/substitution failed:
main.cpp:121:62: note: mismatched types 'std::tuple<_Elements ...>' and 'Node*'
bool ok = (get(root_c, mid, r) > c);
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from main.cpp:1:
/usr/include/c++/6/tuple:1293:5: note: candidate: template<class _Tp, class ... _Types> constexpr _Tp& std::get(std::tuple<_Elements ...>&)
get(tuple<_Types...>& __t) noexcept
^~~
/usr/include/c++/6/tuple:1293:5: note: template argument deduction/substitution failed:
main.cpp:121:62: note: mismatched types 'std::tuple<_Elements ...>' and 'Node*'
bool ok = (get(root_c, mid, r) > c);
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from main.cpp:1:
/usr/include/c++/6/tuple:1270:5: note: candidate: template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(std::tuple<_Elements ...>&&)
get(tuple<_Elements...>&& __t) noexcept
^~~
/usr/include/c++/6/tuple:1270:5: note: template argument deduction/substitution failed:
main.cpp:121:62: note: mismatched types 'std::tuple<_Elements ...>' and 'Node*'
bool ok = (get(root_c, mid, r) > c);
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !