ho_t2.cpp: In function 'int main()':
ho_t2.cpp:19:30: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
19 | memset(pref,pref+(3*(n+5)),0);
| ^
ho_t2.cpp:19:18: error: invalid conversion from 'int (*)[(n + 5)]' to 'int' [-fpermissive]
19 | memset(pref,pref+(3*(n+5)),0);
| ~~~~^~~~~~~~~~
| |
| int (*)[(n + 5)]
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:518,
from /usr/include/c++/10/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from ho_t2.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: initializing argument 2 of 'void* memset(void*, int, size_t)'
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~