foo.cc: In function ‘int main()’:
foo.cc:9:13: warning: comparison with string literal results in unspecified behavior [-Waddress]
9 | if(c=="+")
| ~^~~~~
foo.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc:13:18: warning: comparison with string literal results in unspecified behavior [-Waddress]
13 | else if(c=="-")
| ~^~~~~
foo.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cc:18:17: error: break statement not within loop or switch
18 | break;
| ^~~~~