0_0_39066170_1769.cpp:8:18: error: reference to 'size' is ambiguous
8 | int ch[maxn][size];
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:53,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_39066170_1769.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39066170_1769.cpp:6:11: note: 'const int size'
6 | const int size=26;
| ^~~~
0_0_39066170_1769.cpp: In member function 'void Trie::init()':
0_0_39066170_1769.cpp:14:16: error: 'ch' was not declared in this scope
14 | memset(ch,0,sizeof(ch));
| ^~
0_0_39066170_1769.cpp: In member function 'void Trie::insert(char*, char*)':
0_0_39066170_1769.cpp:24:16: error: 'ch' was not declared in this scope; did you mean 'c'?
24 | if(ch[rt][c]==0){
| ^~
| c
0_0_39066170_1769.cpp:27:16: error: 'ch' was not declared in this scope; did you mean 'c'?
27 | rt=ch[rt][c];
| ^~
| c
0_0_39066170_1769.cpp: In member function 'const char* Trie::find(char*)':
0_0_39066170_1769.cpp:36:17: error: 'ch' was not declared in this scope; did you mean 'c'?
36 | if(!ch[rt][c])return "0";
| ^~
| c
0_0_39066170_1769.cpp:37:16: error: 'ch' was not declared in this scope; did you mean 'c'?
37 | rt=ch[rt][c];
| ^~
| c
|