council.cpp: In function 'void trans(int, int, int, int, int, int)':
council.cpp:17:20: error: conflicting declaration 'std::pair<int, int> h'
17 | pair<int, int> h = {-1, -1}, res = h;
| ^
council.cpp:13:9: note: previous declaration as 'int h'
13 | int h = dd[z][t].size();
| ^
council.cpp:17:40: error: conversion from 'int' to non-scalar type 'std::pair<int, int>' requested
17 | pair<int, int> h = {-1, -1}, res = h;
| ^
council.cpp:19:25: error: request for member 'first' in 'h', which is of non-class type 'int'
19 | if (w.first > h.first) h = w;
| ^~~~~
council.cpp:19:36: error: cannot convert 'std::pair<int, int>' to 'int' in assignment
19 | if (w.first > h.first) h = w;
| ^
| |
| std::pair<int, int>
council.cpp:22:50: error: request for member 'second' in 'h', which is of non-class type 'int'
22 | if (w.first > res.first && w.second != h.second) {
| ^~~~~~
council.cpp:27:25: error: no matching function for call to 'std::deque<std::pair<int, int> >::push_back(int&)'
27 | dd[z][t].push_back(h);
| ^
In file included from /usr/include/c++/10/deque:67,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:68,
from council.cpp:1:
/usr/include/c++/10/bits/stl_deque.h:1493:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::value_type = std::pair<int, int>]'
1493 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_deque.h:1493:35: note: no known conversion for argument 1 from 'int' to 'const value_type&' {aka 'const std::pair<int, int>&'}
1493 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_deque.h:1508:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::value_type = std::pair<int, int>]'
1508 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_deque.h:1508:30: note: no known conversion for argument 1 from 'int' to 'std::deque<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
1508 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
council.cpp:29:25: warning: comparison of integer expressions of different signedness: 'std::deque<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
29 | if (dd[z][t].size() != h) q.push({w, {z, t}});
| ~~~~~~~~~~~~~~~~^~~~