bomb.cpp: In function 'long long int ch(long long int)':
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:30: error: call to non-'constexpr' function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
18 | for(int k=0;j<v[mid].size();k++){
| ~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from bomb.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:918:7: note: 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]' declared here
918 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
bomb.cpp:18:17: error: 'j' was not declared in this scope
18 | for(int k=0;j<v[mid].size();k++){
| ^
bomb.cpp:20:26: error: 'class std::vector<std::pair<long long int, long long int> >' has no member named 'first'
20 | int i=v[mid].first;
| ^~~~~
bomb.cpp:21:26: error: 'class std::vector<std::pair<long long int, long long int> >' has no member named 'second'
21 | int j=v[mid].second;
| ^~~~~~
bomb.cpp:45:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
45 | ans=max(ans,i*j);
| ^~~
| abs