/ Vijos /

记录详情

Wrong Answer

/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;
      ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:78:29: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(int i=1;i<=10;i++) v[i]=getvalue(t,i,len);
                         ~~~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:78:15: note: within this loop
  for(int i=1;i<=10;i++) v[i]=getvalue(t,i,len);
              ~^~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 364.0 KiB
#2 Accepted 4ms 376.0 KiB
#3 Accepted 4ms 228.0 KiB
#4 Accepted 4ms 360.0 KiB
#5 Wrong Answer 4ms 364.0 KiB
#6 Accepted 5ms 256.0 KiB
#7 Wrong Answer 4ms 384.0 KiB
#8 Accepted 4ms 384.0 KiB
#9 Accepted 4ms 368.0 KiB
#10 Wrong Answer 4ms 380.0 KiB

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2017-11-09 16:40:27
评测时间
2017-11-09 16:40:27
评测机
分数
70
总耗时
46ms
峰值内存
384.0 KiB