foo.cc: In function 'int main()':
foo.cc:20:27: error: wrong number of template arguments (1, should be 2)
20 | deque<pair<pair<int,int> > >dpt;
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: provided for 'template<class _T1, class _T2> struct std::pair'
208 | struct pair
| ^~~~
foo.cc:20:29: error: template argument 1 is invalid
20 | deque<pair<pair<int,int> > >dpt;
| ^
foo.cc:20:29: error: template argument 2 is invalid
foo.cc:21:6: error: request for member 'push_back' in 'dpt', which is of non-class type 'int'
21 | dpt.push_back({{sx,sy},0});
| ^~~~~~~~~
foo.cc:22:13: error: request for member 'empty' in 'dpt', which is of non-class type 'int'
22 | while(!dpt.empty()){
| ^~~~~
foo.cc:23:15: error: request for member 'front' in 'dpt', which is of non-class type 'int'
23 | auto hd=dpt.front;
| ^~~~~
foo.cc:24:7: error: request for member 'pop_front' in 'dpt', which is of non-class type 'int'
24 | dpt.pop_front();
| ^~~~~~~~~
foo.cc:31:15: error: request for member 'push_front' in 'dpt', which is of non-class type 'int'
31 | if(!ds)dpt.push_front({{nx,ny},hd.second+ds});
| ^~~~~~~~~~
foo.cc:32:13: error: request for member 'push_back' in 'dpt', which is of non-class type 'int'
32 | else dpt.push_back({{nx,ny},hd.second+ds});
| ^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务