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

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

int main(){
  long long n,a,b;
  a=0;
    b=0;
  cin>>n;
  vector<int> vec(n);
  for(int i=0;i<n;i++){
    cin>>vec.at(i);
  }for(int i=0;i<n;i++){
    for(int i=0;i<n;i++){
    if(vec.at(i)%2==0){
      a++;
    }
  }
    if(a==n){
    b++;
  }
    else{
      break;
    }
  }
    cout<<b<<endl;
  }
}


Compiler output:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

int main(){
  long long n,a,b;
  a=0;
    b=0;
  cin>>n;
  vector<int> vec(n);
  for(int i=0;i<n;i++){
    cin>>vec.at(i);
  }for(i=0;i<n;i++){
    for(int i=0;i<n;i++){
    if(vec.at(i)%2==0){
      a++;
    }
  }
    if(a==n){
    b++;
  }
    else{
      break;
    }
  }
    cout<<b<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'i' was not declared in this scope
   12 |   }for(i=0;i<n;i++){
      |        ^
a.cc: At global scope:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: lvalue required as left operand of assignment
   12 |     for(a; a%2 = 1; a / 2) {
      |            ~^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: lvalue required as left operand of assignment
   12 |     for(a; a % 2 = 1; a / 2) {
      |            ~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000000000' to '1316134912' [-Woverflow]
    7 |         min = 10000000000000;
      |               ^~~~~~~~~~~~~~
a.cc:12:14: error: lvalue required as left operand of assignment
   12 |     for(a; a % 2 = 1; a / 2) {
      |            ~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000000000' to '1316134912' [-Woverflow]
    7 |         min = 10000000000000
      |               ^~~~~~~~~~~~~~
a.cc:7:29: error: expected ';' before 'for'
    7 |         min = 10000000000000
      |                             ^
      |                             ;
    8 |         for(int i = 0; i < N; i++) {
      |         ~~~                  
a.cc:8:24: error: 'i' was not declared in this scope
    8 |         for(int i = 0; i < N; i++) {
      |                        ^
Language: C++

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

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

Compiler output:
a.cc:7:15: warning: integer constant is too large for its type
    7 |         min = 1000000000000000000000000
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:15: warning: overflow in conversion from 'long int' to 'int' changes value from '2003764205206896640' to '-1593835520' [-Woverflow]
a.cc:7:40: error: expected ';' before 'for'
    7 |         min = 1000000000000000000000000
      |                                        ^
      |                                        ;
    8 |         for(int i = 0; i < N; i++) {
      |         ~~~                             
a.cc:8:24: error: 'i' was not declared in this scope
    8 |         for(int i = 0; i < N; i++) {
      |                        ^
Language: C++

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

int main(){
  int N,a,b;
  a=0;
  b=0;
  cin>> N;
  vector<int> vec(N);
  for (int i=0;i<N;i++){
    cin>>vec.at(i);
  }
  for(int i=0;i<N;i++){
   if(for(i=0;i<N;i++){ vec.at(i)%2==0}
     ){
     b++;
  }
  if(b==N){
    a++;
  }
 else {
         cout<<a<<endl;
         }
}
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: expected primary-expression before 'for'
   14 |    if(for(i=0;i<N;i++){ vec.at(i)%2==0}
      |       ^~~
a.cc:14:7: error: expected ')' before 'for'
   14 |    if(for(i=0;i<N;i++){ vec.at(i)%2==0}
      |      ~^~~
      |       )
a.cc:14:22: error: expected ';' before ')' token
   14 |    if(for(i=0;i<N;i++){ vec.at(i)%2==0}
      |                      ^
      |                      ;
a.cc:15:6: error: expected primary-expression before ')' token
   15 |      ){
      |      ^
Language: C++

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

int main(){
  int N,a,b;
  a=0;
  b=0;
  cin>> N;
  vector<int> vec(N);
  for (int i=0;i<N;i++){
    cin>>vec.at(i);
  }
  for(int i=0;i<N;i++){
   if( vec.at(i)%2==0){
     b++;
  }
  if(b==N-1){
    a++;
  }
 else {
         cout<<a<;endl;
         }
}
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: expected primary-expression before ';' token
   21 |          cout<<a<;endl;
      |                  ^
a.cc:21:23: error: statement cannot resolve address of overloaded function
   21 |          cout<<a<;endl;
      |                       ^
Language: C++

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

int main(){
  int N,a;
  a=0;
  cin>> N;
  vector<int> vec(N);
  for (int i=0;i<N;i++){
    cin>>vec.at(i);
  }
  if(for(int i=0;i<N;i++){
    vec.at(i)%2==0
  }
     ){
    a++;
  }
 else if(for (i=0;i<N;i++){
   vec.(i)%2!=0
 }){
         cout<<a<;endl;
         }
}
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected primary-expression before 'for'
   12 |   if(for(int i=0;i<N;i++){
      |      ^~~
a.cc:12:6: error: expected ')' before 'for'
   12 |   if(for(int i=0;i<N;i++){
      |     ~^~~
      |      )
a.cc:12:18: error: 'i' was not declared in this scope
   12 |   if(for(int i=0;i<N;i++){
      |                  ^
a.cc:15:6: error: expected primary-expression before ')' token
   15 |      ){
      |      ^
a.cc:18:2: error: 'else' without a previous 'if'
   18 |  else if(for (i=0;i<N;i++){
      |  ^~~~
a.cc:18:10: error: expected primary-expression before 'for'
   18 |  else if(for (i=0;i<N;i++){
      |          ^~~
a.cc:18:10: error: expected ')' before 'for'
   18 |  else if(for (i=0;i<N;i++){
      |         ~^~~
      |          )
a.cc:20:3: error: expected primary-expression before ')' token
   20 |  }){
      |   ^
Language: C++

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

int main(){
  int N,a;
  a=0;
  cin N;
  vector<int> vec(N);
  for (int i=0;i<N;i++){
    cin>>vec.at(i);
  }
  if(for(int i=0;i<N;i++){
    vec.at(i)%2==0
  }
     ){
    a++;
  }
 else if(for (i=0;i<N;i++){
   vec.(i)%2!=0
 }){
         cout<<a<;endl;
         }
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'N'
    7 |   cin N;
      |      ^~
      |      ;
a.cc:12:6: error: expected primary-expression before 'for'
   12 |   if(for(int i=0;i<N;i++){
      |      ^~~
a.cc:12:6: error: expected ')' before 'for'
   12 |   if(for(int i=0;i<N;i++){
      |     ~^~~
      |      )
a.cc:12:18: error: 'i' was not declared in this scope
   12 |   if(for(int i=0;i<N;i++){
      |                  ^
a.cc:15:6: error: expected primary-expression before ')' token
   15 |      ){
      |      ^
a.cc:18:2: error: 'else' without a previous 'if'
   18 |  else if(for (i=0;i<N;i++){
      |  ^~~~
a.cc:18:10: error: expected primary-expression before 'for'
   18 |  else if(for (i=0;i<N;i++){
      |          ^~~
a.cc:18:10: error: expected ')' before 'for'
   18 |  else if(for (i=0;i<N;i++){
      |         ~^~~
      |          )
a.cc:20:3: error: expected primary-expression before ')' token
   20 |  }){
      |   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,i;
  int r=0;
  cin >> n;
  int a[n];
  cin >> a[n];
  for(i=0;i<n;i++){
    int m=0;
    while(a[i]%2==0){
      a[i]/=2;
      m++;
    }
    if(i==0){
      r=m;
    }
    if(a<r){
      r=m;
    }
  
  }
  cout << r;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     if(a<r){
      |        ~^~
Language: C++

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


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
 int N;
 int count = 0;
 vector<int> vec(201);
  cin >> N;
    for (int i = 0; i < N; ++i){
      cin >> vec.at(i);
    }
 
  while(true){
  	bool judge = 0;
    for (int i = 0; i < N; i++){
 		if(vec.at(i)%2 != 0){
          	judge = 1;
        }
  	}
    if(judge) break;
    
    for (int i = 0; i < N; i++){
 		vec.at(i) /= 2;
  	}
    count += 1;
  
   
  }

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
 int N;
 int count = 0;
 vector<int> vec(201);
  cin >> N;
    for (int i = 0; i < N; ++i){
      cin >> vec.at(i);
    }
 
  while(true){
  	bool judge = 0;
    for (int i = 0; i < N; i++){
 		if(vec.at(i)%2 != 0){
          	judge = 1;
        }
  	}
    if(judge) break;
    
    for (int i = 0; i < N; i++){
 		vec.at(i) /= 2;
  	}
    count += 1;
  
   
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
 int N;
 int count = 0;
 vector<int> vec(201);
  cin >> N;
    for (int i = 0; i < N; ++i){
      cin >> vec.at(i);
    }
 
  while(true){
  	bool judge = 0;
    for (int i = 0; i < N; i++){
 		if(vec(i)%2 != 0){
          	judge = 1;
        }
  	}
    if(judge) break;
    
    for (int i = 0; i < N; i++){
 		vec(i) /= 2;
  	}
    count += 1;
  
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: no match for call to '(std::vector<int>) (int&)'
   17 |                 if(vec(i)%2 != 0){
      |                    ~~~^~~
a.cc:24:20: error: no match for call to '(std::vector<int>) (int&)'
   24 |                 vec(i) /= 2;
      |                 ~~~^~~
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
 int N;
 int count = 0;
 vector<int> vec(201);
  cin >> N;
    for (int i = 0; i < N; ++i){
      cin >> vec.at(i);
    }
 
  while(true){
  	bool judge = 0;
    for (int i = 0; i < N; i++){
 		if(vec(i)%2 != 0){
          	judge = 1;
        }
  	}
    if(judge) break;
    
    for (int i = 0; i < N; i++){
 		vec(i) /= 2
  	}
    count += 1
  
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: no match for call to '(std::vector<int>) (int&)'
   17 |                 if(vec(i)%2 != 0){
      |                    ~~~^~~
a.cc:24:20: error: no match for call to '(std::vector<int>) (int&)'
   24 |                 vec(i) /= 2
      |                 ~~~^~~
a.cc:26:15: error: expected ';' before '}' token
   26 |     count += 1
      |               ^
      |               ;
......
   29 | }
      | ~              
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
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,a,b;
  a=0;
  cin >> N;

  cin >> A;
  if(A%2==0){
    while(true){
      A/=2;
      if(A%2==1){
        a++;
        break;
      }
      a++;
    }
  }


  for(int i=1;i<N;i++){
    cin >> A;
    if(A%2==0){
      b=0;
      while(true){
        A/=2;
        if(A%2==1){
          b++;
          break;
        }
        b++;
      }
      if(a>b){
        a=b;
      }
    }
  }

  cout << a << endl;
}

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

N = input()
nums = input().split()
nums = [int(n) for n in nums]
cnt = 0

while(True):
    e_nums = [n/2 for n in nums if n % 2 == 0]
#    print(nums, ":", e_nums)
    if len(nums) > len(e_nums):
        break
    cnt += 1
    nums = e_nums
print(cnt)



Compiler output:
a.cc:8:6: error: invalid preprocessing directive #print
    8 | #    print(nums, ":", e_nums)
      |      ^~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N = input()
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  
  int n, tmp, m=-1;
  
  cin>> n;
  
  for(int i=0;i<n;i++){
	cin>> tmp;
    m=m^tmp;
  }
  
  for(int i=1;i<=64;i++){
    if (bit & (1<<i)){
      cout<< i-1 <<endl;
      return 0;
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'bit' was not declared in this scope
   17 |     if (bit & (1<<i)){
      |         ^~~
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[] A = new int[n];
        for(int i = 0; i < n; i++){
            A[i] = sc.nextInt();
        }
        int[] count = new int[n];
        int div = 0;
        int check = 0;
        for(int i = 0; i < n; i++){
            check = A[i];
            while(check%2 == 0){
                div++;
                check = check/2;
            }
            count[i] = div;
            div = 0;
        }
        Arrays.sort(count);
        System.out.print(count[0);
    }
}

Compiler output:
Main.java:24: error: ']' expected
        System.out.print(count[0);
                                ^
1 error
Language: C++

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

int main() {
  int N, out = 0;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
    cin >> a_i;
    int k = 0;
    
    while ((a_i % 2) == 0) {
      a_i /= 2;
      k += 1;
    }
    
    if (out < k)
      out = k;
  }
  
  cout << out << endl;
}

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

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

int main() {
  int N, out = 0;
  cin >> N;
  
  for (int i = 0; i < N; i++) {
    cin >> a_i;
    int k = 0;
    
    while (a_i % 2 == 0) {
      a_i /= 2;
      k += 1;
    }
    
    if (out < k)
      out = k;
  }
  
  cout << out << endl;
}

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

#include<stdio.h>
int main(){
  int N;
  int a[200]={0};
  int b[N];
  int i;
  int num=10;
  scanf("%d",&N);

  for(i=0;i<N;i++){
    scanf("%d",&a[i]);
  }

  for(i=0;i<N;i++){
      do{
        a[i]=a[i]/2;
        b[i]++;
      }while(a[i]%2==0)
  }
  for(i=0;i<N;i++){
    if(num>b[i]){
      num=b[i];
    }
  }
  printf("%d",num);
}


Compiler output:
main.c: In function 'main':
main.c:18:24: error: expected ';' before '}' token
   18 |       }while(a[i]%2==0)
      |                        ^
      |                        ;
   19 |   }
      |   ~                     
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include<stdio.h>
int main(){
  int N;
  int a[N];
  int b[N];
  int i;
  int num=10;
  scanf("%d",&N);

  for(i=0;i<N;i++){
    scanf("%d",&a[i]);
  }

  for(i=0;i<N;i++){
      do{
        a[i]=a[i]/2;
        b[i]++;
      }while(a[i]%2==0)
  }
  for(i=0;i<N;i++){
    if(num>b[i]){
      num=b[i];
    }
  }
  printf("%d",num);
}


Compiler output:
main.c: In function 'main':
main.c:18:24: error: expected ';' before '}' token
   18 |       }while(a[i]%2==0)
      |                        ^
      |                        ;
   19 |   }
      |   ~                     
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C++

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

int main( void )
{
	int N;
	cin >> N;
	
	ll A[200];
	
	rep(i,N)
		cin >> A[i];
	
	bool x true;
	int ans = 0;
	
	while ( x )
	{
		rep(i,N)
		{
			sum += A[i] % 2;
			A[i] /= 2;
		}
		
		if ( sum == 0 )
		{
			ans++;
		}
		
		else
			x = false;
	}
	
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected initializer before 'true'
   16 |         bool x true;
      |                ^~~~
a.cc:19:17: error: 'x' was not declared in this scope
   19 |         while ( x )
      |                 ^
a.cc:23:25: error: 'sum' was not declared in this scope
   23 |                         sum += A[i] % 2;
      |                         ^~~
a.cc:27:22: error: 'sum' was not declared in this scope
   27 |                 if ( sum == 0 )
      |                      ^~~
Language: C

#include<stdio.h>
int main(){
  int N;
  int a[N];
  int b[N];
  int i;
  int num=10;
  scanf("%d",&N);
  scanf("%lf",&a[N]);

  for(i=0;i<N;i++){
      do{
        a[i]=a[i]/2;
        b[i]++;
      }while(a[i]%2==0)
  }
  for(i=0;i<N;i++){
    if(num>b[i]){
      num=b[i];
    }
  }
  printf("%d",num);
}


Compiler output:
main.c: In function 'main':
main.c:15:24: error: expected ';' before '}' token
   15 |       }while(a[i]%2==0)
      |                        ^
      |                        ;
   16 |   }
      |   ~                     
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

    #include<stdio.h>
    int main()
    {
        int N;
        int A[200];
        int i;
        int res = 0;
       
        // 整数の入力
        scanf("%d", &N);
        // スペース区切りの整数の入力
      for(i= 0; i == N; i++){
        scanf("%d",&A[i]);
      }
       while (true) {
        bool exist_odd = false;  // A[i] がすべて偶数かどうかを判定するフラグ
        for (int i = 0; i < N; ++i) {
            if (A[i] % 2 != 0) exist_odd = true;  // 奇数があったらフラグを立てる
        }

        if (exist_odd) break;  // 奇数があったら break

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

        printf("%d \n",res);
        return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:15:15: error: 'true' undeclared (first use in this function)
   15 |        while (true) {
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 |     #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 |     int main()
main.c:15:15: note: each undeclared identifier is reported only once for each function it appears in
   15 |        while (true) {
      |               ^~~~
main.c:16:9: error: unknown type name 'bool'
   16 |         bool exist_odd = false;  // A[i] がすべて偶数かどうかを判定するフラグ
      |         ^~~~
main.c:16:9: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:16:26: error: 'false' undeclared (first use in this function)
   16 |         bool exist_odd = false;  // A[i] がすべて偶数かどうかを判定するフラグ
      |                          ^~~~~
main.c:16:26: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
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 = fales;
    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:15:22: error: 'fales' was not declared in this scope
   15 |     bool exist_odd = fales;
      |                      ^~~~~
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 cnt = 0;
  bool flag = true;
  while (flag) {
	for (int i=0; i<n; i++) {
		if (a.at(i) % 2 == 0) {
			a.at(i) /= 2;
        }
      	else {
			flag = false;
          	break;
        }
      cnt++;
    }
  }
  cout << cnt << endl;
}

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

#include <stdlib.h>
#include <stdio.h>

int main(void) 
{
	int i,n,k=0;
	long seisuu[210]={0};	
	int hantei = 0;
	
	scanf("%d", &i );
	
	for (n = 0 ; n < i ; n++)
		scanf("%ld",&seisuu[n]);
		

	while (hantei == 0)	
	{
		
		for (n = 0 ; n < i ; n++)
		{
			if (seisuu[n] % 2 != 0) 
			hantei = 1;
			break;
			else	seisuu[n] /= 2	;	
		} 
		if (hantei == 0)
			k++;
			
		}	
		
		
	}
	
	printf("%d",k);
	return 0;
}

/*配列の中の数字を全部2で割った後入れなおす*/

Compiler output:
main.c: In function 'main':
main.c:24:25: error: 'else' without a previous 'if'
   24 |                         else    seisuu[n] /= 2  ;
      |                         ^~~~
main.c: At top level:
main.c:34:16: error: expected declaration specifiers or '...' before string constant
   34 |         printf("%d",k);
      |                ^~~~
main.c:34:21: error: unknown type name 'k'
   34 |         printf("%d",k);
      |                     ^
main.c:35:9: error: expected identifier or '(' before 'return'
   35 |         return 0;
      |         ^~~~~~
main.c:36:1: error: expected identifier or '(' before '}' token
   36 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;int a[1000000];int main(){int n,cnt=0;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}

Compiler output:
a.cc:2:241: error: 'cout' does not name a type
    2 | using namespace std;int a[1000000];int main(){int n,cnt=0;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}
      |                                                                                                                                                                                                                                                 ^~~~
a.cc:2:251: error: expected unqualified-id before 'return'
    2 | using namespace std;int a[1000000];int main(){int n,cnt=0;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}
      |                                                                                                                                                                                                                                                           ^~~~~~
a.cc:2:260: error: expected declaration before '}' token
    2 | using namespace std;int a[1000000];int main(){int n,cnt=0;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}
      |                                                                                                                                                                                                                                                                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;int a[1000000];int main(){int n,cnt=0;;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}

Compiler output:
a.cc:2:242: error: 'cout' does not name a type
    2 | using namespace std;int a[1000000];int main(){int n,cnt=0;;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}
      |                                                                                                                                                                                                                                                  ^~~~
a.cc:2:252: error: expected unqualified-id before 'return'
    2 | using namespace std;int a[1000000];int main(){int n,cnt=0;;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}
      |                                                                                                                                                                                                                                                            ^~~~~~
a.cc:2:261: error: expected declaration before '}' token
    2 | using namespace std;int a[1000000];int main(){int n,cnt=0;;cin>>n;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;;i++){bool pd=true;for(int j=1;j<=n;j++)if(a[j]%2!=0){pd=false;break;}if(pd==false)break;if(pd)cnt++;for(int j=1;j<=n;j++)a[j]/=2;}}cout<<cnt;return 0;}
      |                                                                                                                                                                                                                                                                     ^
Language: C++

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

int main()
{
  int n; cin >> n;
  int a[n];
  int i;
  
  for (i=0; i<n; i++) {
    cin >> a[i];
  }
  
  bool even = true;
  while (even) {
    for (i=0; i<n; i++) {
		if (a[i]%2 == 0)
          	a[i] /= 2;
      	else {
          break;
          even = false;
        }
    }
    cnt++;
  }
  cout << cnt << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a[210];
int N;
  cin >> N;
  int vec;
for (int i = 0; i < N; i++) {
  cin >> a[i];
}
  		int d = 0;

		while (a % 2 == 0) {
			a /= 2;
			++d;
        }
cout << d << endl;		

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: invalid operands of types 'int [210]' and 'int' to binary 'operator%'
   14 |                 while (a % 2 == 0) {
      |                        ~ ^ ~
      |                        |   |
      |                        |   int
      |                        int [210]
a.cc:15:27: error: invalid operands of types 'int [210]' and 'int' to binary 'operator/'
   15 |                         a /= 2;
      |                         ~~^~~~
a.cc:15:27: note:   in evaluation of 'operator/=(int [210], int)'
Language: C++

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

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

  int cnt = 0;

  while (true) {
    bool exist_odd = false;
    for (int i = 0; i < N; i++) {
      if (A.at(i) % 2 != 0) {
        exist_odd = true
      }
    }
    
    if (exist_odd) break;

    for (int i = 0; i < N; i++) {
      A.at(i) /= 2;
    }

    cnt++;
    
  }

  cout << cnt << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:25: error: expected ';' before '}' token
   18 |         exist_odd = true
      |                         ^
      |                         ;
   19 |       }
      |       ~
Language: Java

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

count = 0
isEven = True
while isEven:
  for num in a:
    isEven = num % 2 == 0 and isEven
  if isEven:
    a = [num/2 for num in a]
    count += 1

print(count)



Compiler output:
Main.java:1: error: class, interface, enum, or record expected
n = int(input())
^
1 error
Language: Java

# 入力
n = int(input())
a = [int(num) for num in input().split()]

# 主処理
count = 0
isEven = True
while isEven:
  for num in a:
    isEven = num % 2 == 0 and isEven
  if isEven:
    a = [num/2 for num in a]
    count += 1

# 出力
print(count)


Compiler output:
Main.java:1: error: illegal character: '#'
# ??
^
Main.java:2: error: class, interface, enum, or record expected
n = int(input())
^
Main.java:5: error: illegal character: '#'
# ???
^
Main.java:15: error: illegal character: '#'
# ??
^
4 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> N;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:30: error: expected ';' before '}' token
   16 |                 A[i] = A[i]/2
      |                              ^
      |                              ;
   17 |                 }
      |                 ~             
a.cc:18:22: error: expected ';' before '}' token
   18 |                 ++res
      |                      ^
      |                      ;
   19 |                 }
      |                 ~     
a.cc:20:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |                 cout << res << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |                 cout << res << endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'min' cannot be used as a function
   13 |     min=min(min,amin);
      |         ~~~^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: lvalue required as left operand of assignment
   11 |     if((a%2=1)&&(ans > count)){
      |         ~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: lvalue required as left operand of assignment
   11 |     if((a%2=1)&&(ans > count))
      |         ~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before '}' token
   13 |       count = 0
      |                ^
      |                ;
   14 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before ')' token
    8 |     for(1;){
      |           ^
a.cc:8:11: error: expected ';' before ')' token
    8 |     for(1;){
      |           ^
      |           ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before ')' token
    8 |     for(1){
      |          ^
      |          ;
a.cc:19:3: error: expected primary-expression before '}' token
   19 |   }
      |   ^
a.cc:18:6: error: expected ';' before '}' token
   18 |     }
      |      ^
      |      ;
   19 |   }
      |   ~   
a.cc:19:3: error: expected primary-expression before '}' token
   19 |   }
      |   ^
a.cc:18:6: error: expected ')' before '}' token
   18 |     }
      |      ^
      |      )
   19 |   }
      |   ~   
a.cc:8:8: note: to match this '('
    8 |     for(1){
      |        ^
a.cc:19:3: error: expected primary-expression before '}' token
   19 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n,a,count=0,ans=0;
  cin >> n;
  for(int i = 0;i < n;++i){
    cin >> a;
    for(int q = 0;q == 0){
      if (a%2==0){
        a /= 2;
        ++count;
      }
      else{
        if (count < ans)
          ans = count;
        break;
      }
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before ')' token
    8 |     for(int q = 0;q == 0){
      |                         ^
      |                         ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before ')' token
    8 |     for(true;){
      |              ^
a.cc:8:14: error: expected ';' before ')' token
    8 |     for(true;){
      |              ^
      |              ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before ')' token
    8 |     for(true){
      |             ^
      |             ;
a.cc:19:3: error: expected primary-expression before '}' token
   19 |   }
      |   ^
a.cc:18:6: error: expected ';' before '}' token
   18 |     }
      |      ^
      |      ;
   19 |   }
      |   ~   
a.cc:19:3: error: expected primary-expression before '}' token
   19 |   }
      |   ^
a.cc:18:6: error: expected ')' before '}' token
   18 |     }
      |      ^
      |      )
   19 |   }
      |   ~   
a.cc:8:8: note: to match this '('
    8 |     for(true){
      |        ^
a.cc:19:3: error: expected primary-expression before '}' token
   19 |   }
      |   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before ')' token
    8 |     for(true)
      |             ^
      |             ;
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
a.cc:12:8: error: expected ';' before 'else'
   12 |       }
      |        ^
      |        ;
   13 |       else{
      |       ~~~~
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
a.cc:12:8: error: expected ')' before 'else'
   12 |       }
      |        ^
      |        )
   13 |       else{
      |       ~~~~
a.cc:8:8: note: to match this '('
    8 |     for(true)
      |        ^
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
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 <bits/stdc++.h>
using namespace std;
int main(){
  int n,a,count=0,ans=0;
  cin >> n;
  for(int i = 0,i < n;++i){
    cin >> a;
    for(true)
      if (a%2==0){
        a /= 2;
        ++count;
      }
      else{
        if (count < ans)
          ans = count;
        break;
      }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before '<' token
    6 |   for(int i = 0,i < n;++i){
      |                  ^~
      |                  ;
a.cc:6:19: error: expected primary-expression before '<' token
    6 |   for(int i = 0,i < n;++i){
      |                   ^
a.cc:8:13: error: expected ';' before ')' token
    8 |     for(true)
      |             ^
      |             ;
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
a.cc:12:8: error: expected ';' before 'else'
   12 |       }
      |        ^
      |        ;
   13 |       else{
      |       ~~~~
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
a.cc:12:8: error: expected ')' before 'else'
   12 |       }
      |        ^
      |        )
   13 |       else{
      |       ~~~~
a.cc:8:8: note: to match this '('
    8 |     for(true)
      |        ^
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
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 <bits/stdc++.h>
using namespace std;
int main(){
  int n,a,count=0,ans=0;
  cin >> n;
  for(int i = 0,i < N;++i){
    cin >> a;
    for(true)
      if (a%2==0){
        a /= 2;
        ++count;
      }
      else{
        if (count < ans)
          ans = count;
        break;
      }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before '<' token
    6 |   for(int i = 0,i < N;++i){
      |                  ^~
      |                  ;
a.cc:6:19: error: expected primary-expression before '<' token
    6 |   for(int i = 0,i < N;++i){
      |                   ^
a.cc:6:21: error: 'N' was not declared in this scope
    6 |   for(int i = 0,i < N;++i){
      |                     ^
a.cc:8:13: error: expected ';' before ')' token
    8 |     for(true)
      |             ^
      |             ;
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
a.cc:12:8: error: expected ';' before 'else'
   12 |       }
      |        ^
      |        ;
   13 |       else{
      |       ~~~~
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
a.cc:12:8: error: expected ')' before 'else'
   12 |       }
      |        ^
      |        )
   13 |       else{
      |       ~~~~
a.cc:8:8: note: to match this '('
    8 |     for(true)
      |        ^
a.cc:13:7: error: expected primary-expression before 'else'
   13 |       else{
      |       ^~~~
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 <bits/stdc++.h>
using namespace std;

int main() {
    int n, cnt = 0;
    int a[250];
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        cin >> a[i];
    }
    while (true)
    {
        for (int i = 0; i < n; i++)
        {
            if (a[i] % 2 != 0)
            {
                goto l_exit;
                break;
            }
            a[i] = a[i] / 2;
        }
        cnt++;
    }
    :l_exit
    cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: expected primary-expression before ':' token
   25 |     :l_exit
      |     ^
a.cc:18:22: error: label 'l_exit' used but not defined
   18 |                 goto l_exit;
      |                      ^~~~~~
Language: C++

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

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

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

int main() {
	int N;
  	int A;
  	int ct = 0;
  	vector<int> cal(N);
  	cin >> N;
  for(int i=0;i<N;I++){
  	cin >> A;
    for(;A%2==0;){
    	A /= 2;
      ct++;
    }
    cal.push_back(ct);
  }
  for(int j=N-1;j>0;j--){
  	if(cal.at(j)-cal.at(j-1) < 0)cal.at(j-1) = cal.at(j);
  }
  cout << cal.at(0) << endl;
}


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

#include <iostream>
using namespace std;

int main() {
  int N, even = 0, num = 0;

  cin >> N;

  int A[N];

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

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

    if(even == 0){
      num++;
    }
  }

  cout << num << endl;


  return 0;
}

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

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

int main() {
	int N;
  	int A;
  	int ct = 0;
  	vector<int> cal(N);
  	cin >> N;
  for(int i=0;i<N;I++){
  	cin >> A;
    for(;A%2==0;){
    	A /= 2;
      ct++;
    }
    cal.push_back(ct);
    for(int j=N-1;j>-1;j--){
    	if(cal.at(j)-cal.at(j-1)< 0)cal.at(j)
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'I' was not declared in this scope
   10 |   for(int i=0;i<N;I++){
      |                   ^
a.cc:18:46: error: expected ';' before '}' token
   18 |         if(cal.at(j)-cal.at(j-1)< 0)cal.at(j)
      |                                              ^
      |                                              ;
   19 |     }
      |     ~                                         
a.cc:18:43: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   18 |         if(cal.at(j)-cal.at(j-1)< 0)cal.at(j)
      |                                     ~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: declared here
 1180 |       at(size_type __n)
      |       ^~