/ Vijos /

记录详情

Accepted

foo.cc: In function 'void Initialize(int)':
foo.cc:21:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |         for (int i = 0; i < s[id].size(); i++)
      |                         ~~^~~~~~~~~~~~~~
foo.cc:22:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |                 while (i < s[id].size() && (s[id][i] < '0' || s[id][i] > '9') && s[id][i] != '+' && s[id][i] != '-' && s[id][i] != '*' && s[id][i] != '^' && s[id][i] != 'a' && s[id][i] != '(' && s[id][i] != ')')
      |                        ~~^~~~~~~~~~~~~~
foo.cc: In function 'int getPri(char)':
foo.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Accepted 5ms 384.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 3ms 256.0 KiB
#10 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2022-08-17 12:35:33
评测时间
2022-08-17 12:35:33
评测机
分数
100
总耗时
33ms
峰值内存
384.0 KiB