记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:13: error: 'a' was not declared in this scope
  SelectSort(a,n);
             ^
/in/foo.cc:6:15: error: 'n' was not declared in this scope
  SelectSort(a,n);
               ^
/in/foo.cc:6:16: error: 'SelectSort' was not declared in this scope
  SelectSort(a,n);
                ^
/in/foo.cc:7:12: error: 'Output' was not declared in this scope
  Output(a,n);
            ^
/in/foo.cc:5:6: warning: unused variable 'an' [-Wunused-variable]
  int an;
      ^~
/in/foo.cc: In function 'void SelectSort(int*, int, int)':
/in/foo.cc:26:7: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator!='
   if(i!=min)
      ~^~~~~
/in/foo.cc:32:13: error: 'Output' was not declared in this scope
   Output(a,n);
             ^
/in/foo.cc:36:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:40:1: error: expected '}' at end of input
 }
 ^

信息

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