Problem duckhunt39
User Arjun
Submission Time 2025-12-22 10:58:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt39.cpp: In function ‘int main()’:
duckhunt39.cpp:43:29: error: ISO C++ forbids applying ‘sizeof’ to an expression of function type [-fpermissive]
43 | memset(dp, -1, sizeof(dp));
| ^
duckhunt39.cpp:43:12: error: invalid conversion from ‘long long int (*)(long long int, long long int)’ to ‘void*’ [-fpermissive]
43 | memset(dp, -1, sizeof(dp));
| ^~
| |
| long long int (*)(long long int, long long int)
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from duckhunt39.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note