/ Vijos /

记录详情

Accepted

foo.cc: In function 'void calc_1(int*, int, int*)':
foo.cc:62:16: 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]
   62 |     memset(c,0,sizeof(c));
      |                ^~~~~~~~~
foo.cc: In function 'void calc_2(int*, int, int*)':
foo.cc:77:16: 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]
   77 |     memset(c,0,sizeof(c));
      |                ^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 8ms 384.0 KiB
#7 Accepted 48ms 384.0 KiB
#8 Accepted 33ms 384.0 KiB
#9 Accepted 37ms 376.0 KiB
#10 Accepted 41ms 384.0 KiB

信息

递交者
类型
递交
题目
P1779 国王游戏
语言
C++
递交时间
2022-09-17 14:31:54
评测时间
2022-09-17 14:31:54
评测机
分数
100
总耗时
182ms
峰值内存
384.0 KiB