/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < s.length(); ++i) {
                     ~~^~~~~~~~~~~~
/in/foo.cc:24:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < a.length(); ++j) {
                             ~~^~~~~~~~~~~~
/in/foo.cc:27:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 else if (in == false && a[j] == '+' || a[j] == '-') {
                          ~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:38:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < a.length(); ++j) {
                             ~~^~~~~~~~~~~~
/in/foo.cc:41:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 else if (in == false && a[j] == '+' || a[j] == '-') {
                          ~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:52:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < a.length(); ++j) {
                             ~~^~~~~~~~~~~~
/in/foo.cc:55:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 else if (in == false && a[j] == '+' || a[j] == '-' || a[j] == '*' || a[j] == '/') {
                          ~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:62:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < b.length(); ++j) {
                             ~~^~~~~~~~~~~~
/in/foo.cc:65:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 else if (in == false && b[j] == '+' || b[j] == '-') {
                          ~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:14:9: warning: unused variable 'n' [-Wunused-variable]
     int n = s.length();
         ^
# 状态 耗时 内存占用
#1 Accepted 1ms 212.0 KiB
#2 Accepted 1ms 228.0 KiB
#3 Accepted 1ms 216.0 KiB
#4 Runtime Error 1ms 228.0 KiB
#5 Runtime Error 1ms 216.0 KiB

信息

递交者
类型
递交
题目
P1293 后缀转中缀
语言
C++
递交时间
2020-07-16 18:49:32
评测时间
2020-07-16 18:49:32
评测机
分数
60
总耗时
9ms
峰值内存
228.0 KiB