记录详情

Accepted

/in/foo.cc: In member function 'void Intarray::Insertsort(int)':
/in/foo.cc:28:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(n==0) Insert(0,x);int i;
   ^~
/in/foo.cc:28: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:41:7: warning: unused variable 'i' [-Wunused-variable]
   int i=0;int j=n-1;
       ^
/in/foo.cc:41:15: warning: unused variable 'j' [-Wunused-variable]
   int i=0;int j=n-1;
               ^
/in/foo.cc:42:3: warning: no return statement in function returning non-void [-Wreturn-type]
   }
   ^
# 状态 耗时 内存占用
#1 Accepted 1ms 404.0 KiB
#2 Accepted 1ms 340.0 KiB
#3 Accepted 1ms 356.0 KiB
#4 Accepted 1ms 352.0 KiB
#5 Accepted 1ms 356.0 KiB

信息

递交者
类型
递交
题目
P1016 OO3-3 有序顺序表类的合并运算
语言
C++
递交时间
2024-05-05 13:02:01
评测时间
2024-05-05 13:02:01
评测机
分数
100
总耗时
7ms
峰值内存
404.0 KiB