Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- int main() {
- int min, i, n;
- cin >> n;
- vector <int> arr(n);
- for (i = 0; i < n; i++)
- cin >> arr[i];
- min = arr[0];
- for (i = 0; i < n; i++) {
- if (arr[i] % 2 != 0 && arr[i] < min)
- }
- if (arr[i] != 0)
- cout << arr[i]; else
- cout << 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement