printer.cpp: In function 'bool operator<(const word&, const word&)':
printer.cpp:16:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(A.s[i] != MX[i]) break; ++prA;
^~
printer.cpp:16:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(A.s[i] != MX[i]) break; ++prA;
^~
printer.cpp:19:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(B.s[i] != MX[i]) break; ++prB;
^~
printer.cpp:19:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(B.s[i] != MX[i]) break; ++prB;
^~
printer.cpp:21:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return prA < prB || prA == prB && strcmp(A.s , B.s) < 0;
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:30:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(strlen(Words[i].s)> mx){mx = strlen(Words[i].s); MX = Words[i].s;}
~~~~~~~~~~~~~~~~~~^~~~
printer.cpp:34:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < strlen(Words[0].s); ++k) {ans[P] = Words[0].s[k]; ++P;} ans[P] = 'P'; ++P;
~~^~~~~~~~~~~~~~~~~~~~
printer.cpp:37:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < min(strlen(Words[i].s) , strlen(Words[i - 1].s)); ++k){
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:38:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(Words[i].s[k] != Words[i-1].s[k]) break; pr++;
^~
printer.cpp:38:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(Words[i].s[k] != Words[i-1].s[k]) break; pr++;
^~
printer.cpp:41:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 1; k <= strlen(Words[i- 1].s) - pr; ++k){ans[P] = '-'; ++P;}
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:42:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = pr; k < strlen(Words[i].s); ++k){ans[P] = Words[i].s[k]; ++P;}
~~^~~~~~~~~~~~~~~~~~~~