Compiler output
prog.cpp: In function 'bool good(const string&)':
prog.cpp:10:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<w.size();++i) ++stat[w[i]];
^
prog.cpp:10:44: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int i=0;i<w.size();++i) ++stat[w[i]];
^
prog.cpp: In function 'int main()':
prog.cpp:22:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<seq.size();++i) ++seq_stat[seq[i]];
^
prog.cpp:22:52: warning: array subscript has type 'char' [-Wchar-subscripts]
for(int i=0;i<seq.size();++i) ++seq_stat[seq[i]];
^