/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void getTen(int*, int*)':
/in/foo.cc:77:21: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
  memset(a,0,sizeof(a));
                     ^
/in/foo.cc:76:35: note: declared here
 void getTen(int bin[400],int a[400]){
                                   ^
/in/foo.cc:77: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(a,0,sizeof(a));
                   ^
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 3ms 356.0 KiB
#4 Accepted 4ms 344.0 KiB
#5 Accepted 4ms 372.0 KiB
#6 Accepted 3ms 344.0 KiB
#7 Accepted 4ms 344.0 KiB
#8 Accepted 5ms 352.0 KiB
#9 Accepted 3ms 368.0 KiB
#10 Accepted 4ms 356.0 KiB

信息

递交者
类型
递交
题目
P1095 约瑟夫问题10E100版
语言
C++
递交时间
2018-04-10 20:08:18
评测时间
2018-04-10 20:08:18
评测机
分数
100
总耗时
42ms
峰值内存
384.0 KiB