malnarisc.cpp: In function 'int main()':
malnarisc.cpp:20:47: error: no matching function for call to 'std::vector<std::vector<std::pair<long long int, long long int> > >::push_back(std::vector<std::pair<long long int, long long int> >*)'
20 | ans.push_back(new vector<pair<ll,ll> >);
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from malnarisc.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::vector<std::pair<long long int, long long int> > >; std::vector<_Tp, _Alloc>::value_type = std::vector<std::pair<long long int, long long int> >]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from 'std::vector<std::pair<long long int, long long int> >*' to 'const value_type&' {aka 'const std::vector<std::pair<long long int, long long int> >&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::vector<std::pair<long long int, long long int> > >; std::vector<_Tp, _Alloc>::value_type = std::vector<std::pair<long long int, long long int> >]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from 'std::vector<std::pair<long long int, long long int> >*' to 'std::vector<std::vector<std::pair<long long int, long long int> > >::value_type&&' {aka 'std::vector<std::pair<long long int, long long int> >&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
malnarisc.cpp:32:49: error: no matching function for call to 'std::vector<std::vector<std::pair<long long int, long long int> > >::push_back(std::pair<int, int>)'
32 | ans.push_back(make_pair(i+1,j+1));
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from malnarisc.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::vector<std::pair<long long int, long long int> > >; std::vector<_Tp, _Alloc>::value_type = std::vector<std::pair<long long int, long long int> >]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'const value_type&' {aka 'const std::vector<std::pair<long long int, long long int> >&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::vector<std::pair<long long int, long long int> > >; std::vector<_Tp, _Alloc>::value_type = std::vector<std::pair<long long int, long long int> >]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'std::vector<std::vector<std::pair<long long int, long long int> > >::value_type&&' {aka 'std::vector<std::pair<long long int, long long int> >&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
malnarisc.cpp:39:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::pair<long long int, long long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int i=0;i<ans.size();i++){
| ~^~~~~~~~~~~
malnarisc.cpp:40:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int j=0;j<ans[i].size();j++){
| ~^~~~~~~~~~~~~~