You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int N; cin>>N; vectorv; int i; for ( i=0; i>x; v.push_back(x); } sort(v.begin(),v.end()); for (auto i=v.begin(); i!=v.end(); ++i) { cout<<*i<<" "; } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Vector-Sort
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
include
using namespace std;
int main() { int N; cin>>N; vectorv; int i; for ( i=0; i>x; v.push_back(x); } sort(v.begin(),v.end()); for (auto i=v.begin(); i!=v.end(); ++i) { cout<<*i<<" "; } return 0; }