/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int turn(char*, int*)':
/in/foo.cc:19:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    while(isdigit(s[++i])) x=x*10+s[i]-'0';--i;
    ^~~~~
/in/foo.cc:19:43: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
    while(isdigit(s[++i])) x=x*10+s[i]-'0';--i;
                                           ^~
/in/foo.cc:28:50: warning: array subscript has type 'char' [-Wchar-subscripts]
    while(!stk2.empty()&&pre[stk2.top()]>=pre[s[i]]) stk1.push(stk2.top()),stk2.pop();
                                                  ^
/in/foo.cc:34:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=0;i*2<cur;i++) swap(t[i],t[cur-i-1]);t[cur]='\0';
  ^~~
/in/foo.cc:34:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=0;i*2<cur;i++) swap(t[i],t[cur-i-1]);t[cur]='\0';
                                                 ^
/in/foo.cc: In function 'int operater(int, int, int)':
/in/foo.cc:38:6: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int ans;
      ^~~
# 状态 耗时 内存占用
#1 Runtime Error 5ms 368.0 KiB
#2 Runtime Error 4ms 340.0 KiB
#3 Runtime Error 4ms 352.0 KiB
#4 Runtime Error 4ms 368.0 KiB
#5 Wrong Answer 3ms 384.0 KiB
#6 Runtime Error 4ms 480.0 KiB
#7 Runtime Error 4ms 364.0 KiB
#8 Runtime Error 4ms 356.0 KiB
#9 Runtime Error 5ms 200.0 KiB
#10 Runtime Error 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2017-11-09 16:31:09
评测时间
2017-11-09 16:31:10
评测机
分数
0
总耗时
45ms
峰值内存
480.0 KiB