Accepted

foo.cc: In function 'int ZH(int*, int, char*, int)':
foo.cc:70:22: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
   memset(a,0,sizeof(a));
                      ^
foo.cc:41:14: note: declared here
 int ZH(int a[],int an,char c[],int k)
              ^
foo.cc:70:20: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
   memset(a,0,sizeof(a));
                    ^
foo.cc:69:12: warning: 'b[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
   while(b[l]==0)l++;
         ~~~^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 300.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 6ms 408.0 KiB

信息

递交者
类型
递交
题目
P1072 A11-2 K进制的高精度整数
比赛
2020盛泽二中奥赛集训营(2021-5-16作业)
语言
C++
递交时间
2021-05-17 18:17:22
评测时间
2021-05-17 18:17:22
评测机
分数
100
总耗时
15ms
峰值内存
408.0 KiB