In file included from /usr/include/c++/9/vector:67,
from fortune_telling2.cpp:4:
/usr/include/c++/9/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>':
/usr/include/c++/9/bits/stl_vector.h:386:11: required from 'class std::vector<std::pair<long long int, long long int>, long long int>'
fortune_telling2.cpp:27:58: required from here
/usr/include/c++/9/bits/stl_vector.h:84:21: error: 'long long int' is not a class, struct, or union type
84 | rebind<_Tp>::other _Tp_alloc_type;
| ^~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:86:9: error: 'long long int' is not a class, struct, or union type
86 | pointer;
| ^~~~~~~
/usr/include/c++/9/bits/stl_vector.h: In instantiation of 'class std::vector<std::pair<long long int, long long int>, long long int>':
fortune_telling2.cpp:27:58: required from here
/usr/include/c++/9/bits/stl_vector.h:387:5: error: 'long long int' is not a class, struct, or union type
387 | {
| ^
/usr/include/c++/9/bits/stl_vector.h:471:20: error: no members matching 'std::vector<std::pair<long long int, long long int>, long long int>::_Base {aka std::_Vector_base<std::pair<long long int, long long int>, long long int>}::_M_allocate' in 'std::vector<std::pair<long long int, long long int>, long long int>::_Base' {aka 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>'}
471 | using _Base::_M_allocate;
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:472:20: error: no members matching 'std::vector<std::pair<long long int, long long int>, long long int>::_Base {aka std::_Vector_base<std::pair<long long int, long long int>, long long int>}::_M_deallocate' in 'std::vector<std::pair<long long int, long long int>, long long int>::_Base' {aka 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>'}
472 | using _Base::_M_deallocate;
| ^~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:474:20: error: no members matching 'std::vector<std::pair<long long int, long long int>, long long int>::_Base {aka std::_Vector_base<std::pair<long long int, long long int>, long long int>}::_M_get_Tp_allocator' in 'std::vector<std::pair<long long int, long long int>, long long int>::_Base' {aka 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>'}
474 | using _Base::_M_get_Tp_allocator;
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = std::pair<long long int, long long int>; _Alloc = long long int]':
fortune_telling2.cpp:28:16: recursively required from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = std::pair<long long int, long long int>; _Alloc = long long int]'
fortune_telling2.cpp:28:16: required from here
/usr/include/c++/9/bits/stl_vector.h:128:2: error: 'long long int' is not a class, struct, or union type
128 | _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
| ^~~~~~~~~~~~
fortune_telling2.cpp: In function 'long long int Find(long long int, long long int, long long int)':
fortune_telling2.cpp:43:47: error: 'class std::vector<std::pair<long long int, long long int>, long long int>' has no member named 'upper_bound'
43 | if(Node[here].all.empty()||Node[here].all.upper_bound(make_pair(y+1,-1))==Node[here].all.begin()) t=0;
| ^~~~~~~~~~~
fortune_telling2.cpp:43:94: error: 'class std::vector<std::pair<long long int, long long int>, long long int>' has no member named 'begin'
43 | if(Node[here].all.empty()||Node[here].all.upper_bound(make_pair(y+1,-1))==Node[here].all.begin()) t=0;
| ^~~~~
fortune_telling2.cpp:47:37: error: 'class std::vector<std::pair<long long int, long long int>, long long int>' has no member named 'upper_bound'
47 | auto a=*prev(Node[here].all.upper_bound(make_pair(y+1,-1)));
| ^~~~~~~~~~~
fortune_telling2.cpp: In function 'void add(long long int, long long int, long long int, long long int, long long int, long long int)':
fortune_telling2.cpp:62:23: error: no match for 'operator[]' (operand types are 'std::vector<std::pair<long long int, long long int>, long long int>' and 'std::pair<long long int, long long int>')
62 | Node[here].all[make_pair(l2,r2)]=con;
| ^
fortune_telling2.cpp:58:15: warning: unused variable 't' [-Wunused-variable]
58 | long long t;
| ^
fortune_telling2.cpp: In function 'void BFS(long long int)':
fortune_telling2.cpp:104:25: error: 'class std::vector<std::pair<long long int, long long int>, long long int>' has no member named 'begin'
104 | sort(Node[here].all.begin(),Node[here].all.end());
| ^~~~~
fortune_telling2.cpp:104:48: error: 'class std::vector<std::pair<long long int, long long int>, long long int>' has no member named 'end'
104 | sort(Node[here].all.begin(),Node[here].all.end());
| ^~~
In file included from /usr/include/c++/9/vector:67,
from fortune_telling2.cpp:4:
/usr/include/c++/9/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = std::pair<long long int, long long int>; _Alloc = long long int]':
/usr/include/c++/9/bits/stl_vector.h:285:7: required from here
/usr/include/c++/9/bits/stl_vector.h:130:19: error: 'long long int' is not a class, struct, or union type
130 | : _Tp_alloc_type()
| ^
/usr/include/c++/9/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::pair<long long int, long long int>; _Alloc = long long int]':
/usr/include/c++/9/bits/stl_vector.h:484:7: required from here
/usr/include/c++/9/bits/stl_vector.h:332:24: error: 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>::_Vector_impl' has no member named '_M_start'
332 | _M_deallocate(_M_impl._M_start,
| ~~~~~~~~^~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:333:17: error: 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>::_Vector_impl' has no member named '_M_end_of_storage'
333 | _M_impl._M_end_of_storage - _M_impl._M_start);
| ~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:333:45: error: 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>::_Vector_impl' has no member named '_M_start'
333 | _M_impl._M_end_of_storage - _M_impl._M_start);
| ~~~~~~~~^~~~~~~~
/usr/include/c++/9/bits/stl_vector.h: In instantiation of 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::pair<long long int, long long int>; _Alloc = long long int]':
fortune_telling2.cpp:22:8: required from here
/usr/include/c++/9/bits/stl_vector.h:677:30: error: 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>::_Vector_impl' has no member named '_M_start'
677 | std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
| ~~~~~~~~~~~~~~^~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:677:54: error: 'struct std::_Vector_base<std::pair<long long int, long long int>, long long int>::_Vector_impl' has no member named '_M_finish'
677 | std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
| ~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:678:28: error: '_M_get_Tp_allocator' was not declared in this scope; did you mean 'get_allocator'?
678 | _M_get_Tp_allocator());
| ~~~~~~~~~~~~~~~~~~~^~
| get_allocator
fortune_telling2.cpp: In function 'int main()':
fortune_telling2.cpp:111:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
111 | scanf("%lld %lld",&N,&K);
| ~~~~~^~~~~~~~~~~~~~~~~~~
fortune_telling2.cpp:112:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
112 | for(i=0;i<N;i++) scanf("%lld %lld",&x[i],&y[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
fortune_telling2.cpp:115:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
115 | scanf("%lld",&all[i].first);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~