consul.cpp: In function 'void solve(int)':
consul.cpp:11:20: error: could not convert 'mp.std::map<int, int>::find(x)' from 'std::map<int, int>::iterator' {aka 'std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::iterator'} to 'bool'
11 | if (mp.find(x)) {
| ~~~~~~~^~~
| |
| std::map<int, int>::iterator {aka std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int> >, std::less<int>, std::allocator<std::pair<const int, int> > >::iterator}