Main.cpp: In function 'void djt()':
Main.cpp:34:17: error: 'groups' was not declared in this scope
34 | if (j + 1 < groups[i].size())
| ^~~~~~
Main.cpp:35:16: error: no matching function for call to 'std::priority_queue<temptation>::push(<brace-enclosed initializer list>)'
35 | pq.push({val + groups[i][j+1] - groups[i][j], i, j + 1});
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/queue:66,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:157,
from Main.cpp:1:
/usr/include/c++/13/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = temptation; _Sequence = std::vector<temptation, std::allocator<temptation> >; _Compare = std::less<temptation>; value_type = temptation]'
738 | push(const value_type& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:738:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<temptation>::value_type&' {aka 'const temptation&'}
738 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = temptation; _Sequence = std::vector<temptation, std::allocator<temptation> >; _Compare = std::less<temptation>; value_type = temptation]'
746 | push(value_type&& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:746:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<temptation>::value_type&&' {aka 'temptation&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Main.cpp:40:24: error: 'groups' was not declared in this scope
40 | pq.push({val + groups[i+1][1] - groups[i+1][0], i + 1, 1});
| ^~~~~~
Main.cpp:40:16: error: no matching function for call to 'std::priority_queue<temptation>::push(<brace-enclosed initializer list>)'
40 | pq.push({val + groups[i+1][1] - groups[i+1][0], i + 1, 1});
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = temptation; _Sequence = std::vector<temptation, std::allocator<temptation> >; _Compare = std::less<temptation>; value_type = temptation]'
738 | push(const value_type& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:738:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<temptation>::value_type&' {aka 'const temptation&'}
738 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = temptation; _Sequence = std::vector<temptation, std::allocator<temptation> >; _Compare = std::less<temptation>; value_type = temptation]'
746 | push(value_type&& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:746:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<temptation>::value_type&&' {aka 'temptation&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Main.cpp:43:20: error: no matching function for call to 'std::priority_queue<temptation>::push(<brace-enclosed initializer list>)'
43 | pq.push({val - (groups[i][1] - groups[i][0]) + (groups[i+1][1] - groups[i+1][0]), i + 1, 1});
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = temptation; _Sequence = std::vector<temptation, std::allocator<temptation> >; _Compare = std::less<temptation>; value_type = temptation]'
738 | push(const value_type& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:738:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<temptation>::value_type&' {aka 'const temptation&'}
738 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = temptation; _Sequence = std::vector<temptation, std::allocator<temptation> >; _Compare = std::less<temptation>; value_type = temptation]'
746 | push(value_type&& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:746:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<temptation>::value_type&&' {aka 'temptation&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~