/ OIer TK /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    5 | thread t();
      |         ^~
/in/foo.cc:5:9: note: remove parentheses to default-initialize a variable
    5 | thread t();
      |         ^~
      |         --
/in/foo.cc:5:9: note: or replace parentheses with braces to value-initialize a variable
/in/foo.cc:6:3: error: request for member 'join' in 't', which is of non-class type 'std::thread()'
    6 | t.join();
      |   ^~~~

信息

递交者
类型
递交
题目
P1387 生命游戏
语言
C++
递交时间
2026-02-20 13:56:13
评测时间
2026-02-20 13:56:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes