foo.cc: In function 'double sub(std::__cxx11::string, double)':
foo.cc:28:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i < s.size())
~~^~~~~~~~~~
foo.cc:50:30: warning: array subscript has type 'char' [-Wchar-subscripts]
if (s[i] == '(' || f[s[i]] > f[ch[chi]])
^
foo.cc:57:8: warning: operation on 'di' may be undefined [-Wsequence-point]
d[--di] = cal(d[di], ch[chi--], d[di + 1]);
^~~~
foo.cc:57:8: warning: operation on 'di' may be undefined [-Wsequence-point]
foo.cc: In function 'double cal(double, char, double)':
foo.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
自豪的采用jd5进行评测(github.com/masnn/jd5)
{"receive":"2020-02-23T07:30:59.740Z","handle":"2020-02-23T07:30:59.740Z","done":"2020-02-23T07:31:00.665Z"}