Compile Error

foo.cc:8:1: error: 'DWORD' does not name a type
    8 | DWORD WINAPI thread_entry(LPVOID lpParameter)
      | ^~~~~
foo.cc: In function 'void new_thread()':
foo.cc:19:5: error: 'HANDLE' was not declared in this scope
   19 |     HANDLE hThread = CreateThread(NULL, 0, thread_entry, NULL, 0, NULL);
      |     ^~~~~~
foo.cc: In function 'int main()':
foo.cc:24:5: error: 'thread_entry' was not declared in this scope
   24 |     thread_entry(NULL);
      |     ^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1000 输出“Hello World!"
语言
C++
递交时间
2022-08-05 18:11:37
评测时间
2022-08-05 18:11:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes