记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:27:23: error: 'make_unique' was not declared in this scope
   27 |     unique_ptr<I> p = make_unique<M>();
      |                       ^~~~~~~~~~~
/in/foo.cc:27:23: note: 'std::make_unique' is only available from C++14 onwards
/in/foo.cc:27:36: error: expected primary-expression before '>' token
   27 |     unique_ptr<I> p = make_unique<M>();
      |                                    ^
/in/foo.cc:27:38: error: expected primary-expression before ')' token
   27 |     unique_ptr<I> p = make_unique<M>();
      |                                      ^

信息

递交者
类型
自测
语言
C++
递交时间
2025-05-24 21:22:39
评测时间
2025-05-24 21:22:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes