Problem | combo |
---|---|
User | Kiameimon |
Submission Time | 2024-03-08 13:11:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
combo.cpp:7:6: error: ‘string’ in namespace ‘std’ does not name a type
7 | std::string S;
| ^~~~~~
combo.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | namespace {
combo.cpp: In function ‘void {anonymous}::wrong_answer(const char*)’:
combo.cpp:12:3: error: ‘printf’ was not declared in this scope
12 | printf("Wrong Answer: %s\n", MSG);
| ^~~~~~
combo.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
+++ |+#include <cstdio>
1 | namespace {
combo.cpp:13:3: error: ‘exit’ was not declared in this scope
13 | exit(0);
| ^~~~
combo.cpp: At global scope:
combo.cpp:18:16: error: ‘string’ is not a member of ‘std’
18 | int press(std::string p) {
| ^~~~~~
combo.cpp:18:16: note: ‘std::string’ is defined