meetings.cpp:9:1: error: reference to 'data' is ambiguous
9 | data sp[N][LG];
| ^~~~
In file included from /usr/include/c++/13/vector:69,
from meetings.h:3,
from meetings.cpp:1:
/usr/include/c++/13/bits/range_access.h:346:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
346 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
/usr/include/c++/13/bits/range_access.h:336:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
336 | data(_Tp (&__array)[_Nm]) noexcept
| ^~~~
/usr/include/c++/13/bits/range_access.h:325:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
325 | data(const _Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
/usr/include/c++/13/bits/range_access.h:314:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
314 | data(_Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
meetings.cpp:4:8: note: 'struct data'
4 | struct data
| ^~~~
meetings.cpp:10:1: error: reference to 'data' is ambiguous
10 | data merge(data a,data b)
| ^~~~
/usr/include/c++/13/bits/range_access.h:346:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
346 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
/usr/include/c++/13/bits/range_access.h:336:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
336 | data(_Tp (&__array)[_Nm]) noexcept
| ^~~~
/usr/include/c++/13/bits/range_access.h:325:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
325 | data(const _Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
/usr/include/c++/13/bits/range_access.h:314:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
314 | data(_Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
meetings.cpp:4:8: note: 'struct data'
4 | struct data
| ^~~~
meetings.cpp: In function 'int get(int, int)':
meetings.cpp:23:3: error: reference to 'data' is ambiguous
23 | data cur={0,0,0,0};
| ^~~~
/usr/include/c++/13/bits/range_access.h:346:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
346 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
/usr/include/c++/13/bits/range_access.h:336:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
336 | data(_Tp (&__array)[_Nm]) noexcept
| ^~~~
/usr/include/c++/13/bits/range_access.h:325:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
325 | data(const _Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
/usr/include/c++/13/bits/range_access.h:314:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
314 | data(_Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
meetings.cpp:4:8: note: 'struct data'
4 | struct data
| ^~~~
meetings.cpp:28:7: error: 'cur' was not declared in this scope
28 | cur=merge(cur,sp[ql][j]);
| ^~~
meetings.cpp:28:21: error: 'sp' was not declared in this scope
28 | cur=merge(cur,sp[ql][j]);
| ^~
meetings.cpp:28:11: error: 'merge' was not declared in this scope
28 | cur=merge(cur,sp[ql][j]);
| ^~~~~
meetings.cpp:32:10: error: 'cur' was not declared in this scope
32 | return cur.mx;
| ^~~
meetings.cpp: In function 'std::vector<long long int> minimum_costs(std::vector<int>, std::vector<int>, std::vector<int>)':
meetings.cpp:47:9: error: 'sp' was not declared in this scope
47 | sp[i][0]={0,0,0,1};
| ^~
meetings.cpp:51:9: error: 'sp' was not declared in this scope
51 | sp[i][0]={1,1,1,1};
| ^~
meetings.cpp:57:9: error: 'sp' was not declared in this scope
57 | sp[i][j]=merge(sp[i][j-1],sp[i+(1<<(j-1))][j-1]);
| ^~
meetings.cpp:57:18: error: 'merge' was not declared in this scope
57 | sp[i][j]=merge(sp[i][j-1],sp[i+(1<<(j-1))][j-1]);
| ^~~~~