Problem numberfun
User Josh28
Submission Time 2023-03-06 16:45:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

numberfun.cpp: In function ‘void solve()’:
numberfun.cpp:63:18: error: expected ‘)’ before ‘sizeof’
63 | memset(dp, inf sizeof(dp));
| ~ ^~~~~~
numberfun.cpp:63:28: error: too few arguments to function ‘void* memset(void*, int, size_t)’
63 | memset(dp, inf sizeof(dp));
| ^
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 numberfun.cpp:25:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: declared here
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~