记录详情

Wrong Answer

foo.cc: In function 'void A(int*, int, int*)':
foo.cc:50:21: warning: 'sizeof' on array function parameter 'b' will return size of 'int*' [-Wsizeof-array-argument]
  memset(b,0,sizeof(b));
                     ^
foo.cc:48:28: note: declared here
 void A(int a[],int n,int b[])
                            ^
foo.cc:50:19: 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(b,0,sizeof(b));
                   ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 444.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 448.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#5 Accepted 2ms 440.0 KiB

信息

递交者
类型
递交
题目
A10-5 集合的并集
比赛
2020苏青奥赛集训营(2021-3-7课后作业)
语言
C++
递交时间
2021-03-07 14:53:19
评测时间
2021-03-07 14:53:19
评测机
分数
60
总耗时
12ms
峰值内存
448.0 KiB