Language: C++

#include <iostream>
#include <string>
#include<iomanip>
#include <algorithm>
#include <map>
#include <vector>
#include<queue>
#include<math.h>
#include<cmath>
#include<sstream>
#include<set>
#include <map>
#include<string.h>
#include<sstream>
#include<stack>
#include<unordered_map>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <cstdio>
#include <cstdlib>
#include <complex>
#define ll long long
#define dd double
#define ld long double
#define  point complex<double>
#define  pi acos(-1)
#define ios ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define arr2dof vector  vector<vector<int>>dp(N,vector<int>(2, inf));
using namespace std;
const ll N = 2e5 + 5, mod = 1e9 + 7, inff = -1e12, inf = 1e9 + 7;
const double ep = 0.0000000001;
//const double pi = 3.14159265359;

double dot(point a, point b) {
	return  (conj(a)*b).real();
}
double cross(point a, point b) {
	return  (conj(a)*b).imag();
}
double angle(point a, point b)
{
	double dt = dot(a, b);
	dt /= abs(a);
	dt /= abs(b);
	return acos(dt) * 180.0 / pi;
}

bool isrightangel(int ind) {//90 degree
	vector<point>v;
	return(angle(v[ind] - v[(ind + 1) % 3], v[ind] - v[(ind + 2) % 3]) == 90);//bshof hal eldot producty3ny fe
	//dl3en 3moden 3ashn yb2a right trinagle
}

ll fact[1000006], inv[1000006];

ll fp(ll base, ll exp)
{
	if (exp == 0)
		return 1;
	ll ans = fp(base, exp / 2);
	ans = (ans * ans) % mod;
	if (exp % 2 != 0)
		ans = (ans * (base % mod)) % mod;
	return ans;
}

void calcFacAndInv(ll n)
{
	fact[0] = inv[0] = 1;
	for (ll i = 1; i <= n; i++)
	{
		fact[i] = (i * fact[i - 1]) % mod;
		inv[i] = fp(fact[i], mod - 2);
	}
}

ll ncr(ll n, ll r)
{
	return ((fact[n] * inv[r]) % mod * inv[n - r]) % mod;
}

ll npr(ll n, ll r)
{
	return (fact[n] * inv[n - r]) % mod;
}

int GCD(int a, int b) {
	if (b == 0)
		return a;
	else
		return GCD(b, a%b);
}
int LCM(int a, int b) {
	return (a*b) / GCD(a, b);
}

void intersectline(pair<int,int>a, pair<int, int>b, pair<int, int>c, pair<int, int>d) {

	double a1, b1, c1, a2, b2, c2;
	 a1 = b.second - a.second;
	 b1 = a.first - b.first;
	 c1 = (a1 * a.first) + (b1 * a.second);


      a2 = d.second - c.second;
	  b2 = c.first - d.first;
	  c2 = (a2 * c.first) + (b2 * c.second);

	 double dt= a1 * b2 - a2 * b1;
	 double  dy, dx;
	 dx = c1 * b2 - c2 * b1;
	 dy = a1 * c2 - a2 * c1;
	 if (dt==0&&(dx!=0||dy!=0))
         cout << "NONE" << endl;
	 	 else if (dt == 0 && dx == 0&& dy == 0) {
		 cout << "LINE" << endl;
	 }
	 else {
		 double x = (b2*c1 - b1 * c2) / dt;
		 double y = (a1*c2 - a2 * c1) / dt;
		 if (x==0.0)
				cout <<fixed<<setprecision(2)<< "POINT" << " " << x << " " << y<< endl;
		
	 }

}



	double distance(double x, double y) {
		return sqrt(x*x+ y*y);
	}
	
	
		ld NCR(ll n, ll r)
		{
			if (n < r) return 0.0;
			ld ans = 1;
			int i = n, j = 2, ok = 1;
			while (ok)
			{
				ok = 0;
				if (i > max(r, n - r)) ans *= i, ok = 1;
				if (j <= min(r, n - r)) ans /= j, ok = 1;
				i--, j++;
			}
			return ans;
		}

		
		

		int main(){
			
			int  n, arr[200];
			cin >> n;
			for (int i = 0; i < n; ++i) {
				cin >> arr[i];
			}
			sort(arr, arr + n);
			int k = 0;
			int ans = INT_MAX;
			int cnt = 0;
			while (true) {
				if (k == n)
					break;

				if (arr[k] % 2 == 0) {

					arr[k] /= 2;
					cnt++;
				}

				else {
					k++;
					ans = min(ans, cnt);
					cnt = 0;
				}

			}
			cout << ans;
			return 0;
		}



Compiler output:
a.cc: In function 'int main()':
a.cc:164:35: error: 'INT_MAX' was not declared in this scope
  164 |                         int ans = INT_MAX;
      |                                   ^~~~~~~
a.cc:24:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   23 | #include <complex>
  +++ |+#include <climits>
   24 | #define ll long long