Compiler output
prog.cpp: In member function 'void Trie::add(int, bool)':
prog.cpp:27:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size())
^
prog.cpp: In member function 'void Trie::expand(int)':
prog.cpp:41:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos == s.size()) return;
^
prog.cpp: In function 'int main()':
prog.cpp:72:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<s.size(); ++j)
^