| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84823 | 张之隽 | 选择排序 | C++ | Compile Error | 0 MS | 0 KB | 418 | 2024-07-16 14:43:39 |
#include<iostream> using namespace std; int a[20000]; int main() { int b,n; int m; cin>>n; for(int i=0;i<n;i++) { cin>>a[i]; } for(int i=0 ;i<n-1;i++) { min=i; for(int j=i+1;j<n;j++) { if(a[m]>a[j]) { m=j; } b=a[i]; a[i]=a[m]; min=b; } for(int i=0;i<n;i++) { cout<<a[i]<<" "; } return 0; } return 0; }
Main.cc: In function 'int main()':
Main.cc:15:6: error: overloaded function with no contextual type information
min=i;
^
Main.cc:24:7: error: overloaded function with no contextual type information
min=b;
^