/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int jia(int*, int*)':
foo.cc:12:11: warning: operation on 'lenc' may be undefined [-Wsequence-point]
         a[++lenc]=a[lenc]+b[lenc]+x;
           ^~~~~~
foo.cc:12:11: warning: operation on 'lenc' may be undefined [-Wsequence-point]
foo.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int main()':
foo.cc:29:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if (kk==0) y=minn;int tot=0;
         ^~
foo.cc:29:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
         if (kk==0) y=minn;int tot=0;
                           ^~~
foo.cc:21:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&k,&w);
     ~~~~~^~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 1ms 436.0 KiB
#2 Wrong Answer Read 2, expect 119. 2ms 396.0 KiB
#3 Wrong Answer Read 2, expect 32752. 2ms 384.0 KiB
#4 Wrong Answer Read 2, expect 32631. 1ms 384.0 KiB
#5 Wrong Answer Read 2, expect 2147483616. 2ms 408.0 KiB
#6 Wrong Answer Read 2, expect 2135645927. 1ms 384.0 KiB
#7 Wrong Answer Read 2, expect 4141511146315813. 1ms 384.0 KiB
#8 Wrong Answer Read 2, expect 1701411834604692.... 2ms 396.0 KiB
#9 Wrong Answer Read 2, expect 5789604461865809.... 2ms 576.0 KiB
#10 Wrong Answer Read 2, expect 4. 2ms 404.0 KiB

信息

递交者
类型
递交
题目
P1315 2^k进制数
语言
C++
递交时间
2021-04-26 13:27:46
评测时间
2021-04-26 13:27:46
评测机
分数
10
总耗时
21ms
峰值内存
576.0 KiB