/ new_bzoj /

记录详情

Compile Error

/in/foo.cc:3:109: error: narrowing conversion of '1.0e+4' from 'double' to 'long long int' inside { } [-Wnarrowing]
 long long a,b,dp[20],po[20]={1,10,100,10e3,10e4,10e5,10e6,10e7,10e8,10e9,10e10,10e11,10e12,10e13,10e14,10e15},all_=0,cnt[20;
                                                                                                             ^
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+5' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+6' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+7' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+8' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+9' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+10' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+11' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+12' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+13' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+14' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+15' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:109: error: narrowing conversion of '1.0e+16' from 'double' to 'long long int' inside { } [-Wnarrowing]
/in/foo.cc:3:124: error: expected ']' before ';' token
 long long a,b,dp[20],po[20]={1,10,100,10e3,10e4,10e5,10e6,10e7,10e8,10e9,10e10,10e11,10e12,10e13,10e14,10e15},all_=0,cnt[20;
                                                                                                                            ^
/in/foo.cc: In function 'void count(long long int, int)':
/in/foo.cc:6:12: error: 'cnt' was not declared in this scope
     if(!x) cnt[0]+=m;
            ^~~
/in/foo.cc:11:13: error: 'cnt' was not declared in this scope
             cnt[j]+=po[i]*m;
             ^~~
/in/foo.cc:13:9: error: 'cnt' was not declared in this scope
         cnt[op]+=(num+1)*m;
         ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:29: error: 'cnt' was not declared in this scope
         printf("%lld ",all_+cnt[i]);
                             ^~~

信息

递交者
类型
递交
题目
count 数字计数
语言
C++
递交时间
2020-07-15 11:29:12
评测时间
2020-07-15 11:29:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes