/ Vijos /

记录详情

Compile Error

/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;}
                                                                                   ^
/in/foo.cc: At global scope:
/in/foo.cc:65:1: error: 'Complexity' does not name a type
 Complexity
 ^~~~~~~~~~

信息

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