Problem | whatisthisactf |
---|---|
User | Tyx2019 |
Submission Time | 2023-04-02 02:18:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
whatisthisactf.cpp: In function ‘void set_sprintf_fmt_string(char*)’:
whatisthisactf.cpp:9:19: error: invalid conversion from ‘int’ to ‘const void*’ [-fpermissive]
9 | memcpy(INPUT, 'A'*2048, 2048);
| ~~~^~~~~
| |
| 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/cstdio:41,
from whatisthisactf.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:31:1: note: initializing argument 2 of ‘void* memcpy(void*, const void*, size_t)’
31 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
| ^~~~~