记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:83:17: error: no matching function for call to 'Array::insert(int&)'
   83 |         a.insert(k);
      |         ~~~~~~~~^~~
/in/foo.cc:55:14: note: candidate: 'void Array::insert(int, int&)'
   55 |         void insert(int pos, int& value)
      |              ^~~~~~
/in/foo.cc:55:14: note:   candidate expects 2 arguments, 1 provided

信息

递交者
类型
递交
题目
P1418 3 数组类+有序插入
语言
C++
递交时间
2025-06-18 13:16:25
评测时间
2025-06-18 13:16:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes