Borderou de evaluare (job #3132506)
Utilizator | Data | 22 mai 2023 21:55:16 | |
---|---|---|---|
Problema | Hotel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:21:1: error: reference to 'data' is ambiguous
21 | data combine(const data &a, const data &b, int tm, int tl, int tr){
| ^~~~
In file included from /usr/include/c++/12.2.1/string:52,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/range_access.h:343:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
343 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:333:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
333 | data(_Tp (&__array)[_Nm]) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:322:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
322 | data(const _Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:311:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
311 | data(_Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
main.cpp:12:8: note: 'struct data'
12 | struct data {
| ^~~~
main.cpp: In function 'void build(int, int, int)':
main.cpp:52:16: error: 'combine' was not declared in this scope
52 | t[v] = combine(t[v << 1], t[v << 1 | 1], tm, tl, tr);
| ^~~~~~~
main.cpp: In function 'void update(int, int, int, int, int, int)':
main.cpp:68:16: error: 'combine' was not declared in this scope
68 | t[v] = combine(t[v << 1], t[v << 1 | 1], tm, tl, tr);
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !