/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void init(int*)':
/in/foo.cc:12:21: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
  memset(a,0,sizeof(a));
                     ^
/in/foo.cc:7:18: note: declared here
 void init( int a[])
                  ^
/in/foo.cc:12: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));
                   ^
/in/foo.cc: In function 'int jia(int*)':
/in/foo.cc:34:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 196.0 KiB
#2 Wrong Answer 1ms 204.0 KiB
#3 Wrong Answer 1ms 200.0 KiB
#4 Wrong Answer 1ms 204.0 KiB

信息

递交者
类型
递交
题目
P1304 回文数
语言
C++
递交时间
2019-04-07 20:06:17
评测时间
2019-04-07 20:06:17
评测机
分数
0
总耗时
6ms
峰值内存
204.0 KiB