#include using namespace std; int minChan(int a[], int l, int r) { if (r == l) { if (a[l] % 2 == 0) return a[l]; else return INT_MAX; } else { int m = (l + r) / 2; int min1 = minChan(a, l, m); int min2 = minChan(a, m + 1, r); if (min1 < min2) return min1; else return min2; } } int main() { int a[] = {9, 8, 3, -4, 5, 6, 2, 9, 5, 1}; cout << "So chan nho nhat: " << minChan(a, 0, 9) << endl; return 0; }