/in/foo.cc: In function 'int main()':
/in/foo.cc:105:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); ++i)
~~^~~~~~~~~~
/in/foo.cc:127:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (!ops.empty() && ops.top() == '*' || ops.top() == '/')
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc: In instantiation of 'STACK::myStack<T>::myStack(int) [with T = double]':
/in/foo.cc:52:17: required from here
/in/foo.cc:13:13: warning: 'STACK::myStack<double>::capacity' will be initialized after [-Wreorder]
int capacity;
^~~~~~~~
/in/foo.cc:12:13: warning: 'int STACK::myStack<double>::lenth' [-Wreorder]
int lenth;
^~~~~
/in/foo.cc:29:9: warning: when initialized here [-Wreorder]
myStack(int cap = 10) : capacity(cap), lenth(0) { parr = new T[cap]; }
^~~~~~~
/in/foo.cc: In instantiation of 'STACK::myStack<T>::myStack(int) [with T = char]':
/in/foo.cc:53:15: required from here
/in/foo.cc:13:13: warning: 'STACK::myStack<char>::capacity' will be initialized after [-Wreorder]
int capacity;
^~~~~~~~
/in/foo.cc:12:13: warning: 'int STACK::myStack<char>::lenth' [-Wreorder]
int lenth;
^~~~~
/in/foo.cc:29:9: warning: when initialized here [-Wreorder]
myStack(int cap = 10) : capacity(cap), lenth(0) { parr = new T[cap]; }
^~~~~~~