You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
vector<int> v; int size{}; int num{}; cin >> size; while(cin >> num) { v.push_back(num); } sort(v.begin(), v.end()); for(auto i : v) { 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() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */
}