updated usage in main.cpp

parent 7b55c927
......@@ -2,11 +2,11 @@
#include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
vector<int> inp(n),out;
for (int i=0;i<n;i++) cin>>inp[i];
out=sort_custom(inp);
for (int i=0;i<n;i++) cout<<out[i]<<" ";
int n,s,e;
cin>>n>>s>>e;
vector<int> vec(n),vec1;
for (int i=0;i<n;i++) cin>>vec[i];
vec1=sort_custom(vec,s,e);
for (int i=0;i<n;i++) cout<<vec1[i]<<" ";
return 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment