Compile Error

/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 (*)());
      |                                 ^~~~~~~~~~

信息

递交者
类型
递交
题目
P2976 最长连续段 2025.9GESP4级T2
语言
C++
递交时间
2025-10-12 09:03:58
评测时间
2025-10-12 09:03:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes