Problem whatisthisactf
User Tyx2019
Submission Time 2023-04-02 02:18:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

whatisthisactf.cpp: In function ‘void set_sprintf_fmt_string(char*)’:
whatisthisactf.cpp:9:2: error: ‘string’ was not declared in this scope; did you mean ‘stdin’?
9 | string x="A";
| ^~~~~~
| stdin
whatisthisactf.cpp:10:26: error: ‘x’ was not declared in this scope
10 | for(int i=0;i<2047;i++) x+="A";
| ^
whatisthisactf.cpp:11:19: error: invalid conversion from ‘int’ to ‘const void*’ [-fpermissive]
11 | 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_fortifi