/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;
^