Problem mate
User PlayVoltz
Submission Time 2023-10-20 21:45:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mate.cpp:11:15: error: wrong number of template arguments (1, should be 2)
11 | queue<pair<pii> > q;
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from mate.cpp: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
| ^~~~
mate.cpp:11:17: error: template argument 1 is invalid
11 | queue<pair<pii> > q;
| ^
mate.cpp:11:17: error: template argument 2 is invalid
mate.cpp: In function ‘int main()’:
mate.cpp:31:7: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
31 | q.push(mp(0, mp(i, j)));
| ^