/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:25:21: 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));
                     ^
/in/foo.cc:31: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(a, 0, sizeof(a));
                      ^
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Wrong Answer 3ms 356.0 KiB
#3 Wrong Answer 4ms 380.0 KiB
#4 Wrong Answer 3ms 336.0 KiB
#5 Wrong Answer 4ms 192.0 KiB
#6 Runtime Error 4ms 196.0 KiB
#7 Wrong Answer 5ms 332.0 KiB
#8 Wrong Answer 8ms 352.0 KiB
#9 Wrong Answer 7ms 364.0 KiB
#10 Wrong Answer 8ms 356.0 KiB

信息

递交者
类型
递交
题目
P1039 最小差距
语言
C++
递交时间
2018-03-02 20:09:42
评测时间
2018-03-02 20:09:42
评测机
分数
10
总耗时
54ms
峰值内存
380.0 KiB