记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:20: error: 'FindiMax' was not declared in this scope
  cout<<FindiMax(a,n)<<endl;
                    ^
/in/foo.cc: In function 'void FindiMax(int*, int)':
/in/foo.cc:23:6: error: expected '(' before 'a'
   if a[i]>max
      ^
/in/foo.cc:26:9: error: 'i' was not declared in this scope
  return i;
         ^
/in/foo.cc:26:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
/in/foo.cc:20:6: warning: unused variable 'max' [-Wunused-variable]
  int max=a[n-1];
      ^~~

信息

递交者
类型
递交
题目
A7-3 数组的极值下标函数
语言
C++
递交时间
2019-09-20 22:10:20
评测时间
2019-09-20 22:10:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes