/ Vijos /

记录详情

Runtime Error

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)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2, expect 2.00. 5ms 408.0 KiB
#2 Wrong Answer Read 666, expect FormulaException. 5ms 412.0 KiB
#3 Wrong Answer Read 9989.9, expect ZeroException. 4ms 412.0 KiB
#4 Wrong Answer Read 110, expect 130.00. 4ms 412.0 KiB
#5 Runtime Error Aborted 4ms 460.0 KiB
#6 Runtime Error Aborted 5ms 416.0 KiB
#7 Runtime Error Aborted 5ms 516.0 KiB
#8 Runtime Error Aborted 5ms 516.0 KiB
#9 Wrong Answer Read -0.1, expect FormulaException. 4ms 540.0 KiB
#10 Wrong Answer Read 15.123, expect FormulaException. 4ms 412.0 KiB
#11 Runtime Error Aborted 4ms 416.0 KiB
#12 Wrong Answer Read 4.79244e-322, expect FormulaException. 3ms 412.0 KiB
#13 Wrong Answer Read 9, expect FormulaException. 3ms 412.0 KiB
#14 Wrong Answer Read -nan, expect ZeroException. 3ms 412.0 KiB
#15 Wrong Answer Read 7, expect 7.00. 5ms 412.0 KiB
#16 Wrong Answer Read 0.256, expect 0.26. 4ms 412.0 KiB
#17 Wrong Answer Read 4.79244e-322, expect FormulaException. 3ms 412.0 KiB
#18 Wrong Answer Read 28, expect FormulaException. 4ms 388.0 KiB
#19 Wrong Answer Read 28, expect FormulaException. 4ms 412.0 KiB
#20 Runtime Error Aborted 2ms 412.0 KiB

信息

递交者
类型
递交
题目
P2019 表达式求值2
语言
C++
递交时间
2024-01-03 00:50:45
评测时间
2024-01-03 00:50:45
评测机
分数
0
总耗时
90ms
峰值内存
540.0 KiB