lang.cpp: In function 'void excerpt(int*)':
lang.cpp:157:25: error: 'k' was not declared in this scope
157 | cnt += a[i][k];
| ^
In file included from /usr/include/c++/10/set:60,
from lang.cpp:103:
/usr/include/c++/10/bits/stl_tree.h: In instantiation of 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&) const [with _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::const_iterator]':
/usr/include/c++/10/bits/stl_set.h:749:25: required from 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::count(const key_type&) const [with _Key = long long unsigned int; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = long long unsigned int]'
lang.cpp:154:33: required from here
/usr/include/c++/10/bits/stl_tree.h:2568:33: error: expression cannot be used as a function
2568 | || _M_impl._M_key_compare(__k,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
2569 | _S_key(__j._M_node))) ? end() : __j;
| ~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_tree.h: In instantiation of 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_lower_bound(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Base_ptr, const _Key&) const [with _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::const_iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<long long unsigned int>*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Base_ptr = const std::_Rb_tree_node_base*]':
/usr/include/c++/10/bits/stl_tree.h:2566:42: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&) const [with _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::const_iterator]'
/usr/include/c++/10/bits/stl_set.h:749:25: required from 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::count(const key_type&) const [with _Key = long long unsigned int; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = long long unsigned int]'
lang.cpp:154:33: required from here
/usr/include/c++/10/bits/stl_tree.h:1951:29: error: expression cannot be used as a function
1951 | if (!_M_impl._M_key_compare(_S_key(__x), __k))
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_tree.h: In instantiation of 'std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos(const key_type&) [with _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = long long unsigned int]':
/usr/include/c++/10/bits/stl_tree.h:2154:4: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const long long unsigned int&; _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>]'
/usr/include/c++/10/bits/stl_set.h:512:25: required from 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = long long unsigned int; _Compare = int; _Alloc = std::allocator<long long unsigned int>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::const_iterator; std::set<_Key, _Compare, _Alloc>::value_type = long long unsigned int]'
lang.cpp:167:22: required from here
/usr/include/c++/10/bits/stl_tree.h:2101:35: error: expression cannot be used as a function
2101 | __comp = _M_impl._M_key_compare(__k, _S_key(__x));
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_tree.h:2112:33: error: expression cannot be used as a function
2112 | if (_M_impl._M_key_compare(_S_key(__j._M_node), __k))
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_tree.h: In instantiation of 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, _Arg&&, _NodeGen&) [with _Arg = const long long unsigned int&; _NodeGen = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::_Alloc_node; _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]':
/usr/include/c++/10/bits/stl_tree.h:2159:26: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const long long unsigned int&; _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>]'
/usr/include/c++/10/bits/stl_set.h:512:25: required from 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = long long unsigned int; _Compare = int; _Alloc = std::allocator<long long unsigned int>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::const_iterator; std::set<_Key, _Compare, _Alloc>::value_type = long long unsigned int]'
lang.cpp:167:22: required from here
/usr/include/c++/10/bits/stl_tree.h:1813:35: error: expression cannot be used as a function
1813 | || _M_impl._M_key_compare(_KeyOfValue()(__v),
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
1814 | _S_key(__p)));
| ~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_tree.h: In instantiation of 'static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<long long unsigned int>*]':
/usr/include/c++/10/bits/stl_tree.h:1951:36: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_lower_bound(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Base_ptr, const _Key&) const [with _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::const_iterator; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<long long unsigned int>*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Base_ptr = const std::_Rb_tree_node_base*]'
/usr/include/c++/10/bits/stl_tree.h:2566:42: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&) const [with _Key = long long unsigned int; _Val = long long unsigned int; _KeyOfValue = std::_Identity<long long unsigned int>; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree<long long unsigned int, long long unsigned int, std::_Identity<long long unsigned int>, int, std::allocator<long long unsigned int> >::const_iterator]'
/usr/include/c++/10/bits/stl_set.h:749:25: required from 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::count(const key_type&) const [with _Key = long long unsigned int; _Compare = int; _Alloc = std::allocator<long long unsigned int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = long long unsigned int]'
lang.cpp:154:33: required from here
/usr/include/c++/10/bits/stl_tree.h:772:16: error: static assertion failed: comparison object must be invocable with two arguments of key type
772 | static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~