Problem whatisthisactf
User AlphanumericUsername
Submission Time 2025-08-23 17:38:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

whatisthisactf.cpp: In function ‘void magic(char*, char*)’:
whatisthisactf.cpp:14:7: error: ‘string’ is not a member of ‘std’
14 | std::string s(OUTPUT);
| ^~~~~~
whatisthisactf.cpp:6:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
5 | #include "whatisthisactf.h"
+++ |+#include <string>
6 |
whatisthisactf.cpp:15:2: error: ‘s’ was not declared in this scope
15 | s = s.substr(2);
| ^
whatisthisactf.cpp:16:27: error: ‘string’ is not a member of ‘std’
16 | if(s.size()<16) s = std::string(16-s.size(),'0')+s;
| ^~~~~~
whatisthisactf.cpp:16:27: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
whatisthisactf.cpp:20:14: error: ‘string’ is not a member of ‘std’
20 | std::string byteStr = s.substr(2 * (7 - i), 2);
| ^~~~~~<