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

int main(void){
  int n,a[256],b,c;
  scanf("%d%d",&n,&a);
  while(c==0){
    for(i=0;i<n;i++){
      if(a[i]%2!=0){
        c=1;
        break;
      }
    }
    b+=1;
  }
  printf("%d",b);
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d",&n,&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d",&n,&a);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: 'i' undeclared (first use in this function)
    5 |     for(i=0;i<n;i++){
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf("%d",b);
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void){
  int n,a[256],b,c;
  scanf("%d%d",&n,a);
  while(c==0){
    for(i=0;i<n;i++){
      if(a[i]%2!=0){
        c=1;
        break;
      }
    }
    b+=1;
  }
  printf("%d",b);
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d",&n,a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d",&n,a);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: 'i' undeclared (first use in this function)
    5 |     for(i=0;i<n;i++){
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf("%d",b);
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void){
  int n,a[256],b,c;
  scanf("%d%d",n,a);
  while(c==0){
    for(i=0;i<n;i++){
      if(a[i]%2!=0){
        c=1;
        break;
      }
    }
    b+=1;
  }
  printf("%d",b);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'i' undeclared (first use in this function)
    6 |     for(i=0;i<n;i++){
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(void){
  int n,a[256],b,c;
  scanf("%d%d",n,a);
  while(c==0){
    for(i=0;i<n;i++){
      if(a[i]%2!=0){
        c=1;
        break;
      }
    }
    b+=1;
  }
  printf("%d",b);
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d",n,a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d",n,a);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: 'i' undeclared (first use in this function)
    5 |     for(i=0;i<n;i++){
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf("%d",b);
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main() {
  
  int N;
  int A[199];
  int counter = 0;
  bool odd_exist = false;
  
  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 ) {
       		odd_exist = true;
        	break;
        }
    }
	if (odd_exist == true) break;
  	
    counter++;
    for (int i = 0; i < N; i++) { A[i] = A[i] * 0.5 ) }  
  }
  
  cout << counter << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:52: error: expected ';' before ')' token
   27 |     for (int i = 0; i < N; i++) { A[i] = A[i] * 0.5 ) }
      |                                                    ^~
      |                                                    ;
Language: C++

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

int main() {
  
  int N,
  int A[199];
  int counter = 0;
  bool odd_exist = false;
  
  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 ) {
       		odd_exist = true;
        	break;
        }
    }
	if (odd_exist == true) break;
  	
    counter++;
    for (int i = 0; i < N; i++) { A[i] = A[i] * 0.5 ) }  
  }
  
  cout << counter << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected unqualified-id before 'int'
    8 |   int A[199];
      |   ^~~
a.cc:14:40: error: 'A' was not declared in this scope
   14 |   for (int i = 0; i < N; i++) { cin >> A[i]; }
      |                                        ^
a.cc:19:13: error: 'A' was not declared in this scope
   19 |         if (A[i] % 2 != 0 ) {
      |             ^
a.cc:27:35: error: 'A' was not declared in this scope
   27 |     for (int i = 0; i < N; i++) { A[i] = A[i] * 0.5 ) }
      |                                   ^
Language: Java

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


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

#include<stdio.h>
int main() {
  int cnt, num, repeat, i = 0, ans = 0;
  scanf("$d",&repear);
  for(;i < num; i++) {
    scanf("$d",&num);
    cnt = 0;
    while(1) {
      if(num % 2 > 0) break;
      cnt++;
      num /= 2;
    }
    ans = ans > num ? num : ans;
  }
  printf("%d", ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: 'repear' undeclared (first use in this function); did you mean 'repeat'?
    4 |   scanf("$d",&repear);
      |               ^~~~~~
      |               repeat
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void) {
  int n, a[200], c=0, sum=0;
  
  scanf("%d",&n);
  for(int i = 0; i < n; i++) {
    scanf("%d ",&a[i]);
  }
  
  while(1) {
    for (int i = 0; i < n; i++) {
      sum += a[i];
    }
    
    if(sum % 2 == 0) {
      count ++;
    } else {
      break;
    }
    
    for (int i = 0; i < n; i++) {
      n[i] /= 2;
    }
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:7: error: 'count' undeclared (first use in this function)
   17 |       count ++;
      |       ^~~~~
main.c:17:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:8: error: subscripted value is neither array nor pointer nor vector
   23 |       n[i] /= 2;
      |        ^
Language: C

#include<stdio.h>

int main(void) {
  int n, a[200], c=0, sum=0;
  
  scanf("%d",&n);
  for(int i = 0, i < n, i++) {
    scanf("%d ",&a[i]);
  }
  
  while(1) {
    for (int i = 0; i < n, i++) {
      sum += a[i];
    }
    
    if(sum % 2 == 0) {
      count ++;
    } else {
      break;
    }
    
    for (int i = 0; i < n, i++) {
      n[i] /= 2;
    }
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 |   for(int i = 0, i < n, i++) {
      |                    ^
main.c:11:3: error: expected expression before 'while'
   11 |   while(1) {
      |   ^~~~~
main.c:28:1: error: expected expression before '}' token
   28 | }
      | ^
main.c:28:1: error: expected expression before '}' token
Language: Java

import java.io.*;
import java.util.*;
public class half{
  public static void main(String[] args) throws IOException {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int rand[] = new int[x];
    for (int i = 0;i<x ;i++ ) {
      rand[i] = sc.nextInt();
    }
    sc.close();
    int count = -1;
    int half[] = new int[x];
    half = rand;
    boolean flg = true;
    while(flg){
      for (int i = 0;i<x;i++) {
        if (half[i]%2 ==1) {
          flg = false;
        }
        half[i] = half[i]/2;
      }
      count = count + 1;
    }
    System.out.println(count);
  }
}

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

N = int(input())
list = [int(x)  for x in input().split()]
ans = float('inf')
for a in list:
    ans = min(ans, len(bin(a))-bin(a).rfind('1')-1 )
print(ans)

Compiler output:
a.cc:3:13: warning: multi-character character constant [-Wmultichar]
    3 | ans = float('inf')
      |             ^~~~~
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 cnt = 0;

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

        if (odd_flag) break

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

    cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before 'int'
   10 |         cin >> A[i]
      |                    ^
      |                    ;
   11 | 
   12 |     int cnt = 0;
      |     ~~~             
a.cc:18:13: error: 'odd_flg' was not declared in this scope; did you mean 'odd_flag'?
   18 |             odd_flg = true;
      |             ^~~~~~~
      |             odd_flag
a.cc:21:28: error: expected ';' before 'for'
   21 |         if (odd_flag) break
      |                            ^
      |                            ;
   22 | 
   23 |         for (int i = 0; i < N; ++i){
      |         ~~~                 
a.cc:26:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
   26 |         ++cnt;
      |           ^~~
      |           int
a.cc:29:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
   29 |     cout << cnt << endl;
      |             ^~~
      |             int
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String [] args){
    Scanner stdIn = new Scanner(System.in);
   /* int n = stdIn.nextInt();
    int [] Array = new int[n];
    
    for(int i = 0; i < Array.length; i++) {
    	Array[i] = stdIn.nextInt();
    }
    
    int sum = 0;
    int a = 0;
    Outer:
    do{
      a++;
    	for(int i = 0; i < Array.length; i++){
      		if(Array[i]%2!=0) break Outer;
      		else Array[i]/=2;
      		if(i==n-1){ 
              sum++;
              a --;
            }
    	}
    }while(a==0);
    
    System.out.println(sum);*/
    int n = stdIn.nextInt();
    int[]a = new int[n];
    for(int i = 0; i < n; i++) {
    	a[i] = stdIn.nextInt();
    }
    
    int cnt = 0;
    
    while(true) {
    	for(int i = 0; i < n; i++) {
    		if(a[i]%2!=0){
    			break;
    		}
    	}
    	cnt++;
    	
    	
    }
    
    System.out.println(cnt);
    
    
    
  }
}

Compiler output:
Main.java:47: error: unreachable statement
    System.out.println(cnt);
    ^
1 error
Language: Java

import java.util.*;
public class main
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int number=sc.nextInt(); //all number
		long []numberBox=new long[number];
		int error=0;
		for(int i=0;i<number;i++)
		{
			numberBox[i]=sc.nextInt();
			if(numberBox[i]==0)
				error=1;
		}
		if(error==0)
		{
			checkEven(numberBox,number); //check number all even
		}	
		else
		{
			System.out.println("0");
		}	
		
	}
	public static void checkEven(long[] box,int num)
	{
		int countTimes=0; //count number divided times
		while(true)
		{
			int count=0; //count number all even
			for(int i=0;i<num;i++)
			{
				if(box[i]%2==0)
					count++;
			}
			if(count==num)
			{
				for(int j=0;j<num;j++)
				{
					box[j]/=2;
				}
				countTimes++;
			}
			else
			{
				System.out.println(countTimes);
				break;
			}
		}	
	}
}


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

import java.util.*;
public class main
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int number=sc.nextInt(); //all number
		int []numberBox=new int[number];
		for(int i=0;i<number;i++)
		{
			numberBox[i]=sc.nextInt();
		}

		checkEven(numberBox,number); //check number all even
		
	}
	public static void checkEven(int[] box,int num)
	{
		int count=0; //count number all even
		int countTimes=0; //count number divided times
		while(true)
		{
			for(int i=0;i<num;i++)
			{
				if(box[i]%2==0)
					count++;
			}
			if(count==num)
			{
				for(int j=0;j<num;j++)
				{
					box[j]/=2;
				}
				countTimes++;
			}
			else
			{
				System.out.println(countTimes);
				break;
			}
		}	
	}
}


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

package problem;
import java.util.*;
public class A 
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int number=sc.nextInt(); //all number
		int []numberBox=new int[number];
		for(int i=0;i<number;i++)
		{
			numberBox[i]=sc.nextInt();
		}

		checkEven(numberBox,number); //check number all even
		
	}
	public static void checkEven(int[] box,int num)
	{
		int count=0; //count number all even
		int countTimes=0; //count number divided times
		while(true)
		{
			for(int i=0;i<num;i++)
			{
				if(box[i]%2==0)
					count++;
			}
			if(count==num)
			{
				for(int j=0;j<num;j++)
				{
					box[j]/=2;
				}
				countTimes++;
			}
			else
			{
				System.out.println(countTimes);
				break;
			}
		}	
	}
}


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

#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
    long long int n=0;
    long long int a[10000];
    long long int d=0;
    long long int c=0;
    long long int i=0;
    cin>>n;
    for(i=0;i<n;i++)
    {
        cin>>a[i];
    }
    while(1)
    {
        for(i=0;i<n;i++)
        {
            if(a[i]==0|| a[i]%2!=0)
            {
                d=d+1;
                break;
            }
            else
            
            {
                a[i]=a[i]/2;
            }
        }
        if(d==1)
        {
            break;
        }
        else
        {
            c=c+1;
        }
    }
    cout<<c;
}#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
    long long int n=0;
    long long int a[10000];
    long long int d=0;
    long long int c=0;
    long long int i=0;
    cin>>n;
    for(i=0;i<n;i++)
    {
        cin>>a[i];
    }
    while(1)
    {
        for(i=0;i<n;i++)
        {
            if(a[i]==0|| a[i]%2!=0)
            {
                d=d+1;
                break;
            }
            else
            
            {
                a[i]=a[i]/2;
            }
        }
        if(d==1)
        {
            break;
        }
        else
        {
            c=c+1;
        }
    }
    cout<<c;
}

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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ';' before 'A'
    9 |     for (int i = 0; i < N; i++) cin A[i];
      |                                    ^~
      |                                    ;
Language: C++

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

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



Compiler output:
a.cc:7:7: error: cannot declare '::main' to be a global variable
    7 |   int main {
      |       ^~~~
a.cc:8:17: error: expected '}' before ';' token
    8 |         cin >> N;
      |                 ^
a.cc:7:12: note: to match this '{'
    7 |   int main {
      |            ^
a.cc:8:13: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
    8 |         cin >> N;
      |         ~~~~^~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:9:5: error: expected unqualified-id before 'for'
    9 |     for (int i = 0; i < N; i++) cin A[i];
      |     ^~~
a.cc:9:21: error: 'i' does not name a type
    9 |     for (int i = 0; i < N; i++) cin A[i];
      |                     ^
a.cc:9:28: error: 'i' does not name a type
    9 |     for (int i = 0; i < N; i++) cin A[i];
      |                            ^
a.cc:13:5: error: expected unqualified-id before 'while'
   13 |     while (true) {
      |     ^~~~~
a.cc:28:5: error: 'cout' does not name a type
   28 |     cout << res << endl;
      |     ^~~~
a.cc:29:3: error: expected declaration before '}' token
   29 |   }
      |   ^
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main()
{
    long long int a[200],n,i,flag=0,sum=0;
    scanf("%lld",&n);
    for(i=0;i<n;i++)
        scanf("%lld",&a[i]);
    while(flag==0)
    {
        for(i=0;i<n;i++)
        {
            if(a[i]%2!=0)
            {
                printf("%lld",sum);
                exit 0;
            }
        }
        for(i=0;i<n;i++)
        {
            a[i]=a[i]/2;
        }
     sum++;
    }
  printf("%lld",sum);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:21: error: expected ';' before numeric constant
   17 |                 exit 0;
      |                     ^~
      |                     ;
Language: C++

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

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

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

    cout << res << endl;


} 



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

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

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

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

    cout << res << endl;


} 



Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before ')' token
   10 |         for(int i=0; i<N, i++) cin >> A[i]
      |                              ^
      |                              ;
a.cc:10:43: error: expected ';' before 'int'
   10 |         for(int i=0; i<N, i++) cin >> A[i]
      |                                           ^
      |                                           ;
   11 |         int res = 0;
      |         ~~~                                
a.cc:20:19: error: 'res' was not declared in this scope
   20 |                 ++res;
      |                   ^~~
a.cc:23:13: error: 'res' was not declared in this scope
   23 |     cout << res << endl;
      |             ^~~
Language: C++

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

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

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

    cout << res << endl;


} 



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

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

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

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

    cout << res << endl;


} 



Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before ')' token
   10 |         for(int i=0; i<N, i++) cin >> A[i]
      |                              ^
      |                              ;
a.cc:10:43: error: expected ';' before 'int'
   10 |         for(int i=0; i<N, i++) cin >> A[i]
      |                                           ^
      |                                           ;
   11 |         int res = 0;
      |         ~~~                                
a.cc:20:19: error: 'res' was not declared in this scope
   20 |                 ++res
      |                   ^~~
a.cc:23:13: error: 'res' was not declared in this scope
   23 |     cout << res << endl;
      |             ^~~
Language: C++

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

int main() {
bool div2 true;
int N,cnt=0; cin>>N;
  vector<int> A(N);
  for(int i=0; i<N; i++){
    cin>>A.at(i);}
  
  while(div2){
  for(int i=0; i<N; i++){
    if(A.at(i)%2!=0){div2=false;goto end;}
    else {A.at(i)/=2;}
    if(i==N-1){cnt++;}
  }
  }
  end: cout<<cnt<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before 'true'
    5 | bool div2 true;
      |           ^~~~
a.cc:11:9: error: 'div2' was not declared in this scope; did you mean 'div'?
   11 |   while(div2){
      |         ^~~~
      |         div
a.cc:18:24: error: expected '}' at end of input
   18 |   end: cout<<cnt<<endl;
      |                        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
bool div2 true;
int N,cnt=0; cin>>N;
  vector<int> A(N);
  for(int i=0; i<N i++){
    cin>>A.at(i)}
  
  while(div2){
  for(int i=0; i<N; i++){
    if(A.at(i)%2!=0){div2=false;goto end;}
    else {A.at(i)/=2;}
    if(i==N-1){cnt++;}
  }
  }
  end: cout<<cnt<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before 'true'
    5 | bool div2 true;
      |           ^~~~
a.cc:8:19: error: expected ';' before 'i'
    8 |   for(int i=0; i<N i++){
      |                   ^~
      |                   ;
a.cc:9:17: error: expected ';' before '}' token
    9 |     cin>>A.at(i)}
      |                 ^
      |                 ;
a.cc:11:9: error: 'div2' was not declared in this scope; did you mean 'div'?
   11 |   while(div2){
      |         ^~~~
      |         div
a.cc:18:24: error: expected '}' at end of input
   18 |   end: cout<<cnt<<endl;
      |                        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int n,count=0,flag=0;
  int a[200];
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>a[i];
  }
  while(flag==0){
    for(int i=0;i<n;i++){
    if(a[i]%2!=0){
      brake;
      flag++;
    }
    a[i]=a[i]/2;
    count++;
  	}
  }
  cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'brake' was not declared in this scope; did you mean 'brk'?
   14 |       brake;
      |       ^~~~~
      |       brk
Language: C++

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

int main() {
  int n,count=0,flag=0;
  int a[200];
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>a[i];
  }
  while(flag==0){
    for(int i=0;i<n;i++){
    if(a[i]%2!=0){
      brake;
      flag++;
    }
    a[i]=a[i]/2
    count++;
  	}
  }
  cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'brake' was not declared in this scope; did you mean 'brk'?
   14 |       brake;
      |       ^~~~~
      |       brk
a.cc:17:16: error: expected ';' before 'count'
   17 |     a[i]=a[i]/2
      |                ^
      |                ;
   18 |     count++;
      |     ~~~~~
Language: C++

int main() {
  int n, count;
  vector<int> nums;
  cin >> n;
  for(int i=0;i<n;i++){
    int num=0;
    cin >> num;
    nums.push_back(num);
  }
  for(int i=0; i<nums.size(); i++){
    if(nums[i] % 2 ==0)
      nums[i] = nums[i] %2;
    else
      break;
    count++;
  }
  cout << count << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'vector' was not declared in this scope
    3 |   vector<int> nums;
      |   ^~~~~~
a.cc:3:10: error: expected primary-expression before 'int'
    3 |   vector<int> nums;
      |          ^~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> n;
      |   ^~~
a.cc:8:5: error: 'nums' was not declared in this scope; did you mean 'num'?
    8 |     nums.push_back(num);
      |     ^~~~
      |     num
a.cc:10:18: error: 'nums' was not declared in this scope
   10 |   for(int i=0; i<nums.size(); i++){
      |                  ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   17 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |   cout << count << endl;
      |                    ^~~~
Language: C++

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

int div(int n){
  if(n%2==1){
    return 0;
  }else{
    return div(int(n/2))+1;
  }
}
    
int main(){
  int N;
  cin >> N;
  vector<int>a(N);
  for(int i=0;i<N;i++){
    cin >> a.at(N);
  }
 int min=div(a.at(0));
  for(int i=1;i<N;i++){
    int d=div(a.at(i))
    if(d<min){
      min=d;
    }
  }
  cout << min <<endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: expected ',' or ';' before 'if'
   22 |     if(d<min){
      |     ^~
Language: C++

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

int div(int &n){
  if(n%2==1){
    return 0;
  }else{
    return div(n/2)+1;
  }
}
    
int main(){
  int N;
  cin >> N;
  vector<int>a(N);
  for(int i=0;i<N;i++){
    cin >> a.at(N);
  }
 int min=div(a.at(0));
  for(int i=1;i<N;i++){
    if(div(a.at(i))<min){
      min=div(a.at(i));
    }
  }
  cout << min <<endl;
}
  

Compiler output:
a.cc: In function 'int div(int&)':
a.cc:8:17: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
    8 |     return div(n/2)+1;
      |                ~^~
a.cc:4:14: note:   initializing argument 1 of 'int div(int&)'
    4 | int div(int &n){
      |         ~~~~~^
Language: C++

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

int main(){
  int n, a, s, t;
  t = 100;
  cin >> n;
  for(int i = 0; i < n; i++){
    cin >> a;
    s = 0;
    for(int j = 0; ; j++){
      if(a % 2 == 0) {
        s++;
        a = a / 2;
      else break;
    }
    t = min(s, t);
  }
  cout << t << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: expected '}' before 'else'
   15 |       else break;
      |       ^~~~
a.cc:12:22: note: to match this '{'
   12 |       if(a % 2 == 0) {
      |                      ^
Language: C++

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

int N;
int A[200];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: expected ';' before 'if'
   20 |     break if(odd_flag);
      |          ^~~
      |          ;
Language: C++

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

int N;
int A[200];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: expected ';' before 'if'
   20 |     break if odd_flag;
      |          ^~~
      |          ;
a.cc:20:14: error: expected '(' before 'odd_flag'
   20 |     break if odd_flag;
      |              ^~~~~~~~
      |              (
Language: C++

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

int N;
int A[200];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   ans =0 ;
      |   ^~~
      |   abs
a.cc:18:14: error: expected ';' before '}' token
   18 |       A[i]/=2
      |              ^
      |              ;
   19 |     }
      |     ~         
a.cc:20:5: error: 'beak' was not declared in this scope
   20 |     beak if odd_flag;
      |     ^~~~
Language: C

int main() {
    printf("%d\n", solve());
    return 0;
    int n;
    scanf("%d", &n);
    int s[201];
    int ans=0;
    for (int i = 0; i < n; i++) {
        scanf("%d", &s[i]);
        if ( s[i] % 2 != 0) {
            printf("0\n");
            return 0;
        }
        s[i] = s[i] / 2;
    }
    ans++;
    while(1) {
        for (int i = 0; i < n; i++) {
            if ( s[i] % 2 != 0) {
                printf("%d\n", ans);
                return 0;
            }else {
                s[i] = s[i] / 2;
            }
        ans++;
        }
    }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 |     printf("%d\n", solve());
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:2:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    2 |     printf("%d\n", solve());
      |     ^~~~~~
main.c:2:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:20: error: implicit declaration of function 'solve' [-Wimplicit-function-declaration]
    2 |     printf("%d\n", solve());
      |                    ^~~~~
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     scanf("%d", &n);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
Language: C++

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

int a[210];
int main(void) {
	int N;
	cin >> N;
	for (i = 0; i < N; i++) {
		cin >> a[i];
	}
	int ans = 0;
	while(i) {
		bool odd = false;
		for (i = 0; i < N; i++) {
			if (a[i] % 2 == 1) {
				odd = true;
			}
		}
		if(odd) break;
		ans++;
		for (i = 0; i < N; i++) {
			a[i] /= 2;
		}
	}
	cout << ans << endl;
	return 0;
}

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

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

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

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

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 1000000009;
        for(int i = 0;i < n;i++){
            int a = sc.nextInt();
            int cnt = 0;
            while(a > 0 && a%2 == 0){
                a /= 2;
                cnt++;
            }
            if(ans > cnt)ans = cnt;
        }
        System.out.println(ans);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:19:2: error: expected ';' after class definition
   19 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:17: error: 'sc' was not declared in this scope
    6 |         int n = sc.nextInt();
      |                 ^~
a.cc:17:9: error: 'System' was not declared in this scope
   17 |         System.out.println(ans);
      |         ^~~~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  std::vector<int> vec;
  
  //input
  int input_num;
  int buf;
  cin >> input_num;
  
  for(int i=0;i<input_num;i++){
    cin >> buf;
    vec.push_back(buf);
  }
  
  //calc
  int total = 0;
  int fin_flag = 0;
  while(1){
    vector<int>::iterator iter;
    for(iter = vec.begin();iter != vec.end();++iter){
      if(*iter%2 == 0){
        *iter%2 = *iter/2;
      }else{
        fin_flag = 1;
      }
    }
    if (fin_flag != 0)break;
    total++;
  }
  
  cout << total << endl;
  
  
}


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

#include <iostream>
#include <vector>

using namespace std;

int main(){
  std::vector<int> vec;
  
  //input
  int input_num;
  int buf;
  cin >> input_num;
  
  for(int i=0;i<input_num;i++){
    cin >> buf;
    vec.push_back(buf);
  }
  
  //calc
  int total = 0;
  int fin_flag = 0;
  while(1){
    vector<int>::iterator iter
    for(iter = vec.begin();iter != vec.end();++iter){
      if(*iter%2 == 0){
        *iter%2 = *iter/2;
      }else{
        fin_flag = 1;
      }
    }
    if (fin_flag != 0)break;
    total++;
  }
  
  cout << total << endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: expected initializer before 'for'
   24 |     for(iter = vec.begin();iter != vec.end();++iter){
      |     ^~~
a.cc:24:28: error: 'iter' was not declared in this scope
   24 |     for(iter = vec.begin();iter != vec.end();++iter){
      |                            ^~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  std::vector<int> vec;
  
  //input
  int input_num;
  cin >> input_num;
  
  for(int i=0,i<input_num;i++){
    cin >> buf;
    vec.push_back(buf);
  }
  
  //calc
  int total = 0;
  int fin_flag = 0;
  while(1){
    for(iter = vec.begin();iter != vec.end();++iter){
      if(*iter%2 == 0){
        *iter%2 = *iter/2;
      }else{
        fin_flag = 1;
      }
    }
    if (fin_flag != 0)break;
    total++;
  }
  
  cout << total << endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before '<' token
   13 |   for(int i=0,i<input_num;i++){
      |                ^
      |                ;
a.cc:13:16: error: expected primary-expression before '<' token
a.cc:14:12: error: 'buf' was not declared in this scope
   14 |     cin >> buf;
      |            ^~~
a.cc:22:9: error: 'iter' was not declared in this scope
   22 |     for(iter = vec.begin();iter != vec.end();++iter){
      |         ^~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  std::vector<int> vec;
  
  #input
  int input_num;
  cin >> input_num;
  
  for(i=0,i<input_num;i++){
    cin >> buf;
    vec.push_back(buf);
  }
  
  #calc
  int total = 0;
  int fin_flag = 0;
  while(!){
    for(iter = vec.begin();iter != vec.end();++iter){
      if(*iter%2 == 0){
        *iter%2 = *iter/2;
      }else{
        fin_flag = 1;
      }
    }
    if (fin_flag != 0)break;
    total++;
  }
  
  cout << total << endl;
  
  
}

Compiler output:
a.cc:9:4: error: invalid preprocessing directive #input
    9 |   #input
      |    ^~~~~
a.cc:18:4: error: invalid preprocessing directive #calc
   18 |   #calc
      |    ^~~~
a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
   13 |   for(i=0,i<input_num;i++){
      |       ^
a.cc:13:26: error: expected ';' before ')' token
   13 |   for(i=0,i<input_num;i++){
      |                          ^
      |                          ;
a.cc:14:12: error: 'buf' was not declared in this scope
   14 |     cin >> buf;
      |            ^~~
a.cc:21:10: error: expected primary-expression before ')' token
   21 |   while(!){
      |          ^
a.cc:22:9: error: 'iter' was not declared in this scope
   22 |     for(iter = vec.begin();iter != vec.end();++iter){
      |         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'INF' was not declared in this scope
    5 |   int N,A,min=INF,ans;
      |               ^~~
a.cc:8:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     ans=0;
      |     ^~~
      |     abs
a.cc:14:10: error: 'min' cannot be used as a function
   14 |   min=min(ans,min);
      |       ~~~^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: 'INF' was not declared in this scope
    4 |   int N,A,min=INF,ans;
      |               ^~~
a.cc:7:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     ans=0;
      |     ^~~
      |     abs
a.cc:13:10: error: 'min' cannot be used as a function
   13 |   min=min(ans,min);
      |       ~~~^~~~~~~~~
Language: C++

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;

#define ll         long long
#define PI         acos(-1.0)
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)

int N;
int A[200];
int ct;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:37:15: error: expected primary-expression before '/' token
   37 |         A[i] =/ 2;
      |               ^
Language: C++

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
using namespace std;

#define ll         long long
#define PI         acos(-1.0)
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)

int N;
int A[200];
int ct;

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


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

#include <iostream>
#include <string>

namespace using std;
int main() {
  int A[200];
  int N;
  int count = 0;
  
  cin >> N;
  for (int i=0; i < N; ++i) {
    cin >> A[i];
  }
  while(1) {
    for (int i=0; i < N; ++i) {
      if (A[i] ^ 1 == 1) {
        cout << count;
        return 1;
      } else {
        A[i] /= 2;
      }
    }
    ++count;
  }
  return 0;
}

Compiler output:
a.cc:4:11: error: expected identifier before 'using'
    4 | namespace using std;
      |           ^~~~~
a.cc:4:17: error: expected nested-name-specifier before 'std'
    4 | namespace using std;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   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:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         cout << count;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'for'
    9 |     ans = 100
      |              ^
      |              ;
   10 |   for (int i = 0; i < N; i++) {
      |   ~~~         
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, a[n], i, all_even = 1;
  int answer=0;
  cin >> n;
  for(i=0; i<n; i++) {
    cin >> a[i];
  }
  while (all_even = 1) {
    for(i=0; i<n; i++) {
      if((a[i] % 2) != 0) {
        all_even = 0
        break;
      }
      a[i] /= 2;
    }
    if(all_even == 1) answer++;
  }
  cout << answer;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: expected ';' before 'break'
   13 |         all_even = 0
      |                     ^
      |                     ;
   14 |         break;
      |         ~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before '<' token
    9 |   for (int i = 0; i =< N; ++i) cin >> A[i];
      |                      ^