/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'bool cmax(T&, const T&)':
/in/foo.cc:10:66: error: expected primary-expression before ':' token
  template<class T>inline bool cmax(T&a,const T&b){return a<b?a=b,:;}
                                                                  ^
/in/foo.cc:10:67: error: expected primary-expression before ';' token
  template<class T>inline bool cmax(T&a,const T&b){return a<b?a=b,:;}
                                                                   ^
/in/foo.cc: In function 'int read()':
/in/foo.cc:13:24: error: expected primary-expression before ';' token
      char ch;bool flag=;int res;
                        ^
/in/foo.cc: At global scope:
/in/foo.cc:21:10: error: expected primary-expression before '<<' token
  char sr[<<],z[];int C=-,Z;
          ^~
/in/foo.cc:21:12: error: expected primary-expression before ']' token
  char sr[<<],z[];int C=-,Z;
            ^
/in/foo.cc:21:16: error: storage size of 'z' isn't known
  char sr[<<],z[];int C=-,Z;
                ^
/in/foo.cc:21:25: error: expected primary-expression before ',' token
  char sr[<<],z[];int C=-,Z;
                         ^
/in/foo.cc: In function 'void Ot()':
/in/foo.cc:22:26: error: 'sr' was not declared in this scope
  inline void Ot(){fwrite(sr,,C+,stdout),C=-;}
                          ^~
/in/foo.cc:22:29: error: expected primary-expression before ',' token
  inline void Ot(){fwrite(sr,,C+,stdout),C=-;}
                             ^
/in/foo.cc:22:32: error: expected primary-expression before ',' token
  inline void Ot(){fwrite(sr,,C+,stdout),C=-;}
                                ^
/in/foo.cc:22:44: error: expected primary-expression before ';' token
  inline void Ot(){fwrite(sr,,C+,stdout),C=-;}
                                            ^
/in/foo.cc: In function 'void print(long long int)':
/in/foo.cc:24:11: error: expected primary-expression before '<<' token
      if(C><<)Ot();if(x<)sr[++C]=,x=-x;
           ^~
/in/foo.cc:24:13: error: expected primary-expression before ')' token
      if(C><<)Ot();if(x<)sr[++C]=,x=-x;
             ^
/in/foo.cc:24:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
      if(C><<)Ot();if(x<)sr[++C]=,x=-x;
      ^~
/in/foo.cc:24:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
      if(C><<)Ot();if(x<)sr[++C]=,x=-x;
                   ^~
/in/foo.cc:24:24: error: expected primary-expression before ')' token
      if(C><<)Ot();if(x<)sr[++C]=,x=-x;
                        ^
/in/foo.cc:24:25: error: 'sr' was not declared in this scope
      if(C><<)Ot();if(x<)sr[++C]=,x=-x;
                         ^~
/in/foo.cc:24:33: error: expected primary-expression before ',' token
      if(C><<)Ot();if(x<)sr[++C]=,x=-x;
                                 ^
/in/foo.cc:25:16: error: 'Z' was not declared in this scope
      while(z[++Z]=x%+,x/=);
                ^
/in/foo.cc:25:22: error: expected primary-expression before ',' token
      while(z[++Z]=x%+,x/=);
                      ^
/in/foo.cc:25:26: error: expected primary-expression before ')' token
      while(z[++Z]=x%+,x/=);
                          ^
/in/foo.cc:26:12: error: 'sr' was not declared in this scope
      while(sr[++C]=z[Z],--Z);sr[++C]='\n';
            ^~
/in/foo.cc:26:22: error: 'Z' was not declared in this scope
      while(sr[++C]=z[Z],--Z);sr[++C]='\n';
                      ^
/in/foo.cc:26:6: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
      while(sr[++C]=z[Z],--Z);sr[++C]='\n';
      ^~~~~
/in/foo.cc:26:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
      while(sr[++C]=z[Z],--Z);sr[++C]='\n';
                              ^~
/in/foo.cc:26:30: error: 'sr' was not declared in this scope
/in/foo.cc: At global scope:
/in/foo.cc:28:34: error: expected primary-expression before ']' token
  int n,m,T,n1,rt,head[N],Next[N<<],ver[N<<],tot,size[N],son[N],sz,sz1;
                                  ^
/in/foo.cc:28:43: error: expected primary-expression before ']' token
  int n,m,T,n1,rt,head[N],Next[N<<],ver[N<<],tot,size[N],son[N],sz,sz1;
                                           ^
/in/foo.cc: In function 'void add(int, int)':
/in/foo.cc:34:6: error: 'ver' was not declared in this scope
      ver[++tot]=v,Next[tot]=head[u],head[u]=tot;
      ^~~
/in/foo.cc:34:19: error: 'Next' was not declared in this scope
      ver[++tot]=v,Next[tot]=head[u],head[u]=tot;
                   ^~~~
/in/foo.cc: In function 'void findrt(int, int)':
/in/foo.cc:38:14: error: expected primary-expression before ',' token
      size[u]=,son[u]=;
              ^
/in/foo.cc:38:22: error: expected primary-expression before ';' token
      size[u]=,son[u]=;
                      ^
/in/foo.cc:39:28: error: 'Next' was not declared in this scope
      for(int i=head[u];i;i=Next[i]){
                            ^~~~
/in/foo.cc:40:16: error: 'ver' was not declared in this scope
          int v=ver[i];
                ^~~
/in/foo.cc: In function 'void getdep(int, int)':
/in/foo.cc:50:38: error: expected primary-expression before ']' token
      if(b[len[u]]==sum[u]&&val[u]==a[]) st[++sz]=u;
                                      ^
/in/foo.cc:51:28: error: 'Next' was not declared in this scope
      for(int i=head[u];i;i=Next[i]){
                            ^~~~
/in/foo.cc:52:16: error: 'ver' was not declared in this scope
          int v=ver[i];if(vis[v]||v==fa) continue;
                ^~~
/in/foo.cc:54:24: error: expected primary-expression before ';' token
          len[v]=len[u]+;
                        ^
/in/foo.cc: In function 'void getdep1(int, int)':
/in/foo.cc:59:40: error: expected primary-expression before ']' token
      if(c[len[u]]==sum1[u]&&val[u]==a1[]) st1[++sz1]=u;
                                        ^
/in/foo.cc:60:28: error: 'Next' was not declared in this scope
      for(int i=head[u];i;i=Next[i]){
                            ^~~~
/in/foo.cc:61:16: error: 'ver' was not declared in this scope
          int v=ver[i];
                ^~~
/in/foo.cc: In function 'void calc(int)':
/in/foo.cc:68:16: error: expected primary-expression before ';' token
      for(int i=;i<=m;++i) cnt[i]=cnt1[i]=;
                ^
/in/foo.cc:68:42: error: expected primary-expression before ';' token
      for(int i=;i<=m;++i) cnt[i]=cnt1[i]=;
                                          ^
/in/foo.cc:69:11: error: expected primary-expression before ']' token
      if(a[]==val[u]) cnt[]=;
           ^
/in/foo.cc:69:26: error: expected primary-expression before ']' token
      if(a[]==val[u]) cnt[]=;
                          ^
/in/foo.cc:69:28: error: expected primary-expression before ';' token
      if(a[]==val[u]) cnt[]=;
                            ^
/in/foo.cc:70:28: error: expected primary-expression before ']' token
      if(a[m]==val[u]) cnt1[]=;
                            ^
/in/foo.cc:70:30: error: expected primary-expression before ';' token
      if(a[m]==val[u]) cnt1[]=;
                              ^
/in/foo.cc:71:12: error: expected primary-expression before ')' token
      if(m==) ans+=cnt1[];
            ^
/in/foo.cc:71:24: error: expected primary-expression before ']' token
      if(m==) ans+=cnt1[];
                        ^
/in/foo.cc:72:28: error: 'Next' was not declared in this scope
      for(int i=head[u];i;i=Next[i]){
                            ^~~~
/in/foo.cc:73:16: error: 'ver' was not declared in this scope
          int v=ver[i];
                ^~~
/in/foo.cc:75:13: error: expected primary-expression before ',' token
          sz=,len[v]=,sum[v]=val[v];
             ^
/in/foo.cc:75:21: error: expected primary-expression before ',' token
          sz=,len[v]=,sum[v]=val[v];
                     ^
/in/foo.cc:77:20: error: expected primary-expression before ';' token
          for(int j=;j<=sz;++j){
                    ^
/in/foo.cc:78:44: error: expected primary-expression before ')' token
              int t=st[j];int pos=m-(len[t]-)%m-;
                                            ^
/in/foo.cc:78:48: error: expected primary-expression before ';' token
              

信息

递交者
类型
递交
题目
P1995 模式字符串
语言
C++
递交时间
2020-12-16 21:36:15
评测时间
2020-12-16 21:36:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes