记录详情

Wrong Answer

/in/foo.cc: In function 'void mul(long long int*, long long int (*)[2])':
/in/foo.cc:12:20: warning: 'sizeof' on array function parameter 'f' will return size of 'long long int*' [-Wsizeof-array-argument]
  memcpy(f,c,sizeof f);
                    ^
/in/foo.cc:6:17: note: declared here
 void mul(int f[2],int a[2][2])
                 ^
/in/foo.cc:12:20: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  memcpy(f,c,sizeof f);
                    ^
/in/foo.cc: In function 'void mulself(long long int (*)[2])':
/in/foo.cc:22:20: warning: 'sizeof' on array function parameter 'a' will return size of 'long long int (*)[2]' [-Wsizeof-array-argument]
  memcpy(a,c,sizeof a);
                    ^
/in/foo.cc:15:24: note: declared here
 void mulself(int a[2][2])
                        ^
/in/foo.cc:22:20: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  memcpy(a,c,sizeof a);
                    ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 340.0 KiB
#2 Wrong Answer 1ms 376.0 KiB
#3 Wrong Answer 1ms 348.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Wrong Answer 1ms 348.0 KiB

信息

递交者
类型
递交
题目
P1003 斐波那契
语言
C++
递交时间
2024-09-15 08:43:22
评测时间
2024-09-15 22:46:26
评测机
分数
20
总耗时
7ms
峰值内存
376.0 KiB