criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
using namespace std;

int N;
int A[210];    

int main(){
  cin >> N;
  for (int i = 0; i =< N; ++i) cin >> A[i];
  
  int res = 0;
  
  while(true){
    bool exist_odd=false;
    for(int i = 0;i<N;++i){
      if(A[i]%2 != 0)exist_odd = true;
    }
    
    if(exist_odd)break;
    
    for (int i = 0; i < N; ++i){
      A[i] /= 2;
    }
    ++res;
  }
  
  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before '<' token
    9 |   for (int i = 0; i =< N; ++i) cin >> A[i];
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int cnt2(int x){
	int n = 0;
    while(!(x&1)){
    	n++;
        x >>= 1;
    }
}

int main(){
	int n; cin >> n;
    int ans = 1001001001;
    for(int i = 0; i < n; ++i){
    	int x; cin >> x;
       	x = cnt2(x);
        ans = min(ans, x);
    }
    cout << x << endl;
}

Compiler output:
a.cc: In function 'int cnt2(int)':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
a.cc: In function 'int main()':
a.cc:19:13: error: 'x' was not declared in this scope
   19 |     cout << x << endl;
      |             ^
Language: Java

import java.util.Scanner;

public class B81 {
	public static void main(String args[]) {


		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		int nums[] = new int[n];

//		Scanner sc2 = new Scanner(System.in);
		for (int i = 0; i < n; i++) {
			nums[i] = Integer.parseInt(sc.next());
		}
		int count = 0;

		while (true) {

			boolean flg = false;

			for (int i = 0; i < n; i++) {
				if (nums[i] % 2 == 0) {
					flg = true;
					nums[i] = nums[i]/2;
				} else {
					flg = false;
					break;
				}
			}

			if (flg) {
				count++;

				continue;
			} else {
				break;
			}
		}

		System.out.println(count);

	}
}


Compiler output:
Main.java:3: error: class B81 is public, should be declared in a file named B81.java
public class B81 {
       ^
1 error
Language: C++

#include<iostream>

using namespace std;

int N;
int A[210];

int main() {
	cin >> N;
	for (int i = 0; I < N; ++i) cin >> A[i];

	int res = 0;
	
	//操作が行える限り繰り返す
	while (true) {
		bool exist_odd = false; //A[i]がすべて偶数か判断するフラグ
		for (int i = 0; i < N; ++i) {
			if (A[i] % 2 != 0) exist_odd = true; //奇数ならフラグを立てる
				}
				
		
		if (exist_odd) break; //奇数があったらbreak

		//操作が行える場合、行う
		for (int i = 0; i < N; ++i){
			A[i] /= 2;
			}
		++res; //操作回数カウント
		}

		cout << res <<endl;		

	}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'I' was not declared in this scope
   10 |         for (int i = 0; I < N; ++i) cin >> A[i];
      |                         ^
Language: C++

#include<iostream>
#include<bitset>
#include<vector>

int main(){
    size_t n;
    std::cin >> n;

    int_fast16_t m_hat = INT_FAST16_MAX;
    int_fast16_t t_hat
    int_fast_32_t t;
    std::bitset<32> bit;
    for(auto i = 0; i < n; i++){
        std::cin >> t;
        bit = t;
        for(t_hat = 0; (t_hat < 32) && !bit[t_hat]; t_hat++){}
        m_hat = std::min(m_hat,t_hat);
    }
    std::cout << m_hat << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'int_fast16_t' was not declared in this scope
    9 |     int_fast16_t m_hat = INT_FAST16_MAX;
      |     ^~~~~~~~~~~~
a.cc:10:17: error: expected ';' before 't_hat'
   10 |     int_fast16_t t_hat
      |                 ^~~~~~
      |                 ;
a.cc:14:21: error: 't' was not declared in this scope
   14 |         std::cin >> t;
      |                     ^
a.cc:16:13: error: 't_hat' was not declared in this scope
   16 |         for(t_hat = 0; (t_hat < 32) && !bit[t_hat]; t_hat++){}
      |             ^~~~~
a.cc:17:9: error: 'm_hat' was not declared in this scope
   17 |         m_hat = std::min(m_hat,t_hat);
      |         ^~~~~
a.cc:17:32: error: 't_hat' was not declared in this scope
   17 |         m_hat = std::min(m_hat,t_hat);
      |                                ^~~~~
a.cc:19:18: error: 'm_hat' was not declared in this scope
   19 |     std::cout << m_hat << std::endl;
      |                  ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define MIN(a,b) ((a)<(b) ? (a) : (b))

int main() {
  int N;
  int max_ = 30;
  
  cin >> N;
  
  for ( int i = 0 ; i < N ; i++ ) {
    int x;
    int count=0;
    cin >> x;
    while (!(x & 1)) {
      count++;
      x >> 1;
    }
    max_ = MIN(max_,count)
  }
  
  cout << max_ << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: expected ';' before '}' token
   20 |   }
      |   ^
Language: C

#include<stdio.h>

#define lim 1000000000

int main() {
  unsigned long long int N, A[lim+1], K[lim+1];
  long long int i, ans=-1;
  
  scanf("%lld", &N);
  
  for(i=0;i<N;i++) {
    scanf("%lld", &a[i]);
  }
  
  do {
  	for(i=0;i<N;i++) {
      K[i] = A[i] % 2;
      if(K[i] == 1) {
        a=1;
      }
      A[i] = A[i] / 2;
      ans++;
    }
  }while(a!=1);
  
  printf("%lld", ans);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: 'a' undeclared (first use in this function)
   12 |     scanf("%lld", &a[i]);
      |                    ^
main.c:12:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <array>
using namespace std;
int main(){
  int n;
  int count = 0;
  cin >> n;
  array<int,n> A;
  for (int i = 0 ; i<n; ++i){
    cin >> A[i];
  }
 
  while (1) {
    for (int i; i < n; ++i) {
      if (A[i] % 1 == 1) {
        cout << count;
        return 0;
      } else {
        A[i] = A[i]/2;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: the value of 'n' is not usable in a constant expression
    8 |   array<int,n> A;
      |              ^
a.cc:5:7: note: 'int n' is not const
    5 |   int n;
      |       ^
a.cc:8:14: note: in template argument for type 'long unsigned int'
    8 |   array<int,n> A;
      |              ^
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |     cin >> A[i];
      |             ^
a.cc:15:12: error: invalid types 'int[int]' for array subscript
   15 |       if (A[i] % 1 == 1) {
      |            ^
a.cc:19:10: error: invalid types 'int[int]' for array subscript
   19 |         A[i] = A[i]/2;
      |          ^
a.cc:19:17: error: invalid types 'int[int]' for array subscript
   19 |         A[i] = A[i]/2;
      |                 ^
Language: C++

#include <iostream>
#include <array>
using namespace std;
int main(){
  int n;
  int count = 0;
  cin >> n;
  array<int> A(n);
  for (int i = 0 ; i<n; ++i){
    cin >> A[i];
  }
 
  while (1) {
    for (int i; i < n; ++i) {
      if (A[i] % 1 == 1) {
        cout << count;
        return 0;
      } else {
        A[i] = A[i]/2;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: wrong number of template arguments (1, should be 2)
    8 |   array<int> A(n);
      |            ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_pair.h:99:12: note: provided for 'template<class _Tp, long unsigned int _Nm> struct std::array'
   99 |     struct array;
      |            ^~~~~
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |     cin >> A[i];
      |             ^
a.cc:15:12: error: invalid types 'int[int]' for array subscript
   15 |       if (A[i] % 1 == 1) {
      |            ^
a.cc:19:10: error: invalid types 'int[int]' for array subscript
   19 |         A[i] = A[i]/2;
      |          ^
a.cc:19:17: error: invalid types 'int[int]' for array subscript
   19 |         A[i] = A[i]/2;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;
  int count = 0;
  cin >> n;
  array<int> A(n);
  for (int i = 0 ; i<n; ++i){
    cin >> A[i];
  }
 
  while (1) {
    for (int i; i < n; ++i) {
      if (A[i] % 1 == 1) {
        cout << count;
        return 0;
      } else {
        A[i] = A[i]/2;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: wrong number of template arguments (1, should be 2)
    7 |   array<int> A(n);
      |            ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_pair.h:99:12: note: provided for 'template<class _Tp, long unsigned int _Nm> struct std::array'
   99 |     struct array;
      |            ^~~~~
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cin >> A[i];
      |             ^
a.cc:14:12: error: invalid types 'int[int]' for array subscript
   14 |       if (A[i] % 1 == 1) {
      |            ^
a.cc:18:10: error: invalid types 'int[int]' for array subscript
   18 |         A[i] = A[i]/2;
      |          ^
a.cc:18:17: error: invalid types 'int[int]' for array subscript
   18 |         A[i] = A[i]/2;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;
  int count = 0;
  cin >> n;
  vector A[n];
  for (int i = 0 ; i<n; ++i){
    cin >> A[i];
  }

  while (1) {
    for (int i; i < n; ++i) {
      if (A[i] % 1 == 1) {
        cout << count;
        return 0;
      } else {
        A[i] = A[i]/2;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector A[n];
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:9:12: error: 'A' was not declared in this scope
    9 |     cin >> A[i];
      |            ^
a.cc:14:11: error: 'A' was not declared in this scope
   14 |       if (A[i] % 1 == 1) {
      |           ^
Language: C

#include<stdio.h>
int main(){
	int N;
	scanf("%d",&N);
	int A[N];
	for(int i=0;i<N;i++) scanf("%d",&A[i]);
	int ans=0;
	while(true){
		bool check=true;
		for(int i=0;i<N;i++){
			if(A[i]%2!=0) check=false;
			A[i]/=2;
		}
		if(!check) break;
		ans++;
	}
	printf("%d\n",ans);
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'true' undeclared (first use in this function)
    8 |         while(true){
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(){
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
    8 |         while(true){
      |               ^~~~
main.c:9:17: error: unknown type name 'bool'
    9 |                 bool check=true;
      |                 ^~~~
main.c:9:17: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:11:45: error: 'false' undeclared (first use in this function)
   11 |                         if(A[i]%2!=0) check=false;
      |                                             ^~~~~
main.c:11:45: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, A, ans;
  ans = 30
  cin >> N;
  
  for (int i = 0; i < N; i++) {
    cin >> A;
    for (int j = 0; j < 30; j++) {
      if (A % 2 == 0) {
        A /= 2;
      }
      else if (j < ans) {
        ans = j;
        break;
      }
    }
  }
  
  cout << ans << endl;
        
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'cin'
    6 |   ans = 30
      |           ^
      |           ;
    7 |   cin >> N;
      |   ~~~
Language: C++

#include <iostream>
#include <array>
using namespace std;

int main()
{
  int n;
  int c=0;
  cin >> n;
  array<int, n> ary;
  for (int i=0; i<n; i++) cin >> ary[i];
  while(1) {
    for (int i=0; i<n; i++){
      if (0 == ary[i]%2) {
        ary[i] = ary[i]/2;
      }
      else {
        break;
      }
    }
    c++;
  }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: the value of 'n' is not usable in a constant expression
   10 |   array<int, n> ary;
      |               ^
a.cc:7:7: note: 'int n' is not const
    7 |   int n;
      |       ^
a.cc:10:15: note: in template argument for type 'long unsigned int'
   10 |   array<int, n> ary;
      |               ^
a.cc:11:37: error: invalid types 'int[int]' for array subscript
   11 |   for (int i=0; i<n; i++) cin >> ary[i];
      |                                     ^
a.cc:14:19: error: invalid types 'int[int]' for array subscript
   14 |       if (0 == ary[i]%2) {
      |                   ^
a.cc:15:12: error: invalid types 'int[int]' for array subscript
   15 |         ary[i] = ary[i]/2;
      |            ^
a.cc:15:21: error: invalid types 'int[int]' for array subscript
   15 |         ary[i] = ary[i]/2;
      |                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,cnt,sum;
  long X;
  bool j;
  j = 0;
  cnt = 0;
  cin >> N;
  for(int i = 0;i < N;i++){
   	    cin >> X;
    	if(x%2 != 0){
          	j == -1;
        	break;
        }
		sum += X;
    }
  while(j){
    if(sum%2 != 0){
        j = -1;
 	  	break;
    }
    sum /= 2;
    cnt++;
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'x' was not declared in this scope
   13 |         if(x%2 != 0){
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,cnt,sum;
  long X;
  bool j;
  j = 0;
  cnt = 0;
  cin >> N;
  while(j){
  	for(int i = 0;i < N;i++){
    	cin >> X;
		sum += X;
    }
    if(sum%2 != 0){
        j = -1;
 	  	break;
    }
    sum /= 2
    cnt ++;
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: expected ';' before 'cnt'
   20 |     sum /= 2
      |             ^
      |             ;
   21 |     cnt ++;
      |     ~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
using namespace std;
typedef long long ll;


int main() {

    int n;
    cin >> n;
    vector<ll> a(n);
    rep(i,n) cin >> a[i];
    int ans = 0;
    for (int j = 0; j < 10; ++j) {
        ++c;
        bool odd = false;
        rep(i,n) {
            if (a[i] % 2 == 1) odd = true;
        }
        if (odd) break;
        ++ans;
        rep(i,n) a[i] /= 2;
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'c' was not declared in this scope
   15 |         ++c;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, A;
  cin >> N;
  
  int min = 33;
  for (int i = 0; i < N; i++) {
    int n = 0;
    cin >> A;
    for (int j = 0; j < 31; j++) {
      if (A % 2 == 0)
        n = n + 1;
        A = A / 2;
      else
        break;
    }
    if (n < min)
      min = n;
  }
  cout << min << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'else' without a previous 'if'
   16 |       else
      |       ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  
  int a;
  int ans = 0;
  int key = 0;
  for (int i = 0; i < n; i++){
    key = 0;
    cin >> a;
    while (a%2 == 0){
      a /= 2;
      key++;
    }
    if (key > ans){
      ans = key
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: expected ';' before '}' token
   19 |       ans = key
      |                ^
      |                ;
   20 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
	int N;
	int num;
	int tmp = 0;
	int result;

	cin >> N;

	for (int i = 0; i < N; i++) {
		cin >> num;
		for (int j = 0; j++) {
			//偶数
			if (num % 2 == 0) {
				num /= 2;
				tmp++;
			}
			else {
				//最小かどうかのチェック
				if (i = 0) {
					result = tmp;
				}
				else if (result > tmp) {
					result = tmp;
				}
				break;
			}
		}
	}
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected ';' before ')' token
   14 |                 for (int j = 0; j++) {
      |                                    ^
      |                                    ;
Language: Java

import java.util.ArrayList;
import java.util.List;
 
public class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		List<Integer> box = new ArrayList<>();
		int count = 0;
 
		// 与えられた初期値によってリストを作成
		for (int i = 1; i <= a; i++) {
			box.add(sc.nextInt());
		}
		while (check(box)) {
			box = divide(box);
			count++;
		}
		System.out.println(count);
	}
 
	/**
	 * 格納された全ての値が偶数かそうではないかをチェックするメソッド
	 * 
	 * @param box
	 * @return boolean
	 */
	private static boolean check(List<Integer> box) {
		for (int i = 0; i < box.size(); i++) {
			if (box.get(i) % 2 == 1) {
				return false;
			}
		}
		return true;
	}
 
	/**
	 * リストを受け取って、各値を2で割った値を返す
	 * 
	 * @param box
	 * @return List<Integer>
	 */
	private static List<Integer> divide(List<Integer> box) {
		List<Integer> dividedBox = new ArrayList<>();
		for (int i = 0; i < box.size(); i++) {
			dividedBox.add(box.get(i) / 2);
		}
		return dividedBox;
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
      ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.ArrayList;
import java.util.List;

public class ShiftOnly {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		List<Integer> box = new ArrayList<>();
		int count = 0;

		// 与えられた初期値によってリストを作成
		for (int i = 1; i <= a; i++) {
			box.add(sc.nextInt());
		}
		while (check(box)) {
			box = divide(box);
			count++;
		}
		System.out.println(count);
	}

	/**
	 * 格納された全ての値が偶数かそうではないかをチェックするメソッド
	 * 
	 * @param box
	 * @return boolean
	 */
	private static boolean check(List<Integer> box) {
		for (int i = 0; i < box.size(); i++) {
			if (box.get(i) % 2 == 1) {
				return false;
			}
		}
		return true;
	}

	/**
	 * リストを受け取って、各値を2で割った値を返す
	 * 
	 * @param box
	 * @return List<Integer>
	 */
	private static List<Integer> divide(List<Integer> box) {
		List<Integer> dividedBox = new ArrayList<>();
		for (int i = 0; i < box.size(); i++) {
			dividedBox.add(box.get(i) / 2);
		}
		return dividedBox;
	}
}

Compiler output:
Main.java:4: error: class ShiftOnly is public, should be declared in a file named ShiftOnly.java
public class ShiftOnly {
       ^
Main.java:6: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
      ^
  symbol:   class Scanner
  location: class ShiftOnly
Main.java:6: error: cannot find symbol
      Scanner sc = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class ShiftOnly
3 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
  int n;
  int numbers[i];
  for(int i=0;i<n;i++){
    cin >> numbers[i];
  }
  
  int counter = 0;
  for(int i=0;i<n;i++){
    if(numbers[i] % 2==0){
		numbers[i] = numbers[i] / 2;
    }else{
        break;
    }
    counter++;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'i' was not declared in this scope
    6 |   int numbers[i];
      |               ^
a.cc:8:12: error: 'numbers' was not declared in this scope
    8 |     cin >> numbers[i];
      |            ^~~~~~~
a.cc:13:8: error: 'numbers' was not declared in this scope
   13 |     if(numbers[i] % 2==0){
      |        ^~~~~~~
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main() {
	int n; cin >> n;
	vector<int> A(n);
	for(int i = 0; i < n; i++) {
		cin >> A[i];
	}
		
	int ans = 0;
	bool flag = false;
 
	while(1){
		for(int i = 0; i < n; i++) {
			if(A[i] % 2 == 0) {
				A[i] /= 2;
			}else{
				flag = true;
			}
		}
		if(flag) break;
		ans++;
	}
 
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'vector' was not declared in this scope
    6 |         vector<int> A(n);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:16: error: expected primary-expression before 'int'
    6 |         vector<int> A(n);
      |                ^~~
a.cc:8:24: error: 'A' was not declared in this scope
    8 |                 cin >> A[i];
      |                        ^
a.cc:16:28: error: 'A' was not declared in this scope
   16 |                         if(A[i] % 2 == 0) {
      |                            ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;

int main () {
  int n;
  int a[200];
  cin>>n;
  for(int i=0;i<n;i++) cin>>a[i];
  bool wareru = true;
  int c=0;
  while(wareru){
    for(int i=0;i<n;i++){
      if(a[i]%2==0) a[i]/=2;
      else wareru=false;
    }
    if(!wareru) break;
    c++;
  }
  count << c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   21 |   count << c;
      |   ~~~~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main (){
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i =0; i < N; i++){
    cin >> A[i];
  }
  
  int count = 0;
    while(true){
      bool flag = false;
      
      for(int i = 0; i < N; i ++){
        if (A[i] %2 != 0) flag = true;
      }
      
      if(flag) break;
      
      for(int j = 0 ; j < N; j ++){
        A[j] /= 2
      }
      count++;
  	}
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: expected ';' before '}' token
   23 |         A[j] /= 2
      |                  ^
      |                  ;
   24 |       }
      |       ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main (){
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i =0; i < N; i++){
    cin >> A[i];
  }
  
  int count = 0;
    while(true){
      bool flag = false;
      
      for(int i = 0; i < N; i ++){
        if (A[i] %2 != 0) flag = true;
      }
      
      if(flag) break;
      
      for(int j = 0 ; j < N; j ++){
        A[j] /= 2
      count++;
    }
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: expected ';' before 'count'
   23 |         A[j] /= 2
      |                  ^
      |                  ;
   24 |       count++;
      |       ~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main (){
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i =0; i < N; i++){
    cin >> A[i];
  }
  
  int count = 0;
    while(true){
      bool flag = false;
      
      for(int i = 0; i < N; i ++){
        if (A[i] %2 != 0) flag = true;
      }
      
      if(flag) break;
      
      for(int j = 0 ; j < N; j ++){
        A[i] /= 2
      count++;
    }
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: 'i' was not declared in this scope
   23 |         A[i] /= 2
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
 int N;
 int d = 100;
  cin >> N;
  rep(i, N) {
 int A;
 cin >> A;
 rep(i ,100){
 int c=0;
if(A%2==1){
break;
}
else{
 A/=2;
 c++;
 }
 }
  d = min(d,c);
 }
cout  << d << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'c' was not declared in this scope
   22 |   d = min(d,c);
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;

  for (int i = 0,d==0; i < N;i++) {
    int A;
    cin >> A;
	while(A%2 == 0){
      A /= 2;
      d++;
    }
    cout << d <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before '==' token
    8 |   for (int i = 0,d==0; i < N;i++) {
      |                   ^~
      |                   ;
a.cc:8:19: error: expected primary-expression before '==' token
    8 |   for (int i = 0,d==0; i < N;i++) {
      |                   ^~
a.cc:8:29: error: expected ')' before ';' token
    8 |   for (int i = 0,d==0; i < N;i++) {
      |       ~                     ^
      |                             )
a.cc:8:30: error: 'i' was not declared in this scope
    8 |   for (int i = 0,d==0; i < N;i++) {
      |                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;

  for (int i = 0; i < N) {
    int A;
    cin >> A;
	while(A%2 == 0){
      A /= 2;
      i++;
    }
    cout << i <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before ')' token
    8 |   for (int i = 0; i < N) {
      |                        ^
      |                        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int i=0,N;
  cin >> N;

    while(i < N){
    int A;
    cin >> A;
    if(A%(2-i) == 0){
      i++
    }
   cout << i << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected ';' before '}' token
   12 |       i++
      |          ^
      |          ;
   13 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;

  for (int i = 0; i < N; i++) {
    int A;
    cin >> A;
    if(A%(2-i) == 1){
    cout << i << endl;
    break;
    }
  }
  
    cout << x  << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'x' was not declared in this scope
   17 |     cout << x  << endl;
      |             ^
Language: C++

#include <bits/ctdc++.h>
using namespace std;

int main(){
  int N,a,b;
  a,b=0;
  for(int i=0;i<N;i++){
    int c;
    cin>>c;
    if(a<b){
      b=0;
    while(c%2 == 0){
      c/=2;
      b++;
    }
    }
    else{
      a=0;
      while(c%2 == 0){
        c/=2;
        a++;
      }
    }
  }
  if(a<b){
    cout<<a<<endl;
  }
  else{
    cout<<b<<endl;
  }
}
    

Compiler output:
a.cc:1:10: fatal error: bits/ctdc++.h: No such file or directory
    1 | #include <bits/ctdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N,b;
  b=0;
  cin>>N;
  for(int i=0;true;i++){
    if(c==1){
      break;
    }
  for(int j=0;j<N;j++){
    int a;
    cin>>a;
    b +=;
    if(a%2==0){
      a/=2;
    }
    else{
      c+=;
    }
  }
  }
  cout<<b<<endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'c' was not declared in this scope
    9 |     if(c==1){
      |        ^
a.cc:15:9: error: expected primary-expression before ';' token
   15 |     b +=;
      |         ^
a.cc:20:7: error: 'c' was not declared in this scope
   20 |       c+=;
      |       ^
a.cc:20:10: error: expected primary-expression before ';' token
   20 |       c+=;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N,b;
  b=0;
  cin>>N;
  for(int i=0;true;i++){
    if(c==1){
      break;
    }
  for(int j=0;j<N;j++){
    int a;
    cin>>a;
    b +=;
    if(a%2==0){
      a/=2;
    }
    else{
      c+=;
    }
  }
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'c' was not declared in this scope
    9 |     if(c==1){
      |        ^
a.cc:15:9: error: expected primary-expression before ';' token
   15 |     b +=;
      |         ^
a.cc:20:7: error: 'c' was not declared in this scope
   20 |       c+=;
      |       ^
a.cc:20:10: error: expected primary-expression before ';' token
   20 |       c+=;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin>>N;
  for(int i=0;true;i++){
    if(c==1){
      break;
    }
  for(int j=0;j<N;j++){
    int a;
    cin>>a;
    if(a%2==0){
      a/=2;
    }
    else{
      c+=;
    }
  }
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'c' was not declared in this scope
    8 |     if(c==1){
      |        ^
a.cc:18:7: error: 'c' was not declared in this scope
   18 |       c+=;
      |       ^
a.cc:18:10: error: expected primary-expression before ';' token
   18 |       c+=;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,A[200]={0},flag=0,i,sum=0;​#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,A[200]={0},flag=0,i,sum=0;
   cin>>N;
  for(i=0;i<N;i++)
    cin>>A[i];
  while(flag==0){
    for(i=0;i<N;i++){
      if(A[i]%2==1){
        flag=1;
        break;
      }
    }
      sum++;
  }
  cout<<sum<<endl;
}
   cin>>N;
  for(i=0;i<N;i++)
    cin>>A[i];
  while(flag==0){
    for(i=0;i<N;i++){
      if(A[i]%2==1){
        flag=1;
        break;
      }
    }
      sum++;
  }
  cout<<sum<<endl;
}

Compiler output:
a.cc:4:35: error: stray '#' in program
    4 |   int N,A[200]={0},flag=0,i,sum=0;​#include<bits/stdc++.h>
      |                                   ^
a.cc: In function 'int main()':
a.cc:4:35: error: '\U0000200b' was not declared in this scope
    4 |   int N,A[200]={0},flag=0,i,sum=0;​#include<bits/stdc++.h>
      |                                    
a.cc:6:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 | int main(){
      |         ^~
a.cc:6:9: note: remove parentheses to default-initialize a variable
    6 | int main(){
      |         ^~
      |         --
a.cc:6:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:6:11: error: a function-definition is not allowed here before '{' token
    6 | int main(){
      |           ^
Language: C++

#include <stdio.h>
int arr[210];
int main() {
  int num;
  scanf("%d", &num);
  for (int i = 0; i < num;) scanf("%d", (arr+i));
  int cnt = 0;
  for (int i = 0;;i++) {
    if (arr[i%num] % 2 == 0) arr[i%num] = arr[i%num] / 2;
    else {
      cnt = (i+1) / num;
      break;
    }
  }
  std::cout << cnt << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'cout' is not a member of 'std'
   15 |   std::cout << cnt << '\n';
      |        ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | int arr[210];
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
int N;
  int min,count=0;
  min=2*2*2*2*2*2*2*2*2;
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>a;
    while(a%2==0){
      a=a/2;
      count+=1;
    }
    
    if(min>count){
      min=count;
    }
  }
  cout<<min<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'a' was not declared in this scope
   10 |     cin>>a;
      |          ^
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Abc081B {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int n = scanner.nextInt();

    List<Integer> numbers = new ArrayList<>();
    for (int i = 0; i < n; i++) {
      numbers.add(scanner.nextInt());
    }

    int count = 0;


    List<Integer> numbers2 = new ArrayList<>();

    while (true) {

      List<Integer> nextNumbers = new ArrayList<>();

      boolean allEven = numbers.stream().allMatch(number -> {
        nextNumbers.add(number / 2);
        return number % 2 == 0;
      });

      if (allEven) {
        count++;

        numbers = nextNumbers;
      } else {
        break;
      }
    }

    System.out.println(count);
    scanner.close();
  }
}


Compiler output:
Main.java:5: error: class Abc081B is public, should be declared in a file named Abc081B.java
public class Abc081B {
       ^
1 error
Language: Java

import java.util.Scanner;

public class ABC081B {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] = new int[N-1];
		int n = 0;
		int c = 0;
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		for(int j = 0; j < N; j++) {
			for(int i = 0; i < 9; i++) {
				if(A[i] % 2 == 1) {
					break;
				}else {
					c++;
				}
				if(c == N) {
					n++;
				}else {
					
				}
				c = 0;
			}
		}
		System.out.println(n);
	}

}


Compiler output:
Main.java:3: error: class ABC081B is public, should be declared in a file named ABC081B.java
public class ABC081B {
       ^
1 error
Language: Java

import java.util.*;
	public class Main{
    public static void main(String[] args){
    	
      Scanner sc= new Scanner(System.in);
      
      int N =sc.nextInt();
      int bit = 0;
      
      for(i=0; i<N; i++){
      	bit |= sc.nextInt();
      }
       System.out.println(Integer.numberOfTrailingZeros(bit));
    }
    }


Compiler output:
Main.java:10: error: cannot find symbol
      for(i=0; i<N; i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      for(i=0; i<N; i++){
               ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      for(i=0; i<N; i++){
                    ^
  symbol:   variable i
  location: class Main
3 errors
Language: Java

import java.util.*;
	public class Main{
    public static void main(String[] args){
    	
      Scanner sc= new Scanner(System.in);
      
      int N =sc.nextInt();
      int bit = 0;
      
      for(i=0; i<N){
      	bit |= sc.nextInt();
      }
       System.out.println(Integer.numberOfTrailingZeros(bit));
    }
    }


Compiler output:
Main.java:10: error: ';' expected
      for(i=0; i<N){
                  ^
1 error
Language: Java

import java.util.*;
	public class Main{
    public static void main(String[] args){
    	
      Scanner sc= new Scanner(System.in);
      
      int N =sc.nextInt();
      int bit = 0
      
      for(i=0; i<N){
      	bit |= sc.nextInt();
      }
       System.out.println(Integer.numberOfTrailingZeros(bit));
    }
    }

Compiler output:
Main.java:8: error: ';' expected
      int bit = 0
                 ^
Main.java:10: error: ';' expected
      for(i=0; i<N){
                  ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, A;
  cin >> N, A;
  int m1 = 0, m2;
  
  while (A % 2 == 0){
    A = A / 2;
    m1 ++;
  }
  
  for (int i = 0; i < N - 1; i++){
    cin >> A;
    m2 = 0;
    
    while (A % 2 == 0){
      A = A /2;
      m2 ++;
    }
    
    m1 = min (m1, m2)
  }
  
  cout << m1 <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:22: error: expected ';' before '}' token
   23 |     m1 = min (m1, m2)
      |                      ^
      |                      ;
   24 |   }
      |   ~
Language: C++

import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
using namespace std ;

int main()
{
  int N ;
  cin>>N ;
  for(int i=0;i<N;i++) cin>>A[i] ;
  
  int count=0 ;
  for(int i=0;i<N;i++){
    if(A[i]%2!=0) break ;
    if(i==N-1){
      i=-1 ;
      count++ ;
    }
  }
  cout<<count<<endl ;
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'A' was not declared in this scope
    8 |   for(int i=0;i<N;i++) cin>>A[i] ;
      |                             ^
a.cc:12:8: error: 'A' was not declared in this scope
   12 |     if(A[i]%2!=0) break ;
      |        ^
Language: C++

#include<iostream>
using namespace std ;

int main()
{
  int N ;
  cin>>N ;
  int A[N] ;
  for(int i=0;i<N;i++) cin>>A[i] ;
  
  int count=0 ;
  int flag=0 ;
  while(flag==0){
    for(int i=0;i<N;i++){
      if(A[i]%2!=0){
        flag=1
        break ;
      }
    }
    count++ ;
  }
  cout<<flag+1<<endl ;
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected ';' before 'break'
   16 |         flag=1
      |               ^
      |               ;
   17 |         break ;
      |         ~~~~~
Language: C++

#include <stdio.h>

using namespace std;

int main(){
	cin >> N;
    for (int i = 0; i < N; ++i) cin >> A[i];

    int ans = 0;

    while (true) {
        bool x = false; 
        for (int i = 0; i < N; ++i) {
            if (A[i] % 2 != 0) x = true;
        }

        if (x) break;

        for (int i = 0; i < N; ++i) {
            A[i] /= 2;
        }
        ++ans;
    }

    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> N;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:6:16: error: 'N' was not declared in this scope
    6 |         cin >> N;
      |                ^
a.cc:7:40: error: 'A' was not declared in this scope
    7 |     for (int i = 0; i < N; ++i) cin >> A[i];
      |                                        ^
a.cc:14:17: error: 'A' was not declared in this scope
   14 |             if (A[i] % 2 != 0) x = true;
      |                 ^
a.cc:20:13: error: 'A' was not declared in this scope
   20 |             A[i] /= 2;
      |             ^
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << ans << endl;
      |     ^~~~
a.cc:25:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:20: error: 'endl' was not declared in this scope
   25 |     cout << ans << endl;
      |                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 |
Language: C

#include <stdio.h>

void (){
  printf("%ld",d);
  return 0;
}

int main(){
	int n,i,e;
	long d=0;
	long a[200],c[200]={0};

  scanf("%d",&n);
	for(i=0;i<n;i++)
	 scanf("%ld",&a[i]);
	  while(1){
      for(i=0;i<n;i++){
		      if(a[i]%2==0){
			         e=1;
			         a[i]/=2;
		      }
		        else{
              e=0;
		        break;
            }
		   }
		     if(e==1)
		       d++;
		         else
		       break;
      }
  return 0;
	}

Compiler output:
main.c:3:7: error: expected identifier or '(' before ')' token
    3 | void (){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int N, x, prime, rewrite=30;
  cin >> N;
  for(int i=0;i<N;i++)
  {
    for(int i=0;i<N;i++)
    {
    prime=0;
    cin >> x;
    if(x%2!=0)
       rewrite=0;
       break;
    else
       x/=2;
       prime++;
    }
    if(rewrite>prime)
      rewrite=prime;
  }
  cout << rewrite << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int N, x, prime, rewrite=30;
  cin >> N;
  for(int i=0;i<N;i++)
  {
    prime=0;
    cin >> x;
    if(x%2==0)
    {
       (x+1)/=2;
       prime++;
    }
    if(rewrite>prime)
      rewrite=prime;
  }
  cout << rewrite << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: lvalue required as left operand of assignment
   14 |        (x+1)/=2;
      |        ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int N, x, count=0;
  double sum=0;
  cin >> N;
  for(int i=0;i<N;i++)
  {
    cin >> x;
    sum+=x;
  }
  for(int j=0;j<30;j++)
  {
    if(sum%2.0==0)
    {
      count++;
      sum/=2.0;
    }
    else
      break;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   16 |     if(sum%2.0==0)
      |        ~~~^~~~
      |        |   |
      |        |   double
      |        double
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int N, x, count=0;
  double sum=0;
  cin >> N;
  for(int i=0;i<N;i++)
  {
    cin >> x;
    sum+=x;
  }
  for(int j=0;j<30;j++)
  {
    if(sum%2==0)
    {
      count++;
      sum/=2.0;
    }
    else
      break;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |     if(sum%2==0)
      |        ~~~^~
      |        |   |
      |        |   int
      |        double
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int N, x, sum=0, count=0;
  cin >> N;
  for(int i=0;i<N;i++)
  {
    cin >> x;
    sum+=x;
  }
  for(int j=0;j<30;j++)
  {
    if(sum%2==0)
    {
      count++;
      (sum+1)/=2;
    }
    else
      break;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: lvalue required as left operand of assignment
   18 |       (sum+1)/=2;
      |       ~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int N, x, sum=0, count=0;
  cin >> N;
  for(int i=0;i<N;i++)
  {
    cin >> x;
    sum+=x;
  }
  for(int j=0;j<sum;j++)
  {
    if(sum%2==0)
      count++;
      sum/=2;
    else
      break;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'else' without a previous 'if'
   18 |     else
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<int> input(N);

  for(int i = 0 ; i < N ; i++){
  	cin >> input(i); 
  }

  int count = 0;
  bool flag = true;
  
  while(true){
   for(int i = 0;i <N ; i++){
   	if(input(i)%2 == 0){
     input(i) = input(i)/2; 
    }
	else{
      flag = false;
      break;
   }
   if(flag == true) count += 1;
   else break;
  }
  cout << count << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: no match for call to '(std::vector<int>) (int&)'
   10 |         cin >> input(i);
      |                ~~~~~^~~
a.cc:18:17: error: no match for call to '(std::vector<int>) (int&)'
   18 |         if(input(i)%2 == 0){
      |            ~~~~~^~~
a.cc:19:11: error: no match for call to '(std::vector<int>) (int&)'
   19 |      input(i) = input(i)/2;
      |      ~~~~~^~~
a.cc:19:22: error: no match for call to '(std::vector<int>) (int&)'
   19 |      input(i) = input(i)/2;
      |                 ~~~~~^~~
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
	int N,A,x,a=30;
  cin >> N;
	for(int i=0;i<N;i++){
  		cin >> A;
    	while(A%2=0){
          A/=2;
      	  x++;
        }
      if(a > x)
      a = x;
       }
  cout << a;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: lvalue required as left operand of assignment
    9 |         while(A%2=0){
      |               ~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int ans_min = 10000000;
  cin >> n;
  for(int i = 0; i < n; i++) {
    cin >> a;
    int ans = 0; 
    while(a % 2 == 0) {
    a /= 2;
    ans++;
    }
    if (ans < ans_min) {
      ans_min = ans;
    }
  }
  cout << ans_min << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'n' was not declared in this scope
    7 |   cin >> n;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  int ans_min = 10000000;
  int v[n]; 
  cin >> n;
  for(int i = 0; i < n; i++) {
    cin >> v[i];
    ans = 0; 
    while(v[i] % 2 == 0) {
    v[i] /= 2;
    ans++;
    }
    if (ans < ans_min) {
      ans_min = ans;
    }
  }
  cout << ans_min << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     ans = 0;
      |     ^~~
      |     abs
Language: C++

#include<iostream>
using namespace std;
int N;
int A[210];

int main()
{  
 cin >> N;
 for (int i=0; i<N; i++)
   cin >> A[i];
  
 int res = 0;
  
 while(true){
   bool exist_odd = false;
   for (int i=0; i<N; i++){
   if (A[i]%2 != 0)
     exist_odd = true;
   }
   
   if(exist_odd) break;
   
   for (int i=0; i<N; i++){
   A[i] != 2;
   } 
   res++
 }
cout << res;
  return 0;
}
     
   
   
   
   
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: expected ';' before '}' token
   26 |    res++
      |         ^
      |         ;
   27 |  }
      |  ~       
a.cc: At global scope:
a.cc:36:2: error: expected declaration before '}' token
   36 |  }
      |  ^
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  int min_count=30;
  for(int i=0; i<N; i++){
    int A;
    cin >> A;
    int count=0;
    while(A%2==0){
      A/=2;
      count++;
    }
    else if(count < min_count) min_count = count;
  }
  cout << min_count << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'else' without a previous 'if'
   16 |     else if(count < min_count) min_count = count;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  int max_count = 0;
  for(i=0; i<N; i++){
    cin >> A;
    int count=0;
    while(A%2==0){
      A/=2;
      count++;
    }
    if(count > max_count) max_count = count;
  }
  cout << max_count << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0; i<N; i++){
      |       ^
a.cc:9:12: error: 'A' was not declared in this scope
    9 |     cin >> A;
      |            ^
Language: C++

#include<cstdio>
using namespace std;
int main(){
  int n,a[210],flag,ans=0;
  scanf("%d",&n);
  for(int i-0;i<n;i++){
    scanf("%d",&a[i]);
  }
  while(1){
    for(int i=0;i<n;i++){
      if(a[i]%2)
        printf("%d\n",ans);
      return 0;
    }
    ans++;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before '-' token
    6 |   for(int i-0;i<n;i++){
      |            ^
      |            ;
a.cc:6:18: error: expected ')' before ';' token
    6 |   for(int i-0;i<n;i++){
      |      ~           ^
      |                  )
a.cc:6:19: error: 'i' was not declared in this scope
    6 |   for(int i-0;i<n;i++){
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
 int i,s=0,vec_a=0,N=0;
  cin >>N;
  vector<int> vec(N);
  for(i=0;i<N;i++){
    cin >> vec.at(i);
  }
  
  while(1){
   for(i=0;i<N;i++){
    if(vec.at(i) % 2 != 0) {
     cout << s << endl;
     return 0;
    } else 
       vec.at(i) /= 2; 
   }
   s++;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^