foo.cc: In function 'int main()':
foo.cc:15:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.length(); ++i) {
~~^~~~~~~~~~~~
foo.cc:24:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a.length(); ++j) {
~~^~~~~~~~~~~~
foo.cc:27:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
else if (in == false && a[j] == '+' || a[j] == '-') {
~~~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc:38:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a.length(); ++j) {
~~^~~~~~~~~~~~
foo.cc:41:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
else if (in == false && a[j] == '+' || a[j] == '-') {
~~~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc:52:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a.length(); ++j) {
~~^~~~~~~~~~~~
foo.cc:55:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
else if (in == false && a[j] == '+' || a[j] == '-' || a[j] == '*' || a[j] == '/') {
~~~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc:62:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < b.length(); ++j) {
~~^~~~~~~~~~~~
foo.cc:65:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
else if (in == false && b[j] == '+' || b[j] == '-') {
~~~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc:14:9: warning: unused variable 'n' [-Wunused-variable]
int n = s.length();
^
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-16T10:50:08.319Z","handle":"2020-07-16T10:50:08.319Z","cache_start":"2020-07-16T10:50:08.324Z","read_cases":"2020-07-16T10:50:08.435Z","judge":"2020-07-16T10:50:08.435Z","done":"2020-07-16T10:50:09.953Z"}