/ new_bzoj /

记录详情

Compile Error

/in/foo.cc:4:73: error: narrowing conversion of '1.0e+5' from 'double' to 'long long int' inside { } [-Wnarrowing]
 const ll p10[13]={1,10,100,1000,10000,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12};
                                                                         ^
/in/foo.cc:4:73: error: narrowing conversion of '1.0e+6' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:4:73: error: narrowing conversion of '1.0e+7' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:4:73: error: narrowing conversion of '1.0e+8' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:4:73: error: narrowing conversion of '1.0e+9' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:4:73: error: narrowing conversion of '1.0e+10' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:4:73: error: narrowing conversion of '1.0e+11' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:4:73: error: narrowing conversion of '1.0e+12' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc: In function 'long long int dp(long long int, int)':
/in/foo.cc:24:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (len=12;x<p10[len];len--);  len++;//printf("len=%d\n",len);
  ^~~
/in/foo.cc:24:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for (len=12;x<p10[len];len--);  len++;//printf("len=%d\n",len);
                                  ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:43:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j,k;
        ^
/in/foo.cc:43:10: warning: unused variable 'k' [-Wunused-variable]
  int i,j,k;
          ^

信息

递交者
类型
递交
题目
count 数字计数
语言
C++
递交时间
2018-10-30 10:04:50
评测时间
2018-10-30 10:04:50
评测机
分数
0
总耗时
19ms
峰值内存
3.789 MiB