/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'long long int evaluate(const std::string&, long long int)':
/in/foo.cc:49:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   49 |     for (int i = 0; i < expr.length(); i++) {
      |                     ~~^~~~~~~~~~~~~~~
/in/foo.cc:55:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   55 |             while (i < expr.length() && isdigit(expr[i])) {
      |                    ~~^~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:125:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  125 |         for (int j = 0; j < test_values.size(); j++) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 480.0 KiB
#2 Accepted 2ms 380.0 KiB
#3 Accepted 2ms 480.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 484.0 KiB
#6 Accepted 2ms 504.0 KiB
#7 Accepted 2ms 388.0 KiB
#8 Accepted 2ms 472.0 KiB
#9 Accepted 2ms 528.0 KiB
#10 Accepted 2ms 532.0 KiB

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2025-10-08 17:17:49
评测时间
2025-10-08 17:17:49
评测机
分数
100
总耗时
22ms
峰值内存
532.0 KiB