记录详情

Compile Error

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

信息

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