记录详情

Compile Error

foo.cc: In function 'std::vector<int> solve(std::vector<int>&, std::vector<int>&)':
foo.cc:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     for (int i = 0; i < a.size(); i++)
      |                     ~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:34:12: error: missing template arguments before 'ans'
   34 |     vector ans = solve(a, b);
      |            ^~~
foo.cc:36:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
   36 |     for (auto x : ans) cout << x << ' ';
      |                   ^~~
      |                   abs
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1345 OO11-1 vector<int>中的查找删除
语言
C++
递交时间
2023-05-23 15:06:22
评测时间
2023-05-23 15:06:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes