foo.cc: In function 'int main()':
foo.cc:104:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
104 | for (int i = 0; i < s.size(); ++i)
| ~~^~~~~~~~~~
foo.cc:126:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
126 | if (!ops.empty() && ops.top() == '*' || ops.top() == '/')
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc: In instantiation of 'STACK::myStack<T>::myStack(int) [with T = double]':
foo.cc:52:17: required from here
foo.cc:13:13: warning: 'STACK::myStack<double>::capacity' will be initialized after [-Wreorder]
13 | int capacity;
| ^~~~~~~~
foo.cc:12:13: warning: 'int STACK::myStack<double>::lenth' [-Wreorder]
12 | int lenth;
| ^~~~~
foo.cc:29:9: warning: when initialized here [-Wreorder]
29 | myStack(int cap = 10) : capacity(cap), lenth(0) { parr = new T[cap]; }
| ^~~~~~~
foo.cc: In instantiation of 'STACK::myStack<T>::myStack(int) [with T = char]':
foo.cc:53:15: required from here
foo.cc:13:13: warning: 'STACK::myStack<char>::capacity' will be initialized after [-Wreorder]
13 | int capacity;
| ^~~~~~~~
foo.cc:12:13: warning: 'int STACK::myStack<char>::lenth' [-Wreorder]
12 | int lenth;
| ^~~~~
foo.cc:29:9: warning: when initialized here [-Wreorder]
29 | myStack(int cap = 10) : capacity(cap), lenth(0) { parr = new T[cap]; }
| ^~~~~~~
[Hydro](https://hydro.ac)提供评测服务