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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: expected ';' before '}' token
   23 |     count++
      |            ^
      |            ;
   24 |   }
      |   ~         
a.cc:25:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   25 |   count<<count<<endl;
      |   ~~~~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    int a;
  	int b[100];
  	int ans = 0;
  	cin >> a;
 	  	for(int j = 0; j < a; ++j){
  			for(int i = 0; i < a; ++i){
      			cin >> b[i];
     			 if(b[i] % 2 != 0)
       			 break;
   			 }
          if(b[i] % 2 != 0)
       		break;
          else{
            b[j] /= 2;
            ans++;
          }
        }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: 'i' was not declared in this scope
   16 |           if(b[i] % 2 != 0)
      |                ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    int a;
  	int b[100];
  	int ans = 0;
  	cin >> a;
 	  	for(int j = 0; j < a; ++i){
  			for(int i = 0; i < a; ++i){
      			cin >> b[i];
     			 if(b[i] % 2 != 0)
       			 break;
   			 }
          if(b[i] % 2 != 0)
       		break;
          else{
            b[j] /= 2;
            ans++;
          }
        }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: 'i' was not declared in this scope
   10 |                 for(int j = 0; j < a; ++i){
      |                                         ^
Language: C++

int main() {
    int N;
    int A[200];

    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:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> N;
      |     ^~~
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << res << endl;
      |     ^~~~
a.cc:25:20: error: 'endl' was not declared in this scope
   25 |     cout << res << endl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, x=100000, y;
  long A;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> A;
    y = 0;
    while (A%2 == 0) {
     A = A/2;
     y++
   }
  if (x > y) {
    x = y;
   }
  }
  cout << x << endl;     
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected ';' before '}' token
   13 |      y++
      |         ^
      |         ;
   14 |    }
      |    ~
Language: Java

import java.util.Scanner;
/**
 * 2019.02.08_KeigoMatsumura
 */

public class b081_3{
    public static void main(String[] args){
	int n;
	int a[] = new int[201];

	//最大操作回数を指定
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();

	//1回目に黒板に書かれる数字を指定
	for(int i = 0; i < n; i++){
	    a[i] = sc.nextInt();
	}

	int count = 0; //何回計算できるのか保持する変数
	
	//偶数かどうか判別する
	while(true){
	    //existOddをfalseで初期化し，
	    boolean existOdd = false;

	    //奇数でない(偶数である)場合はtrueを入れる
	    for(int i = 0; i < n; i++){
		if(a[i] % 2 != 0){
		    existOdd = true;
		}
	    }
	    //奇数があれば終了する
	    if(existOdd) break;
	    
	    //全て偶数の時，操作を行う
	    for(int i = 0; i < n; i++){
		a[i] /= 2;
	    }
	    //回数のカウント
	    count++;
	}
	//実行結果を表示する
	System.out.println(count);
    }
    
}


		
	    
	       
	


Compiler output:
Main.java:6: error: class b081_3 is public, should be declared in a file named b081_3.java
public class b081_3{
       ^
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;
    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;
}
#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:34:5: error: redefinition of 'int N'
   34 | int N;
      |     ^
a.cc:4:5: note: 'int N' previously declared here
    4 | int N;
      |     ^
a.cc:35:5: error: redefinition of 'int A [210]'
   35 | int A[210];
      |     ^
a.cc:5:5: note: 'int A [210]' previously declared here
    5 | int A[210];
      |     ^
a.cc:37:5: error: redefinition of 'int main()'
   37 | int main(){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int N;
int A[210];
  

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'i' was not declared in this scope
   16 |     for(i=0;i<N;i++) {
      |         ^
a.cc:22:9: error: 'i' was not declared in this scope
   22 |     for(i=0;i<N;i++) A[i] /= 2;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N;
  int A[210];
  
  for(int i=0;i<N;i++) cin>>A[i];
  
  bool exist_odd=false;
  int res;
  
  while(true){
    for(i=0;i<N;i++) {
      if(A[i] %= 2 != 0) exist_odd = true;
    }
    
    if(exist_odd == true) break;
    
    for(i=0;i<N;i++) A[i] /= 2;
    
    res++;
  }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'i' was not declared in this scope
   13 |     for(i=0;i<N;i++) {
      |         ^
a.cc:19:9: error: 'i' was not declared in this scope
   19 |     for(i=0;i<N;i++) A[i] /= 2;
      |         ^
a.cc:22:4: error: expected '}' at end of input
   22 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N;
  int a[210];
  
  for(int i=0;i<N;i++) cin>>a[i];
  
  bool exist_odd=false;
  int res;
  
  while(true){
    for(i=0;i<N;i++) {
      if(A[i] %= 2 != 0) exist_odd = true;
    }
    
    if(exist_odd == true) break;
    
    for(i=0;i<N;i++) A[i] /= 2;
    
    res;
  }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'i' was not declared in this scope
   13 |     for(i=0;i<N;i++) {
      |         ^
a.cc:14:10: error: 'A' was not declared in this scope
   14 |       if(A[i] %= 2 != 0) exist_odd = true;
      |          ^
a.cc:19:9: error: 'i' was not declared in this scope
   19 |     for(i=0;i<N;i++) A[i] /= 2;
      |         ^
a.cc:19:22: error: 'A' was not declared in this scope
   19 |     for(i=0;i<N;i++) A[i] /= 2;
      |                      ^
a.cc:22:4: error: expected '}' at end of input
   22 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N,count;
  int max=0;
  int a[210];
  
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>a[N];
      while (a[N]%2==0){
        a[N]=/2;
        count++;
        if(count>max) max=count;
      }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before '/' token
   12 |         a[N]=/2;
      |              ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N,count;
  int max=0;
  int a[210];
  
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>a[N];
      while (a[N]%2==0){
        a[N]=a[N]/2;
        count++;
        if(count>max) max=count;
      }
  }

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

#include<iostream>
using namespace std;
int main(){
  int N,count;
  int max=0;
  int a[210];
  
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>a[N];
      while (a[N]%2==0){
        a[N]=/2;
        count++;
        if(count>max) max=count;
      }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before '/' token
   12 |         a[N]=/2;
      |              ^
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N,count;
  int max=0;
  
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>int a[N];
      while (a[N]%2==0){
        a[N]=/2;
        count++;
        if(count>max) max=count;
      }
  }
  
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before 'int'
    9 |     cin>>int a[N];
      |          ^~~
a.cc:10:14: error: 'a' was not declared in this scope
   10 |       while (a[N]%2==0){
      |              ^
a.cc:11:14: error: expected primary-expression before '/' token
   11 |         a[N]=/2;
      |              ^
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main(){
  // 整数の入力
  cin>>N;
  bool exist_odd = false;
  for(int i=0;i<N;i++)
    cin>>A[i];
  int count  = 0;
  while(true){
    for(int i=0;i<N;i++){
      if(A[i]%2 == 0) A[i] /= 2;
      else exist_odd = true
    }
    if(exist_odd)break;
  }

  cout<<count<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: expected ';' before '}' token
   16 |       else exist_odd = true
      |                            ^
      |                            ;
   17 |     }
      |     ~
Language: C++

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

int main(){
  // 整数の入力
  cin>>N;
  bool exist_odd = false;
  for(int i=0;i<N;i++)
    cin>>A[i];
  int count  = 0;
  while(true){
    for(int i=0;i<N;i++){
      if(A[i]%2 == 0) A[i] /= 2
      else exist_odd = true
    }
    if(exist_odd)break;
  }

  cout<<count<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:32: error: expected ';' before 'else'
   15 |       if(A[i]%2 == 0) A[i] /= 2
      |                                ^
      |                                ;
   16 |       else exist_odd = true
      |       ~~~~
Language: C++

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

int main(){
  // 整数の入力
  cin>>N;
  bool exist_odd = false;
  for(int i=0;i<N;i++)
    cin>>A[i];
  int count  = 0;
  while(true){
    for(int i=0;i<N;i++){
      if(A[i]%2 == 0) A[i] /= 2
      else exist_odd = true
    }
    if(exist_odd)break;
  }

  cout<<count<<endl;
  return 0;
}


Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main(){
      | ^~~
Language: C++

#include<iostream>
using namespace std;
int N;
int A[210]
int main()
{
  // 整数の入力
  cin>>N;
  bool exist_odd = false;
  for(int i=0;i<N;i++)
    cin>>A[i];
  int count  = 0;
  while(true){
    for(int i=0;i<N;i++){
      if(A[i]%2 == 0) A[i] /= 2
      else exist_odd = true
    }
    if(exist_odd)break;
  }

  cout<<count<<endl;
  return 0;
}


Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int main()
      | ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:44: error: expected ';' before ')' token
    9 |   for (int A = 0; A < 5000000000000000, A++) {
      |                                            ^
      |                                            ;
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int result = 0
    for (int index = 0; index < N; index++) {
      final int a = scanner.nextInt();
      int q = a;
      int count = 0;
      while (q % 2 == 0) {
        q = q / 2;
        count++;
      }
      if (count > result) {
        result = count;
      }
    }
    System.out.println(result);
  }
}

Compiler output:
Main.java:7: error: ';' expected
    int result = 0
                  ^
1 error
Language: C++

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

int main(){
  int num;
  cin >> num;
  int* multipliers;
  int* inputs;
  for ( int i=0; i < num; i++){
    cin >> inputs[i];
  }
  int first = inputs[0];
  int count = 0, tmp = 1;
  while(first % tmp == 0){
    multipliers[count] = tmp;
    tmp *= 2;
    count++;
   }
  for( int i=1; i < num; i++){
	while(inputs[i] % multipliers[count] != 0){
		count—;		
	}
  }
  cout << count << endl;
}

Compiler output:
a.cc:21:17: error: extended character — is not valid in an identifier
   21 |                 count—;
      |                 ^
a.cc: In function 'int main()':
a.cc:21:17: error: 'count\U00002014' was not declared in this scope; did you mean 'count'?
   21 |                 count—;
      |                 ^~~~~~
      |                 count
Language: C++

//file_name:ABC81_B.cpp
#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
inline int in() { int x; scanf("%d",&x); return x;}
template<typename T>inline istream& operator>>(istream&i,v(T)&v)
{rep(j,sz(v))i>>v[j];return i;}
template<typename T>string join(const v(T)&v)
{stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);}
template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v)
{if(sz(v))o<<join(v);return o;}
template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v)
{return i>>v.fi>>v.se;}
template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v)
{return o<<v.fi<<","<<v.se;}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return 0;}
#define yn {puts("Yes");}else{puts("No");}
const int MX = 200005;

    // int scan
    /*
    int x;
    scanf("%d",&x);
    int y;
    scanf("%d",&y);
    int z;
    scanf("%d",&z);

    // matrix scan
    /*
    ll a[n] = {};
    rep(i,n){
        scanf("%lld",&a[i]);
    }
    */

    // string scan
    /*
    string s;
    cin >> s;
    */


int main() {
    int n;
    scanf("%d",&n);
    int ans = 99999;
    rep(i,n){
        int c =0;
        while(a[i]>0){
            if(a[i]%2==0){
                c++;
                a[i]/=2;
            }else{
                break;
            }
        }
        mins(ans,c);
    }




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



Compiler output:
a.cc: In function 'int main()':
a.cc:85:15: error: 'a' was not declared in this scope
   85 |         while(a[i]>0){
      |               ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  int N;
  cin >> N;
  
  vector<int> data<N>;
    
  for (int i = 0; i < N; i++) 
    cin >> data.at(i);  
  
  int min = InT_MAX;
  int tmp = 0; 
  for (int i = 0; i < N; i++){
    while (tmp < min || data.at(i) % 2 == 0)
      data.at(i) / 2;
    if (tmp < min) min = tmp;
  }
  
  cout << min << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid declaration of '::data<N>'
    9 |   vector<int> data<N>;
      |               ^~~~~~~
a.cc:12:17: error: overloaded function with no contextual type information
   12 |     cin >> data.at(i);
      |                 ^~
a.cc:14:13: error: 'InT_MAX' was not declared in this scope; did you mean 'INT_MAX'?
   14 |   int min = InT_MAX;
      |             ^~~~~~~
      |             INT_MAX
a.cc:17:30: error: overloaded function with no contextual type information
   17 |     while (tmp < min || data.at(i) % 2 == 0)
      |                              ^~
a.cc:18:12: error: overloaded function with no contextual type information
   18 |       data.at(i) / 2;
      |            ^~
Language: C++

#include <bits/stdc++.h>
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;
  
  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;
    }
    count++;
  }
  
  cout << count++; << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:20: error: expected primary-expression before '<<' token
   28 |   cout << count++; << endl;
      |                    ^~
Language: C++

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string>
#include <tuple>
#include <vector>
#include <map>
#include <unordered_map>
#include <list>
#include <set>
#include <stack>
#include <queue>
#include <cstdlib>
#include <algorithm>
#include <random>
#include <cassert>
using namespace std;
#define LL long long
#define MP(a, b) make_pair(a, b)
#define MMP(a, b, c) make_pair(make_pair(a, b), c)
#define MAX 1000000000
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483647
#define INT_MAX 2147483647
#define LL_MIN (LL)-9223372036854775807
#define LL_MAX (LL)9223372036854775807
#define PI 3.14159265359

int main(){
    iostream::sync_with_stdio(false);
    
    int N;
    cin >> N;
    int ans = INT_MAX;
    for(int i=0; i<N; i++){
        int A;
        cin >> A;
        tmp = 0;
        while(A % 2 == 0){
            A /= 2;
            tmp++;
        }
        ans = min(ans, tmp);
    }
    cout << ans << endl;
    
    return 0;
}


/*

int main(){
    iostream::sync_with_stdio(false);
    
    
    
    return 0;
}
*/

/*

int main(){
    iostream::sync_with_stdio(false);
    
    
    
    return 0;
}
*/

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

#include <iostream>
using namespace std;

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

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

  int ans = 0;

  while (true) {
    for (int i = 0; i < N; i++) {
      if (A[i] % 2 == 1) {
        odd = true;
      }
    }

    if (odd) {
      break;
    }

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

  cout << ans << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'odd' was not declared in this scope
   18 |         odd = true;
      |         ^~~
a.cc:22:9: error: 'odd' was not declared in this scope
   22 |     if (odd) {
      |         ^~~
Language: Java

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

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    static void solve(Scanner sc) {
        int n = sc.nextInt();
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a % 2 != 0) {
                System.out.println(0);
                return;
            }

            Math.min(min, a);
        }
        System.out.println(a / 2);
    }
}

Compiler output:
Main.java:26: error: cannot find symbol
        System.out.println(a / 2);
                           ^
  symbol:   variable a
  location: class Main
1 error
Language: C++

n   = gets.to_i
ary = gets.split.map &:to_i

min = 100000

n.times do |i|
  count = 0
  while ary[i] % 2 == 0 && count < min
    ary[i] /= 2
    count += 1
  end
  min = [min, count].min
end

puts min


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n   = gets.to_i
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  int ans;
  int real;
  real=0;
  cin>>n;
  for (int i=0;i<n;i++){
    int q;
    cin>>q;
    ans=0;
    while (q%2==0){
      ans+=1;
      q/=2
    }
   
    real=max(real,ans);
  }
  cout<<real<<endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected ';' before '}' token
   15 |       q/=2
      |           ^
      |           ;
   16 |     }
      |     ~
Language: C++

#include"stdafx.h"
#include<iostream>
#include<string>
using namespace std;

int main() {
	int n;
	cin >> n;
	int a[210];
	for (int i = 0; i < n; i++)cin >> a[i];
	int counter = 0;
	bool flag = false;

	while (true) {
		for (int i = 0; i < n; i++) {
			a[i] = a[i] / 2;
			if (a[i] % 2)flag = true;
		}
		if (flag)break;
		counter++;
	}
	cout << counter << endl;
	return 0;
}

Compiler output:
a.cc:1:9: fatal error: stdafx.h: No such file or directory
    1 | #include"stdafx.h"
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int N,A[202],cnt;
  bool pin = "true";
  cin >> N;
  for(int i = 0;i < N;i++){
    cin >> A[i];
  }
  for(int i =0; i < N; i++){
    if(A[i] / 2 != 0){
   	  A[i] / 2
    }else{
      break;
    }
    if(i == (N - 1)){
      cnt += 1;
      i = 0;
    }
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected ';' before '}' token
   13 |           A[i] / 2
      |                   ^
      |                   ;
   14 |     }else{
      |     ~
Language: C++

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

int main(){
  int N,A[202],cnt;
  bool pin = "true";
  cin >> N;
  for(int i = 0;i < N;i++){
    cin >> A[i];
  }
  for(int i =0; i < N; i++){
    if(A[i] / 2 != 0){
   	  A[i] / 2
    }else break;
    if(i == (N - 1)){
      cnt += 1;
      i = 0;
    }
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected ';' before '}' token
   13 |           A[i] / 2
      |                   ^
      |                   ;
   14 |     }else break;
      |     ~
Language: C++

#include <iostream>
#include <limits.h>
int divide2(int N)
{
  int ans=0;
  while(N%2==0)
  {
    N/=2;
    ans++;
  }
  return ans;
}

int main()
{
  int min=INT_MAX,N;
  cin>>N;
  
  for(int i=0;i<N;i++)
  {
    int a;
    cin >> a;
    if(divide2(a)<min)
      min=divide2(a);
  }
  cout<<min <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   17 |   cin>>N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:26:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |   cout<<min <<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |   cout<<min <<endl;
      |               ^~~~
      |               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int N;
  cin >> N;
  vector<int> num(N);
  for(int i =0; i < N; i++){
    cin >> num.at[i];}
  int d =0;
  int e = 0;
  for(int i =0; i < 10**9;i++){
    for(int j =0; j < N;j++){
      if(num.at(j)%2 !=0){
        e =1;
        num.at(j) /=2;}}
    if(e =1){
      break;}
    d++;}
  cout << d << endl;
      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |     cin >> num.at[i];}
      |                  ^
a.cc:12:24: error: invalid type argument of unary '*' (have 'int')
   12 |   for(int i =0; i < 10**9;i++){
      |                        ^~
Language: C++

// #include <cstdio>
// #include <algorithm>
// using namespace std;
//
// int N, A[200];
//
// int main()
// {
// 	int dmin = 100;
// 	scanf("%d", &N);
// 	for (int i = 0; i < N; ++i) {
// 		int A;
// 		scanf("%d", &A);
// 		int d = 0;
// 		while (A % 2 == 0) {
// 			A /= 2;
// 			++d;
// 		}
// 		dmin = min(dmin, d);
// 	}
// 	printf("%d\n", dmin);
// 	return 0;
// }
#include<iostream>
using namespace std;

int main(){
	int n;cin>>n;
	int a[n];
	int ans=100;
	for(int i=0;i<n;i++){
		int d=0;
		cin>>a[i];
		while(a[i]%2==0){
			a[i]/=2;
			d++
		}
		ans=min(ans,d);
	}
	cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:28: error: expected ';' before '}' token
   36 |                         d++
      |                            ^
      |                            ;
   37 |                 }
      |                 ~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <set>
#include <algorithm>
#include <array>
#include <complex>
#include <string>
#include <utility>
#include <map>
#include <queue>
#include <list>
#include <functional>
#include <numeric>
#include <stack>
#include <tuple>

using namespace std;
int dx[4] = { -1,0,1,0 };
int dy[4] = { 0,1,0,-1 };
const int INF = 100000000;
const long long LINF = 1000000000000000000;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-6;
using pii = std::pair<int, int>;
using ll = long long;
#define SORT(v) std::sort(v.begin(), v.end())

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int n,x=0;
	cin >> n;
  vector<int> a(n)
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  while(1){
    for(int i=0;i<n;i++){
      if(a[i]%2!=0){
        cout << x <<endl;
        return 0;
      }
      a[i]/=2;
    }
    x++;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:3: error: expected ',' or ';' before 'for'
   36 |   for(int i=0;i<n;i++){
      |   ^~~
a.cc:36:15: error: 'i' was not declared in this scope
   36 |   for(int i=0;i<n;i++){
      |               ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <set>
#include <algorithm>
#include <array>
#include <complex>
#include <string>
#include <utility>
#include <map>
#include <queue>
#include <list>
#include <functional>
#include <numeric>
#include <stack>
#include <tuple>

using namespace std;
int dx[4] = { -1,0,1,0 };
int dy[4] = { 0,1,0,-1 };
const int INF = 100000000;
const long long LINF = 1000000000000000000;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-6;
using pii = std::pair<int, int>;
using ll = long long;
#define SORT(v) std::sort(v.begin(), v.end())

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int n,x=0;
	cin >> n;
  vector<int> a(n)
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  while(1){
    for(int i=0;i<n;i++){
      if(a[i]%2!=0){
        cout << x <<endl;
        return 0;
      }
      a[i]/=2
    }
    x++;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:3: error: expected ',' or ';' before 'for'
   36 |   for(int i=0;i<n;i++){
      |   ^~~
a.cc:36:15: error: 'i' was not declared in this scope
   36 |   for(int i=0;i<n;i++){
      |               ^
a.cc:45:14: error: expected ';' before '}' token
   45 |       a[i]/=2
      |              ^
      |              ;
   46 |     }
      |     ~
Language: C++

#include <bits/stdc++>

using namespace;

int main(){
	int N, count;
	int a[N];

	cin >> N;
	for(int i = 0; i < N; i++){
		cin >> a[i];
	}
	while(1){
		for(int j = 0; j < N; j++){
			if(a[j]%2 == 0) a[j] = a[j] / 2;
			else break;
		}
		count++;
	}
	cout << count << endl;
}

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

#include <iostream>
using namespace std;

int main()
{
	int N;
	int A[200];

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

	while (true) {
		bool isOdd = false;

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

		if (isOdd) break;

		for (int i = 0; i < N; ++i) A[i] /= 2;
		
		++res;
	}
	cout << res << endl;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java


public class main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int N = new java.util.Scanner(System.in).nextInt();
		String SecondLine = new java.util.Scanner(System.in).nextLine();
//		String[] ArrayN = SecondLine.split(" "); //見やすい？
		int[] ArrayNint = new int[N];
		for (int i = 0; i < N; i++) {
//			ArrayNint[i] = Integer.parseInt(ArrayN[i]); //見やすい？
			ArrayNint[i]= Integer.parseInt(SecondLine.split(" ")[i]);
		}


		int cnt = 0;
		boolean trigger;
		trigger = true;
		while (trigger) {
			for (int i =0 ; i< ArrayNint.length ; i++ ) {
				if (ArrayNint[i]% 2 == 1) {
					trigger = false ;
					break;
				} else {
					ArrayNint[i] = ArrayNint[i] / 2;
				} // if
			} // for
			if (trigger) {
			cnt++;

			}
		} // while
		System.out.println("Ans is "+cnt);

	}
}


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

public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int N = new java.util.Scanner(System.in).nextInt();
		String SecondLine = new java.util.Scanner(System.in).nextLine();
//		String[] ArrayN = SecondLine.split(" "); //見やすい？
		int[] ArrayNint = new int[N];
		for (int i = 0; i < N; i++) {
//			ArrayNint[i] = Integer.parseInt(ArrayN[i]); //見やすい？
			ArrayNint[i]= Integer.parseInt(SecondLine.split(" ")[i]);
		}
 
 
		int cnt = 0;
		boolean trigger;
		trigger = true;
		while (trigger) {
			for (int i =0 ; i< ArrayNint.length ; i++ ) {
				if (ArrayNint[i]% 2 == 1) {
					trigger = false ;
					break;
				} else {
					ArrayNint[i] = ArrayNint[i] / 2;
				} // if
			} // for
			if (trigger) {
			cnt++;
 
			}
		} // while
		System.out.println("Ans is "+cnt);
 
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java


public class AtCoder {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int N = new java.util.Scanner(System.in).nextInt();
		String SecondLine = new java.util.Scanner(System.in).nextLine();
//		String[] ArrayN = SecondLine.split(" "); //見やすい？
		int[] ArrayNint = new int[N];
		for (int i = 0; i < N; i++) {
//			ArrayNint[i] = Integer.parseInt(ArrayN[i]); //見やすい？
			ArrayNint[i]= Integer.parseInt(SecondLine.split(" ")[i]);
		}


		int cnt = 0;
		boolean trigger;
		trigger = true;
		while (trigger) {
			for (int i =0 ; i< ArrayNint.length ; i++ ) {
				if (ArrayNint[i]% 2 == 1) {
					trigger = false ;
					break;
				} else {
					ArrayNint[i] = ArrayNint[i] / 2;
				} // if
			} // for
			if (trigger) {
			cnt++;

			}
		} // while
		System.out.println("Ans is "+cnt);

	}
}


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

#include <iostream>

using namespace std;

int n;
bool is_all_even(int arr[n]);

int main() {
    cin >> n;
    int arr[n];
    for (int i = 0; i < n; i++) {
        cin >> arr[i];
    }

    int count = 0;

    while (is_all_even(arr)) {
        count++;
        for (int i = 0; i < n; i++) {
            arr[i] /= 2;
        }
    }

    cout << count << endl;
    return 0;
}

bool is_all_even(int arr[n]) {
    bool result = true;
    for (int i = 0; i < n; i++) {
        if (arr[i] % 2 != 0) {
            result = false;
        }
    }
    return result;
}


Compiler output:
a.cc:6:26: error: size of array 'arr' is not an integral constant-expression
    6 | bool is_all_even(int arr[n]);
      |                          ^
a.cc:28:26: error: size of array 'arr' is not an integral constant-expression
   28 | bool is_all_even(int arr[n]) {
      |                          ^
Language: C++

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

int main() {

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected initializer before '++' token
   12 |      int z++;
      |           ^~
a.cc:22:13: error: expected initializer before '++' token
   22 |        int y++;
      |             ^~
a.cc:27:11: error: 'z' was not declared in this scope
   27 |      if(y<z){
      |           ^
a.cc:31:11: error: 'z' was not declared in this scope
   31 |   cout << z-1 << endl;
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected '}' at end of input
   17 |   cout<<a<<endl;
      |                 ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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 b = 0;
while(ture){
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;
}
++b;
}
cout << b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: 'A' was not declared in this scope
    9 | for(int i = 0;i < n; ++i) cin  >> A[i];
      |                                   ^
a.cc:12:7: error: 'ture' was not declared in this scope
   12 | while(ture){
      |       ^~~~
a.cc:15:4: error: 'A' was not declared in this scope
   15 | if(A[i] % 2 != 0) exist_odd =true;
      |    ^
a.cc:21:1: error: 'A' was not declared in this scope
   21 | A[i] /= 2;
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  int A = 0;
  int B = 0;
  
 for(int j = 0; j < 200; j++) {
   if (B!=0) {
     break;
   }
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x ;
    if (x % (2^(i+1))!=0) {
      B++;
      break;
    }
    A++;
  }
  cout << A << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

int main(){
    int N;
    vector<int> A=vector<int>(N);
    cin>>N;
    for (int i=0; i<N; i++) {
        cin>>A[i];
    }
    
    int ans=0;
    int koeta=0;
    int lim=0;
    
    while (lim==0) {
        for (int i=0; i<N; i++) {
            if (A[i]%2==0) {
                A[i]=A[i]/2;
            }
            else{koeta++;}
        }
        if (koeta==0) {
            ans++;
        }
        else{lim++;}
    }
    
    cout<<ans;
 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'vector' was not declared in this scope
    3 |     vector<int> A=vector<int>(N);
      |     ^~~~~~
a.cc:3:12: error: expected primary-expression before 'int'
    3 |     vector<int> A=vector<int>(N);
      |            ^~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>N;
      |     ^~~
a.cc:6:14: error: 'A' was not declared in this scope
    6 |         cin>>A[i];
      |              ^
a.cc:15:17: error: 'A' was not declared in this scope
   15 |             if (A[i]%2==0) {
      |                 ^
a.cc:26:5: error: 'cout' was not declared in this scope
   26 |     cout<<ans;
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N, A, B, X;
  cin >> N >> X;
  A = 0; B = 0;
  while((X % 2) == 0){
    X /= 2;
    B++;
  }
  for(int i = 1; i < N; i++){
    if(B == 0){
      break
    }
    cin >> X;
    while((X % 2) == 0){
      X /= 2;
      A++;
    }
    if(A < B){
      B = A;
      }
  }
  cout << B << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected ';' before '}' token
   13 |       break
      |            ^
      |            ;
   14 |     }
      |     ~
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;
    
    if (int i = 0; i < N; ++i) {
      A[i] /= 2;
    }
    
    ++res;
  }
  
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:38: error: 'a' was not declared in this scope
    9 |   for (int i = 0; i < N; ++i) cin >> a[i];
      |                                      ^
a.cc:20:25: error: expected ')' before ';' token
   20 |     if (int i = 0; i < N; ++i) {
      |        ~                ^
      |                         )
a.cc:20:29: error: 'i' was not declared in this scope
   20 |     if (int i = 0; i < N; ++i) {
      |                             ^
Language: C++

#include <iostream>
#include <string>
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 = o; i < N; ++i) {
			A[i] /= 2;
		}

		++res;
	}
	cout << res << endl;	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:29: error: 'o' was not declared in this scope
   21 |                 for(int i = o; i < N; ++i) {
      |                             ^
Language: C++

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

#define FOR(i,l,r) for(int i = int(l);i < int(r);i++)
template<typename T> bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; }
template<typename T> bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; }
typedef long long ll;



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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: expected ';' before '}' token
   24 |       r=min(r,b)
      |                 ^
      |                 ;
   25 | 
   26 |     }
      |     ~
Language: C++

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

#define FOR(i,l,r) for(int i = int(l);i < int(r);i++)
template<typename T> bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; }
template<typename T> bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; }
typedef long long ll;



int main()
{
    int N,r;
    r=40;
    cin >>N;
    for(int i=0;i<N;i++){
      int a;
      cin >> a ;
        int b=0;
      while(a%2==0){
        b++;
        a/=2;  
      }  
      r=min(r,b)
        
    } 
    cout << r; 
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: expected ';' before '}' token
   24 |       r=min(r,b)
      |                 ^
      |                 ;
   25 | 
   26 |     }
      |     ~
Language: C

include<stdio.h>
int main(void)
{
    int N,i;
    int flag=0;
    int count=0;
    int A[210]={};
    printf("N:");scanf("%d",&N);
    for(i=0;i<N;i++){
        printf("A[%d]:",i);scanf("%d",&A[i]);
    }
    while(1)
    {
        for(i=0;i<N;i++){
        if(A[i]%2==0){
            A[i]/=2;
        }else{
            flag = 1;
        }
        }if(flag == 1){
            break;
        }
        count++;
    }
    printf("%d",count);
    return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++


#include <iostream>
#include <vector>

using namespace std;

void main(){

	int n;
	vector<int> vec;

	cin >> n;
	for (int i = 0; i < n; ++i){
		int tmp;
		cin >> tmp;
		vec.emplace_back(tmp);
	}

	int count = 0;

	while (true){
		for (int i = 0; i < n; ++i){
			if (vec.at(i) % 2 == 0){
				vec.at(i) = vec.at(i) / 2;
			}
			else{
				goto exit;
			}
		}
		++count;
	}
exit:

	cout << count << endl;


	return;
}

Compiler output:
a.cc:7:1: error: '::main' must return 'int'
    7 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:37:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   37 |         return;
      |         ^~~~~~
Language: C++


#include <iostream>
#include <vector>

using namespace std;

void main(){

	int n;
	vector<int> vec;

	cin >> n;
	for (int i = 0; i < n; ++i){
		int tmp;
		cin >> tmp;
		vec.emplace_back(tmp);
	}

	int count = 0;

	while (true){
		for (int i = 0; i < n; ++i){
			if (vec.at(i) % 2 == 0){
				vec.at(i) = vec.at(i) / 2;
			}
			else{
				goto exit;
			}
		}
		++count;
	}
exit:

	cout << count << endl;

	return;
}

Compiler output:
a.cc:7:1: error: '::main' must return 'int'
    7 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:36:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   36 |         return;
      |         ^~~~~~
Language: C++

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

int main()
{
    int N;
    int A[210];
    cin >> N;
    for (int i = 0; i < N; i++) {
        cin >> A[i];
    }
    int res=0;
    while (true) {

        bool exist_odd=false;

        for (size_t i = 0; i < N; i++) {
            if (A[i]%2!=0) exist_odd=true;
        }
        if(exist_odd) break;
        for (size_t i = 0; i < N; i++) {
            A[i]/=2
        }
        ++res;
    }
    std::cout << res << '\n';
}



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

    public class Main {
      public static void main(String[] args) {
    	java.util.Scanner scanner = new java.util.Scanner(System.in);
    	int n = scanner.nextInt();
    	int[] a = new int[n];
    	for (int i = 0; i < n; i++) {
    		a[i] = scanner.nextInt();
    	}
     
    	int[] count = new int[n];
    	for (int i = 0; i < n; i++) {
                            // 2で割れる回数をチェック
    		while (a[i] % 2 == 0) {
    			a[i] = a[i] / 2;
    			count++;
    		}
    		count[i]++;
    	}
          java.util.Arrays.sort(count);
    	System.out.println(count[0]);
      }
    }

Compiler output:
Main.java:15: error: bad operand type int[] for unary operator '++'
    			count++;
    			     ^
1 error
Language: Java

public class Main {
  public static void main(String[] args) {
	java.util.Scanner scanner = new java.util.Scanner(System.in);
	int n = scanner.nextInt();
	int[] a = new int[n];
	for (int i = 0; i < n; i++) {
		a[i] = scanner.nextInt();
	}

	int[] count = new int[n];
	for (int i = 0; i < n; i++) {
                        // 2で割れる回数をチェック
		while (a[i] % 2 == 0) {
			a[i] = a[i] / 2;
			count++;
		}
		count[i]++;
	}
       Arrays.sort(count);
	System.out.println(count[0]);
  }
}


Compiler output:
Main.java:15: error: bad operand type int[] for unary operator '++'
			count++;
			     ^
Main.java:19: error: cannot find symbol
       Arrays.sort(count);
       ^
  symbol:   variable Arrays
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

	int N;
	cin >> N;
	int A[N];
	int count=0;	

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



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


	cout << count << endl;

	return 0;

}　　

Compiler output:
a.cc:38:2: error: extended character 　 is not valid in an identifier
   38 | }　　
      |  ^
a.cc:38:2: error: extended character 　 is not valid in an identifier
a.cc:38:2: error: '\U00003000\U00003000' does not name a type
   38 | }　　
      |  ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

	int N;
	cin >> N;
	vector<int> A;
	int temp;

	for(int i=0;i<N;i++){
		cin >> temp;
		if((temp%2)==1){
			cout << 0 << endl;
			return 0;
		}
		A.push_back(temp);
	}

	int count=0;	
	int flag = 0;	

	while(1){
		for(int x:A){
			if((x%2)==1){
				cout << count << endl;
				return 0;				
			}		

		}
		if(flag==1){
			cout <<count <<endl;
		}
		count++;	
	}


	cout << count << endl;

	return;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   41 |         return;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){

	int N;
	cin >> N;
	vector<int> A;
	int temp;

	for(int i=0;i<N;i++){
		cin >> temp;
		if((temp%2)==1){
			cout << 0 << endl;
			return 0;
		}
		A.push_back(temp);
	}

	int count=0;	
	int flag = 0;	

	while(1){
		for(int x:A){
			if((x%2)==1){
				cout << count << endl;
				return 0;				
			}		

		}
		if(flag==1){
			cout <<count <<endl;
		}
		count++;	
	}


	cout << i << endl;

	return;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:17: error: 'i' was not declared in this scope
   39 |         cout << i << endl;
      |                 ^
a.cc:41:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   41 |         return;
      |         ^~~~~~