/in/foo.cc: In function 'std::__cxx11::string get(int, int&)':
/in/foo.cc:26:6: warning: statement has no effect [-Wunused-value]
for(pos; pos < s[i].size(); pos++)
^~~
/in/foo.cc:26:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(pos; pos < s[i].size(); pos++)
~~~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int work(int, int, int)':
/in/foo.cc:49:11: warning: statement has no effect [-Wunused-value]
for(pos; pos < s[idx].size(); )
^
/in/foo.cc:49:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(pos; pos < s[idx].size(); )
~~~~^~~~~~~~~~~~~~~
/in/foo.cc:54:34: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
defined |= (1 << newword[0] - 'A');
/in/foo.cc:61:11: warning: statement has no effect [-Wunused-value]
for(pos; pos < s[idx].size(); )
^
/in/foo.cc:61:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(pos; pos < s[idx].size(); )
~~~~^~~~~~~~~~~~~~~
/in/foo.cc:66:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
/in/foo.cc:66:74: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
/in/foo.cc:71:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
vis |= (1 << newword[0] - 'A');
/in/foo.cc:90:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(shown == 0xffffffff)
~~~~~~^~~~~~~~~~~~~
/in/foo.cc:110:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(shown & (1 << 27) && shown != 0xffffffff)
~~~~~~^~~~~~~~~~~~~
/in/foo.cc:113:12: warning: statement has no effect [-Wunused-value]
for(idx; idx <= r; idx++)
^
/in/foo.cc:130:78: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(newword[0] >= 'A' && newword[0] <= 'Z' && !(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
/in/foo.cc:130:114: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(newword[0] >= 'A' && newword[0] <= 'Z' && !(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
/in/foo.cc:135:29: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
vis |= (1 << newword[0] - 'A');
/in/foo.cc:140:11: warning: statement has no effect [-Wunused-value]
for(idx; idx <= r; idx++)
^
/in/foo.cc:156:11: warning: statement has no effect [-Wunused-value]
for(pos; pos < s[idx].size(); )
^
/in/foo.cc:156:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(pos; pos < s[idx].size(); )
~~~~^~~~~~~~~~~~~~~
/in/foo.cc:161:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
/in/foo.cc:161:74: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
/in/foo.cc:166:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
vis |= (1 << newword[0] - 'A');
/in/foo.cc:170:25: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
defined |= (1 << mem - 'A');
~~~~^~~~~
/in/foo.cc:172:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(shown != 0xffffffff)
~~~~~~^~~~~~~~~~~~~
/in/foo.cc:41:11: warning: unused variable 'flag' [-Wunused-variable]
int pos, flag = 0, shown = 0xffffffff;
^~~~