/in/foo.cc: In function 'int main()':
/in/foo.cc:21:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (c = getchar() && c != ']') {
^~~
/in/foo.cc:29:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (c = getchar() && c != '\n') {
^~~~
/in/foo.cc:42:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (c = '[') {
^
/in/foo.cc:44:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (c = getchar() && c != ']') {
^~~
/in/foo.cc:54:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (p == name.size())
~~^~~~~~~~~~~~~~
/in/foo.cc:67:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (p == name.size())
~~^~~~~~~~~~~~~~
/in/foo.cc:74:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < output.size(); i++) {
~~^~~~~~~~~~~~~~~