updated usage in main.cpp

parent 7b55c927
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
#include <iostream> #include <iostream>
using namespace std; using namespace std;
int main(){ int main(){
int n; int n,s,e;
cin>>n; cin>>n>>s>>e;
vector<int> inp(n),out; vector<int> vec(n),vec1;
for (int i=0;i<n;i++) cin>>inp[i]; for (int i=0;i<n;i++) cin>>vec[i];
out=sort_custom(inp); vec1=sort_custom(vec,s,e);
for (int i=0;i<n;i++) cout<<out[i]<<" "; for (int i=0;i<n;i++) cout<<vec1[i]<<" ";
return 0; 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