QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#262703 | #6300. Best Carry Player 2 | ucup-team2423# | Compile Error | / | / | C++14 | 1.4kb | 2023-11-23 21:58:48 | 2023-11-23 21:58:49 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:8:94: error: narrowing conversion of ‘1.0e+1’ from ‘double’ to ‘long long int’ [-Wnarrowing] 8 | ll ans,B[19]={0,1,1e1,1e2,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13,1e14,1e15,1e16,1e17},dp[20][20]; | ^ answer.code:8:94: error: narrowing conversion of ‘1.0e+2’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+3’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+4’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+5’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+6’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+7’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+8’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+10’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+11’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+12’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+13’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+14’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+15’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+16’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code:8:94: error: narrowing conversion of ‘1.0e+17’ from ‘double’ to ‘long long int’ [-Wnarrowing] answer.code: In function ‘int main()’: answer.code:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d",&T); | ~~~~~^~~~~~~~~ answer.code:24:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 24 | scanf("%lld%d",&x,&k); | ~~~~~^~~~~~~~~~~~~~~~