/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void calc_1(int*, int, int*)':
/in/foo.cc:62:22: 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(c,0,sizeof(c));
                      ^
/in/foo.cc: In function 'void calc_2(int*, int, int*)':
/in/foo.cc:77:22: 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(c,0,sizeof(c));
                      ^
# 状态 耗时 内存占用
#1 Accepted 1ms 388.0 KiB
#2 Accepted 1ms 460.0 KiB
#3 Accepted 1ms 464.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 2ms 472.0 KiB
#6 Accepted 2ms 460.0 KiB
#7 Accepted 29ms 472.0 KiB
#8 Accepted 29ms 476.0 KiB
#9 Accepted 29ms 480.0 KiB
#10 Accepted 29ms 480.0 KiB

信息

递交者
类型
递交
题目
P1779 国王游戏
语言
C++
递交时间
2024-12-24 23:23:07
评测时间
2024-12-24 23:23:07
评测机
分数
100
总耗时
130ms
峰值内存
480.0 KiB