/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int jia(int*, int*)':
/in/foo.cc:12:11: warning: operation on 'lenc' may be undefined [-Wsequence-point]
         a[++lenc]=a[lenc]+b[lenc]+x;
           ^~~~~~
/in/foo.cc:12:11: warning: operation on 'lenc' may be undefined [-Wsequence-point]
/in/foo.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if (kk==0) y=minn;int tot=0;
         ^~
/in/foo.cc:29:27: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if (kk==0) y=minn;int tot=0;
                           ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB
#2 Accepted 1ms 216.0 KiB
#3 Accepted 1ms 208.0 KiB
#4 Accepted 1ms 212.0 KiB
#5 Accepted 1ms 332.0 KiB
#6 Accepted 1ms 220.0 KiB
#7 Accepted 1ms 336.0 KiB
#8 Accepted 2ms 340.0 KiB
#9 Accepted 10ms 504.0 KiB
#10 Accepted 1ms 216.0 KiB

信息

递交者
类型
递交
题目
P1315 2^k进制数
语言
C++
递交时间
2019-10-05 18:46:15
评测时间
2019-10-05 18:46:15
评测机
分数
100
总耗时
24ms
峰值内存
504.0 KiB