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

#include <iostream>
#include <math.h>
using namespace std;
int main() {
int n;
cin>>n;
int a[n];
bool is_odd;
int oddnum=0;

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

while(true){
  for(int i=0;i<n;i++){
  if(a[ i]%2==0){
    a[i]/=2;
    }
  else{break;}
  }
  oddnum++;

cout<<oddnum<<endl;}

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

#include <stdio.h>

int main(void){
    int n, i = 1, iseven = 1, r;
    int *array;
    scanf("%d", &n);
    array = (int*)malloc(sizeof(int) * n);
    
    scanf("%d", &array[0]);
    
    while (i < n) {
        scanf(" ");
        scanf("%d", &array[i]);
        i++;
        if (array[i] % 2 == 1) {
            iseven = 0;
        }
    }
    
    while (iseven == 1) {
        for (i = 0; i<n ; i++) {
            array[i] /= 2;
            if (array[i]%2 == 1) {
                iseven = 0;
            }
        }
        r++;
    }
    
    printf("%d\n", r);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'malloc' was not declared in this scope
    7 |     array = (int*)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 |
Language: C++

#include<stdc++.h>
using namespace std;
int main(){
  int N;
  vector<int> a(N);
  cin>>N;
  for(int i=0;i<N;i++){
    cin<<a.at(i);
  }
  for(int i=0;i<N;i++){
    if(a.at(i)%2==1)
      break;
    
    

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

input()
def f(n,c=0):
    while n&1==0:
        n>>=1
        c+=1
    return c
print(min([f(n)for n in map(int,input().split())]))

Compiler output:
a.cc:2:1: error: expected constructor, destructor, or type conversion before 'def'
    2 | def f(n,c=0):
      | ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:40: error: expected ';' before '}' token
   12 |         if (A[i]%2 !=0) exist_odd =true
      |                                        ^
      |                                        ;
   13 |         }
      |         ~
Language: C++

    #include <iostream>
    using namespace std;
    int N;
    int A[210];
    int main(){
    cin >> N;
    for (int i=0;iN;++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) breal;
        for(int  i = 0; i < N; ++i){
        	A[i] /= 2;
            }
            ++res;
            }
            cout << res << endl;
            }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'iN' was not declared in this scope; did you mean 'i'?
    7 |     for (int i=0;iN;++i)cin >> A[i];
      |                  ^~
      |                  i
a.cc:12:25: error: 'exist' was not declared in this scope; did you mean 'exit'?
   12 |         if (A[i]%2 !=0) exist odd =true
      |                         ^~~~~
      |                         exit
a.cc:14:24: error: 'breal' was not declared in this scope
   14 |         if (exist_odd) breal;
      |                        ^~~~~
Language: C++

    #include <iostream>
    using namespace std;
    int N;
    int A[210];
    int main(){
    cin >> N;
    for (int i=0;iN;++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) breal;
        for(int  i = 0; i < N; ++i){
        	A[i] /= 2;
            }
            ++res;
            }
            cout << res << endl;
            }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'iN' was not declared in this scope; did you mean 'i'?
    7 |     for (int i=0;iN;++i)cin >> A[i];
      |                  ^~
      |                  i
a.cc:11:13: error: expected '(' before 'int'
   11 |         for int i = 0; i < N; ++i){
      |             ^~~
      |             (
a.cc:12:25: error: 'exist' was not declared in this scope; did you mean 'exit'?
   12 |         if (A[i]%2 !=0) exist odd =true
      |                         ^~~~~
      |                         exit
a.cc:14:12: error: expected '(' before 'exist_odd'
   14 |         if exist_odd) breal;
      |            ^~~~~~~~~
      |            (
Language: C++

    #include <iostream>
    using namespace std;
    int N;
    int A[210]
    int main(){
    cin >> N;
    for (int i=0;iN;++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) breal;
        for(int  i = 0; i < N; ++i){
        	A[i] /= 2;
            }
            ++res;
            }
            cout << res << endl;
            }

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

#include <iostream>
using nameespace std;
int N;
int A[210]
int main(){
cin >> N;
for (int i=0;iN;++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) breal;
    for(int  i = 0; i < N; ++i){
    	A[i] /= 2;
        }
        ++res;
        }
        cout << res << endl;
        }

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameespace'
    2 | using nameespace std;
      |       ^~~~~~~~~~
a.cc:5:1: error: expected initializer before 'int'
    5 | int main(){
      | ^~~
Language: C++

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

int main() {
  int n, a, counter = 0, min;
  cin >> n;
  min = 10000;
  for (int i = 0; i<n; i++){
    counter = 0
    cin >> a;
    while(a%2 ==0){
      counter++;
      a /= 2;
      if (counter > min){
        break;
      }
    }
    if (min > counter){
      min = counter;
    }
  }
  cout << min << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before 'cin'
    9 |     counter = 0
      |                ^
      |                ;
   10 |     cin >> a;
      |     ~~~
Language: C++

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

int main() {
  int n, a, counter = 0, min;
  cin >> n;
  min = 10000;
  for (int i = 0; i<n; i++){
    cin >> a;
    while(a%2 ==0){
      counter++;
      a /= 2;
      if (counter > min){
        break;
      }
    }
    if (min > counter){
      min = counter;
    }
  cout << min << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
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, counter = 0, min;
  cin >> n;
  min = 10000;
  for (int i = 0; i<n; i++){
    cin >> a;
    while(a%2 ==0){
      counter++;
      a /= 2;
      if (counter > min){
        break;
      }
    }
    if (min > counter){
      min = coutner;
    }
  cout << min << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'coutner' was not declared in this scope; did you mean 'counter'?
   18 |       min = coutner;
      |             ^~~~~~~
      |             counter
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
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, counter = 0, min;
  cin >> n;
  min = 10000;
  for (int i = 0, i<n, i++){
    cin >> a;
    while(a%2 ==0){
      counter++;
      a /= 2;
      if (counter > min){
        break;
      }
    }
    if (min > counter){
      min = coutner;
    }
  cout << min << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '<' token
    8 |   for (int i = 0, i<n, i++){
      |                    ^
      |                    ;
a.cc:8:20: error: expected primary-expression before '<' token
a.cc:8:27: error: expected ';' before ')' token
    8 |   for (int i = 0, i<n, i++){
      |                           ^
      |                           ;
a.cc:18:13: error: 'coutner' was not declared in this scope; did you mean 'counter'?
   18 |       min = coutner;
      |             ^~~~~~~
      |             counter
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N;
  int a[200];
  int b[200] = {};
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> a[i];
    while((a[i] > 1) && (a[i]%2 == 0)){
      a[i] = a[i] / 2;
      b[i] = b[i] + 1;
    }
  }
  sort(b,b+N);
  cout << b[0] << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |   sort(b,b+N);
      |   ^~~~
      |   short
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  int small = 10000000000;
  int result;
  for(int i=0; i != n; ++i){
    int temp;
    cin >> temp;
    if(temp%2 == 1){
      result = 0;
      cout << resutl <<endl;
      return 0;
    }
    if(temp < small)small = temp;
  }
  result = 0;
  while(small != 1){
    small /= 2;
    result++;
  }
  
  cout << result <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000000' to '1410065408' [-Woverflow]
    6 |   int small = 10000000000;
      |               ^~~~~~~~~~~
a.cc:13:15: error: 'resutl' was not declared in this scope; did you mean 'result'?
   13 |       cout << resutl <<endl;
      |               ^~~~~~
      |               result
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 ope_num = 0;
	bool exist_odd = false;
	while (true) {
		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;
		}
		++ope_num;
	}
	cout << ope_num << endl;

	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> N;
      |         ^~~
a.cc:25:9: error: 'cout' was not declared in this scope
   25 |         cout << ope_num << endl;
      |         ^~~~
a.cc:25:28: error: 'endl' was not declared in this scope
   25 |         cout << ope_num << endl;
      |                            ^~~~
Language: Java

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


Compiler output:
Main.java:29: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

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



Compiler output:
Main.java:17: error: <identifier> expected
        System.out.println(count);
                          ^
Main.java:17: error: <identifier> expected
        System.out.println(count);
                                ^
Main.java:19: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int [] k = new int [n];
	int a = 0;
	int cnt = 0;
	for(int i = 0;i < n;i++) {
		k[i] = sc.nextInt();
	}
out:	for(int i = 0;;i++){
		for(int j = 0;j < n;j++) {
			if(k[j] % 2 == 1) {
				break out;
			}
			k[j] = k[j] / 2;
		}
		cnt ++;
	}
	System.out.println(cnt);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>

using namespace std;
int main() {
  int n;
  int a[];
  cin >> n;
  for (int i = 0; i < n; i++) 
    cin >> a[i];
  int j, k;
  k = 0;
  while (a[j] % 2 == 0)
    for (j = 0; j < n; j++)
      a[j] = a[j] / 2;
      k++;
  cout << k << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: storage size of 'a' isn't known
    6 |   int a[];
      |       ^
Language: C++

/* ----------------------------
 * ABC 81 B
 * ---------------------------- */
#include <iostream>
#include <vector>
using namespace std;

int main(){
	int n;
	cin >> n;
	vector<int> a;
	for(int i = 0; i < n; i++){
		int tmp;
		cin >> tmp;
		a.push_back(tmp);
	}
	int ans = 0;
	
	while(true){
		for(auto tmp: a){
			if(a%2 != 0) goto OUT_OF_LOOP;
			a /= 2;
		}
		++ans;
	}
	OUT_OF_LOOP:
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:29: error: no match for 'operator%' (operand types are 'std::vector<int>' and 'int')
   21 |                         if(a%2 != 0) goto OUT_OF_LOOP;
      |                            ~^~
      |                            | |
      |                            | int
      |                            std::vector<int>
a.cc:22:27: error: no match for 'operator/=' (operand types are 'std::vector<int>' and 'int')
   22 |                         a /= 2;
      |                         ~~^~~~
Language: C++

/* ----------------------------
 * ABC 81 B
 * ---------------------------- */
#include <iostream>
#include <vector>
using namespace std;

int main(){
	int n;
	cin >> n;
	vector<int> a;
	for(int i = 0; i < n; i++){
		int tmp;
		cin >> tmp;
		a.push_back(a);
	}
	int ans = 0;
	
	while(true){
		for(auto tmp: a){
			if(a%2 != 0) goto OUT_OF_LOOP;
			a /= 2;
		}
		++ans;
	}
	OUT_OF_LOOP:
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:28: error: no matching function for call to 'std::vector<int>::push_back(std::vector<int>&)'
   15 |                 a.push_back(a);
      |                 ~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:5:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; value_type = int]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::vector<int>' to 'const std::vector<int>::value_type&' {aka 'const int&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; value_type = int]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<int>::value_type&&' {aka 'int&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
a.cc:21:29: error: no match for 'operator%' (operand types are 'std::vector<int>' and 'int')
   21 |                         if(a%2 != 0) goto OUT_OF_LOOP;
      |                            ~^~
      |                            | |
      |                            | int
      |                            std::vector<int>
a.cc:22:27: error: no match for 'operator/=' (operand types are 'std::vector<int>' and 'int')
   22 |                         a /= 2;
      |                         ~~^~~~
Language: C++

#include <iostream>
using namespace std;
const int INF = INT_MAX;

int main() {
  int n;
  cin >> n;
  int min_div = INF;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    int tmp_div = 0;
    while (x % 2 == 0 && x > 0) {
      tmp_div++;
      x /= 2;
    }
    min_div = min(min_div, tmp_div);
  }
  cout << min_div << endl;
  return 0;
}


Compiler output:
a.cc:3:17: error: 'INT_MAX' was not declared in this scope
    3 | const int INF = INT_MAX;
      |                 ^~~~~~~
a.cc:2:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    1 | #include <iostream>
  +++ |+#include <climits>
    2 | using namespace std;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected primary-expression before ';' token
   10 |       while(;)
      |             ^
a.cc:10:13: error: expected ')' before ';' token
   10 |       while(;)
      |            ~^
      |             )
a.cc:10:14: error: expected primary-expression before ')' token
   10 |       while(;)
      |              ^
Language: C++

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

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

#include <cstdio>
using namespace std;

int N, A[200];

int main()
{
	int dmin = 100;
	scanf("%d", &N);
	for (int i = 0; i < N; ++i) {
		int A;
		scanf("%d", &A);
		int d = 0;
		while (A % 2 == 0) {
			A /= 2;
			++d;
		}
		dmin = min(dmin, d);
	}
	printf("%d\n", dmin);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: 'min' was not declared in this scope; did you mean 'dmin'?
   18 |                 dmin = min(dmin, d);
      |                        ^~~
      |                        dmin
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 cnt;

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

		if(exist) break;

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


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

#include <iostream>
using namespace std;

int main(){
	int N, c=0, f=0;
	cin >> N;
	int A[N];
	for(int i=0; i<N; i++) cin >> A[i];
	while(f!=0){
		for(int i=0; i<N; i++){
			if(A[i]%2!=0){
				cout << c;
				f++;
				break;
			} else {
				A[i] = A[i]/2;
			}
		}
		i=0;
		c++;
	}
}		

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: 'i' was not declared in this scope
   19 |                 i=0;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int N, c=0, f=0;
	cin >> N;
	int A[N];
	for(int i=0; i<N; i++) cin >> A[i];
	while(f!=0){
		for(int i=0; i<N; i++){
			if(A[i]%2!=0){
				cout << c;
				f++;
				break;
			} else {
				A[i] = A[i]/2;
		}
		c++;
	}
}		

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

#include <iostream>
using namespace std;

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

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

import java.util.*;

public class ABC089A {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int ansMax = 999;
		for (int i = 0; i < N; i++) {
			int A = sc.nextInt();
			int cnt = 0;
			while (A % 2 == 0) {
				cnt++;
				A /= 2;
			}
			ansMax = Math.min(ansMax, cnt);
		}
		System.out.println(ansMax);
	}
}

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

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













































Compiler output:
a.cc:2:17: error: expected unqualified-id before 'while'
    2 |                 while(flag){
      |                 ^~~~~
a.cc:12:17: error: 'cout' does not name a type
   12 |                 cout<<t<<endl;
      |                 ^~~~
a.cc:13:9: error: expected declaration before '}' token
   13 |         }
      |         ^
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] nums = new int [N];
		int count =0;
		for(int i=0;i<N;i++) 
			nums[i]=sc.nextInt();
		
		B_81 c = new B_81();
		
		while(true)
			if( c.isGusu(nums) ==true) 
			{
				for(int k=0;k<N;k++) 	nums[k] /= 2;
				count += 1;
			}
			else break;
		System.out.println(count);
	}
	
	boolean isGusu (int[] a) 
	{
		for(int i=0;i<a.length;i++) 
			if(a[i] %2 != 0)  return false;
		return true;
	}

}


Compiler output:
Main.java:13: error: cannot find symbol
		B_81 c = new B_81();
		^
  symbol:   class B_81
  location: class Main
Main.java:13: error: cannot find symbol
		B_81 c = new B_81();
		             ^
  symbol:   class B_81
  location: class Main
2 errors
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(void){
    int N;
    cin >> N;
    int A[N];
    for(int i=0; i<N; i++)cin>>A[i];

    int ans = 31, p;
    for(int i=0; i<N; i++){
        for(int j=1; j<=ans; j++){
            if(A[i]%pow(2,j)){
                p = j;
            }
        }
        ans = min(ans, p);
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   13 |             if(A[i]%pow(2,j)){
      |                ~~~~^~~~~~~~~
      |                   |    |
      |                   int  __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int N;
    cin >> N;
    int A[N];
    for(int i=0; i<N; i++)cin>>A[i];

    int ans = 31, p;
    for(int i=0; i<N; i++){
        for(int j=1; j<=ans; j++){
            if(A[i]%pow(2,j)){
                p = j;
            }
        }
        ans = min(ans, p);
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'pow' was not declared in this scope
   12 |             if(A[i]%pow(2,j)){
      |                     ^~~
Language: C++

#include <iostream>
#include <string>
#include <string.h>
#include <map>
#include <set>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstdio>
using namespace std;
int a[200];
int main(){
int b,ans=0;
cin>>b;
for(int i=0;i<b;i++)
cin>>a[i];
for(int i=0;i<b;i++)
if(a[i]%2==1)
{cout<<ans;
system("pause");
return 0;
}
for(int i=0;i<b;i++){
a[i]=a[i]/2;
if(a[i]%2==1)
{cout<<i+1;
return 0;
}}

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

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

int main()
{
    int t,c=0, b;
    cin >> t;
    int arr[t+1];
    for(int i=0; i<t; i++)
    {
        cin >> b;
        if(b%2 == 1)return cout<<"0"<<endl, 0;
        c + = floor(log2 (b));

    }
   
    cout << c << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected primary-expression before '=' token
   13 |         c + = floor(log2 (b));
      |             ^
Language: C++

#include "bits/stdc++.h"

#define REP(i,n) for(ll i=0;i<ll(n);++i)
#define RREP(i,n) for(ll i=ll(n)-1;i>=0;--i)
#define FOR(i,m,n) for(ll i=m;i<ll(n);++i)
#define RFOR(i,m,n) for(ll i=ll(n)-1;i>=ll(m);--i)
#define ALL(v) (v).begin(),(v).end()
#define UNIQUE(v) v.erase(unique(ALL(v)),v.end());
#define DUMP(v) REP(aa, (v).size()) { cout << v[aa]; if (aa != v.size() - 1)cout << " "; else cout << endl; }
#define INF 1000000001ll
#define MOD 1000000007ll
#define EPS 1e-9

const int dx[8] = { 1,1,0,-1,-1,-1,0,1 };
const int dy[8] = { 0,1,1,1,0,-1,-1,-1 };


using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
ll max(ll a, int b) { return max(a, ll(b)); }
ll max(int a, ll b) { return max(ll(a), b); }
ll min(ll a, int b) { return min(a, ll(b)); }
ll min(int a, ll b) { return min(ll(a), b); }


int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	int ans = INF;
	int n;
	cin >> n;
	REP(i, n) {
		int a;
		cin >> a;
		int cnt = 0;
		while (a % 2 == 0) {
			cnt++;
			a /= 2;
		}
		ans = min(ans, cnt);
	}
	cout << cnt << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   48 |         cout << cnt << endl;
      |                 ^~~
      |                 int
Language: C++


#include<cstdint>
#include<cstring>
#include<iostream>
#include<vector>
#include<memory>
#include<algorithm>
#include<utility>

using namespace std;


int64_t A[200];
int64_t N;

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

	int64_t or = 0;
	for (int i = 0; i < N; ++i) {
		or |= A[i];
	}

	int ans = 0;
	while ((or &1) == 0) {
		or /= 2;
		++ans;
	}

	cout << ans << endl;

    return 0; 
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: expected unqualified-id before 'or' token
   23 |         int64_t or = 0;
      |                 ^~
a.cc:25:17: error: expected primary-expression before 'or' token
   25 |                 or |= A[i];
      |                 ^~
a.cc:25:20: error: expected primary-expression before '|=' token
   25 |                 or |= A[i];
      |                    ^~
a.cc:29:17: error: expected primary-expression before 'or' token
   29 |         while ((or &1) == 0) {
      |                 ^~
a.cc:29:21: error: lvalue required as unary '&' operand
   29 |         while ((or &1) == 0) {
      |                     ^
a.cc:30:17: error: expected primary-expression before 'or' token
   30 |                 or /= 2;
      |                 ^~
a.cc:30:20: error: expected primary-expression before '/=' token
   30 |                 or /= 2;
      |                    ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[200005]
int  main() 
{
	int n,k,x;
	for(i=0;i<=n;i++)
	{
		cin>>a[i];
		for(int j=0;j<=n;j++)
		{
			if(i<=)
		}
	}
	
}

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

#include <iostream>
#include <slgorithm>
using namespace std;
int main() {
  int N;
  cin >> N;
  int mn = 10000;
  for(int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    int cnt = 0;
    while(a % 2 == 0) {
      a /= 2;
      ++cnt;
    }
    mn = min(cnt, mn);
  }
  cout << mn << endl;
}

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

#include <stdio.h>

int count = 0;
unsigned char N;
unsigned __int32 A[200] = {};

int calc() {
	for (int n = 0; n < N; n++) {
		if (A[n] % 2 == 0) A[n] = A[n] / 2;
		else return 0;
	}
	count++;
	return calc();
}

int main()
{
	scanf("%i", &N);
	for (int n = 0; n < N; n++) {
		scanf("%i", &A[n]);
	}
	calc();
	printf("%i",count);
	return 0;
}

Compiler output:
a.cc:5:18: error: expected initializer before 'A'
    5 | unsigned __int32 A[200] = {};
      |                  ^
a.cc: In function 'int calc()':
a.cc:9:21: error: 'A' was not declared in this scope
    9 |                 if (A[n] % 2 == 0) A[n] = A[n] / 2;
      |                     ^
a.cc: In function 'int main()':
a.cc:20:30: error: 'A' was not declared in this scope
   20 |                 scanf("%i", &A[n]);
      |                              ^
Language: C++

#include "stdafx.h"
#include <stdio.h>

int count = 0;
unsigned char N;
unsigned __int32 A[200] = {};

int calc() {
	for (int n = 0; n < N; n++) {
		if (A[n] % 2 == 0) A[n] = A[n] / 2;
		else return 0;
	}
	count++;
	return calc();
}

int main()
{
	scanf("%i", &N);
	for (int n = 0; n < N; n++) {
		scanf("%i", &A[n]);
	}
	calc();
	printf("%i",count);
	return 0;
}

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

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

int main()
{
	int n, f, minv == 2147483647;
	cin >> n;
	int a[n];
	for ( int i = 0; i < n; i++ )
	{
		cin >> a[i];
		if ( a[i] % 2 == 0 )
			f++;
	}
	while ( 1 )
	{
		a[i] = a[i] / 2;
		if ( a[i] % 2 != 0 )
			break;
	}
	for ( int i = 0; i < n; i++ )
	{
		if ( a[i] <= minv )
			minv = a[i];
	}
	cout << a[i] << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected initializer before '==' token
    6 |         int n, f, minv == 2147483647;
      |                        ^~
a.cc:17:19: error: 'i' was not declared in this scope
   17 |                 a[i] = a[i] / 2;
      |                   ^
a.cc:23:30: error: 'minv' was not declared in this scope
   23 |                 if ( a[i] <= minv )
      |                              ^~~~
a.cc:26:19: error: 'i' was not declared in this scope
   26 |         cout << a[i] << endl;
      |                   ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
long long ll;
ll a[210];
ll sum=0;
int judge(ll n){
    ll ans=0;
    for(int i=0;i<n;i++){
       if(a[i]==0) return sum;
       if(a[i]%2==0) {
           ans++;
           a[i]=a[i]/2;
         }
 else return sum;
}
if(ans==n) {
sum++;
judge(ans);
}
else return sum;
}
int main(){
ios::sync_with_stdio(0);
ll n;
cin>>n;
memset(a,0,sizeof(a));
for(int i=0;i<n;i++){
cin>>a[i];
if(a[i]==0) 
return 0;
}
ll m=judge(n);
cout<<m<<endl;
return 0;
}

Compiler output:
a.cc:6:1: error: 'll' does not name a type
    6 | ll a[210];
      | ^~
a.cc:7:1: error: 'll' does not name a type
    7 | ll sum=0;
      | ^~
a.cc:8:13: error: expected ')' before 'n'
    8 | int judge(ll n){
      |          ~  ^~
      |             )
a.cc:8:16: error: expected ',' or ';' before '{' token
    8 | int judge(ll n){
      |                ^
a.cc: In function 'int main()':
a.cc:26:3: error: expected ';' before 'n'
   26 | ll n;
      |   ^~
      |   ;
a.cc:27:6: error: 'n' was not declared in this scope
   27 | cin>>n;
      |      ^
a.cc:28:8: error: 'a' was not declared in this scope
   28 | memset(a,0,sizeof(a));
      |        ^
a.cc:34:3: error: expected ';' before 'm'
   34 | ll m=judge(n);
      |   ^~
      |   ;
a.cc:35:7: error: 'm' was not declared in this scope; did you mean 'tm'?
   35 | cout<<m<<endl;
      |       ^
      |       tm
Language: C++

#include<iostream>
using namespace std;
int mian()
{
 int n,f=0,s=0,i;
 cin>>n;
 int a[n+1];
 for( i=1;i<=n;i++) 
 cin>>a[i];
 while(f==0)
 {
 s++;
 if(a[i]%2==0)
 a[i]=a[i]/2;
 else
 f=1;
 }
 cout<<s-1;
 return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using  namespace std;

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

int main(){
	int n;
	cin>>n;
	int a[n];
	for(int i=0; i<n; i++){
		cin>>a[i];
	}
	int f,count=0;
	do{
		f=0;
		for(int i=0; i<n; i++){
			if(a[i]%2==0){
				a[i]=a[i]/2;
			}else{
				f=1;
				break;
			}
		}
		if(f==0){
			count++;
		}
	}while(f==0);
	cout<<count<<endl;
	
	return 0;
}

Compiler output:
a.cc:29:2: error: stray '#' in program
   29 | }#include <iostream>
      |  ^
a.cc:29:3: error: 'include' does not name a type
   29 | }#include <iostream>
      |   ^~~~~~~
a.cc:32:5: error: redefinition of 'int main()'
   32 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include <iostream> 
using namespace std; 
int main(){ 
	int n; 
	cin>>n;  
	int a[n]; 
 	for(int i=0;i<n;i++)cin>>a[i]; 
 	int f,count=0; 
 	do{  	 
		f = 0; 
 	 	for(int i=0; i<n; i++){ 
 	 	if(a[i]%2==0){  	 	 	 	
			a[i]=a[i]/2; 
		} 
else{  	 	 	 	
	f = 1;  	 	 
	break; 
} 

 	 	} 
 		if(f==0)c++; 
 	 }while(f==0); 
	cout<<c; 
	return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: 'c' was not declared in this scope
   21 |                 if(f==0)c++;
      |                         ^
a.cc:23:15: error: 'c' was not declared in this scope
   23 |         cout<<c;
      |               ^
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,i;
	do{
		for(i=0;i<n;i++)
		if(a[i]%2==1){
			cout<<cnt;
			return 0;
		}
		else
		  a[i]=a[i]/2;
		  cnt++
	}while(1);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: expected ';' before '}' token
   18 |                   cnt++
      |                        ^
      |                        ;
   19 |         }while(1);
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int,int> pint;
typedef vector<pint> vpint;
#define rep(i,n) for(int i=0;i<(n);i++)
#define REP(i,n) for(int i=n-1;i>=(0);i--)
#define reps(i,f,n) for(int i=(f);i<(n);i++)
#define each(it,v) for(__typeof((v).begin()) it=(v).begin();it!=(v).end();it++)
#define all(v) (v).begin(),(v).end()
#define eall(v) unique(all(v), v.end())
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))
const int MOD = 1e9 + 7;
const int INF = 1e9;
const ll INFF = 1e18;

int main(void) {
	cin >> N; rep(i, N) cin >> a[i];
	ll ans = 0;
	while(1) {
		bool f = true;
		rep(i, N) if(a[i] % 2) f = false;
		if(f) ans++;
		else break;
		rep(i, N) a[i] /= 2;
	}
	printf("%lld\n", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: 'N' was not declared in this scope
   24 |         cin >> N; rep(i, N) cin >> a[i];
      |                ^
a.cc:24:36: error: 'a' was not declared in this scope
   24 |         cin >> N; rep(i, N) cin >> a[i];
      |                                    ^
a.cc:28:30: error: 'a' was not declared in this scope
   28 |                 rep(i, N) if(a[i] % 2) f = false;
      |                              ^
a.cc:31:27: error: 'a' was not declared in this scope
   31 |                 rep(i, N) a[i] /= 2;
      |                           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a[1000000];
  int n;
  cin>>n;
  for(int i=0;i<n;i++)cin>>a[i];
  int ans=10000000000;
  bool flag=true;
  for(int i=0;i<20001;i++){
    for(int j=0;j<n;j++){
      if(flag==false)continue;
      if(a[j]%2){
        flag=false;
      }else a[j]/=2;
      if(flag)ans=i+1;
  }
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000000' to '1410065408' [-Woverflow]
    8 |   int ans=10000000000;
      |           ^~~~~~~~~~~
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a[1000000];
  int n;
  cin>>n;
  for(int i=0;i<n;i++)cin>>a[i];
  int ans=10000000000;
  bool flag=true;
  for(int i=0;i<20001;i++){
    for(int j=0;j<n;j++){
      if(flag==false)continue;
      if(a[j]%2){
        flag=false;
      }else ans[j]/=2;
      if(flag)ans=i+1;
  }
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000000' to '1410065408' [-Woverflow]
    8 |   int ans=10000000000;
      |           ^~~~~~~~~~~
a.cc:15:16: error: invalid types 'int[int]' for array subscript
   15 |       }else ans[j]/=2;
      |                ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java


public int answerB(int n, int[] array) {
    int result = 0;
    int[] next = new int[n];

    for (int j = 0; j < n; j++) {
        next[j] = array[j];
    }

    for (int i = 0; i < n; i++) {
        if (next[i] % 2 == 1) {
            break;
        }
        else {
            next[i] = next[i] / 2;
            if (i == n -1) {
                result++;
            }
        }
    }

    return result;
}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public int answerB(int n, int[] array) {
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C



#include <stdio.h.


int main()
{
	int count = 0;
	int i;
	int m;
	int n[199];
	scanf("%d", &i);

	for (m = 0; m <= i; m++)
	{
		scanf("%d", &n[m]);
	}
	for (m = 0; m <= i; m++)
	{
		while ( n[m]% 2 == 0)
		{	
			n[m] = n[m] / 2;
		count++;
		
	}
		if (n[m] % 2 == 1) {
			break;
		}
}
	
	printf("%d", count);

    return 0;
}



Compiler output:
main.c:3:19: error: missing terminating > character
    3 | #include <stdio.h.
      |                   ^
main.c:3:10: fatal error: stdio.h.: No such file or directory
    3 | #include <stdio.h.
      |          ^
compilation terminated.
Language: C

#define<stdio.h>
int main()
{
	int count=0;
	int i;
	int m;
	int n[199];
	scanf("%d", &i);
	
	for (m = 0; m <= i; m++)
	{
		scanf("%d", &n[m]);
	}
	for (m = 0; m <= i; m++)
	{
		while( n[m] % 2 == 0) {
			count++;
		}
break;
	}
	printf("%d", &count);

    return 0;
}


Compiler output:
main.c:1:8: error: macro names must be identifiers
    1 | #define<stdio.h>
      |        ^
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |         scanf("%d", &i);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define<stdio.h>
main.c:8:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |         scanf("%d", &i);
      |         ^~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:21:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |         printf("%d", &count);
      |         ^~~~~~
main.c:21:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C



#include "stdafx.h"


int main()
{
	int count=0;
	int i;
	int n[199];
	scanf("%d", &i);
	scanf("%d", &n[i]);
	while (n[i] % 2 == 0)
	{
		count++;
		printf("%d \n", count);
	}


    return 0;
}



Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>
int main(void)
{
	int n;
	int i;
	int count;
	int number[100] = { 0 };
	int old_number[100]={ 0 };
	scanf_s("%d", &n);
	for (i = 0; i < n; i++)
	{
		scanf_s("%d", &number[i]);
		old_number[i] = number[i];
	}
	for (count = 0;; count++)
	{
		for (i = 0; i < n; i++)
		{
			number[i] /= 2;
			if (2 * number[i] != old_number[i])
			{
				goto label;
			}
			old_number[i] = number[i];
		}
	}
label:
	printf("%d", count);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main()
{
	int N,num, amin = 100;
	int ans;

	cin >> N;

	for (int i = 0; i < N; i++)
	{
		cin >> num;
		int count = 0;
		while (num % 2 == 0)
		{
			num /= 2;
			count++;
		}
		ans = min(amin, count);

		cout << ans << endl;

		return 0;
	}


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

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	int n;cin>>n;
	int a[205];
	for(int i=0;i<n;cin>>a[i++]);
	int m=100;
	for(int i=0;i<n;i++)
	{
		int cnt=0;
		for(;a[i]%2==0;a[i]/=2,cnt++);
		m=min(m.cnt);
	}
	cout<<m<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: request for member 'cnt' in 'm', which is of non-class type 'int'
   14 |                 m=min(m.cnt);
      |                         ^~~
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	int n;cin>>n;
	int a[205];
	for(int i=0;i<n;cin>>a[i++]);
	int m=9e9;
	for(int i=0;i<n;i++)
	{
		int cnt=0;
		for(;a[i]%2==0;a[i]/=2,cnt++);
		m=min(m.cnt);
	}
	cout<<m<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: warning: overflow in conversion from 'double' to 'int' changes value from '9.0e+9' to '2147483647' [-Woverflow]
    9 |         int m=9e9;
      |               ^~~
a.cc:14:25: error: request for member 'cnt' in 'm', which is of non-class type 'int'
   14 |                 m=min(m.cnt);
      |                         ^~~
Language: C++

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

#define REP(i,j) for(int i=0;i<j;i++)
#define REPR(i,j) for(int i=j;i>=0;i--)
#define FOR(i,j,k) for(int i=j;i<k;i++)

int main(){
    int A = 0;
    int N;
    scanf(%d,&N);
    int a[N];
    REP(i,N){
        scanf(%d,&a[i]);
    }
    while (1){
        REP(i,N){
            if(a[i]%2){
                cout << A << "\n";
                return 0;
            }
        A++;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected primary-expression before '%' token
   11 |     scanf(%d,&N);
      |           ^
a.cc:11:12: error: 'd' was not declared in this scope
   11 |     scanf(%d,&N);
      |            ^
a.cc:14:15: error: expected primary-expression before '%' token
   14 |         scanf(%d,&a[i]);
      |               ^
Language: C++

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>

using namespace std;

int main() {
    int n;
    cin >> n;
    int minx = 10000;
    for (int i = 0; i < n; i++) {
        int a;
        cin >> a;
        int cnt = 0;
        while (a % 2 == 0) {
            a /= 2;
            cnt++;
        }
        minx = min(minx, cnt);
    }
    cout << cnt << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
   41 |     cout << cnt << endl;
      |             ^~~
      |             int
Language: C++

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

int main()
{
   int x,k=0,i,n,z=0,v[200];
   cin>>n;

   for(i=1;i<=n;i++)
   {
       cin>>x;

       while(x%2==0)
       {
           x=x/2;
           k++;
       }

        v[i]=k;
        k=0;
   }

    sort(v,v+n+1)
    cout<<v[0];

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected ';' before 'cout'
   24 |     sort(v,v+n+1)
      |                  ^
      |                  ;
   25 |     cout<<v[0];
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
   int x,k=0,i,n,z=0,v[200],m=0;
   cin>>n;
   for(i=1;i<=n;i++)
   {
       cin>>x;
       while(x%2==0)
       {
           x=x/2;
           k++;
       }
p=k;
     if(m>p)
      m=p;
k=0;
}
cout<<m;
return 0;
}

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

#include<stdio.h>
int main()
{
	int i,j,n,f=1,p=0,t,b[201],min;
	long long a[201];
	scanf("%d",&n);
for(i=0;i<n;i++)
	{
	scanf("%I64d",&a[i]);
 if(a[i]%2!=0)
	{
			f=0;
	}
	
	}
if(f)
	{
	for(i=0;i<n;i++)
	{
		while(a[i]%2==0)
		{
			a[i]=a[i]/2;
		b[i]++;
		}
		}	
		min=b[0];
	for(i=0;i<n;i++)
	{
		if(b[i]<min)
		min=b[i];
	}
	printf("%d\n",min)
	}

	else
	printf("0\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:27: error: expected ';' before '}' token
   32 |         printf("%d\n",min)
      |                           ^
      |                           ;
   33 |         }
      |         ~