/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void calc_1(int*, int, int*)':
/in/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));
      |                ^~~~~~~~~
/in/foo.cc: In function 'void calc_2(int*, int, int*)':
/in/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));
      |                ^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 480.0 KiB
#2 Accepted 2ms 500.0 KiB
#3 Accepted 2ms 500.0 KiB
#4 Accepted 2ms 524.0 KiB
#5 Accepted 3ms 540.0 KiB
#6 Accepted 2ms 504.0 KiB
#7 Accepted 29ms 584.0 KiB
#8 Accepted 29ms 592.0 KiB
#9 Accepted 29ms 588.0 KiB
#10 Accepted 29ms 584.0 KiB

信息

递交者
类型
递交
题目
P1779 国王游戏
语言
C++
递交时间
2025-07-15 15:57:34
评测时间
2025-07-15 15:57:34
评测机
分数
100
总耗时
134ms
峰值内存
592.0 KiB