/ 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 main()':
/in/foo.cc:77:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=0;i<len;i++) if(isalpha(t[i])||t[i]=='-'||t[i]=='+'||t[i]=='*'||t[i]=='^') putchar(t[i]);else printf("%d",t[i]-'0');puts("");
  ^~~
/in/foo.cc:77:128: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=0;i<len;i++) if(isalpha(t[i])||t[i]=='-'||t[i]=='+'||t[i]=='*'||t[i]=='^') putchar(t[i]);else printf("%d",t[i]-'0');puts("");
                                                                                                                                ^~~~
/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 Wrong Answer 4ms 392.0 KiB
#2 Wrong Answer 3ms 256.0 KiB
#3 Wrong Answer 3ms 208.0 KiB
#4 Wrong Answer 4ms 384.0 KiB
#5 Wrong Answer 4ms 372.0 KiB
#6 Wrong Answer 4ms 256.0 KiB
#7 Wrong Answer 4ms 256.0 KiB
#8 Wrong Answer 4ms 272.0 KiB
#9 Wrong Answer 4ms 348.0 KiB
#10 Wrong Answer 3ms 360.0 KiB

信息

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