记录详情

Accepted

foo.cc: In function 'int Count(Node*)':
foo.cc:280:13: warning: unused variable 'i' [-Wunused-variable]
  280 |         int i;
      |             ^
foo.cc: In function 'Node* FINDMAX(Node*)':
foo.cc:320:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  320 |     for (int i = 1; i < a.size()-1; i++)
      |                     ~~^~~~~~~~~~~~
foo.cc:331:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  331 |     for (int i = 0; i < b.size(); i++)
      |                     ~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:395:27: warning: unused variable 'c' [-Wunused-variable]
  395 |     int a[10000],b[10000],c[10000];
      |                           ^
foo.cc: In function 'void remove(Node*, int, Node**)':
foo.cc:163:15: warning: 'tmp2' may be used uninitialized [-Wmaybe-uninitialized]
  163 |     tmp2->next=tmp->next;
      |     ~~~~~~~~~~^~~~~~~~~~
foo.cc:146:10: note: 'tmp2' was declared here
  146 |     Node*tmp2;
      |          ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB

信息

递交者
类型
自测
题目
A9-7 数组中所有极大值
语言
C++
递交时间
2023-11-25 21:06:17
评测时间
2023-11-25 21:06:17
评测机
分数
10
总耗时
4ms
峰值内存
412.0 KiB