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

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

int main()
{
  int N, a, min=0, i;
  
  cin >> N;
  cin >> a;
  while(a%2 = 0){
      a /= 2;
      min++;
    }
  for(i=0;i<N-1;i++){
    int tmp=0 ;
    cin >> a ;
    while(a%2 = 0){
      a /= 2;
      tmp++;
    }
    if( tmp < min ){
      min = tmp ;
    }
  }
  reutrn min;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: lvalue required as left operand of assignment
   10 |   while(a%2 = 0){
      |         ~^~
a.cc:17:12: error: lvalue required as left operand of assignment
   17 |     while(a%2 = 0){
      |           ~^~
a.cc:25:3: error: 'reutrn' was not declared in this scope
   25 |   reutrn min;
      |   ^~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[]aaa) {

		
		Scanner sc = new Scanner(System.in);
		 
		int cnt = sc.nextInt();
		
		int[] nums = new int[cnt];
		
		for (int i = 0 ; i < cnt; i++) {
			
			int num = sc.nextInt();
			
			nums[i] = num;  
			
		}
		// even judge method
		boolean repeatFlg = true;
		int result = 0;
		while (repeatFlg) {
			for (int i = 0 ; i < cnt; i++) {
				
				int num = nums[i];
				
				if (num % 2 == 0) {
					
					nums [i] = num / 2;
				} else {
					repeatFlg = false;
					nums [i] = 1;
					break;
				}
			}
			result++;
			for (int num :nums) {
				
				if (num == 1) 
					result--;
					break;
			}
		}
			

	}

Compiler output:
Main.java:46: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;

    int intlist[200]={0};
    // N個の整数を入力
    for(int i=0;i<n;i++) {
	    cin >> intlist[i];
    }
    
    // 入力結果から操作回数を算出
    int action_cnt = 0
    bool act_check = true;
    while(act_check) {
        for(int j=0;j<n;j++) {
            if(intlist[j] % 2 != 0) {
                act_check = false;
                break;
            }
    	    intlist[j] = intlist[j] / 2;
        }
        if(act_check) action_cnt++;
    }

    cout << action_cnt << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected ',' or ';' before 'bool'
   16 |     bool act_check = true;
      |     ^~~~
a.cc:17:11: error: 'act_check' was not declared in this scope
   17 |     while(act_check) {
      |           ^~~~~~~~~
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;  // 奇数があったら break

        // 操作を行えるなら操作を実際に行う
        for (int i = 0; i < N; ++i) {
            A[i] /= 2;
        }
        ++res;  // 操作回数をインクリメント
    }

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

#include <bits/stdc++.h>
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(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:10:18: error: expected ';' before '<' token
   10 |   for(int i = 0,i < N,i++){
      |                  ^~
      |                  ;
a.cc:10:19: error: expected primary-expression before '<' token
   10 |   for(int i = 0,i < N,i++){
      |                   ^
a.cc:10:26: error: expected ';' before ')' token
   10 |   for(int i = 0,i < N,i++){
      |                          ^
      |                          ;
a.cc:17:5: error: expected ',' or ';' before 'for'
   17 |     for(int i = 0,i < N,i++){
      |     ^~~
a.cc:29:25: error: expected '}' at end of input
   29 |     cout << res << endl;
      |                         ^
a.cc:15:14: note: to match this '{'
   15 |   while(true){
      |              ^
a.cc:29:25: error: expected '}' at end of input
   29 |     cout << res << endl;
      |                         ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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


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

#include<iostream>
using namespace std;

int main(){

    int n;
    cin >> n;
    int arry[n];
    for(int i = 0; i < n; i++) cin >> arry[i];

    while(true){
        
        for(int i = 0; i < n; i++){
            if(arry[i] % 2){
                cout << i << endl;
                return 0;
            }
        }

        for(int i = 0; i < n; i++){
            arry[i] /= 2;
        }
    }

    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: expected '}' at end of input
   25 |     return 0;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.Scanner;

public class HelloWorld {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        int[] x = new int[n];
        for (int i = 0; i < n; i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
        }

        int cnt = 0;
        boolean b = true;
        while (b) {
            for (int i = 0; i < n; i++) {
                if (x[i] % 2 == 0) {
                    x[i] = x[i] / 2;
                } else {
                    b = false;
                    break;
                }
            }
            if (b) {
                cnt++;
            } else {
                break;
            }
        }

        // 出力
        System.out.println(cnt);
    }

}


Compiler output:
Main.java:3: error: class HelloWorld is public, should be declared in a file named HelloWorld.java
public class HelloWorld {
       ^
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[] x = new int[n];
      	int cnt = 0;
      	boolean b = true;
        while(b){
	      	for (int i==0;i<n;i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
            if (x[i]%2!=0) {
              b = false;
              break;
            } else {
              x[i] = x[i]/2;
            }
            if(b){
            	cnt++;
            }else{
              break;
            }
          }
        }
 
		// 出力
		System.out.println(cnt);
	}
}
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
      	int[] x = new int[n];
      	int cnt = 0;
      	boolean b = true;
        while(b){
	      	for (int i=0;i<n;i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
            if (x[i]%2!=0) {
              b = false;
              break;
            } else {
              x[i] = x[i]/2;
            }
            if(b){
            	cnt++;
            }else{
              break;
            }
          }
        }

		// 出力
		System.out.println(cnt);
	}
}

Compiler output:
Main.java:11: error: ';' expected
	      	for (int i==0;i<n;i++) {
	      	          ^
Main.java:11: error: not a statement
	      	for (int i==0;i<n;i++) {
	      	               ^
Main.java:11: error: ')' expected
	      	for (int i==0;i<n;i++) {
	      	                 ^
Main.java:11: error: ';' expected
	      	for (int i==0;i<n;i++) {
	      	                     ^
Main.java:32: error: class, interface, enum, or record expected
import java.util.*;
^
5 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[] x = new int[n];
      	int cnt = 0;
      	boolean b = true;
        while(b){
	      	for (int i==0;i<n;i++) {
            // スペース区切りの整数の入力
            x[i] = sc.nextInt();
            if (x[i]%2!=0) {
              b = false;
              break;
            } else {
              x[i] = x[i]/2;
            }
            if(b){
            	cnt++;
            }else{
              break;
            }
          }
        }

		// 出力
		System.out.println(cnt);
	}
}

Compiler output:
Main.java:11: error: ';' expected
	      	for (int i==0;i<n;i++) {
	      	          ^
Main.java:11: error: not a statement
	      	for (int i==0;i<n;i++) {
	      	               ^
Main.java:11: error: ')' expected
	      	for (int i==0;i<n;i++) {
	      	                 ^
Main.java:11: error: ';' expected
	      	for (int i==0;i<n;i++) {
	      	                     ^
4 errors
Language: C++

#include <iostream>

using namespace std;

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

  bool flag = true;
  int waru_kaisuu = 0;
  int waru = 2;
  while(true){
    for(int i = 0;i<N;i++){
      if(A[i]%waru == 0){
        count++;
      }else{
        break;
      }
      waru_kaisuu++;
      waru *= 2;
  }
  cout << waru_kaisuu;
　return 0;
}

Compiler output:
a.cc:26:1: error: extended character 　 is not valid in an identifier
   26 | 　return 0;
      | ^
a.cc: In function 'int main()':
a.cc:26:1: error: '\U00003000return' was not declared in this scope
   26 | 　return 0;
      | ^~~~~~~~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
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 cnt=0;
    bool flag=false;
    while(1){
        for(int i=0; i<N; i++){
            if(A[i]%2) flag=true;
            else A[i]/=2;
        }
        if(flag) break;
        else cnt++;
    }
    cout<<cnt<<endl;
}
#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 cnt=0;
    bool flag=false;
    while(1){
        for(int i=0; i<N; i++){
            if(A[i]%2) flag=true;
            else A[i]/=2;
        }
        if(flag) break;
        else cnt++;
    }
    cout<<cnt<<endl;
}


Compiler output:
a.cc:25:5: error: redefinition of 'int main()'
   25 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: Java

import java.util.*;
public class Main(String[] args){
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] a = new int[n];
      int[] b = new int[n];
      int count = 0;
      for(int i = 0;i < n;i++){
      	a[i] = sc.nextInt();
      }
      for(int i = 0;i < n;i++){
      	while(a[i]/2 == (double)a[i]/2){
          b[i]++;
          a[i] = a[i]/2;
        }
      }
      for(int i = 1;i < n;i++){
      	b[i] = Math.min(b[i],b[i-1]);
      }
      System.out.println(b[n-1]);
    }
}

Compiler output:
Main.java:2: error: '{' expected
public class Main(String[] args){
                 ^
1 error
Language: C++

#include<iostream>
using namespace std;
int main() {
	int n;
	int i;
	int sum=0;
	int flag=0;
	vector<int>a(n, 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;
		  }
	  }
	  if (flag == 0) {
		  sum++;
		  for (i = 0; i < n; i++) {
			  a[i] = a[i] / 2;
		  }
	  }
	}
	cout << sum << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<int>a(n, 0);
      |         ^~~~~~
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:8:16: error: expected primary-expression before 'int'
    8 |         vector<int>a(n, 0);
      |                ^~~
a.cc:9:15: error: expected ';' before 'for'
    9 |         cin>>n
      |               ^
      |               ;
   10 |                 for (i = 0; i < n; i++) {
      |                 ~~~
a.cc:10:39: error: expected ';' before ')' token
   10 |                 for (i = 0; i < n; i++) {
      |                                       ^
      |                                       ;
a.cc:15:23: error: 'a' was not declared in this scope
   15 |                   if (a[i] % 2 == 1) {
      |                       ^
a.cc:22:27: error: 'a' was not declared in this scope
   22 |                           a[i] = a[i] / 2;
      |                           ^
Language: C++

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

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

//平方数判定
#include <iostream>

using namespace std;

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

  bool flag = True;
  int waru_kaisuu = 0;
  int waru = 2;
  while(flag){
    int cnt = 0;
    for(int i = 0;N<i;++i){
      if(A[i]%waru == 0)count++;
    }
    if(N ==count){
      flag = True;
      waru_kaisuu++;
    }else{
      flag = False;
    }
    waru = waru *2;
  }
  cout <<waru_kaisuu;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'True' was not declared in this scope
   13 |   bool flag = True;
      |               ^~~~
a.cc:25:14: error: 'False' was not declared in this scope
   25 |       flag = False;
      |              ^~~~~
Language: C++

#include<iostream>
using namespace std;

  int N;
  int A[526546837468736487638746786716374617863746183648757367637647637563757576726767];
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:5:9: warning: integer constant is too large for its type
    5 |   int A[526546837468736487638746786716374617863746183648757367637647637563757576726767];
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:5:9: error: size '-4456903098410850065' of array 'A' is negative
Language: C

#include<stdio.h>
 
int main()
{
  int N,*A,i,a,b,j;
  
  scanf("%d",&N);
  
  A=(int *)malloc(N sizeof(int));
  
  for(i=0;i<N;i++)
  {
   scanf("%d",&A[i]);
  }
  
  a=0;
  b=0;
  
  for(j=0;j<A[0] && b==0;j++)
  {
  for(i=0;i<N && b==0;i++)
  {
    if(A[i]%2==0)
    {
    A[i]=A[i]/2;
    }
    else
    {
      b=1;
    }
  }
  a++;
  }
  
  printf("%d",a);
  
  
  
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    9 |   A=(int *)malloc(N sizeof(int));
      |            ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:9:12: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    9 |   A=(int *)malloc(N sizeof(int));
      |            ^~~~~~
main.c:9:12: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:9:20: error: expected ')' before 'sizeof'
    9 |   A=(int *)malloc(N sizeof(int));
      |                  ~ ^~~~~~~
      |                    )
Language: C

#include<stdio.h>
 
int main()
{
  int N,*A,i,a,b,j;
  
  scanf("%d",&N);
  
  A=(int *)malloc(N sizeof(int));
  
  for(i=0;i<N;i++)
  {
   scanf("%d",&A[i])
  }
  
  a=0;
  b=0;
  
  for(j=0;j<A[0] && b==0;j++)
  {
  for(i=0;i<N && b==0;i++)
  {
    if(A[i]%2==0)
    {
    A[i]=A[i]/2;
    }
    else
    {
      b=1;
    }
  }
  a++;
  }
  
  printf("%d",a);
  
  
  
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    9 |   A=(int *)malloc(N sizeof(int));
      |            ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:9:12: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    9 |   A=(int *)malloc(N sizeof(int));
      |            ^~~~~~
main.c:9:12: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:9:20: error: expected ')' before 'sizeof'
    9 |   A=(int *)malloc(N sizeof(int));
      |                  ~ ^~~~~~~
      |                    )
main.c:13:21: error: expected ';' before '}' token
   13 |    scanf("%d",&A[i])
      |                     ^
      |                     ;
   14 |   }
      |   ~
Language: C

#include<stdio.h>

int main()
{
  int N,*A,i,a,b,j;
  
  scanf("%d",&N);
  
  A=(int *)malloc(N sizeof(int));
  
  for(i=0;i<N;i++)
  {
   scanf("%d",&A[i])
  }
  
  a=0;
  b=0;
  
  for(j=0;j<A[0] && b==0;j++)
  {
  for(i=0;i<N && b==1;i++)
  {
    if(A[i]%2==0)
    {
    A[i]=A[i]/2;
    }
    else
    {
      b=1;
    }
  }
  a++;
  }
  
  printf("%d",a);
  
  
  
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    9 |   A=(int *)malloc(N sizeof(int));
      |            ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:9:12: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    9 |   A=(int *)malloc(N sizeof(int));
      |            ^~~~~~
main.c:9:12: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:9:20: error: expected ')' before 'sizeof'
    9 |   A=(int *)malloc(N sizeof(int));
      |                  ~ ^~~~~~~
      |                    )
main.c:13:21: error: expected ';' before '}' token
   13 |    scanf("%d",&A[i])
      |                     ^
      |                     ;
   14 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  
  int A[210];
  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:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'i' was not declared in this scope
   18 |     for (i=0;i<N;i++){
      |          ^
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:9:28: note: to match this '{'
    9 |   for (int i = 0; i<N; i++){
      |                            ^
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
     
    int main() {
    int N;
    int X=0;
    bool b=1;
      cin >> N;
    int A[N];
      //A=11009,B=11332;
    for (int i = 0; i < N; i++)
      cin >> A[i];
    while (b){
      for (int i = 0; i < N; i++){
        if(A[i]%2==1){
          b=0;
          x--;
          break;
        }
        else{
           A[i]/=2;
        }
      }
      X++;
    }
     cout << X << endl;
    }

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

n = int(input())
a = list(map(int, input().split(' ')))

ans = float('inf')
for i in a:
	cnt = 0
	while i % 2 == 0:
		cnt += 1
		i /= 2
	ans = min(cnt, ans)

print(ans)
	


Compiler output:
a.cc:4:13: warning: multi-character character constant [-Wmultichar]
    4 | ans = float('inf')
      |             ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

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

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

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

Compiler output:
a.cc:5:7: error: extended character 、 is not valid in an identifier
    5 |   int N、possible_times=100;
      |       ^
a.cc: In function 'int main()':
a.cc:6:8: error: 'N' was not declared in this scope
    6 |   cin>>N;
      |        ^
a.cc:14:10: error: 'possible_times' was not declared in this scope; did you mean 'N、possible_times'?
   14 |     if(c<possible_times)
      |          ^~~~~~~~~~~~~~
      |          N、possible_times
a.cc:17:9: error: 'c' was not declared in this scope
   17 |   cout<<c<<endl;
      |         ^
Language: C++

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

int main(){
  int N,k;
  cin >> N;
  int A[N];
  for(int n = 0; n <= N - 1; n++){
    cin >> A[n];
  }
  while(k == 0){
  for(int i = 0; i <= N - 1; i++){
    k = A[i] % 2;
    if(k != 0){
      break;
    }
    if(i == N - 1){
      c++;
    }
  }
  }
}

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

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

int main(){
  int N;
  cin >> N;
  int A[N];
  for(int n = 0; n <= N - 1; n++){
    cin >> A[n];
  }
  while(k == 0){
  for(int i = 0; i <= N - 1; i++){
    k = A[i] % 2;
    if(k != 0){
      break;
    }
    if(i == N - 1){
      c++;
    }
  }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'k' was not declared in this scope
   11 |   while(k == 0){
      |         ^
a.cc:18:7: error: 'c' was not declared in this scope
   18 |       c++;
      |       ^
Language: C++

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

int main() {
  int N, Ai, Sum=0, Counter=0 ;
 cin >>N;
   for (int i = 0; i<N ; i++) {
   cin >>Ai, 
   if (Ai%2 == 1) {Sum=Ai, break}   
     Sum += Ai;}
   for (int i =0; i <30; i++) {
    if (Sum % 2 == 0) {Sum /= 2, Counter++;}
    else break;
        }
   cout << Counter <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: expected primary-expression before 'if'
    9 |    if (Ai%2 == 1) {Sum=Ai, break}
      |    ^~
Language: C

#include <stdio.h>

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

	int i;
	scanf_s("%d", &N);
	for (i = 0; i < N; i++) {
		scanf_s("%d", &A[i]);
	}

	int cnt;
	int cnt_before = 50000;

	for (i = 0; i < N; i++) {
		cnt = 0;

		while (1) {
			if (A[i] % 2==0) {
				if (cnt == cnt_before)
					break;
				cnt++;
				A[i] /= 2;
			}
			else {
				cnt_before = cnt;
				break;
			}
		}

		if (cnt_before == 0)
			break;
	}

	if (cnt_before == 50000)
		cnt_before = 0;
	printf("%d\n", cnt_before);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%d", &N);
      |         ^~~~~~~
      |         scanf
Language: C++

n=int(input())
A=list(map(int,input().split()))
c=0
while True:
    for i in range(len(A)):
        if A[i]%2 == 0:
            A[i] = A[i]//2
        else:
            print(c)
            exit()
    c+=1

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm> // to use min_element

using namespace std;

int main(){
	int a, b=1, c, i;
	cin >> a;
	vector<int> numlst(a);

	for (i =0;i<a;i++) cin>> numlst[i];b =b*numlst[i];
	if (b%2 ==1) cout << "0"; return 0;
	c = min_element(numlst.begin(), numlst.end());
	cout << c/2-1;
	// while(b%2==0){
	// 	for (i =0;i<a;i++) numlst[i] = numlst[i]/2; // How can we divide vector by scholar 
	// 	b = accumulate(numlst.begin(), numlst.end(), 0);
	// }

	// cout <<b/2<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in assignment
   15 |         c = min_element(numlst.begin(), numlst.end());
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        |
      |                        __gnu_cxx::__normal_iterator<int*, std::vector<int> >
Language: C++

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

int A[210];   

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected unqualified-id before '[' token
   12 |     cin >> A.[i];
      |              ^
Language: C++

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

int A[210];   

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: request for member 'at' in 'A', which is of non-class type 'int [210]'
   12 |     cin >> A.at(i);
      |              ^~
Language: C++

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

int A[210];   

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'vec' was not declared in this scope
   12 |     cin >> vec.at(i);
      |            ^~~
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.at(i);
  }
  int x=0;
  while(true){
    bool correct=false;
    for(int i=0; i < N; i++){
      if(A.at(i)%2==1){
        correct = true;
      }
    }
    if(correct) break;
    }
    for(int i=0; i < N; i++){
      A.at(i)/=2;
    }
    x++;
  }
  cout<<x<<endl;
}

Compiler output:
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout<<x<<endl;
      |   ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
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.at(i);
  }
  int x=0;
  while(){
    for(int i=0; i < N; i++){
      if(A.at(i)%2==1){
        break;
      }
    }
    x++;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before ')' token
   12 |   while(){
      |         ^
Language: C++

n = input()
A = list(map(int,input().split()))
ans = 0
while all(a%2==0 for a in A):
    A = [a/2 for in A]
    ans+=1
print(ans)
    


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

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = n; i > 0; i--)
#define rep3(i, s, e) for (int i = (s); i < (int)(e); i++)
#define rep4(i, s, e) for (int i = (e); i < (int)(s); i--)

int main() {
    int n, a, c;
    int max_count = int(pow(2, 9));
    cin >> n;
    rep(i, n) {
        cin >> a;
        c = 0;
        while a % 2 == 0 {
            a /= 2;
            c++;
        }

        if (c < max_count) {
            max_count = c;
        }
    }
    cout << max_count << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected '(' before 'a'
   16 |         while a % 2 == 0 {
      |               ^
      |               (
a.cc:16:25: error: expected ')' before '{' token
   16 |         while a % 2 == 0 {
      |               ~         ^~
      |                         )
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = n; i > 0; i--)
#define rep3(i, s, e) for (int i = (s); i < (int)(e); i++)
#define rep4(i, s, e) for (int i = (e); i < (int)(s); i--)

int main() {
    int n, a, c;
    int max_count = int(pow(2, 9));
    cin >> n;
    rep(i, n) {
        cin >> a;
        c = 0
        while a % 2 == 0 {
            a /= 2;
            c++;
        }

        if (c < max_count) {
            max_count = c;
        }
    }
    cout << max_count << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected ';' before 'while'
   15 |         c = 0
      |              ^
      |              ;
   16 |         while a % 2 == 0 {
      |         ~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: storage size of 'a' isn't known
    5 |   int N,A,a[],b,count;
      |           ^
a.cc:19:13: error: expected primary-expression before ']' token
   19 |   b = min(a[]);
      |             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'A' was not declared in this scope
    8 |     cin >> A;
      |            ^
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(int i =0; i<N; ++i) {
      A[i] /=2;
    }
    ++res;
  }
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected ')' before '!' token
   18 |       if(A[i] % 2! =0) exist_odd = true;
      |         ~        ^
      |                  )
a.cc:21:21: error: expected ')' before ';' token
   21 |     if(int i =0; i<N; ++i) {
      |       ~             ^
      |                     )
a.cc:21:25: error: 'i' was not declared in this scope
   21 |     if(int i =0; i<N; ++i) {
      |                         ^
Language: C++

#include <stdio.h>
#include <cstdlib>
int main(){
  int n,i;
  scanf("%d",&n);
  int *A=malloc(sizeof(int)*n);
  for(i=0;i<n;i++){
  scanf("%d",A[i]);
  }
  int x=0;
  int t=1;
  while(t==1){
  for(i=0;i<n;i++){
  if(A[i]%2==0){
  A[i]=A[i]/2;
    if(i==n-1){x+=1;}
  }
    else{
      t=0;
        break;}
  }
  }
printf("%d",x);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: invalid conversion from 'void*' to 'int*' [-fpermissive]
    6 |   int *A=malloc(sizeof(int)*n);
      |          ~~~~~~^~~~~~~~~~~~~~~
      |                |
      |                void*
Language: C++

#include <stdio.h>
int main(){
  int n,i;
  scanf("%d",&n);
  int *A=malloc(sizeof(int)*n);
  for(i=0;i<n;i++){
  scanf("%d",A[i]);
  }
  int x=0;
  int t=1;
  while(t==1){
  for(i=0;i<n;i++){
  if(A[i]%2==0){
  A[i]=A[i]/2;
    if(i==n-1){x+=1;}
  }
    else{
      t=0;
        break;}
  }
  }
printf("%d",x);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'malloc' was not declared in this scope
    5 |   int *A=malloc(sizeof(int)*n);
      |          ^~~~~~
a.cc:2:1: note: 'malloc' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
    1 | #include <stdio.h>
  +++ |+#include <cstdlib>
    2 | int main(){
Language: C++

#include <stdio.h>
int main{
  int n,i;
  scanf("%d",&n);
  int *A=malloc(sizeof(int)*n);
  for(i=0;i<n;i++){
  scanf("%d",A[i]);
  }
  int x=0;
  int t=1;
  while(t==1){
  for(i=0;i<n;i++){
  if(A[i]%2==0){
  A[i]=A[i]/2;
    if(i==n-1){x+=1;}
  }
    else{
      t=0;
        break;}
  }
  }
printf("%d",x);
return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main{
      |     ^~~~
a.cc:3:3: error: expected primary-expression before 'int'
    3 |   int n,i;
      |   ^~~
a.cc:3:3: error: expected '}' before 'int'
a.cc:2:9: note: to match this '{'
    2 | int main{
      |         ^
a.cc:4:8: error: expected constructor, destructor, or type conversion before '(' token
    4 |   scanf("%d",&n);
      |        ^
a.cc:5:29: error: 'n' was not declared in this scope
    5 |   int *A=malloc(sizeof(int)*n);
      |                             ^
a.cc:5:10: error: 'malloc' was not declared in this scope
    5 |   int *A=malloc(sizeof(int)*n);
      |          ^~~~~~
a.cc:2:1: note: 'malloc' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
    1 | #include <stdio.h>
  +++ |+#include <cstdlib>
    2 | int main{
a.cc:6:3: error: expected unqualified-id before 'for'
    6 |   for(i=0;i<n;i++){
      |   ^~~
a.cc:6:11: error: 'i' does not name a type
    6 |   for(i=0;i<n;i++){
      |           ^
a.cc:6:15: error: 'i' does not name a type
    6 |   for(i=0;i<n;i++){
      |               ^
a.cc:11:3: error: expected unqualified-id before 'while'
   11 |   while(t==1){
      |   ^~~~~
a.cc:22:7: error: expected constructor, destructor, or type conversion before '(' token
   22 | printf("%d",x);
      |       ^
a.cc:23:1: error: expected unqualified-id before 'return'
   23 | return 0;
      | ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<int> a(200);
  for(int i = 0; i < n; i++) cin >> a.at(i);

  int count = 0;
  while(true){
    // 奇数かどうか確認
    bool exist_odd = false;
    for(int i = 0; i < n; i++){
      if(a.at(i) % 2 != 0) exist_odd = true;
    }
    if(exist_odd) break;

    // ２で割る
    for(int i = 0; i < n; i++){
      a.at(i) /= 2;
    }
    count++;
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> a(200);
      |   ^~~~~~
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:10: error: expected primary-expression before 'int'
    6 |   vector<int> a(200);
      |          ^~~
a.cc:7:37: error: 'a' was not declared in this scope
    7 |   for(int i = 0; i < n; i++) cin >> a.at(i);
      |                                     ^
a.cc:14:10: error: 'a' was not declared in this scope
   14 |       if(a.at(i) % 2 != 0) exist_odd = true;
      |          ^
a.cc:20:7: error: 'a' was not declared in this scope
   20 |       a.at(i) /= 2;
      |       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected ';' before '}' token
   17 |       M = k
      |            ^
      |            ;
   18 |   }
      |   ~
Language: C++

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

int main() {
  int N;
  cin >> N;
  int M = 100;
  for(int i = 0; i < N; i++) {
    int A;
    cin >> A;
    int k = 0;
    while(A % 2 == 0) {
      A /= 2;
      k++;
    }
    if(k < M)
      M = k
  }
      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected ';' before '}' token
   17 |       M = k
      |            ^
      |            ;
   18 |   }
      |   ~
Language: Java

import java.util.Scanner;
public class ShiftOnly {
	public static void Main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		int[] count = new int[N];
		for(int i=0;i<N;i++) {
			 a[i] = sc.nextInt();
		}
		for(int odd : a) {
		if(odd%2 == 1) {
			System.out.println("0");
			System.exit(0);
		}

		}
			for(int b = 0;b<N;b++) {
				for(int c =0;c<100000000;c++) {
					if(a[b]%2==1) {
						break;
					}
					a[b]=a[b]/2;
					count[b]++;
				}
			}
			int min =1000000000;
		for(int d = 0;d<count.length;d++) {
			min = Math.min(min, count[d]);

		}
			System.out.println(min);
		}
}


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

import java.util.Scanner;
public class ShiftOnly {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		int[] count = new int[N];
		for(int i=0;i<N;i++) {
			 a[i] = sc.nextInt();
		}
		for(int odd : a) {
		if(odd%2 == 1) {
			System.out.println("0");
			System.exit(0);
		}

		}
			for(int b = 0;b<N;b++) {
				for(int c =0;c<100000000;c++) {
					if(a[b]%2==1) {
						break;
					}
					a[b]=a[b]/2;
					count[b]++;
				}
			}
			int min =1000000000;
		for(int d = 0;d<count.length;d++) {
			min = Math.min(min, count[d]);

		}
			System.out.println(min);
		}
}


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

import java.util.Scanner;
public class ShiftOnly {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		int[] count = new int[N];
		for(int i=0;i<N;i++) {
			 a[i] = sc.nextInt();
		}
		for(int odd : a) {
		if(odd%2 == 1) {
			System.out.println("0");
			System.exit(0);
		}

		}
			for(int b = 0;b<N;b++) {
				for(int c =0;c<100000000;c++) {
					if(a[b]%2==1) {
						break;
					}
					a[b]=a[b]/2;
					count[b]++;
				}
			}
			int min =1000000000;
		for(int d = 0;d<count.length;d++) {
			min = Math.min(min, count[d]);

		}
			System.out.println(min);
		}
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
 int n;
 cin >> n;
 vector<int>vec(250);
 for(int i=0;i<250;i++){
  cin >> vec.at(i);
 }
 int count = 0;
 while(true){
  bool jkjk = false;
    for(int i =0;i<250;i++){
	if(vec.at(i)%2 != 0){
		jkjk = true;
	}
   if(jkjk){
	break;
     }
  for(int i = 0;i < 250;i++){
    vec.at(i) /=2;
   }
  count++;
 }
 cout << count << endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:8: error: 'j' was not declared in this scope
   22 |     if(j>=k){
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
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;
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> a;
    if(a%2==1){
      cout << 0 << endl;
      break;
    }
    else {
      int j=0,k;
      k=j;
      while(a%2==0 && j<=k){
        j++;
        if(j<=k){
          cout << j << endl;
          break;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
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;
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> a;
    if(a%2==1){
      cout << 0 << endl;
      break;
    }
    else {
      int j=0;
      while(a%2==0){
        j++;
      }
    }
    cout << j << endl;
  }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else {
      |     ^~~~
a.cc:25:7: error: 'j' was not declared in this scope
   25 |     k=j;
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected ',' or ';' before 'else'
   15 |     else {
      |     ^~~~
a.cc:25:7: error: 'j' was not declared in this scope
   25 |     k=j;
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'k' was not declared in this scope
   24 |     k=j;
      |     ^
a.cc:24:7: error: 'j' was not declared in this scope
   24 |     k=j;
      |       ^
Language: C++

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

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

    if (cond) {
      break;
    }

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'cond' was not declared in this scope
   15 |     cond = false;
      |     ^~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  int count = 0;
  int A[210];
  for (i = 0; i < n; i++) {
    cin >> A[i];
  }
  
  for(i = 0; i < n; i++ ) {
    while(A[i] % 2 == 0) {
      A[i] /= 2;
      count++;
    }
  }

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

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

import java.util.*;

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

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
    int N = sc.next();
                   ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt()
		String str[] = sc.nextLine().split(" ");
		int count = 0;			// 操作を行った数
		boolean flag = true;	// 奇数があったらfalse

		while (flag) {
			for (int i = 0; i < str.length; i++) {
				flag |= Integer.parseInt(str[i]) % 2 != 0;
			}
			if (!flag) {
				break;
			}
			count++;
			for (int i = 0; i < str.length; i++) {
				str[i] = String.valueOf(Integer.parseInt(str[i]) / 2);
			}
		}

		System.out.println(count);
	}
}

Compiler output:
Main.java:6: error: ';' expected
		int num = sc.nextInt()
		                      ^
1 error