记录详情

Wrong Answer

/in/foo.cc: In function 'int FindMax(int, int*, int)':
/in/foo.cc:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(a[i]>max)
   ^~
/in/foo.cc:12:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         x=i;
         ^
/in/foo.cc:14:9: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return x;
         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:23: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<FindMax(max,a,n)<<endl;
                       ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 356.0 KiB
#2 Wrong Answer 1ms 380.0 KiB
#3 Wrong Answer 1ms 332.0 KiB
#4 Wrong Answer 1ms 324.0 KiB
#5 Wrong Answer 1ms 336.0 KiB

信息

递交者
类型
递交
题目
A7-3 数组的极值下标函数
比赛
泰院2401程序设计基础作业赛第五场
语言
C++
递交时间
2024-11-18 17:36:39
评测时间
2024-11-18 17:36:39
评测机
分数
0
总耗时
8ms
峰值内存
380.0 KiB