/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:23:23: warning: array subscript has type 'char' [-Wchar-subscripts]
    if(a[i]=='(') s[++t]='(';
                       ^
/in/foo.cc:25:14: warning: array subscript has type 'char' [-Wchar-subscripts]
     while(s[t]!='(') b[++m]=s[t--];
              ^
/in/foo.cc:25:34: warning: array subscript has type 'char' [-Wchar-subscripts]
     while(s[t]!='(') b[++m]=s[t--];
                                  ^
/in/foo.cc:29:17: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(t && (s[t]=='*' || s[t]=='/')) b[++m]=s[t--];
                 ^
/in/foo.cc:29:30: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(t && (s[t]=='*' || s[t]=='/')) b[++m]=s[t--];
                              ^
/in/foo.cc:29:51: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(t && (s[t]=='*' || s[t]=='/')) b[++m]=s[t--];
                                                   ^
/in/foo.cc:30:10: warning: array subscript has type 'char' [-Wchar-subscripts]
     s[++t]=a[i];
          ^
/in/foo.cc:33:17: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(t && (s[t]=='*' || s[t]=='/')) b[++m]=s[t--];
                 ^
/in/foo.cc:33:30: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(t && (s[t]=='*' || s[t]=='/')) b[++m]=s[t--];
                              ^
/in/foo.cc:33:51: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(t && (s[t]=='*' || s[t]=='/')) b[++m]=s[t--];
                                                   ^
/in/foo.cc:34:10: warning: array subscript has type 'char' [-Wchar-subscripts]
     s[++t]=a[i];
          ^
/in/foo.cc:37:24: warning: array subscript has type 'char' [-Wchar-subscripts]
   while(t) b[++m]=s[t--];
                        ^
/in/foo.cc:42:10: warning: array subscript has type 'char' [-Wchar-subscripts]
     S[++t]=0;
          ^
/in/foo.cc:44:9: warning: array subscript has type 'char' [-Wchar-subscripts]
      S[t]=S[t]*10+b[i]-'0';
         ^
/in/foo.cc:44:14: warning: array subscript has type 'char' [-Wchar-subscripts]
      S[t]=S[t]*10+b[i]-'0';
              ^
/in/foo.cc:48:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='+') S[t]=S[t]+S[t+1];
                      ^
/in/foo.cc:48:27: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='+') S[t]=S[t]+S[t+1];
                           ^
/in/foo.cc:49:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='-') S[t]=S[t]-S[t+1];
                      ^
/in/foo.cc:49:27: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='-') S[t]=S[t]-S[t+1];
                           ^
/in/foo.cc:50:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='*') S[t]=S[t]*S[t+1];
                      ^
/in/foo.cc:50:27: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='*') S[t]=S[t]*S[t+1];
                           ^
/in/foo.cc:51:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='/') S[t]=S[t]/S[t+1];
                      ^
/in/foo.cc:51:27: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(b[i]=='/') S[t]=S[t]/S[t+1];
                           ^
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 2.215 MiB
#2 Wrong Answer 1ms 2.301 MiB
#3 Wrong Answer 1ms 2.223 MiB
#4 Runtime Error 1ms 216.0 KiB
#5 Runtime Error 2ms 2.223 MiB
#6 Runtime Error 1ms 2.211 MiB
#7 Runtime Error 1ms 2.223 MiB
#8 Runtime Error 2ms 2.211 MiB
#9 Runtime Error 5ms 3.094 MiB
#10 Runtime Error 5ms 3.242 MiB

信息

递交者
类型
递交
题目
P1849 表达式求值
语言
C++
递交时间
2020-10-05 15:40:48
评测时间
2020-10-05 15:40:48
评测机
分数
0
总耗时
26ms
峰值内存
3.242 MiB