Problem | whatisthisactf |
---|---|
User | Tyx2019 |
Submission Time | 2023-04-02 02:19:34 |
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:11:16: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const void*’
11 | memcpy(INPUT, x, 2048);
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
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,
| ^~~~~