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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,ans=1e9;cin>>N;
  for(int i=0;i<N;i++){
    int A;cin>>A;
    ans=min(ans,log2(A));
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: no matching function for call to 'min(int&, __gnu_cxx::__enable_if<true, double>::__type)'
    7 |     ans=min(ans,log2(A));
      |         ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:7:12: note:   deduced conflicting types for parameter 'const _Tp' ('int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'})
    7 |     ans=min(ans,log2(A));
      |         ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:7:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    7 |     ans=min(ans,log2(A));
      |         ~~~^~~~~~~~~~~~~
Language: C++

#include<cstdio>
#include<algorithm>
using namespace std;
int a[205];
int main()
{
    int n;
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
	{
        int l,cnt=0;
        scanf("%d",&k);
        while(k%2==0)
		{
            cnt++;
            l/=2;
        }
        a[i]=cnt;
    }
    sort(a+1,a+n+1);
    printf("%d\n",a[1]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'k' was not declared in this scope
   12 |         scanf("%d",&k);
      |                     ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
      cin >> vec.at(i);
  }
  int ans = 0;
  bool exist_odd = false;
  while(true){
    for (int i = 0; i < N; i++){
      if(vec.at(i) % 2 == 1){
        exist_odd = true;
      }
    }
    if(exist_odd) break;
    for(int i = 0; i < N; i++){
      vec.at(i) =/ 2;
    }
    ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: expected primary-expression before '/' token
   21 |       vec.at(i) =/ 2;
      |                  ^
Language: C++

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

int main(){
  int N;
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
      cin >> vec.at(i);
  }
  
  int ans = 0;
  bool exist_odd = false;
  while(true){
    for (int i = 0; i < N; i++){
      if(vec.at(i) % 2 == 1){
        exist_odd = true;
      }
    }
    if(exist_odd) break;
    for(int i = 0; i < N; i++){
      vec.at(i) =/ 2;
    }
    ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: expected primary-expression before '/' token
   21 |       vec.at(i) =/ 2;
      |                  ^
Language: C++

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

int main(){
  int N;
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
      cin >> vec.at(i);
    }
  }
  int ans = 0;
  bool exist_odd = false;
  while(true){
    for (int i = 0; i < N; i++){
      if(vec.at(i) % 2 == 1){
        exist_odd = true;
      }
    }
    if(exist_odd) break;
    for(int i = 0; i < N; i++){
      vec.at(i) =/ 2;
    }
    ans++;
  }
  cout << ans << endl;
}

Compiler output:
a.cc:13:3: error: expected unqualified-id before 'while'
   13 |   while(true){
      |   ^~~~~
a.cc:25:3: error: 'cout' does not name a type
   25 |   cout << ans << endl;
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

v#include<bits/stdc++.h>
using namespace std;
long long a,b,ans=65,n;
int main()
{
    cin>>a;
    for(int s=0;s<a;s++)
    {
        cin>>b;
        n=0;
        while(b%2==0)
        {
            b=b/2;
            n++;
        }
        ans=min(ans,n);
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>a;
      |     ^~~
a.cc:16:13: error: 'min' was not declared in this scope; did you mean 'main'?
   16 |         ans=min(ans,n);
      |             ^~~
      |             main
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<ans<<endl;
      |     ^~~~
a.cc:18:16: error: 'endl' was not declared in this scope
   18 |     cout<<ans<<endl;
      |                ^~~~
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int[] numList = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    int numList[] = new int[num];
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] / 2 == 1) {
    	  	tf = false;
    	  	break;
   			}
    	}
      count++;
    }
    System.out.println(count);   
  }
}

Compiler output:
Main.java:12: error: variable numList is already defined in method main(String[])
    int numList[] = new int[num];
        ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = 1;
    num = sc.nextInt();
    int numList[] = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    int numList[] = new int[num];
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] / 2 == 1) {
    	  	tf = false;
    	  	break;
   			}
    	}
      count++;
    }
    System.out.println(count);   
  }
}

Compiler output:
Main.java:13: error: variable numList is already defined in method main(String[])
    int numList[] = new int[num];
        ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int numList[] = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    int numList[] = new int[num];
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] / 2 == 1) {
    	  	tf = false;
    	  	break;
   			}
    	}
      count++;
    }
    System.out.println(count);   
  }
}

Compiler output:
Main.java:12: error: variable numList is already defined in method main(String[])
    int numList[] = new int[num];
        ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(Syring[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int numList[] = new int[num];
    for(int i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    int numList[] = new int[num];
    
    while(tf == true){
    	for(int i = 0; i < num; i++){
    		if(numList[i] / 2 == 1) {
    	  	tf = false;
    	  	break;
   			}
    	}
      count++;
    }
    System.out.println(count);   
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
  public static void main(Syring[] args){
                          ^
  symbol:   class Syring
  location: class Main
Main.java:12: error: variable numList is already defined in method main(Syring[])
    int numList[] = new int[num];
        ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(Syring[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int numList[] = new int[num];
    for(i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    int numList[] = new int[num];
    
    while(tf == true){
    	for(i = 0; i < num; i++){
    		if(numList[i] / 2 == 1) {
    	  	tf = false;
    	  	break;
   			}
    	}
      count++;
    }
    System.out.println(count);   
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
  public static void main(Syring[] args){
                          ^
  symbol:   class Syring
  location: class Main
Main.java:9: error: cannot find symbol
    for(i = 0; i < num; i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
    for(i = 0; i < num; i++){
               ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
    for(i = 0; i < num; i++){
                        ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
    numList[i] =sc.nextInt();
            ^
  symbol:   variable i
  location: class Main
Main.java:12: error: variable numList is already defined in method main(Syring[])
    int numList[] = new int[num];
        ^
Main.java:15: error: cannot find symbol
    	for(i = 0; i < num; i++){
    	    ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
    	for(i = 0; i < num; i++){
    	           ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
    	for(i = 0; i < num; i++){
    	                    ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
    		if(numList[i] / 2 == 1) {
    		           ^
  symbol:   variable i
  location: class Main
10 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(Syring[] args){
    int count = 0;
    boolean tf = true;
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    int numList[] = new int[num];
    for(i = 0; i < num; i++){
    numList[i] =sc.nextInt();
    }
    int numList[] = new int[num];
    
    while(tf == true){
    	for(i = 0; i < num; i++){
    		if(numList[i] / 2 == 1) {
    	  	tf = false;
    	  	break;
   			}
    	}
      count++
    }
    System.out.println(count);   
  }
}

Compiler output:
Main.java:21: error: ';' expected
      count++
             ^
1 error
Language: C++

#include <iostream>
using namespace std;

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

    int A[N];
    for (int i; i<N; i++) cin >> A[i];

    int ans=0;
    while(true){
        bool existOdd=false;
        for (int i=0; i<N; i++){
            if (A[i]==1){
                existOdd=true;
        }

        if (existOdd) break;
        else{
            for (int i=0; i<N; i++){
                A[i]/=2;
            }
            ans++;
        }
    }
    cout << ans << endl;

    return 0;
}


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

import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int i=0;i<n;i++){
      int a[i] = sc.nextInt();
    }
    int times = 0;
    while(true){
      boolean F = false;
      for(int i=0;i<n;i++){
        if(a[i]%2 == 1){
          F = true;
        }
      }
      if(F == true){
        System.out.println(0);
        break;
      }else{
        for(int i=0;i<n;i++){
          a[i] /= 2;
        }
      }
      times++;
    }
    System.out.println(times);
  }
}

Compiler output:
Main.java:9: error: ']' expected
      int a[i] = sc.nextInt();
            ^
Main.java:9: error: ';' expected
      int a[i] = sc.nextInt();
             ^
2 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] a = new int[n];
    for(int i=0;i<n;i++){
      int a[i] = sc.nextInt();
    }
    int times = 0;
    while(true){
      boolean F = false;
      for(int i=0;i<n;i++){
        if(a[i]%2 == 1){
          F = true
        }
      }
      if(F == true){
        System.out.println(0);
        break;
      }else{
        for(int i=0;i<n;i++){
          a[i] /= 2;
        }
      }
      times++;
    }
    System.out.println(times);
  }
}

Compiler output:
Main.java:9: error: ']' expected
      int a[i] = sc.nextInt();
            ^
Main.java:9: error: ';' expected
      int a[i] = sc.nextInt();
             ^
Main.java:16: error: ';' expected
          F = true
                  ^
3 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] ar= new int[n];
    boolean F = false;
    for(int i=0;i<n;i++){
      ar[i] = sc.nextInt();
      if(ar[i]%2 == 1){
        F = true;
      }
    }
    if(F == true){
      System.out.println(0);
    }else{
      int numbers =new int[n];
      for(int i=0;i<ar.length;i++){
        numbers[i] = ar[i];
      }
      int min = Arrays.stream(numbers).min().getAsInt();
      
      int times = 0;
      while(min%2 == 0){
        min /= 2;
        times++;
      }
      System.out.println(times);
    }
  }
}

Compiler output:
Main.java:19: error: incompatible types: int[] cannot be converted to int
      int numbers =new int[n];
                   ^
Main.java:21: error: array required, but int found
        numbers[i] = ar[i];
               ^
Main.java:23: error: no suitable method found for stream(int)
      int min = Arrays.stream(numbers).min().getAsInt();
                      ^
    method Arrays.<T#1>stream(T#1[]) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; int cannot be converted to T#1[]))
    method Arrays.<T#2>stream(T#2[],int,int) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
    method Arrays.stream(int[]) is not applicable
      (argument mismatch; int cannot be converted to int[])
    method Arrays.stream(long[]) is not applicable
      (argument mismatch; int cannot be converted to long[])
    method Arrays.stream(double[]) is not applicable
      (argument mismatch; int cannot be converted to double[])
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>stream(T#1[])
    T#2 extends Object declared in method <T#2>stream(T#2[],int,int)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
      	int[] a = new int[n];
      	int count = 0;
				int num = 0;
        boolean f = true;
      	for (int i = 0; i < a.length; i++) {
					while (a[i]%2 == 0) {
						a[i] = a[i] / 2;
						num++;
					}
					a[i] = num;
				}
				count = Math.min(a);
     System.out.print(count);
   }
}


Compiler output:
Main.java:17: error: no suitable method found for min(int[])
				count = Math.min(a);
				            ^
    method Math.min(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.min(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.min(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.min(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

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

	while (A[0] % 2 == 0) {
		for (int i = 0; i < N; i++) {
			if (A[i] % 2 != 0) {
				break;
			}
			else {
				A[i] = A[i] / 2;
			}
			if (i == N-1)c++;
		}
	}

	cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> N;
      |         ^~~
a.cc:3:16: error: 'N' was not declared in this scope
    3 |         cin >> N;
      |                ^
a.cc:4:44: error: 'A' was not declared in this scope
    4 |         for (int i = 0; i < N; i++) cin >> A[i];
      |                                            ^
a.cc:6:16: error: 'A' was not declared in this scope
    6 |         while (A[0] % 2 == 0) {
      |                ^
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << c << endl;
      |         ^~~~
a.cc:18:22: error: 'endl' was not declared in this scope
   18 |         cout << c << endl;
      |                      ^~~~
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] ar= new int[n];
    boolean F = false;
    for(int i=0;i<n;i++){
      ar[i] = sc.nextInt;
      if(ar[i]%2 == 1){
        F = true;
      }
    }
    if(F == true){
      System.out.println(0);
    }else{
      int m = Math.max(ar);
      int times = 0;
      while(m%2 == 0){
        m /= 2;
        times++;
      }
      System.out.println(times);
    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
      ar[i] = sc.nextInt;
                ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
Main.java:18: error: no suitable method found for max(int[])
      int m = Math.max(ar);
                  ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: Java

import java.util.Scanner;
 
class Main{
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int[] ar = new int[n];
  boolean F = false;
  for(int i=0;i<n;i++){
    ar[i] = sc.nextInt();
    if(ar[i]%2 == 1){
      F = true;
    }
  }
  if(F == true){
    System.out.println(0);
  }else{
    int m = Math.max(a);
    int times = 0;
    while(m%2 == 0){
      m /= 2;
      times++;
    }
    System.out.println(times);
  }
}

Compiler output:
Main.java:8: error: illegal start of type
  for(int i=0;i<n;i++){
  ^
Main.java:8: error: > or ',' expected
  for(int i=0;i<n;i++){
                 ^
Main.java:8: error: <identifier> expected
  for(int i=0;i<n;i++){
                   ^
Main.java:14: error: illegal start of type
  if(F == true){
  ^
Main.java:14: error: <identifier> expected
  if(F == true){
      ^
Main.java:16: error: illegal start of type
  }else{
   ^
6 errors
Language: Java

import java.util.Scanner;

class Main{
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int[] ar = new int[n];
  boolean F = false;
  for(int i=0;i<n;i++){
    ar[i] = sc.nextInt();
    if(ar[i]%2 == 1){
      F = true;
    }
  }
  if(F == true){
    System.out.println(0);
  }else{
    int m = Math.max(a);
    int times = 0;
    while(m%2 == 0){
      m /= 2;
      times++;
    }
    System.out.println(times);
  }
}

Compiler output:
Main.java:8: error: illegal start of type
  for(int i=0;i<n;i++){
  ^
Main.java:8: error: > or ',' expected
  for(int i=0;i<n;i++){
                 ^
Main.java:8: error: <identifier> expected
  for(int i=0;i<n;i++){
                   ^
Main.java:14: error: illegal start of type
  if(F == true){
  ^
Main.java:14: error: <identifier> expected
  if(F == true){
      ^
Main.java:16: error: illegal start of type
  }else{
   ^
6 errors
Language: Java

import java.util.Scanner;
 
class Main{
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int[] ar= new int[n];
  boolean F = false;  
  for(int i=0:i<n:i++){
    ar[i] = sc.nextInt();
    if(a[i]%2 == 1){
      F = true;
    }  
  }
  if(F ==true){
    System.out.println(0);
  }else{
    int max = Math.max(ar);
    int times = 0;
    for(max%2 == 0){
      int max /= 2;
      times++;
    }
    System.out.println(times);
  }  
}  

Compiler output:
Main.java:8: error: illegal start of type
  for(int i=0:i<n:i++){
  ^
Main.java:8: error: ';' expected
  for(int i=0:i<n:i++){
             ^
Main.java:8: error: > or ',' expected
  for(int i=0:i<n:i++){
                 ^
Main.java:8: error: <identifier> expected
  for(int i=0:i<n:i++){
                   ^
Main.java:14: error: illegal start of type
  if(F ==true){
  ^
Main.java:14: error: <identifier> expected
  if(F ==true){
      ^
Main.java:16: error: illegal start of type
  }else{
   ^
Main.java:19: error: not a statement
    for(max%2 == 0){
              ^
Main.java:19: error: ';' expected
    for(max%2 == 0){
                  ^
Main.java:20: error: ';' expected
      int max /= 2;
             ^
10 errors
Language: Java

import java.util.Scanner;

class Main{
  Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int[] ar= new int[n]
  boolean F = false;  
  for(int i=0;i<n;i++){
    ar[i] = sc.nextInt();
    if(a[i]%2 == 1){
      F = true;
    }  
  }
  if(F ==true){
    System.out.println(0);
  }else{
    int max = Math.max(ar);
    int times = 0;
    for(max%2 == 0){
      int max /= 2;
      times++;
    }
    System.out.println(times);
  }  
}  

Compiler output:
Main.java:6: error: ';' expected
  int[] ar= new int[n]
                      ^
Main.java:8: error: illegal start of type
  for(int i=0;i<n;i++){
  ^
Main.java:8: error: > or ',' expected
  for(int i=0;i<n;i++){
                 ^
Main.java:8: error: <identifier> expected
  for(int i=0;i<n;i++){
                   ^
Main.java:14: error: illegal start of type
  if(F ==true){
  ^
Main.java:14: error: <identifier> expected
  if(F ==true){
      ^
Main.java:16: error: illegal start of type
  }else{
   ^
Main.java:19: error: not a statement
    for(max%2 == 0){
              ^
Main.java:19: error: ';' expected
    for(max%2 == 0){
                  ^
Main.java:20: error: ';' expected
      int max /= 2;
             ^
10 errors
Language: Java

import java.util.*;
public class Contest {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
      	int[] a = new int[n];
      	int count = 0;
        boolean f = true;
      	for (int i = 0; i < n ; i++){
        	a[i] = Integer.parseInt(sc.next());
        }
      while(f){
      	for (int i = 0; i < n; i++) {
      		if(a[i]%2==0){
        		a[i] = a[i]/2;
        	}
          	else{
              f = false;
            	break;
            }
        }
        count++;
   	 }
     System.out.print(count);
   }
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
      	int[] a = new int[n];
      	int count = 0;
        boolean f = true;
      	for (int i = 0; i < n ; i++){
        	a[i] = Integer.parseInt(sc.next());
        }
      while(f){
      	for (int i = 0; i < b; i++) {
      		if(a[i]%2==0){
        		a[i] = a[i]/2;
        	}
          	else{
              f = false;
            	break;
            }
        }
        count++;
   	 }
     System.out.print(count);
   }
}


Compiler output:
Main.java:13: error: cannot find symbol
      	for (int i = 0; i < b; i++) {
      	                    ^
  symbol:   variable b
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
class Main{
  Scanner sc = new Scanner(System.in);
  int N = sc.nextInt();
  int[] ar = new int[N];
  boolean F = false;
  for(int i = 0;i<N;i++){
    ar(i) = sc.nextInt();
    if(ar(i)%2 == 1){
      F = true;
    }
  }
  
  if(F == true){
    System.out.println(0);
  }else{
    for(int i=0;i<N;i++){
      int times = 0;
      while(a(i)/2==0){
        a(i) /= 2;
        times++;
      }
      System.out.println(times);
    }
  }
}  

Compiler output:
Main.java:8: error: illegal start of type
  for(int i = 0;i<N;i++){
  ^
Main.java:8: error: > or ',' expected
  for(int i = 0;i<N;i++){
                   ^
Main.java:8: error: <identifier> expected
  for(int i = 0;i<N;i++){
                     ^
Main.java:15: error: illegal start of type
  if(F == true){
  ^
Main.java:15: error: <identifier> expected
  if(F == true){
      ^
Main.java:17: error: illegal start of type
  }else{
   ^
6 errors
Language: Java

import java.util.Scanner;

class Main{
  Scanner sc = new Scanner(System.in);
  int N = sc.nextInt();
  int[] ar = new int[N];
  boolean F = false;
  for(int i = 0;i<N;i++){
    ar(i) = sc.nextInt();
    if(ar(i)%2 == 1){
      F = true;
    }
  }
  
  if(F == true){
    System.out.println(0);
  }else{
    for(int i=0;i<N;i++){
      int times = 0;
      while(a(i)/2==0){
        a(i) /= 2;
        times++;
      }
      System.out.println(times);
    }
  }
}  

Compiler output:
Main.java:8: error: illegal start of type
  for(int i = 0;i<N;i++){
  ^
Main.java:8: error: > or ',' expected
  for(int i = 0;i<N;i++){
                   ^
Main.java:8: error: <identifier> expected
  for(int i = 0;i<N;i++){
                     ^
Main.java:15: error: illegal start of type
  if(F == true){
  ^
Main.java:15: error: <identifier> expected
  if(F == true){
      ^
Main.java:17: error: illegal start of type
  }else{
   ^
6 errors
Language: Java

import java.util.*;
import java.lang.*;
public class Contest {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
      	int[] a = new int[n];
      	int b = a.length;
      	int count = 0;
        boolean f = true;
      	for (int i = 0; i < b ; i++){
        	a[i] = Integer.parseInt(sc.next());
        }
      while(f){
      	for (int i = 0; i < b; i++) {
      		if(a[i]%2==0){
        		a[i] = a[i]/2;
        	}
          	else{
              f = false;
            	break;
            }
        }
        count++;
   	 }
     System.out.print(count);
   }
}


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

import java.util.*;
import java.lang.*;
public class Contest {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
      	int[] a = new int[n];
      	int b = a.length;
      	int count = 0;
      	for (int i = 0; i < b ; i++){
        	a[i] = Integer.parseInt(sc.next());
        }
      while(true){
      	for (int i = 0; i < b; i++) {
      		if(a[i]%2==0){
        		a[i] = a[i]/2;
        	}
          	else{
            	break;
            }
        }
        count++;
        break;
   	 }
     System.out.print(count);
   }
}


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

import java.util.*;
public class Contest {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int n = Integer.parseInt(sc.next());
      	int[] a = new int[n];
      	int b = a.length;
      	int count = 0;
      	for (int i = 0; i < b ; i++){
        	a[i] = Integer.parseInt(sc.next());
        }
      while(true){
      	for (int i = 0; i < b; i++) {
      		if(a[i]%2==0){
        		a[i] = a[i]/2;
        	}
          	else{
            	break;
            }
        }
        count++;
   	 }
      System.out.println(count);
   }
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String n = Integer.parseInt(sc.next());
      	int[] a = new int[n];
      	int b = a.length();
      	int count;
      	for (int i = 0; i < b ; i++){
        	a[i] = Integer.parseInt(sc.next());
        }
      while(true){
      	for (int i = 0; i < b; i++) {
      		if(a[i]%2==0){
        		a[i] = a[i]/2;
        	}
          	else{
            	break
            }
        }
        count++
   	 }
      System.out.println(count);
   }	
}

Compiler output:
Main.java:18: error: ';' expected
            	break
            	     ^
Main.java:21: error: ';' expected
        count++
               ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main(){
    int N, A, a, n=10^9, p=0;
    cin>>N;
    
    for(int i=1; i<=N; i++){
      cin >> A;
      a=0;
      for(int j=1; a>=j, j++){
        if(A%(2^j)==0)
          a=j;
      }
      if(n>a)
        n=a;
    }
    cout<<n<<endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: warning: result of '10^9' is 3; did you mean '1e9'? [-Wxor-used-as-pow]
    4 |     int N, A, a, n=10^9, p=0;
      |                      ^
      |                    ---
      |                    1e
a.cc:4:20: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
    4 |     int N, A, a, n=10^9, p=0;
      |                    ^~
      |                    0xa
a.cc:10:29: error: expected ';' before ')' token
   10 |       for(int j=1; a>=j, j++){
      |                             ^
      |                             ;
Language: C++

#include<iostream>

int N;
int A[210];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'exits_odd' was not declared in this scope; did you mean 'exist_odd'?
   16 |                 exits_odd = true
      |                 ^~~~~~~~~
      |                 exist_odd
a.cc:19:12: error: 'exit_odd' was not declared in this scope; did you mean 'exist_odd'?
   19 |         if(exit_odd) break;
      |            ^~~~~~~~
      |            exist_odd
a.cc:21:13: error: 'a' was not declared in this scope
   21 |             a[i] /=2;
      |             ^
Language: C++

#include<iostream>

int N;
int A[210];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before '}' token
    9 |         std::cin>>A[i]
      |                       ^
      |                       ;
   10 |     }
      |     ~                  
a.cc:16:17: error: 'exits_odd' was not declared in this scope; did you mean 'exist_odd'?
   16 |                 exits_odd = true
      |                 ^~~~~~~~~
      |                 exist_odd
a.cc:19:12: error: 'exit_odd' was not declared in this scope; did you mean 'exist_odd'?
   19 |         if(exit_odd) break;
      |            ^~~~~~~~
      |            exist_odd
a.cc:21:13: error: 'a' was not declared in this scope
   21 |             a[i] /=2;
      |             ^
Language: C++

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 stop_flag = 1;
  int count = 0;
  do{
    for(int i=0; i<N; i++){
      if(A.at(i)%2!=0){
        stop_flag = 0;
      }else{
        A.at(i) = A.at(i)>>1;
      }
      if((i==N-1)&&(stop_flag==1)){
        count++;
      }
    }
  }while(stop_flag);
  
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<int> A(N);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> A(N);
      |          ^~~
a.cc:10:12: error: 'A' was not declared in this scope
   10 |     cin >> A.at(i);
      |            ^
a.cc:17:10: error: 'A' was not declared in this scope
   17 |       if(A.at(i)%2!=0){
      |          ^
a.cc:28:3: error: 'cout' was not declared in this scope
   28 |   cout << count << endl;
      |   ^~~~
a.cc:28:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:20: error: 'endl' was not declared in this scope
   28 |   cout << count << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

int main(){
    int s;
    int j = 0;
    cin >> s;

    int v[200];
    for(int i = 0; i < s; i++) cin >> v[i];

    while (true){
      bool exist_odd = false;
      j++;
      for(int i = 0; i < s; i++){
        if (v[i] % (int)pow(2,j) == 1) exist_odd = true;
      }
      if (exist_odd) break;
    }

    cout << j-1 <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> s;
      |     ^~~
a.cc:13:25: error: 'pow' was not declared in this scope
   13 |         if (v[i] % (int)pow(2,j) == 1) exist_odd = true;
      |                         ^~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << j-1 <<endl;
      |     ^~~~
a.cc:18:19: error: 'endl' was not declared in this scope
   18 |     cout << j-1 <<endl;
      |                   ^~~~
Language: C++

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

int main(){
    int s;
    int j = 0;
    cin >> s;

    int v[200];
    for(int i = 0; i < s; i++){
      cin >> v[i];
      vTemp[i] = 0;
    }

    while (true){
      bool exist_odd = false;
      j++;
      for(int i = 0; i < s; i++){
        if (v[i] % (int)pow(2,j) == 1) exist_odd = true;
      }
      if (exist_odd) break;
    }

    cout << j-1 <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'vTemp' was not declared in this scope
   14 |       vTemp[i] = 0;
      |       ^~~~~
Language: C++

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

int main(){
    int s;
    int j = 0;
    cin >> s;

    vector<int> v(s);
    vector<int> vTemp(s);
    for(int i = 0; i < s; i++){
      cin >> v[i];
      vTemp[i] = 0;
    }


    while (vTemp[s-1] == 0){
      j++;
      for(int i = 0; i < s; i++){
        vTemp[i] = v[i] % (int)pow(2,j);
      }
      sort(vTemp.begin(), vTemp.end());
    }

    cout << j-1 <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:7: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   25 |       sort(vTemp.begin(), vTemp.end());
      |       ^~~~
      |       sqrt
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>

using namespace std;

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

    int tmp[200], result[200];
    memcpy(tmp, A, sizeof(A));

    bool isFinish = false;
    int count = 0;
    while (!isFinish) {
        memcpy(result, tmp, sizeof(tmp));
        for (unsigned i = 0; i < N; ++i) {
            if (result[i] % 2 == 1) {
                isFinish = true;
                break;
            }
            tmp[i] = result[i] / 2;
        }
        ++count;
    }
    // 最後に余分に回った分を減らしておく
    --count;

    cout << count << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'memcpy' was not declared in this scope
   15 |     memcpy(tmp, A, sizeof(A));
      |     ^~~~~~
a.cc:4:1: note: 'memcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <vector>
  +++ |+#include <cstring>
    4 | #include <stdio.h>
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>

using namespace std;

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

    int tmp[200], result[200];
    memcpy(tmp, A, sizeof(A));

    bool isFinish = false;
    int count = 0;
    while (!isFinish) {
        memcpy(result, tmp, sizeof(tmp));
        for (unsigned i = 0; i < sizeof(tmp); ++i) {
            if (result[i] % 2 == 1) {
                isFinish = true;
                break;
            }
            tmp[i] = result[i] / 2;
        }
        ++count;
    }
    // 最後に余分に回った分を減らしておく
    --count;

    cout << to_string(count) << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'memcpy' was not declared in this scope
   15 |     memcpy(tmp, A, sizeof(A));
      |     ^~~~~~
a.cc:4:1: note: 'memcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <vector>
  +++ |+#include <cstring>
    4 | #include <stdio.h>
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main(){
    int N, A, a, n=10000, p=0;
    cin>>N;
    
    for(int i=1; i<=N; i++){
      cin >> A;
      for(int j=1; p==0; j++){
        p=A%(2^j)
        a=j;
      }
      if(n>a)
        n=a;
    }
    cout<<n<<endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'a'
   10 |         p=A%(2^j)
      |                  ^
      |                  ;
   11 |         a=j;
      |         ~
Language: Java

import java.util.*;
import java.lang.*;

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

	int cnt = 0;
	boolean f = true;
	while (f) {
		cnt++;
		for (int i = 0; i < n; i++) {
			if (a[i] % 2 != 0) {
				f = false;
				break;
				cnt--;
			}
			a[i] /= 2;
		}
	}
    System.out.println(cnt);
  }
}


Compiler output:
Main.java:21: error: unreachable statement
				cnt--;
				^
1 error
Language: Java

import java.util.*;
import java.lang.*;

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

	int cnt = 0;
	boolean f = true;
	while (f) {
		cnt++;
		for (int i = 0; i < n; i++) {
			if (a[i] % 2) {
				f = false;
				break;
				cnt--;
			}
			a[i] /= 2;
		}
	}
    System.out.println(cnt);
  }
}


Compiler output:
Main.java:18: error: incompatible types: int cannot be converted to boolean
			if (a[i] % 2) {
			         ^
1 error
Language: Java

import java.util.*;
import java.lang.*;

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

	int cnt = 0;
	boolean f = true;
	while (f) {
		cnt++;
		for (int i = 0; i < n; i++) {
			if (a(i) % 2) {
				f = false;
				break;
				cnt--;
			}
			a(i) /= 2;
		}
	}
    System.out.println(cnt);
  }
}


Compiler output:
Main.java:18: error: cannot find symbol
			if (a(i) % 2) {
			    ^
  symbol:   method a(int)
  location: class Main
Main.java:23: error: cannot find symbol
			a(i) /= 2;
			^
  symbol:   method a(int)
  location: class Main
2 errors
Language: Java

import java.util.*;
import java.lang.*;

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

	int cnt = 0;
	boolean f = true;
	while f {
		cnt++;
		foreach (int i = 0; i < n; i++) {
			if (a(i) % 2) {
				f = false;
				break;
				cnt--;
			}
			a(i) /= 2;
		}
	}
    System.out.println(cnt);
  }
}


Compiler output:
Main.java:15: error: '(' expected
	while f {
	     ^
Main.java:15: error: ')' expected
	while f {
	       ^
Main.java:17: error: '.class' expected
		foreach (int i = 0; i < n; i++) {
		             ^
Main.java:17: error: > or ',' expected
		foreach (int i = 0; i < n; i++) {
		                         ^
Main.java:17: error: not a statement
		foreach (int i = 0; i < n; i++) {
		                      ^
Main.java:17: error: ';' expected
		foreach (int i = 0; i < n; i++) {
		                              ^
6 errors
Language: C++

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 0; i < N; i++) {
    	A[i] /= 2;
    }
    res++
  }
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:18:14: error: expected unqualified-id before numeric constant
   18 |     for (int 0; i < N; i++) {
      |              ^
a.cc:18:13: error: expected ';' before numeric constant
   18 |     for (int 0; i < N; i++) {
      |             ^~
      |             ;
a.cc:18:17: error: 'i' was not declared in this scope
   18 |     for (int 0; i < N; i++) {
      |                 ^
a.cc:18:22: error: expected ')' before ';' token
   18 |     for (int 0; i < N; i++) {
      |         ~            ^
      |                      )
a.cc:18:24: error: 'i' was not declared in this scope
   18 |     for (int 0; i < N; i++) {
      |                        ^
a.cc:21:10: error: expected ';' before '}' token
   21 |     res++
      |          ^
      |          ;
   22 |   }
      |   ~       
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout << res << endl;
      |   ^~~~
a.cc:23:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:18: error: 'endl' was not declared in this scope
   23 |   cout << res << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>

using namespace std;

int main() {
  int n=0;

  cin >> n;
  int* pAry = NULL;
  pAry = new int[n]
  for(int i=0; i<n; i++){
      cin >> pAry[i]
  }

  int count = 0;
  int breaking = 0
  while(1) {
      for(int i=0; i<n; i++){
        if( pAry[i] % 2 == 0 ){
          pAry[i] = pAry[i] / 2;
        } else {
          breaking = 1;
          break;
        }
      }
    if( breaking == 1 ){ break; }
    count++;
  }

  return count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'for'
   10 |   pAry = new int[n]
      |                    ^
      |                    ;
   11 |   for(int i=0; i<n; i++){
      |   ~~~               
a.cc:11:16: error: 'i' was not declared in this scope
   11 |   for(int i=0; i<n; i++){
      |                ^
a.cc:17:3: error: expected ',' or ';' before 'while'
   17 |   while(1) {
      |   ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
  int n=0;

  cin >> n
  int* pAry = NULL;
  pAry = new int[n]
  for(int i=0; i<n; i++){
      cin >> pAry[i]
  }

  int count = 0;
  int breaking = 0
  while(1) {
      for(int i=0; i<n; i++){
        if( pAry[i] % 2 == 0 ){
          pAry[i] = pAry[i] / 2;
        } else {
          breaking = 1;
          break;
        }
      }
    if( breaking == 1 ){ break; }
    count++;
  }

  return count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'int'
    8 |   cin >> n
      |           ^
      |           ;
    9 |   int* pAry = NULL;
      |   ~~~      
a.cc:10:3: error: 'pAry' was not declared in this scope
   10 |   pAry = new int[n]
      |   ^~~~
a.cc:11:16: error: 'i' was not declared in this scope
   11 |   for(int i=0; i<n; i++){
      |                ^
a.cc:17:3: error: expected ',' or ';' before 'while'
   17 |   while(1) {
      |   ^~~~~
Language: C++

#include <iostream>

using namespace std;

int n=0;

cin >> n
int* pAry = NULL;
pAry = new int[n]
for(int i=0; i<n; i++){
	cin >> pAry[i]
}

int count = 0;
int breaking = 0
while(1) {
	for(int i=0; i<n; i++){
      if( pAry[i] % 2 == 0 ){
        pAry[i] = pAry[i] / 2;
      } else {
        breaking = 1;
        break;
      }
    }
  if( breaking == 1 ){ break; }
  count++;
}

return count;


Compiler output:
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> n
      | ^~~
a.cc:9:1: error: 'pAry' does not name a type
    9 | pAry = new int[n]
      | ^~~~
a.cc:10:14: error: 'i' does not name a type
   10 | for(int i=0; i<n; i++){
      |              ^
a.cc:10:19: error: 'i' does not name a type
   10 | for(int i=0; i<n; i++){
      |                   ^
a.cc:16:1: error: expected ',' or ';' before 'while'
   16 | while(1) {
      | ^~~~~
a.cc:29:1: error: expected unqualified-id before 'return'
   29 | return count;
      | ^~~~~~
Language: C++

#include "iostream"

using namespace std;

int n=0;

cin >> n
int* pAry = NULL;
pAry = new int[n]
for(int i=0; i<n; i++){
	cin >> pAry[i]
}

int count = 0;
int breaking = 0
while(1) {
	for(int i=0; i<n; i++){
      if( pAry[i] % 2 == 0 ){
        pAry[i] = pAry[i] / 2;
      } else {
        breaking = 1;
        break;
      }
    }
  if( breaking == 1 ){ break; }
  count++;
}

return count;


Compiler output:
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> n
      | ^~~
a.cc:9:1: error: 'pAry' does not name a type
    9 | pAry = new int[n]
      | ^~~~
a.cc:10:14: error: 'i' does not name a type
   10 | for(int i=0; i<n; i++){
      |              ^
a.cc:10:19: error: 'i' does not name a type
   10 | for(int i=0; i<n; i++){
      |                   ^
a.cc:16:1: error: expected ',' or ';' before 'while'
   16 | while(1) {
      | ^~~~~
a.cc:29:1: error: expected unqualified-id before 'return'
   29 | return count;
      | ^~~~~~