/in/foo.cc:1:17: error: 'NULL' was not declared in this scope
1 | #define nullptr NULL
| ^~~~
In file included from /usr/include/c++/12/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:33,
from /in/foo.cc:2:
/usr/include/x86_64-linux-gnu/c++/12/bits/c++config.h:1:1: note: 'NULL' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // Predefined symbols and macros -*- C++ -*-
/in/foo.cc:1:17: error: 'NULL' was not declared in this scope
1 | #define nullptr NULL
| ^~~~
/in/foo.cc:1:17: note: 'NULL' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/12/future:49,
from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:105:
/usr/include/c++/12/bits/std_thread.h: In constructor 'std::thread::thread(_Callable&&, _Args&& ...)':
/usr/include/c++/12/bits/std_thread.h:144:13: error: cannot convert 'long int' to 'void (*)()'
144 | __depend);
| ^~~~~~~~
| |
| long int
/usr/include/c++/12/bits/std_thread.h:214:33: note: initializing argument 2 of 'void std::thread::_M_start_thread(_State_ptr, void (*)())'
214 | _M_start_thread(_State_ptr, void (*)());
| ^~~~~~~~~~