记录详情

Runtime Error

/in/foo.cc: In function 'int Count(Node*)':
/in/foo.cc:280:6: warning: unused variable 'i' [-Wunused-variable]
  int i;
      ^
/in/foo.cc: In function 'Node* FINDMAX(Node*)':
/in/foo.cc:320:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i < a.size()-1; i++)
                     ~~^~~~~~~~~~~~
/in/foo.cc:331:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < b.size(); i++)
                     ~~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:395:27: warning: unused variable 'c' [-Wunused-variable]
     int a[10000],b[10000],c[10000];
                           ^
/in/foo.cc: In function 'void remove(Node*, int, Node**)':
/in/foo.cc:163:15: warning: 'tmp2' may be used uninitialized in this function [-Wmaybe-uninitialized]
     tmp2->next=tmp->next;
     ~~~~~~~~~~^~~~~~~~~~
/in/foo.cc: In function 'void Unique(Node*, Node**)':
/in/foo.cc:163:15: warning: 'tmp2' may be used uninitialized in this function [-Wmaybe-uninitialized]
     tmp2->next=tmp->next;
     ~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:146:10: note: 'tmp2' was declared here
     Node*tmp2;
          ^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 368.0 KiB
#2 Accepted 1ms 312.0 KiB
#3 Accepted 1ms 352.0 KiB
#4 Runtime Error 2ms 584.0 KiB
#5 Accepted 1ms 344.0 KiB

信息

递交者
类型
递交
题目
A9-7 数组中所有极大值
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C++
递交时间
2023-11-25 21:06:21
评测时间
2023-11-25 21:06:21
评测机
分数
80
总耗时
9ms
峰值内存
584.0 KiB