/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void print(int)':
/in/foo.cc:81:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(sr[++C]=z[Z],--Z);sr[++C]='\n';
  ^~~~~
/in/foo.cc:81:26: 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: In function 'int getans(int, int)':
/in/foo.cc:125:16: warning: unused variable 'l' [-Wunused-variable]
  int ans=inf,k,l=0,maxk=min(i,j);
                ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:153:21: warning: array subscript has type 'char' [-Wchar-subscripts]
    int add=ad[a[m-1]][k]+ad[b[m-1]][k];
                     ^
/in/foo.cc:153:35: warning: array subscript has type 'char' [-Wchar-subscripts]
    int add=ad[a[m-1]][k]+ad[b[m-1]][k];
                                   ^
/in/foo.cc:154:21: warning: array subscript has type 'char' [-Wchar-subscripts]
    int del=de[a[m-1]][k]+de[b[m-1]][k];
                     ^
/in/foo.cc:154:35: warning: array subscript has type 'char' [-Wchar-subscripts]
    int del=de[a[m-1]][k]+de[b[m-1]][k];
                                   ^
/in/foo.cc:159:7: error: 'i' was not declared in this scope
  for (i=0;i<505;i++)
       ^
/in/foo.cc:137:6: warning: unused variable 'm' [-Wunused-variable]
  int m;
      ^

信息

递交者
类型
递交
题目
P1854 火柴游戏
语言
C++
递交时间
2019-07-14 15:42:39
评测时间
2019-07-14 15:42:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes