printer.cpp: In function 'bool operator<(Word, Word)':
printer.cpp:9:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<a.s.size();i++)
~^~~~~~~~~~~
printer.cpp:12:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<b.s.size();i++)
~^~~~~~~~~~~
printer.cpp:15:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return ka<kb || ka==kb && a.s<b.s;
~~~~~~~^~~~~~~~~~
printer.cpp: At global scope:
printer.cpp:22:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
printer.cpp: In function 'int main()':
printer.cpp:36:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<word[0].s.size();i++) cout<<word[0].s[i]<<endl;
~^~~~~~~~~~~~~~~~~
printer.cpp:41:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0;j<min(word[i-1].s.size(),word[i].s.size());j++)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:46:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=k;j<word[i].s.size();j++) cout<<word[i].s[j]<<endl;
~^~~~~~~~~~~~~~~~~
printer.cpp:35:6: warning: unused variable 'pos0' [-Wunused-variable]
int pos0=0;
^~~~