foo.cc: In function 'double string2double(std::__cxx11::string)':
foo.cc:35:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < t.length() ; i++)
~~^~~~~~~~~~~~
foo.cc: In function 'int isop(int)':
foo.cc:56:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < sign.size() ; i++)
~~^~~~~~~~~~~~~
foo.cc: In function 'double work(std::__cxx11::string)':
foo.cc:157:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < expr.length() ; i++)
~~^~~~~~~~~~~~~~~
foo.cc:160:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(isop(expr[i])==-1&&expr[i]!='('&&expr[i]!=')' && i < expr.length())
~~^~~~~~~~~~~~~~~
foo.cc: In function 'int main(int, const char**)':
foo.cc:193:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int l = 0 ; l < ori.size() ; l++)
~~^~~~~~~~~~~~
foo.cc:202:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int l = 0 ; l < allexp[i].size() ; l++)
~~^~~~~~~~~~~~~~~~~~
foo.cc:207:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < test.size() ; i++){
~~^~~~~~~~~~~~~
foo.cc:211:20: warning: unused variable 'nowout' [-Wunused-variable]
double nowout = work(allexp[k]);
^~~~~~
自豪的采用jd5进行评测(github.com/masnn/jd5)
{"receive":"2020-02-23T09:05:47.927Z","handle":"2020-02-23T09:05:47.927Z","done":"2020-02-23T09:05:49.273Z"}