Commit e713d38f authored by Abhi's avatar Abhi

update usage in main.cpp

parent af6014b3
......@@ -5,16 +5,16 @@
using namespace std;
int main(){
int n;
int n,index1,index2;
vector<int> vin;
vector<int> vout;
cin >> n;
cin >> n>>index1 >>index2;
for (int i = 1; i <= n; i++){
int temp;
cin >>temp;
vin.push_back(temp);
}
vout=sort_custom(vin);
vout=sort_custom(vin,index1,index2);
for (auto i = vout.begin(); i != vout.end(); ++i)
cout << *i << " ";
}
\ 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