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)提供评测服务