/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'bool p(int, int, int)':
/in/foo.cc:6:10: error: declaration of 'int c [10]' shadows a parameter
  int c[10]=0;
          ^
/in/foo.cc:6:12: error: array must be initialized with a brace-enclosed initializer
  int c[10]=0;
            ^
/in/foo.cc:13:8: error: invalid operands of types 'int [10]' and 'int' to binary 'operator/'
  c[7]=c/100;
       ~^~~~
/in/foo.cc:14:8: error: invalid operands of types 'int [10]' and 'int' to binary 'operator/'
  c[8]=c/10%10;
       ~^~~
/in/foo.cc:15:8: error: invalid operands of types 'int [10]' and 'int' to binary 'operator%'
  c[9]=c%10;
       ~^~~
/in/foo.cc:17:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=1;i<=9;i++)
  ^~~
/in/foo.cc:20:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return true;
   ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:2: error: expected ';' before '}' token
  }
  ^

信息

递交者
类型
递交
题目
P1772 巧妙填数
语言
C++
递交时间
2018-07-09 16:48:00
评测时间
2018-07-09 16:48:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes