记录详情

Accepted

/in/foo.cc: In member function 'void Intarray::Insertsort(int)':
/in/foo.cc:27:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(n==0) Insert(0,x);int i;
   ^~
/in/foo.cc:27:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(n==0) Insert(0,x);int i;
                        ^~~
/in/foo.cc: In member function 'int Intarray::Binsearch(int)':
/in/foo.cc:40:7: warning: unused variable 'i' [-Wunused-variable]
   int i=0;int j=n-1;
       ^
/in/foo.cc:40:15: warning: unused variable 'j' [-Wunused-variable]
   int i=0;int j=n-1;
               ^
/in/foo.cc:41:3: warning: no return statement in function returning non-void [-Wreturn-type]
   }
   ^
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB
#2 Accepted 1ms 348.0 KiB
#3 Accepted 1ms 344.0 KiB
#4 Accepted 1ms 344.0 KiB
#5 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1014 OO3-1 无序顺序表类的基本运算
比赛
2024春 面向对象的程序设计方法(第1场作业赛)
语言
C++
递交时间
2024-03-14 20:16:11
评测时间
2024-03-16 18:39:13
评测机
分数
100
总耗时
7ms
峰值内存
400.0 KiB