/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
         else mx=getnum(s);bool flag=0;
         ^~~~
/in/foo.cc:32:27: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
         else mx=getnum(s);bool flag=0;
                           ^~~~
/in/foo.cc:39:44: warning: array subscript has type 'char' [-Wchar-subscripts]
                 if(s[0]=='F') {if(!vis[s[2]])stk[++top]=s[2],vis[s[2]]=1;else puts("ERR"),flag=1;}
                                            ^
/in/foo.cc:39:70: warning: array subscript has type 'char' [-Wchar-subscripts]
                 if(s[0]=='F') {if(!vis[s[2]])stk[++top]=s[2],vis[s[2]]=1;else puts("ERR"),flag=1;}
                                                                      ^
/in/foo.cc:40:49: warning: array subscript has type 'char' [-Wchar-subscripts]
                 else if(s[0]=='E')vis[stk[top--]]=0;continue;
                                                 ^
/in/foo.cc:40:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
                 else if(s[0]=='E')vis[stk[top--]]=0;continue;
                 ^~~~
/in/foo.cc:40:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
                 else if(s[0]=='E')vis[stk[top--]]=0;continue;
                                                     ^~~~~~~~
/in/foo.cc:45:28: warning: array subscript has type 'char' [-Wchar-subscripts]
                 if(vis[s[2]]) {puts("ERR");flag=1;continue;}
                            ^
/in/foo.cc:46:25: warning: array subscript has type 'char' [-Wchar-subscripts]
                 vis[s[2]]=1,stk[++top]=s[2];
                         ^
/in/foo.cc:54:83: warning: array subscript has type 'char' [-Wchar-subscripts]
                 if(top)    {if(!chang[top]) num--;else chang[top]=0;vis[stk[top--]]=0;}
                                                                                   ^
# 状态 耗时 内存占用
#1 Accepted 1ms 196.0 KiB
#2 Accepted 1ms 208.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 1ms 208.0 KiB
#5 Accepted 1ms 200.0 KiB
#6 Accepted 1ms 212.0 KiB
#7 Accepted 1ms 204.0 KiB
#8 Accepted 1ms 204.0 KiB
#9 Accepted 1ms 204.0 KiB
#10 Accepted 1ms 212.0 KiB

信息

递交者
类型
递交
题目
P2029 时间复杂度
语言
C++
递交时间
2019-11-07 14:36:44
评测时间
2019-11-07 14:36:44
评测机
分数
100
总耗时
13ms
峰值内存
212.0 KiB