Compiler output
prog.cpp: In function 'int main()':
prog.cpp:47:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j<strlen(c); j++)
^
prog.cpp:49:45: warning: array subscript has type 'char' [-Wchar-subscripts]
for (int q = 0; q < LIT[c[j]].size(); q++)
^
prog.cpp:49:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int q = 0; q < LIT[c[j]].size(); q++)
^
prog.cpp:50:44: warning: array subscript has type 'char' [-Wchar-subscripts]
word.push_back(LIT[c[j]][q]);
^
prog.cpp:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < word.size(); j++) {
^
prog.cpp:64:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (j == word.size() - 1)
^