#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> arr;
int min = 9999999;
sort(arr.begin(), arr.end());
cout << "Min 1: " << arr[0];
cout << endl << "Min 2: " << arr[1];
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> arr;
int min = 9999999;
sort(arr.begin(), arr.end());
cout << "Min 1: " << arr[0];
cout << endl << "Min 2: " << arr[1];
}