add API and data read

parents
#include<iostream>
#include "sorting.h"
using namespace std;
int main(){
int n;
cin>>n;
vector<int> v1;
for(int i=0;i<n;i++){
int e;
cin>>e;
v1.push_back(e);
}
vector<int> v2 = sort_custom(v1);
for(int i=0;i<n;i++){
cout<<v2[i]<<" ";
}
return 0;
}
#include<vector>
#include<iostream>
using namespace std;
vector<int> sort_custom(vector<int> data);
\ 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