记录详情

Compile Error

/in/foo.cc: In member function 'PolyList PolyList::Add(const PolyList&)':
/in/foo.cc:94:35: error: no matching function for call to 'PolyList::PolyList(<brace-enclosed initializer list>, int)'
         PolyList result({{0,0}}, 0);  // 临时构造一个空的多项式
                                   ^
/in/foo.cc:20:5: note: candidate: PolyList::PolyList(int (*)[2], int)
     PolyList(int arr[][2], int n)
     ^~~~~~~~
/in/foo.cc:20:5: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'int (*)[2]'
/in/foo.cc:13:7: note: candidate: constexpr PolyList::PolyList(const PolyList&)
 class PolyList
       ^~~~~~~~
/in/foo.cc:13:7: note:   candidate expects 1 argument, 2 provided

信息

递交者
类型
自测
语言
C++
递交时间
2024-12-10 18:48:30
评测时间
2024-12-10 18:48:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes