lang.cpp: In function 'long long int calc(int)':
lang.cpp:24:19: error: reference to 'ref' is ambiguous
24 | if (ref[lan][glo[i]] < 5)
| ^~~
In file included from /usr/include/c++/9/functional:58,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from lang.cpp:1:
/usr/include/c++/9/bits/refwrap.h:370:5: note: candidates are: 'template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)'
370 | ref(reference_wrapper<_Tp> __t) noexcept
| ^~~
/usr/include/c++/9/bits/refwrap.h:362:10: note: 'template<class _Tp> void std::ref(const _Tp&&)'
362 | void ref(const _Tp&&) = delete;
| ^~~
/usr/include/c++/9/bits/refwrap.h:352:5: note: 'template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)'
352 | ref(_Tp& __t) noexcept
| ^~~
lang.cpp:10:5: note: 'int ref [57][66000]'
10 | int ref[Lang + 1][66000];
| ^~~
lang.cpp: In function 'void excerpt(int*)':
lang.cpp:50:15: error: reference to 'ref' is ambiguous
50 | ref[z][ex[i]]++;
| ^~~
In file included from /usr/include/c++/9/functional:58,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:71,
from lang.cpp:1:
/usr/include/c++/9/bits/refwrap.h:370:5: note: candidates are: 'template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)'
370 | ref(reference_wrapper<_Tp> __t) noexcept
| ^~~
/usr/include/c++/9/bits/refwrap.h:362:10: note: 'template<class _Tp> void std::ref(const _Tp&&)'
362 | void ref(const _Tp&&) = delete;
| ^~~
/usr/include/c++/9/bits/refwrap.h:352:5: note: 'template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)'
352 | ref(_Tp& __t) noexcept
| ^~~
lang.cpp:10:5: note: 'int ref [57][66000]'
10 | int ref[Lang + 1][66000];
| ^~~