记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:13: error: 'a' was not declared in this scope; did you mean 'an'?
    6 |  SelectSort(a,n);
      |             ^
      |             an
foo.cc:6:15: error: 'n' was not declared in this scope; did you mean 'an'?
    6 |  SelectSort(a,n);
      |               ^
      |               an
foo.cc:6:2: error: 'SelectSort' was not declared in this scope
    6 |  SelectSort(a,n);
      |  ^~~~~~~~~~
foo.cc:7:2: error: 'Output' was not declared in this scope
    7 |  Output(a,n);
      |  ^~~~~~
foo.cc:5:6: warning: unused variable 'an' [-Wunused-variable]
    5 |  int an;
      |      ^~
foo.cc: In function 'void SelectSort(int*, int, int)':
foo.cc:26:7: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator!='
   26 |   if(i!=min)
      |      ~^~~~~
foo.cc:32:3: error: 'Output' was not declared in this scope
   32 |   Output(a,n);
      |   ^~~~~~
foo.cc:36:1: error: a function-definition is not allowed here before '{' token
   36 | {
      | ^
foo.cc:40:1: error: expected '}' at end of input
   40 | }
      | ^
foo.cc:12:1: note: to match this '{'
   12 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
DS8-2 选择排序的第k趟
语言
C++
递交时间
2021-12-19 17:17:04
评测时间
2021-12-19 17:17:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes