fountain.cpp: In function 'int main()':
fountain.cpp:98:13: error: 'INT_MAX' was not declared in this scope
98 | s.push({INT_MAX,n+1});
| ^~~~~~~
fountain.cpp:21:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
20 | #include <cstring>
+++ |+#include <climits>
21 | //#define int long long
fountain.cpp:98:25: error: no matching function for call to 'std::stack<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
98 | s.push({INT_MAX,n+1});
| ^
In file included from /usr/include/c++/10/stack:61,
from fountain.cpp:17:
/usr/include/c++/10/bits/stl_stack.h:239:7: note: candidate: 'void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::stack<_Tp, _Sequence>::value_type = std::pair<int, int>]'
239 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_stack.h:239:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<int, int>&'}
239 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_stack.h:244:7: note: candidate: 'void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::stack<_Tp, _Sequence>::value_type = std::pair<int, int>]'
244 | push(value_type&& __x)
| ^~~~
/usr/include/c++/10/bits/stl_stack.h:244:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::stack<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
244 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~