Problem | guessproblem4_ex |
---|---|
User | bz |
Submission Time | 2024-01-02 16:02:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
guessproblem4_ex.cpp: In function ‘const char* solve(int)’:
guessproblem4_ex.cpp:26:12: error: ‘NULL’ was not declared in this scope
26 | return NULL;
| ^~~~
guessproblem4_ex.cpp:2:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
1 | #include "guessproblem4_ex.h"
+++ |+#include <cstddef>
2 | const char* solve(int T) {
guessproblem4_ex.cpp: At global scope:
guessproblem4_ex.cpp:30:2: error: expected unqualified-id before ‘else’
30 | else return nullptr;
| ^~~~
guessproblem4_ex.cpp:32:1: error: expected declaration before ‘}’ token
32 | }
| ^