foo.cc: In function 'int getnum1(int)':
foo.cc:16:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s[x].size();i++){
~^~~~~~~~~~~~
foo.cc: In function 'int getnum2(int)':
foo.cc:32:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<s[x].size();i++){
~^~~~~~~~~~~~
foo.cc:49:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s[x].size()&&isdigit(s[x][i])){
~^~~~~~~~~~~~
foo.cc: In function 'int getnum1(int)':
foo.cc:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
自豪的采用jd5进行评测(github.com/masnn/jd5)