/in/foo.cc: In function 'double inwork(std::__cxx11::string, double)':
/in/foo.cc:25:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s.size()) {
~^~~~~~~~~
/in/foo.cc:36:25: warning: array subscript has type 'char' [-Wchar-subscripts]
if(s[i]=='('||f[s[i]]>f[ch[c]]) {
^
/in/foo.cc:40:13: warning: operation on 'de' may be undefined [-Wsequence-point]
else d[--de]=work(d[de],ch[c--],d[de+1]);
^~~~
/in/foo.cc:40:13: warning: operation on 'de' may be undefined [-Wsequence-point]
/in/foo.cc: In function 'double work(double, char, double)':
/in/foo.cc:20:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^