criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] nums = new int[N + 1];
        for (int i = 0; i < N; i++) {
        	nums[i] = sc.nextInt();
        }
        
        int count = 0;
        while (isAllOdd(nums)) {
        	for (int i = 0; i < N; i++) {
            	nums[i] = nums[i] / 2;
            }
            ++count;
        }
        return count;
    }
  
    private boolean isAllOdd(int[] nums) {
    	for (int i = 0; i < nums.length; i++) {
        	if (nums[i] % 2 != 0) {
            	return false;
            } 
        }
        return true;
    }
}

Compiler output:
Main.java:13: error: non-static method isAllOdd(int[]) cannot be referenced from a static context
        while (isAllOdd(nums)) {
               ^
Main.java:19: error: incompatible types: unexpected return value
        return count;
               ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  int max;
  cin>>n;
  for(int i=0;i<n;i++){
    int a,b,c;
    int max[i];
    cin>>a;
    b=0;
    c=0;
    while(true){
      c=a/2;
      if(c%2 == 0)
        b++;
      else
        break;
    }
    max[i] = b;
  }
  max=max[i];
  for(int i=0;i<n;i++){
    if(max[i]<max[i+1])
      max=max[i+1];
  }
  cout<<max<<endl;
  

  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: 'i' was not declared in this scope
   23 |   max=max[i];
      |           ^
a.cc:25:11: error: invalid types 'int[int]' for array subscript
   25 |     if(max[i]<max[i+1])
      |           ^
a.cc:25:18: error: invalid types 'int[int]' for array subscript
   25 |     if(max[i]<max[i+1])
      |                  ^
a.cc:26:14: error: invalid types 'int[int]' for array subscript
   26 |       max=max[i+1];
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin>>n;
  for(int i=0;i<n;i++){
    int a,b,c;
    cin>>a;
    b=0;
    c=0;
    while(true){
      c=a/2;
      if(c%2 == 0)
        b++;
      else
        break;
    }
    int max[i];
    max[i] = b;
  }
  int max;
  max=max[i];
  for(int i=0;i<n;i++){
    if(max[i]<max[i+1])
      max=max[i+1];
  }
  cout<<max<<endl;
  

  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: 'i' was not declared in this scope
   23 |   max=max[i];
      |           ^
a.cc:25:11: error: invalid types 'int[int]' for array subscript
   25 |     if(max[i]<max[i+1])
      |           ^
a.cc:25:18: error: invalid types 'int[int]' for array subscript
   25 |     if(max[i]<max[i+1])
      |                  ^
a.cc:26:14: error: invalid types 'int[int]' for array subscript
   26 |       max=max[i+1];
      |              ^
Language: C++

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

int main() {
	int N;
  	cin >> N;
  	
  	int j = 0;
  	for (int i = 0; i < N; i++) {
    	int a;
      	cin >> a;
      	while (a % 2 == 0) {
        	a / = 2;
          	j++;
        }
      	
      	
    }
}


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

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

int main() {
	int N;
  	cin >> N;
  	
  	int j = 0;
  	for (int i = 0; i < N; i++) {
    	int a;
      	cin >> a;
      	while (a % 2 == 0) {
        	a = /2;
          	j++;
        }
      	
      	
    }
}


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

#include <iostream>
#include <vector>


using namespace std;

int main(int argc, const char * argv[]) {
    
    int N;
    
    cin >> N;
    
    int x, count;
    int result = INT_MAX;
    
    for(int i=0; i<N; ++i)
    {
        cin >> x;
        count = 0;
        while(!(x%2))
        {
            x /= 2;
            count++;
        }
        if(count < result) result = count;
    }
    
    
    cout << result;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:14:18: error: 'INT_MAX' was not declared in this scope
   14 |     int result = INT_MAX;
      |                  ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <vector>
  +++ |+#include <climits>
    3 |
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b[1000],c=0,d=0,i=0;
  cin>>a;
  for(int j=0;j<a;j++）{cin>>b[j];}
  while(true){
    for(int j=0;j<a;j++){
      if(b[i]%2==0) b[i]/=2;
      else{
        d=1;
        break;
      }
    }
    i++;
    if(d) break;
    else c++;
  }
  cout<<c<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ')' before '\U0000ff09'
    6 |   for(int j=0;j<a;j++）{cin>>b[j];}
      |      ~               ^~
      |                      )
a.cc:6:22: error: '\U0000ff09' was not declared in this scope
    6 |   for(int j=0;j<a;j++）{cin>>b[j];}
      |                      ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b[1000],c=0,d=0,i=0;
  cin>>a;
  for(int j=0;j<a;j++）cin>>b[j];
  while(true){
    for(int j=0;j<a;j++){
      if(b[i]%2==0) b[i]/=2;
      else{
        d=1;
        break;
      }
    }
    i++;
    if(d) break;
    else c++;
  }
  cout<<c<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ')' before '\U0000ff09cin'
    6 |   for(int j=0;j<a;j++）cin>>b[j];
      |      ~               ^~~~~
      |                      )
a.cc:6:22: error: '\U0000ff09cin' was not declared in this scope
    6 |   for(int j=0;j<a;j++）cin>>b[j];
      |                      ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b[1000],c=0,d=0;
  cin>>a;
  while(true){
    for(int j=0;j<a;j++){
      if(b[i]%2==0) b[i]/=2;
      else{
        d=1;
        break;
      }
    }
    i++;
    if(d) break;
    else c++;
  }
  cout<<c<<"\n";
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b[1000],c=0,b=0;
  cin>>a;
  for(int i=0;i<a;i++){
    for(int j=0;j<a;j++){
      if(b[i]%2==0) b[i]/=2;
      else{
        b=1;
        break;
      }
    }
    if(b) break;
    else c++;
  }
  cout<<c<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:21: error: conflicting declaration 'int b'
    4 |   int a,b[1000],c=0,b=0;
      |                     ^
a.cc:4:9: note: previous declaration as 'int b [1000]'
    4 |   int a,b[1000],c=0,b=0;
      |         ^
a.cc:10:10: error: incompatible types in assignment of 'int' to 'int [1000]'
   10 |         b=1;
      |         ~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a;
  int n[200];
  for (int i = 0; i < a; i++){
    cin >> n[i];
  }
  bool odd = false;
  while(1){
   for (int i = 0; i < a; i++){
     if (a[i]%2 == 1){
       odd = true;
     }
   }
     if(odd)break;
    b++;
    for (int i = 0; i < a;i++){
      a[i] /= 2;
    }
  }
  cout << b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: invalid types 'int[int]' for array subscript
   13 |      if (a[i]%2 == 1){
      |           ^
a.cc:20:8: error: invalid types 'int[int]' for array subscript
   20 |       a[i] /= 2;
      |        ^
Language: C

include <stdio.h>

#define MASS_MAX 3

int main(void) 
{
	int n;
	int num[200];
	int i,j;
	int flag = 0;
	int cnt = 0;

	scanf("%d", &n);
	for (i = 0; i < n; i++)
	{
		scanf_s("%d", &num[i]);
	}

	for (i = 0; i < n; i++)
	{
		for (j = 0; j < n; j++)
		{
			num[j] = num[j] / 2;
			if (num[j] % 2 == 1)
			{
				flag = 1;
			}
		}
		cnt++;
		if (flag == 1)
		{
			break;
		}
	}
	return 0;
}

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

#include <iostream>
using namespace std;
int main(){
  int num;
  int count = 0;
  bool flag = true;
  cin >> num;
  int array[num];
  for (int i = 0 ; i < num; i++){
    cin >> array[i];
  }
  while (flag == true){
    for(int i = 0; i< num; i++){
      if(array[i]%2 != 0)
        flag = false;
      else{
        flag = true;
        count++;
        for(int i = 0 ; i < num; i++){
          array[i] /= 2
        }
      }
    }
  }
  cout << count << endl;
  return 0;
}

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

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

int main() {
    int n;  cin >> n;
    int a[n];
    rep(i,n)  cin >> a[i];

    while (true) {
        bool flag = false;
        rep(i,n) {
            if (a[i] % 2 != 0)  flag = true;
        }
        if (flag)  break;

        rep(i,n)  a[i] /= 2;
        ans++;
    }

    cout << ans << endl;
}

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

#include <stdio.h>

int	main(void)
{
int	A[256];
int	N, c = 0;
int	tmp;

tmp = scanf("%d", &N);
if( tmp == EOF ) return -101;

if( N==0 || N>200 ) return 1;
for( int f= 0; f< N; ++f)
{
tmp = scanf("%d", &A[ f ]);
if( tmp == EOF ) return -102;
}

do
{
for( int f= 0; f< N; ++f)
{
if( A[ f ] %2 != 0 ) break;
A[ f ] /= 2;
}
if( f != N )
{
printf("%d\n", c");
return	0;
}
else
{
++c;
}
} while(-1);



Compiler output:
main.c: In function 'main':
main.c:26:5: error: 'f' undeclared (first use in this function)
   26 | if( f != N )
      |     ^
main.c:26:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:17: warning: missing terminating " character
   28 | printf("%d\n", c");
      |                 ^
main.c:28:17: error: missing terminating " character
   28 | printf("%d\n", c");
      |                 ^~~
main.c:28:17: error: expected ')' before 'return'
   28 | printf("%d\n", c");
      |       ~         ^
      |                 )
   29 | return  0;
      | ~~~~~~           
main.c:29:11: error: expected ';' before '}' token
   29 | return  0;
      |           ^
      |           ;
   30 | }
      | ~          
main.c:35:1: error: expected declaration or statement at end of input
   35 | } while(-1);
      | ^
Language: C++

#include <iostream>
using namespace std;

int N ,A[200];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: no context to resolve type of 'std::min'
   16 |     dmin = (dmin, min);
      |                   ^~~
Language: C++

#include <iostream>
using namespace std;

int N ,A[200];

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

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

#include <iostream>
using namespace std;

int N A[200];

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

Compiler output:
a.cc:4:7: error: expected initializer before 'A'
    4 | int N A[200];
      |       ^
a.cc: In function 'int main()':
a.cc:8:18: error: 'N' was not declared in this scope
    8 |   for(int i=0; i<N; i++;){
      |                  ^
a.cc:8:24: error: expected ')' before ';' token
    8 |   for(int i=0; i<N; i++;){
      |      ~                 ^
      |                        )
a.cc:8:25: error: expected primary-expression before ')' token
    8 |   for(int i=0; i<N; i++;){
      |                         ^
Language: C++

int main() {
  int N, n;
  int m = 1000000000;
  cin >> N;
    for(int i = 0; i < N; i++){
    int A;
    cin >> A;
    int e = 2;
      for(n = 0; (A % e) == 0; n++){
      e *= 2;
        if(n == m)
        break;
      }
    m = n;
    }
  cout << m;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> N;
      |   ^~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << m;
      |   ^~~~
Language: C++

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

int main() {
  int N, n = 0;
  int m = 1000000000;
  cin >> N;
    for(int i = 0; i < N; i++){
    int Ai;
    cin >> Ai;
    int e = 2;
      for(;(A % e) == 0 && n < m;){
      e *= 2;
      n++;
      }
    m = n;
    }
  cout << n;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'A' was not declared in this scope
   12 |       for(;(A % e) == 0 && n < m;){
      |             ^
Language: C++

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

int main() {
  int N, n = 0, m;
  cin >> N;
    for(int i = 0; i < N; i++){
    int A;
    cin >> A;
    int e = 1;
      while((A % e) == 0 && n < m){
        e *= 2;
        n++;
      }
    m = n;
    }
  }
  cout << (n - 1);
}


Compiler output:
a.cc:18:3: error: 'cout' does not name a type
   18 |   cout << (n - 1);
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int main() {
  int N, n = 0, m;
  cin >> N;
    for(int i = 0; i < N; i++){
    int A;
    cin >> A;
    int e = 1;
      while((A % e) == 0 && n < m){
        e *= 2;
        n++;
      }
    m = n
    }
  }
  cout << (n - 1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected ';' before '}' token
   15 |     m = n
      |          ^
      |          ;
   16 |     }
      |     ~     
a.cc: At global scope:
a.cc:18:3: error: 'cout' does not name a type
   18 |   cout << (n - 1);
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int main() {
  int N, n = 0;
  cin >> N;
  int j = 1;
  while(j) {
   int e = 1;
   e *= 2;
   n++;
    for(int i = 0; i < N; i++){
    int A;
    cin >> A;
      if((A % e) !== 0){
        j = 0;
        break;
      }
    }
  }
  cout << (n - 1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: expected primary-expression before '=' token
   15 |       if((A % e) !== 0){
      |                    ^
Language: C++

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

int main() {
  int N, n = 0;
  cin >> N;
  int j =1;
  while(j = 1) {
   int e = 1;
   e *= 2;
   n++;
    for(int i = 0; i < N; i++){
    int A, k;
    cin >> A;
      if((A % e) == 0)
        k = 1;
      else
        k = 0;
     j *= k
    }
  }
  cout << n;
}


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

#include<iostream>
using namespace std;

int main(){
    int n=200, count=0, N;
    int a[n], flag=0;
    cin >> N;
    while(frag = 0){
        for(int i=0; i<N; i++){
            if(a[i]%2 ==1){
                flag = 1;
                continue;
            }
            a[i] = a[i]/2;
        }
    }
    return count;
}

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

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

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

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

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

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

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

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


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

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

int main() {
  int N, A, counter, answer;
  answer = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    counter = 0;
    cin >> A;
    while (true) {
      if (A%2=1) {
        break;
      }
      else {
        A /= 2;
        counter++;
      }
    }
    if (counter > answer) {
      answer = counter;
    }
  }
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: lvalue required as left operand of assignment
   12 |       if (A%2=1) {
      |           ~^~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:11: error: ';' expected
        System.out.println(Integer.numberOfTrailingZeros(bit))
                                                              ^
1 error
Language: C++

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

int main() {
  int n,s=1000000;
  cin>>n;
  for(int i=0; i<n; i++){
    int a,b=0;
    cin>>a;
    while(a%2==0){
      a/=2;
      b+=1
    }
    if(s>b){
      s = b;
    }
  }
  cout<<s;
}

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

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

int main(){

  int num;
  cin >> num;

  int *numbers = new int[num];

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

  bool flag1 = true;
  int count = -1;

  while(flag){
    count += 1;
    for (int i=0; i < num; i++){
      if (numbers[i] % 2 == 0){
        numbers[i] /= 2;
      } else {
        flag = false;
        break;
      }
    }
  }


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'flag' was not declared in this scope; did you mean 'flag1'?
   19 |   while(flag){
      |         ^~~~
      |         flag1
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int i,N,ctr=0;
    scanf("%d",&N);
    int a[N];
    REP(i,N){
        scanf("%d",&a[i]);
    }

    while(1){
        bool yn=0;
        REP(i,N){
            if(a[i]!=0) yn=1;
        }
        
        if(yn) break;
        REP(i,N){
            a[i]=a[i]/2;
        }
        ctr++;
    }

    printf("%d",ctr);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:9: error: unknown type name 'bool'
   18 |         bool yn=0;
      |         ^~~~
main.c:5:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    4 | #include <time.h>
  +++ |+#include <stdbool.h>
    5 |
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int i,N,ctr=0;
    scanf("%d",&N);
    int a[N];
    REP(i,N){
        scanf("%d",&a[i]);
    }

    while(1){
        bool yn=0;
        REP(i,N){
            if(a[i]!=0) yn=1;
        }
        
        if(yn) break;
        else REP(i,N){
            a[i]=a[i]/2;
        }
        ctr++;
    }

    printf("%d",ctr);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:9: error: unknown type name 'bool'
   18 |         bool yn=0;
      |         ^~~~
main.c:5:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    4 | #include <time.h>
  +++ |+#include <stdbool.h>
    5 |
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int i,N,ctr=0;
    scanf("%d",&N);
    int a[N];
    REP(i,N){
        scanf("%d",&a[i]);
    }

    while(1){
        bool yn=0;
        REP(i,N){
            if(a[i]!=0) yn=1;
        }
        
        if(yn==0) break;
        else REP(i,N){
            a[i]=a[i]/2;
        }
        ctr++;
    }

    printf("%d",ctr);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:9: error: unknown type name 'bool'
   18 |         bool yn=0;
      |         ^~~~
main.c:5:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    4 | #include <time.h>
  +++ |+#include <stdbool.h>
    5 |
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int i,N;
    scanf("%d",&N);
    int a[N];
    REP(i,N){
        scanf("%d",&a[i]);
    }

    while(REP(i,N){
        a[i]%2==0
    }){
        REP(i,N){
            a[i]=a[i]/2;
        }
        int ctr;
        ctr++;
    }

    printf("%d",ctr);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected expression before 'for'
    6 | #define REP(i,n) for(i=0;i<n;i++)
      |                  ^~~
main.c:17:11: note: in expansion of macro 'REP'
   17 |     while(REP(i,N){
      |           ^~~
main.c:27:17: error: 'ctr' undeclared (first use in this function)
   27 |     printf("%d",ctr);
      |                 ^~~
main.c:27:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int N;
    scanf("%d",&N);
    int a[N];
    REP(i,N){
        scanf("%d",&a[i]);
    }

    while(REP(i,N){
        a[i]%2==0
    }){
        REP(i,N){
            a[i]=a[i]/2;
        }
        int ctr;
        ctr++;
    }

    printf("%d",ctr);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |     REP(i,N){
      |         ^
main.c:6:22: note: in definition of macro 'REP'
    6 | #define REP(i,n) for(i=0;i<n;i++)
      |                      ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
   13 |     REP(i,N){
      |         ^
main.c:6:22: note: in definition of macro 'REP'
    6 | #define REP(i,n) for(i=0;i<n;i++)
      |                      ^
main.c:6:18: error: expected expression before 'for'
    6 | #define REP(i,n) for(i=0;i<n;i++)
      |                  ^~~
main.c:17:11: note: in expansion of macro 'REP'
   17 |     while(REP(i,N){
      |           ^~~
main.c:27:17: error: 'ctr' undeclared (first use in this function)
   27 |     printf("%d",ctr);
      |                 ^~~
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int N;
    scanf("%d",&N);
    int a[N];
    REP(i,N){
        scanf("%d",&a[i]);
    }

    while(REP(i,N){
        a[i]%2==0
    }){
        REP(i,N){
            a[i]=a[i]/2;
        }
        int ctr++;
    }

    printf("%d",ctr);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |     REP(i,N){
      |         ^
main.c:6:22: note: in definition of macro 'REP'
    6 | #define REP(i,n) for(i=0;i<n;i++)
      |                      ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
   13 |     REP(i,N){
      |         ^
main.c:6:22: note: in definition of macro 'REP'
    6 | #define REP(i,n) for(i=0;i<n;i++)
      |                      ^
main.c:6:18: error: expected expression before 'for'
    6 | #define REP(i,n) for(i=0;i<n;i++)
      |                  ^~~
main.c:17:11: note: in expansion of macro 'REP'
   17 |     while(REP(i,N){
      |           ^~~
main.c:23:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   23 |         int ctr++;
      |                ^~
main.c:23:18: error: expected expression before ';' token
   23 |         int ctr++;
      |                  ^
main.c:26:17: error: 'ctr' undeclared (first use in this function)
   26 |     printf("%d",ctr);
      |                 ^~~
Language: C++

#include <stdio.h>

int main(void){
  int N;
  long A[N];
  static int scnt = 0;
  static int cnt = 0;
  int i;
  
  for( i = 0 ; i < N ; i ++ ){
    if( A[i] == 1 ){}
    else{
       switch(scnt){
       case 0 :
         do{
           A[i] = A[i] / 2;
           cnt++;
         }while( A[i] % 2 == 1 )
         if( A[i] == 1){
           scnt = 1;
         }
         break;
       
        case 1 :
          scnt = 0;
          break;
       }
     }
    }
  printf( "%d" , cnt );

Compiler output:
a.cc: In function 'int main()':
a.cc:18:33: error: expected ';' before 'if'
   18 |          }while( A[i] % 2 == 1 )
      |                                 ^
      |                                 ;
   19 |          if( A[i] == 1){
      |          ~~                      
a.cc:30:24: error: expected '}' at end of input
   30 |   printf( "%d" , cnt );
      |                        ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: Java

package b;

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();		// 整数列
		int count = 0;								// 操作回数用

		int num = scan.nextInt();					// 整数の個数
		for(int i = 0; i < num; i++) {
			list.add(scan.nextInt());
		}

		out:
		while(true) {
			for(int i = 0; i < num; i++) {
				int tmp = list.get(i);

				if(tmp % 2 == 0)
					list.set(i, tmp / 2);
				else
					break out;
			}
			count++;
		}

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

Compiler output:
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: unnamed class should not have package declaration
package b;
^
2 errors
Language: Java

package b;

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

public class ABC081 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();		// 整数列
		int count = 0;								// 操作回数用

		int num = scan.nextInt();					// 整数の個数
		for(int i = 0; i < num; i++) {
			list.add(scan.nextInt());
		}

		out:
		while(true) {
			for(int i = 0; i < num; i++) {
				int tmp = list.get(i);

				if(tmp % 2 == 0)
					list.set(i, tmp / 2);
				else
					break out;
			}
			count++;
		}

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

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

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

int main(){
  int N, count = 0, d = 1;
  cin >> N;
  int nn[N-1];
  for(int i = 0; i<N; i++){
    cin >> nn[i];
  }
  while(d){
  for(i = 0; i<N; i++){
    if(nn[i]%2 == 1){
      d = 0;
      break;
    }
  }
    count += 1;
  }
  cout << count;
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
   13 |   for(i = 0; i<N; i++){
      |       ^
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];
  }
  
  bool flag;
  int count = 0;
  while(A[0]%2 == 0){
    for(int i = 0; i < N; i++){
      if(A[i]%2 == 0){
        A[i] /= 2;
        if(i == N-1)
          count++;
        flag = true
      }
      else{
        flag = false
        break;
      }
    }
    if(!flag)
      break;
  }
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:20: error: expected ';' before '}' token
   22 |         flag = true
      |                    ^
      |                    ;
   23 |       }
      |       ~             
a.cc:25:21: error: expected ';' before 'break'
   25 |         flag = false
      |                     ^
      |                     ;
   26 |         break;
      |         ~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  int a;
  int kaisu = 0;
  int kaisu0 = 0
  cin >> n;

for(i=0;i<n;i++){
  cin >> a;
  while(a%2 == 0){
    kaisu0++;
    a=a/2;
  }
  if(kaisu0>kaisu)
    kaisu=kaisu0;
}
cout << kaisu;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  int a;
  int kaisu = 0;
  int kaisu0 = 0
  cin >> n;

for(i=0;i<n;i++){
  cin >> a;
  while(a%2 == 0){
    kaisu0++;
    a=a/2;
  }
  if(kaisu0>kaisu)
    kaisu=kaisu0;
}
}

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

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

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

  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;
    ans += 1;
  }
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: expected ';' before ')' token
   19 |     for (int i = 0;i<n,i++) a[i] /= 2;
      |                           ^
      |                           ;
Language: C++

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

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

  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;
    ans += 1;
  }
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: expected ';' before ')' token
   14 |     for (int i = 0;i<n,i++){
      |                           ^
      |                           ;
a.cc:19:27: error: expected ';' before ')' token
   19 |     for (int i = 0;i<n,i++) a[i] /= 2;
      |                           ^
      |                           ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, x, z, min;
  z = 0;
  cin >> N >> x;
  
     while  (x % 2 == 0){
       z++;
       x /= 2;
     }
     min = z;
}

  for (int i = 0; i < N; i++){
    z = 0;
     while (x % 2 == 0){
       z++;
       x /= 2;
     }

    if (min > z){
      min = z;
    }
  }
  cout << min <<endl;
}

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for (int i = 0; i < N; i++){
      |   ^~~
a.cc:15:19: error: 'i' does not name a type
   15 |   for (int i = 0; i < N; i++){
      |                   ^
a.cc:15:26: error: 'i' does not name a type
   15 |   for (int i = 0; i < N; i++){
      |                          ^
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout << min <<endl;
      |   ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, x, z, min;
  z = 0;
  cin >> N >> x;
  
     while  (x % 2 == 0){
       z++;
       x /= 2;
     }
     min = z;  
  }
   
  for (int i = 0; i < N; i++){
    z = 0;
     while (x % 2 == 0){
       z++;
       x /= 2;
     }

    if (min > z){
      min = z;
    }
  }
  cout << min <<endl;
}

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for (int i = 0; i < N; i++){
      |   ^~~
a.cc:15:19: error: 'i' does not name a type
   15 |   for (int i = 0; i < N; i++){
      |                   ^
a.cc:15:26: error: 'i' does not name a type
   15 |   for (int i = 0; i < N; i++){
      |                          ^
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout << min <<endl;
      |   ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |      if  (x % 2 = 0){
      |           ~~^~~
a.cc:18:13: error: lvalue required as left operand of assignment
   18 |      if  (x % 2 = 0){
      |           ~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: no match for 'operator/=' (operand types are 'std::vector<int>' and 'int')
   13 |       A /= 2;
      |       ~~^~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int n;
	int a[200];
	int cnt,i,j,flg;
	cnt=0"%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	while(1){
		for(i=0;i<n;i++){
			if(a[i]%2!=0){
				flg=1;
				break;
			}
		}
		if(flg==1){
			break;
		}
		for(j=0;j<n;j++){
			a[j;
	flg=0;
	scanf(]/=2;
		}
		cnt++;
	}
	printf("%d\n",cnt);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before string constant
    7 |         cnt=0"%d",&n);
      |              ^~~~
      |              ;
a.cc:22:28: error: expected ']' before ';' token
   22 |                         a[j;
      |                            ^
      |                            ]
a.cc:24:15: error: expected primary-expression before ']' token
   24 |         scanf(]/=2;
      |               ^
Language: C++

n = int(input())
a = list(map(int, input()))
ans = 0
for i in range(n):
    if a[i]%2:
        a[i] = a[i]//2
    else:
        print(ans)
        exit()
    ans += 1

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   while(true){for(i=0;i<N;i++){if(A[i]%2==1)break;else A[i]/=2;}res++;}
      |                   ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   while(true){for(i=0;i<N;i++){if(A[i]%2==1)break;else A[i]/=2;}res++}
      |                   ^
a.cc:8:70: error: expected ';' before '}' token
    8 |   while(true){for(i=0;i<N;i++){if(A[i]%2==1)break;else A[i]/=2;}res++}
      |                                                                      ^
      |                                                                      ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   while(true){for(i=0;i<N;i++)if(A[i]%2==1])break;else A[i]/=2;res++}
      |                   ^
a.cc:8:43: error: expected ')' before ']' token
    8 |   while(true){for(i=0;i<N;i++)if(A[i]%2==1])break;else A[i]/=2;res++}
      |                                 ~         ^
      |                                           )
a.cc:8:43: error: expected primary-expression before ']' token
a.cc:8:69: error: expected ';' before '}' token
    8 |   while(true){for(i=0;i<N;i++)if(A[i]%2==1])break;else A[i]/=2;res++}
      |                                                                     ^
      |                                                                     ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   while(true){for(i=0;i<N;i++)if(A[i%2==1])break;else A[i]/=2;res++}
      |                   ^
a.cc:8:68: error: expected ';' before '}' token
    8 |   while(true){for(i=0;i<N;i++)if(A[i%2==1])break;else A[i]/=2;res++}
      |                                                                    ^
      |                                                                    ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'i' was not declared in this scope
    6 |   cin>>N;for(i=0;i<N;i++)cin>>A[i];
      |              ^
a.cc:8:20: error: 'i' was not declared in this scope
    8 |   while(true){if(A[i]%2==1)break;else A[i]/=2;res++;}
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  int A[210];
  
  // 変数Nで入力を受け取る
  cin >> N;
  for(int i =0; i<N ; ++i) cin >> A[i]
  
  int res = 0;
  
  while(true){
  	bool exist_odd = false;
    for(int i =0 ; i < N; i++){
    	if(A[i]%2 != 0) exist_odd = true;
    }
    
    if(exist_odd) break;
    
    for(int i =0 ; i <N; ++i){
    	A[i] /=2;
    }
  	++res;
  }
  
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:39: error: expected ';' before 'int'
   10 |   for(int i =0; i<N ; ++i) cin >> A[i]
      |                                       ^
      |                                       ;
   11 | 
   12 |   int res = 0;
      |   ~~~                                  
a.cc:25:11: error: 'res' was not declared in this scope
   25 |         ++res;
      |           ^~~
a.cc:28:11: error: 'res' was not declared in this scope
   28 |   cout << res << endl;
      |           ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  
  std::vector<int> A(N);
  for (int i; i< N; i++) {
	cin >> A.at(i);
  }
  
  int count = 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'vector' is not a member of 'std'
    8 |   std::vector<int> A(N);
      |        ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:15: error: expected primary-expression before 'int'
    8 |   std::vector<int> A(N);
      |               ^~~
a.cc:10:16: error: 'A' was not declared in this scope
   10 |         cin >> A.at(i);
      |                ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  
  vector<int> A(N);
  for (int i; i< N; i++) {
	cin >> A.at(i);
  }
  
  int count = 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<int> A(N);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> A(N);
      |          ^~~
a.cc:10:16: error: 'A' was not declared in this scope
   10 |         cin >> A.at(i);
      |                ^
Language: C++

#include <iostream>
using namespace std;

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

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

import numpy as np

n = int(input())
a = input().split()
a = [int(i) for i in a]

ans = 10000000
for i in a:
  count = 0
  while i%2 == 0:
    count += 1
    i /= 2
  ans = min(ans, count)

print(ans)


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

import numpy as np

n = int(input())
a = input().split()
a = [int(i) for i in a]
s = np.sum(a)
ans = 0
while s%2 == 0:
  ans += 1
  s /= 2

print(ans)

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected ';' before '}' token
   20 |     kmin = min(kmin, k)
      |                        ^
      |                        ;
   21 |   }
      |   ~
Language: C

#include<bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define rep(i,n) for(int i=0;i<n;i++)
#define foreach(c,itr) for(__typeof((c).begin(),(c).end())itr=c.begin();itr!=c.end();itr++) 
#define INF 1e9;
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pi;
typedef vector<int> vi;
int main(){
	int n;
	cin>>n;
	int a[n];
	int ans=-1;
	for(int i=0;i<n;i++){
		cin>>a[i];
		ans=min(ans,__builtin_ctz(a[i]));
	}
	cout<<ans;
	return 0;
}

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

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

int main() {
     int N, M, K;
    cin >> N;
    vector<int> data(N);
  for (int i = 0; i < N; i++) {
    cin >> data.at(i);
  }
  int count = 0;
    for(int i = 1; date.at(i)/2 > 0; i++){
    K = date.at(i)/2;
    M = date.at(i)%2;
    if(M>0){
        break;
    }
    else 
    count++;
  }
  cout << count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'date' was not declared in this scope; did you mean 'data'?
   12 |     for(int i = 1; date.at(i)/2 > 0; i++){
      |                    ^~~~
      |                    data
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <tuple>
#include <map>
typedef long long ll;
using namespace std;
#define rep(i,n) for (int i = 0; i <= int(n); i++)
#define mod 1000000007

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

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

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

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


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