/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void init(int*)':
/in/foo.cc:9:21: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
  memset(a,0,sizeof(a));            //数组a清0
                     ^
/in/foo.cc:5:17: note: declared here
 void init(int a[])                         //将数串s转化为整数数组a
                 ^
/in/foo.cc:9: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));            //数组a清0
                   ^
# 状态 耗时 内存占用
#1 Accepted 1ms 324.0 KiB
#2 Accepted 1ms 272.0 KiB
#3 Accepted 1ms 336.0 KiB
#4 Wrong Answer 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1304 回文数
语言
C++
递交时间
2024-01-22 11:35:26
评测时间
2024-01-22 11:35:26
评测机
分数
75
总耗时
7ms
峰值内存
376.0 KiB