/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'double calculate(std::string)':
foo.cc:108:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  108 |     for (int i = 0; i < str.size(); ++i)
      |                     ~~^~~~~~~~~~~~
foo.cc:112:13: warning: unused variable 'figure' [-Wunused-variable]
  112 |         int figure = 0;
      |             ^~~~~~
foo.cc: In instantiation of 'STACK::myStack<T>::myStack(int) [with T = char]':
foo.cc:104:19:   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]; }
      |         ^~~~~~~
foo.cc: In instantiation of 'STACK::myStack<T>::myStack(int) [with T = double]':
foo.cc:105:21:   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 'void result(char, STACK::myStack<T>&) [with T = double]':
foo.cc:130:23:   required from here
foo.cc:66:13: warning: unused variable 'result' [-Wunused-variable]
   66 |     T x, y, result;
      |             ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read 666.00, expect FormulaException. 4ms 412.0 KiB
#3 Wrong Answer Read inf, expect ZeroException. 3ms 412.0 KiB
#4 Accepted 3ms 332.0 KiB
#5 Runtime Error Aborted 4ms 412.0 KiB
#6 Runtime Error Aborted 4ms 456.0 KiB
#7 Runtime Error Aborted 4ms 540.0 KiB
#8 Runtime Error Aborted 4ms 412.0 KiB
#9 Runtime Error Aborted 4ms 412.0 KiB
#10 Wrong Answer Read 15.12, expect FormulaException. 3ms 412.0 KiB
#11 Runtime Error Aborted 4ms 412.0 KiB
#12 Wrong Answer Read 0.00, expect FormulaException. 3ms 412.0 KiB
#13 Wrong Answer Read 9.00, expect FormulaException. 3ms 412.0 KiB
#14 Wrong Answer Read -nan, expect ZeroException. 3ms 336.0 KiB
#15 Accepted 3ms 516.0 KiB
#16 Accepted 3ms 412.0 KiB
#17 Wrong Answer Read 0.00, expect FormulaException. 3ms 516.0 KiB
#18 Wrong Answer Read 28.00, expect FormulaException. 3ms 412.0 KiB
#19 Wrong Answer Read 28.00, expect FormulaException. 3ms 412.0 KiB
#20 Runtime Error Aborted 4ms 412.0 KiB

信息

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