consul.cpp: In function 'void solve(int)':
consul.cpp:34:10: error: 'pii' was not declared in this scope
34 | for (pii & p : mp) {
| ^~~
consul.cpp:34:18: error: found ':' in nested-name-specifier, expected '::'
34 | for (pii & p : mp) {
| ^
| ::
consul.cpp:34:16: error: 'p' is not a class, namespace, or enumeration
34 | for (pii & p : mp) {
| ^
In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from consul.cpp:1:
consul.cpp:41:5: error: could not convert '(false ? (void)0 : __assert_fail(((const char*)"0"), ((const char*)"consul.cpp"), 41, ((const char*)(& __PRETTY_FUNCTION__))))' from 'void' to 'bool'
41 | assert(0);
| ^~~~~~
| |
| void
consul.cpp:42:1: error: expected primary-expression before '}' token
42 | }
| ^
consul.cpp:41:15: error: expected ')' before '}' token
41 | assert(0);
| ^
| )
42 | }
| ~
consul.cpp:34:9: note: to match this '('
34 | for (pii & p : mp) {
| ^
consul.cpp:42:1: error: expected primary-expression before '}' token
42 | }
| ^