/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:35:15: warning: array subscript has type 'char' [-Wchar-subscripts]
     if (vis[ch]) err=1; vis[ch]=1;
               ^
/in/foo.cc:35:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (vis[ch]) err=1; vis[ch]=1;
     ^~
/in/foo.cc:35:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (vis[ch]) err=1; vis[ch]=1;
                         ^~~
/in/foo.cc:35:31: warning: array subscript has type 'char' [-Wchar-subscripts]
     if (vis[ch]) err=1; vis[ch]=1;
                               ^
/in/foo.cc:41:21: warning: array subscript has type 'char' [-Wchar-subscripts]
     vis[stack[top--]]=0;
                     ^
/in/foo.cc:47:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if (ans==x||tot==1&&x==0) printf("Yes\n"); else printf("No\n");
                ~~~~~~^~~~~~
/in/foo.cc:22:9: warning: unused variable 'cnt' [-Wunused-variable]
   int L,cnt=0,ans=0; top=0;
         ^~~
# 状态 耗时 内存占用
#1 Runtime Error 6ms 328.0 KiB
#2 Wrong Answer 5ms 256.0 KiB
#3 Runtime Error 4ms 256.0 KiB
#4 Runtime Error 5ms 380.0 KiB
#5 Runtime Error 6ms 256.0 KiB
#6 Runtime Error 6ms 384.0 KiB
#7 Runtime Error 6ms 256.0 KiB
#8 Runtime Error 5ms 364.0 KiB
#9 Runtime Error 3ms 384.0 KiB
#10 Runtime Error 4ms 336.0 KiB

信息

递交者
类型
递交
题目
P2029 时间复杂度
语言
C++
递交时间
2017-11-15 11:29:37
评测时间
2017-11-15 11:29:37
评测机
分数
0
总耗时
54ms
峰值内存
384.0 KiB