/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void Cheng1(int (*)[5], int (*)[5])':
/in/foo.cc:124:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(j=1;j<=3;j++)
   ^~~
/in/foo.cc:127:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    for(i=1;i<=3;i++)
    ^~~
/in/foo.cc: In function 'void KSM1(int)':
/in/foo.cc:156:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=1;i<=3;i++)
  ^~~
/in/foo.cc:160:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(i=0;(1ll<<i)<=x;i++)
   ^~~
/in/foo.cc: In function 'void CAL(int, int, int)':
/in/foo.cc:165:6: warning: unused variable 'i' [-Wunused-variable]
  int i,j;
      ^
/in/foo.cc:165:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
/in/foo.cc: In function 'void Cheng(int (*)[15], int (*)[15])':
/in/foo.cc:214:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(j=1;j<=9;j++)
   ^~~
/in/foo.cc:217:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    for(i=1;i<=9;i++)
    ^~~
/in/foo.cc: In function 'void Addb(int, int, int, int)':
/in/foo.cc:380:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if(r<l) return 0;
                 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:431:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   while(c=getchar())
                   ^
/in/foo.cc:431:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while(c=getchar())
   ^~~~~
/in/foo.cc:433:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
    if(c=='q'){scanf("uery");l=Get_Int();r=Get_Int();
    ^~

信息

递交者
类型
递交
题目
P1958 音质检测
语言
C++
递交时间
2018-02-26 11:40:43
评测时间
2018-02-26 11:40:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes