: In function 'int main()':
:13:27: error: 'i' was not declared in this scope
13 | for(int j=i+1;j<m;++j)
| ^
:14:27: error: 'k' was not declared in this scope
14 | if(a[j]<a[k]) k=j;
| ^
:15:25: error: 'k' was not declared in this scope
15 | int t=a[k];a[k]=a[i]; a[i]=t;
| ^
:15:35: error: 'i' was not declared in this scope
15 | int t=a[k];a[k]=a[i]; a[i]=t;
| ^