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

#include <iostream>
using namespace std;

int main(){
    int n,i;
    int count=0,odd=0;

    cin>> n;

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

    while(1){
        for(i=0; i<n; i++){
            if(a[i]%2!=0) odd++;
        }
        if(odd!=0) break;

        for(i=0; i<n; i++){
            a[ni=a[i]/2;
        }
        count++;

    }
    cout<< count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:15: error: 'ni' was not declared in this scope; did you mean 'i'?
   22 |             a[ni=a[i]/2;
      |               ^~
      |               i
a.cc:22:24: error: expected ']' before ';' token
   22 |             a[ni=a[i]/2;
      |                        ^
      |                        ]
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(http://System.in);
    int n = sc.nextInt();
    int che = 30;
    for(int i = 1 ; i <= n ; i++){
      int a = sc.nextInt();
      int zyo = 0;
      int cou = 0;
      while(zyo == 0){
        if(a % 2 == 1){
          zyo = 1;
        }else{
          cou = cou + 1;
          a = a / 2;
        }
      }
      if(cou < che){
         che = cou;
      }
    }
    System.out.println(che);
    sc.close();
  }
}

Compiler output:
Main.java:4: error: ')' or ',' expected
    Scanner sc = new Scanner(http://System.in);
                                 ^
1 error
Language: Java

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


Compiler output:
Main.java:11: error: illegal character: '\u3000'
      ?boolean bool = false;
      ^
1 error
Language: Java

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


Compiler output:
Main.java:3: error: <identifier> expected
	public static void main(String{} args){
	                              ^
Main.java:3: error: <identifier> expected
	public static void main(String{} args){
	                                     ^
2 errors
Language: Java

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

Compiler output:
Main.java:3: error: <identifier> expected
	public static void main(String{} args){
	                              ^
Main.java:3: error: <identifier> expected
	public static void main(String{} args){
	                                     ^
2 errors
Language: Java

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

Compiler output:
Main.java:24: error: reached end of file while parsing
  }
   ^
1 error
Language: C++

#include <stdio.h>
#include <string.h>
#include <iostream>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

int main() {
	int N;
	cin >> N;
	int[N] a = {};
	int count = 0;
	while (1) {
		rep(i, N) {
			if (a[i] % 2 != 0) {
				goto OUT;
			}
			else {
				a[i] /= 2;
			}
		}
		count++;
	}
OUT:
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: structured binding declaration cannot have type 'int'
   10 |         int[N] a = {};
      |            ^~~
a.cc:10:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:13: error: conflicting declaration 'auto N'
   10 |         int[N] a = {};
      |             ^
a.cc:8:13: note: previous declaration as 'int N'
    8 |         int N;
      |             ^
a.cc:10:16: error: expected initializer before 'a'
   10 |         int[N] a = {};
      |                ^
a.cc:14:29: error: 'a' was not declared in this scope
   14 |                         if (a[i] % 2 != 0) {
      |                             ^
Language: C++

#include <stdio.h>
#include <string.h>
#include <iostream>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

int main() {
	int N;
	cin >> N;
	int[N] a;
	int count = 0;
	while (1) {
		rep(i, N) {
			if (a[i] % 2 != 0) {
				goto OUT;
			}
			else {
				a[i] /= 2;
			}
		}
		count++;
	}
OUT:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: structured binding declaration cannot have type 'int'
   10 |         int[N] a;
      |            ^~~
a.cc:10:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:13: error: conflicting declaration 'auto N'
   10 |         int[N] a;
      |             ^
a.cc:8:13: note: previous declaration as 'int N'
    8 |         int N;
      |             ^
a.cc:10:16: error: expected initializer before 'a'
   10 |         int[N] a;
      |                ^
a.cc:14:29: error: 'a' was not declared in this scope
   14 |                         if (a[i] % 2 != 0) {
      |                             ^
a.cc:24:1: warning: label at end of compound statement only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions]
   24 | }
      | ^
Language: C

#include <stdio.h>
int main()
{
        int a, number[255], n, ans = 0, i = 0, copy = 546461;
        scanf("%d", &a);
        for (n = 0; n <= a - 1; n++) {
                scanf("%d", &number[n]);
        }
    for (ans = 0; ans<200 ; ans++) {
        for (i=0; i<n; i++) {
            if (q[i]%2==0) {
                q[i]=q[i]/2;
            } else {
                flag++;
            }
        }
        if (flag!=0) {
            break;
        }
    }
    printf("%d", ans);
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: 'q' undeclared (first use in this function)
   11 |             if (q[i]%2==0) {
      |                 ^
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:17: error: 'flag' undeclared (first use in this function)
   14 |                 flag++;
      |                 ^~~~
Language: C

#include <stdio.h>
int main()
{
	int a, number[255], n, ans = 0, i = 0, copy = 546461;
    scanf_s("%d", &a);
	for (n = 0; n <= a - 1; n++) {
		scanf("%d", &number[n]);
	}
	do
	{
		if (number[i] % 2 == 0) {
			number[i] /= 2;
			ans++;
		}else (number[i] % 2 != 0) {
			if (ans < copy) {
				copy = ans;
			}
			i++;
			ans = 0;
		}
	} while (i == n);
	printf("%d", copy);
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     scanf_s("%d", &a);
      |     ^~~~~~~
      |     scanf
main.c:14:43: error: expected ';' before '{' token
   14 |                 }else (number[i] % 2 != 0) {
      |                                           ^~
      |                                           ;
Language: C

#include <stdio.h>
int main()
{
	int a, number[255], n, ans = 0, i = 0, copy = 546461;
    scanf_s("%d", &a);
	for (n = 0; n <= a - 1; n++) {
		scanf_s("%d", &number[n]);
	}
	do
	{
		if (number[i] % 2 == 0) {
			number[i] /= 2;
			ans++;
		}
      if(number[i] % 2 != 0) {
			if (ans < copy) {
				copy = ans;
			}
			i++;
			ans = 0;
		}
	} while (i == n);
	printf("%d", copy);
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     scanf_s("%d", &a);
      |     ^~~~~~~
      |     scanf
Language: C

#include <stdio.h>
int main()
{
	int a, number[255], n, ans = 0, i = 0, copy = 546461;
    scanf_s("%d", &a);
	for (n = 0; n <= a - 1; n++) {
		scanf_s("%d", &number[n]);
	}
	do
	{
		if (number[i] % 2 == 0) {
			number[i] /= 2;
			ans++;
		}else (number[i] % 2 != 0) {
			if (ans < copy) {
				copy = ans;
			}
			i++;
			ans = 0;
		}
	} while (i == n);
	printf("%d", copy);
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     scanf_s("%d", &a);
      |     ^~~~~~~
      |     scanf
main.c:14:43: error: expected ';' before '{' token
   14 |                 }else (number[i] % 2 != 0) {
      |                                           ^~
      |                                           ;
Language: C

#include <stdio.h>
int main()
{
	int a, number[255], n, ans = 0, i = 0, copy = 546461;
	printf("データ数:");
	scanf_s("%d", &a);
	printf("データ入力");
	for (n = 0; n <= a - 1; n++) {
		scanf_s("%d", &number[n]);
	}
	do
	{
		if (number[i] % 2 == 0) {
			number[i] /= 2;
			ans++;
		}
		if (number[i] % 2 != 0) {
			if (ans < copy) {
				copy = ans;
			}
			i++;
			ans = 0;
		}
		if (i == n) {
			break;
		}
	} while (true);
	printf("%d", copy);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
main.c:27:18: error: 'true' undeclared (first use in this function)
   27 |         } 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:27:18: note: each undeclared identifier is reported only once for each function it appears in
   27 |         } while (true);
      |                  ^~~~
Language: C

	int a, number[255], n, ans = 0, i = 0, copy = 546461;
	printf("データ数:");
	scanf("%d", &a);
	printf("データ入力");
	for (n = 0; n <= a - 1; n++) {
		scanf("%d", &number[n]);
	}
	do
	{
		if (number[i] % 2 == 0) {
			number[i] /= 2;
			ans++;
		}
		if (number[i] % 2 != 0) {
			if (ans < copy) {
				copy = ans;
			}
			i++;
			ans = 0;
		}
		if (i == n) {
			break;
		}
	} while (true);
	printf("%d", copy);
}

Compiler output:
main.c:2:16: error: expected declaration specifiers or '...' before string constant
    2 |         printf("データ数:");
      |                ^~~~~~~~~~~
main.c:3:15: error: expected declaration specifiers or '...' before string constant
    3 |         scanf("%d", &a);
      |               ^~~~
main.c:3:21: error: expected declaration specifiers or '...' before '&' token
    3 |         scanf("%d", &a);
      |                     ^
main.c:4:16: error: expected declaration specifiers or '...' before string constant
    4 |         printf("データ入力");
      |                ^~~~~~~~~~~~
main.c:5:9: error: expected identifier or '(' before 'for'
    5 |         for (n = 0; n <= a - 1; n++) {
      |         ^~~
main.c:5:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    5 |         for (n = 0; n <= a - 1; n++) {
      |                       ^~
main.c:5:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 |         for (n = 0; n <= a - 1; n++) {
      |                                  ^~
main.c:8:9: error: expected identifier or '(' before 'do'
    8 |         do
      |         ^~
main.c:24:11: error: expected identifier or '(' before 'while'
   24 |         } while (true);
      |           ^~~~~
main.c:25:16: error: expected declaration specifiers or '...' before string constant
   25 |         printf("%d", copy);
      |                ^~~~
main.c:25:22: error: expected declaration specifiers or '...' before 'copy'
   25 |         printf("%d", copy);
      |                      ^~~~
main.c:26:1: error: expected identifier or '(' before '}' token
   26 | }
      | ^
Language: C

#include <stdio.h>
int main()
{
	int a, number[255], n, ans = 0, i = 0, copy = 546461;
	scanf_s("%d", &a);
	for (n = 0; n <= a - 1; n++) {
		scanf_s("%d", &number[n]);
	}
	do
	{
		if (number[i] % 2 == 0) {
			number[i] /= 2;
			ans++;
		}
		if (number[i] % 2 != 0) {
			if (ans < copy) {
				copy = ans;
			}
			i++;
			ans = 0;
		}
		if (i == n) {
			break;
		}
	} while (true);
	printf("%d", copy);
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
main.c:25:18: error: 'true' undeclared (first use in this function)
   25 |         } 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:25:18: note: each undeclared identifier is reported only once for each function it appears in
   25 |         } while (true);
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  int data[N];
  int count=0;
    for(int i=0;i<N;i++){
      cin>>data[i];
    }
  for(int i=0;i<N;i++){
    if(data[i]%2==0){
      count++;
    }
  }
  int ans=0;
  int sum=0;
  if(count==data.size()){
    for(int i=0;i<N;i++){
      if(data[i]%2==0){
        ans++;
      }
     if(data.size==ans){
       sum++;
     }
    }
  }
}   


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: request for member 'size' in 'data', which is of non-class type 'int [N]'
   18 |   if(count==data.size()){
      |                  ^~~~
a.cc:23:14: error: request for member 'size' in 'data', which is of non-class type 'int [N]'
   23 |      if(data.size==ans){
      |              ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  int t=0;
  int m=0;
  for(int i=0;<N;i++){
    int a;
    cin >> a;
    while(a%2>0){
      t++;
    }
    if(m<t){
      m=t;
    }
  }
  cout << m << endl;
}


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

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

int main() {
  int N;
  cin >> N;
  int t;
  int m=0;
  for(int i=0;<N;i++){
    int a;
    cin >> a;
    while(a%2>0){
      t++;
    }
    if(m<t){
      m=t;
    }
  }
  cout << t << endl;
}


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

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

int main() {
  int N;
  cin >> N;
  int t;
  int m=0;
  for(int i<N;i++){
    int a;
    cin >> a;
    while(a%2>0){
      t++;
    }
    if(m<t){
      m=t;
    }
  }
  cout << t << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before '<' token
    9 |   for(int i<N;i++){
      |            ^
      |            ;
a.cc:9:12: error: expected primary-expression before '<' token
Language: C

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

int N, A[200];

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


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

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

int main() {
  int N;
  bool M=true;
  int Z=0;
  cin >> N;
  vector<int>vec(N);
  for (int X=0; X<N; X++){
    cin >> vec.at(X);
  }
  for (int Y=0; M==true; Y++){
  for (int X=0; X<N; X++){
    if (vec.at(X)%2==0){
      vec.at(X)/=2;
    }
    else{
      M=false;
      break;
    }
    if (X==N-1){
      Z+=1;
    }
  }
  cout << Z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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 count;
  count=0;
  for(int i=0;i<1000;i++){
    for(int j=0;j<N;j++){
      if(A.at(j)%2!=0){
        cout<<count;
        return 0;
      }
      A.at(j)/=2;
    }
    count++;
  }
  cout<<count;
}

    


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++){
      |   ^~~
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<N;i++){
      |               ^
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 count;
  count=0;
  for(int i=0;i<1000;i++){
    for(int j=0;j<N;j++){
      if(A.at(j)%2!=0){
        cout<<count;
        return 0;
      }
      A.at(j)/=2;
    }
    count++;
  }
  cout<<count;
}

    

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++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected '(' before '{' token
   13 |   while{
      |        ^
      |        (
a.cc:13:8: error: expected primary-expression before '{' token
a.cc:13:8: error: expected ')' before '{' token
   13 |   while{
      |        ^
      |        )
a.cc:15:17: error: expected primary-expression before '!=' token
   15 |       if(A[i] % !=0) break;
      |                 ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i = 0; i < N; i++) cin >> A[i];
      |       ^
a.cc:13:8: error: expected '(' before '{' token
   13 |   while{
      |        ^
      |        (
a.cc:13:8: error: expected primary-expression before '{' token
a.cc:13:8: error: expected ')' before '{' token
   13 |   while{
      |        ^
      |        )
a.cc:14:9: error: 'i' was not declared in this scope
   14 |     for(i = 0; i < N; i++){
      |         ^
a.cc:15:17: error: expected primary-expression before '!=' token
   15 |       if(A[i] % !=0) break;
      |                 ^~
Language: C++

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

int main() {
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  int res=0;
  while(true){
    bool exist_odd=false;
    for (size_t i = 0; i < N; i++) {
      /* code */

      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < N; i++) {
      /* code */
      A[i]/=2;
    }
    ++res
  }

  out << res << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: expected ';' before '}' token
   23 |     ++res
      |          ^
      |          ;
   24 |   }
      |   ~       
a.cc:26:3: error: 'out' was not declared in this scope
   26 |   out << res << endl;
      |   ^~~
Language: C++

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

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

  out << res << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'exist_odd' was not declared in this scope
   17 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:22:10: error: expected ';' before '}' token
   22 |     ++res
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:25:3: error: 'out' was not declared in this scope
   25 |   out << res << endl;
      |   ^~~
Language: C++

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

int main() {
  for (int i = 0; i < 100; i++) {
    cin >> A[i];
  }
  int res=0;
  while(true){
    for (size_t i = 0; i < count; i++) {
      /* code */
      bool exist_odd=false;
      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < count; i++) {
      /* code */
      A[i]/=2;
    }
    ++res
  }

  out << res << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: 'count' was not declared in this scope
   12 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:17:9: error: 'exist_odd' was not declared in this scope
   17 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:18:28: error: 'count' was not declared in this scope
   18 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:22:10: error: expected ';' before '}' token
   22 |     ++res
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:25:3: error: 'out' was not declared in this scope
   25 |   out << res << endl;
      |   ^~~
Language: C++

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

int main() {
  for (int i = 0; i < 100; i++) {
    cin >> A[i]);
  }
  int res=0;
  while(true){
    for (size_t i = 0; i < count; i++) {
      /* code */
      bool exist_odd=false;
      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < count; i++) {
      /* code */
      A[i]/=2;
    }
    ++res
  }

  out << res << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before ')' token
    8 |     cin >> A[i]);
      |                ^
      |                ;
a.cc:12:28: error: 'count' was not declared in this scope
   12 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:17:9: error: 'exist_odd' was not declared in this scope
   17 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:18:28: error: 'count' was not declared in this scope
   18 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:22:10: error: expected ';' before '}' token
   22 |     ++res
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:25:3: error: 'out' was not declared in this scope
   25 |   out << res << endl;
      |   ^~~
Language: C++

#include <iostream>
using namespace std;
int N;
vector<int> vec(210);

int main() {
  for (int i = 0; i < 100; i++) {
    cin >> vec.at(i);
  }
  int res=0;
  while(true){
    for (size_t i = 0; i < count; i++) {
      /* code */
      bool exist_odd=false;
      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < count; i++) {
      /* code */
      A[i]/=2;
    }
    ++res
  }

  out << res << endl;


}


Compiler output:
a.cc:4:1: error: 'vector' does not name a type
    4 | vector<int> vec(210);
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:8:12: error: 'vec' was not declared in this scope
    8 |     cin >> vec.at(i);
      |            ^~~
a.cc:12:28: error: 'count' was not declared in this scope
   12 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:15:11: error: 'A' was not declared in this scope
   15 |       if (A[i] != 0)exist_odd=false;
      |           ^
a.cc:17:9: error: 'exist_odd' was not declared in this scope
   17 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:18:28: error: 'count' was not declared in this scope
   18 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:20:7: error: 'A' was not declared in this scope
   20 |       A[i]/=2;
      |       ^
a.cc:22:10: error: expected ';' before '}' token
   22 |     ++res
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:25:3: error: 'out' was not declared in this scope
   25 |   out << res << endl;
      |   ^~~
Language: C++

#include <iostream>
using namespace std;
int N;
vector<int> vec(N);

int main() {
  for (int i = 0; i < 100; i++) {
    cin >> vec.at(i);
  }
  int res=0;
  while(true){
    for (size_t i = 0; i < count; i++) {
      /* code */
      bool exist_odd=false;
      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < count; i++) {
      /* code */
      A[i]/=2;
    }
    ++res
  }

  out << res << endl;


}


Compiler output:
a.cc:4:1: error: 'vector' does not name a type
    4 | vector<int> vec(N);
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:8:12: error: 'vec' was not declared in this scope
    8 |     cin >> vec.at(i);
      |            ^~~
a.cc:12:28: error: 'count' was not declared in this scope
   12 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:15:11: error: 'A' was not declared in this scope
   15 |       if (A[i] != 0)exist_odd=false;
      |           ^
a.cc:17:9: error: 'exist_odd' was not declared in this scope
   17 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:18:28: error: 'count' was not declared in this scope
   18 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:20:7: error: 'A' was not declared in this scope
   20 |       A[i]/=2;
      |       ^
a.cc:22:10: error: expected ';' before '}' token
   22 |     ++res
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:25:3: error: 'out' was not declared in this scope
   25 |   out << res << endl;
      |   ^~~
Language: C++

#include <iostream>
using namespace std;
int N;
vector<int> vec(N);

int main() {

  for (int i = 0; i < 100; i++) {
    cin >> vec.at(i);
  }
  int res=0;
  while(true){
    for (size_t i = 0; i < count; i++) {
      /* code */
      bool exist_odd=false;
      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < count; i++) {
      /* code */
      A[i]/=2;
    }
    ++res
  }

  std::cout << res << '\n';


}


Compiler output:
a.cc:4:1: error: 'vector' does not name a type
    4 | vector<int> vec(N);
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:9:12: error: 'vec' was not declared in this scope
    9 |     cin >> vec.at(i);
      |            ^~~
a.cc:13:28: error: 'count' was not declared in this scope
   13 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:16:11: error: 'A' was not declared in this scope
   16 |       if (A[i] != 0)exist_odd=false;
      |           ^
a.cc:18:9: error: 'exist_odd' was not declared in this scope
   18 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:19:28: error: 'count' was not declared in this scope
   19 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:21:7: error: 'A' was not declared in this scope
   21 |       A[i]/=2;
      |       ^
a.cc:23:10: error: expected ';' before '}' token
   23 |     ++res
      |          ^
      |          ;
   24 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;
int N;
vector<int> vec(N);

int main() {

  for (int i = 0; i < 100; i++) {
    cin >> vec.at(i);
  }
  int res=0;
  while(true){
    for (size_t i = 0; i < count; i++) {
      /* code */
      bool exist_odd=false;
      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < count; i++) {
      /* code */
      A[i]/=2
    }
    ++res
  }

  std::cout << res << '\n';


}


Compiler output:
a.cc:4:1: error: 'vector' does not name a type
    4 | vector<int> vec(N);
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:9:12: error: 'vec' was not declared in this scope
    9 |     cin >> vec.at(i);
      |            ^~~
a.cc:13:28: error: 'count' was not declared in this scope
   13 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:16:11: error: 'A' was not declared in this scope
   16 |       if (A[i] != 0)exist_odd=false;
      |           ^
a.cc:18:9: error: 'exist_odd' was not declared in this scope
   18 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:19:28: error: 'count' was not declared in this scope
   19 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:21:7: error: 'A' was not declared in this scope
   21 |       A[i]/=2
      |       ^
a.cc:23:10: error: expected ';' before '}' token
   23 |     ++res
      |          ^
      |          ;
   24 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  vector<int> vec(N);
  for (int i = 0; i < 100; i++) {
    cin >> vec.at(i);
  }
  int res=0;
  while(true){
    for (size_t i = 0; i < count; i++) {
      /* code */
      bool exist_odd=false;
      if (A[i] != 0)exist_odd=false;
    }
    if (exist_odd)break;
    for (size_t i = 0; i < count; i++) {
      /* code */
      A[i]/=2
    }
    ++res
  }

  std::cout << res << '\n';


}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> vec(N);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> vec(N);
      |          ^~~
a.cc:8:12: error: 'vec' was not declared in this scope
    8 |     cin >> vec.at(i);
      |            ^~~
a.cc:12:28: error: 'count' was not declared in this scope
   12 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:15:11: error: 'A' was not declared in this scope
   15 |       if (A[i] != 0)exist_odd=false;
      |           ^
a.cc:17:9: error: 'exist_odd' was not declared in this scope
   17 |     if (exist_odd)break;
      |         ^~~~~~~~~
a.cc:18:28: error: 'count' was not declared in this scope
   18 |     for (size_t i = 0; i < count; i++) {
      |                            ^~~~~
a.cc:20:7: error: 'A' was not declared in this scope
   20 |       A[i]/=2
      |       ^
a.cc:22:10: error: expected ';' before '}' token
   22 |     ++res
      |          ^
      |          ;
   23 |   }
      |   ~
Language: Java

public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int[] numbers = new int[220];
		int num;

		int N = sc.nextInt();
		for (int i=0; i<N; i++) {
			num = sc.nextInt();
			numbers[i] = num;
		}
		sc.close();

		int cnt=0;
		String judge = "all_even";
		while(true) {

			for (int i=0; i<N; i++) {
				if (numbers[i]%2!=0) {
					judge = "has_odd";
				}
			}
			if(judge=="has_odd") break;

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

			cnt ++;
		}
		System.out.println(cnt);


	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected ';' before 'cin'
    5 |   b=10000
      |          ^
      |          ;
    6 |   cin >> n;
      |   ~~~     
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'b' was not declared in this scope
    4 |   b=10000
      |   ^
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n;
      |          ^
      |          yn
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n;i++) {
      |       ^
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
a.cc:9:5: error: 'a' was not declared in this scope
    9 |     a=0;
      |     ^
Language: C++

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

Compiler output:
a.cc:4:5: warning: integer constant is too large for its type
    4 |   b=1000000000000000000000000
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'b' was not declared in this scope
    4 |   b=1000000000000000000000000
      |   ^
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n;
      |          ^
      |          yn
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n;i++) {
      |       ^
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
a.cc:9:5: error: 'a' was not declared in this scope
    9 |     a=0;
      |     ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> A(N);
  for(int i=0;i<N;i++){
    cin >> A.at(i);
  }
  int count1=0;
  int count2=0;
  for(int i=0;i<N;i++){
    for(int j=0;j<100;j++){
      if(A.at(i)%2==0){
        count1++;
        A.at(i)/=2;
      }
      else{
        if(i==0){
          count2=count1;
          count1=0;
          break;
        }
        else{
          min(count1, count2)=count2;
          break;
        }
      }
    }
  }
  cout << count2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:30: error: assignment of read-only location 'std::min<int>(count1, count2)'
   26 |           min(count1, count2)=count2;
      |           ~~~~~~~~~~~~~~~~~~~^~~~~~~
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 count1=0;
  int count2=0;
  for(int i=0;i<N;i++){
    for(int j=0;j<100;j++){
      if(A.at(i)%2==0){
        count1++;
        A.at(i)/=2;
      }
      else{
        if(i==0){
          count2=count1;
          count1=0;
          break;
        }
        else{
          min(count1,count2)=count2;
          break;
        }
      }
    }
  }
  cout << count2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:29: error: assignment of read-only location 'std::min<int>(count1, count2)'
   26 |           min(count1,count2)=count2;
      |           ~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

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

typedef long long Int;

int main() {
  Int N;
  cin >> N;
  vector<Int> A(N);
  for (int i = 0; i < N; i++) cin >> A[i];
  
  Int ans = 10000;
  
  for (int i = 0; i < N; i++) {
    int cnt = 0;
    while(true) {
      if (A[i] % 2 == 1) {
        break;
      }
      else {
        A[i] /= 2;
        cnt++;
      }
      if (cnt > ans) {
        break;
      }
    }
    ans = min(ans,cnt);
  }
  
  cout << ans << endl;
}

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

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

int main() {
  int N, a[200],c=0;
  cin >> N;
  for(int i=0;i<N;i++){
  	cin >> a[i];
  }
  while(true){
  	for(int j=0;j<N,j++){
    	if(a[i]%2!=0){goto end;}
    }
    c++;
  }
  end:
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ';' before ')' token
   11 |         for(int j=0;j<N,j++){
      |                            ^
      |                            ;
a.cc:12:14: error: 'i' was not declared in this scope
   12 |         if(a[i]%2!=0){goto end;}
      |              ^
Language: C++

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

int main() {
  int N, a[200],c=0;
  cin >> N;
  for(int i=0;i<N;i++){
  	cin >> a[i];
  }
  while(true){
  	for(int j=0;j<N,i++){
    	if(a[i]%2!=0){break 2;}
    }
    c++;
  }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'i' was not declared in this scope
   11 |         for(int j=0;j<N,i++){
      |                         ^
a.cc:11:28: error: expected ';' before ')' token
   11 |         for(int j=0;j<N,i++){
      |                            ^
      |                            ;
a.cc:12:28: error: expected ';' before numeric constant
   12 |         if(a[i]%2!=0){break 2;}
      |                            ^~
      |                            ;
Language: C++

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

int main() {
  int N, a[200],c=0;
  cin >> N;
  if(int i = 0;i<N;i++){
  	cin >> a[i];
  }
  while(true){
  	if(int j = 0;j<N,i++){
    	if(a[i]%2!=0){break 2;}
    }
    c++;
  }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ')' before ';' token
    7 |   if(int i = 0;i<N;i++){
      |     ~             ^
      |                   )
a.cc:7:20: error: 'i' was not declared in this scope
    7 |   if(int i = 0;i<N;i++){
      |                    ^
a.cc:12:28: error: expected ';' before numeric constant
   12 |         if(a[i]%2!=0){break 2;}
      |                            ^~
      |                            ;
Language: C++

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

int main() {
  int N, a[200],c=0;
  cin >> N;
  if(int i=0;i<N;i++){
  	cin >> a[i];
  }
  while(true){
  	if(int j=0;j<N,i++){
    	if(a[i]%2!=0){break 2;}
    }
    c++;
  }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ')' before ';' token
    7 |   if(int i=0;i<N;i++){
      |     ~           ^
      |                 )
a.cc:7:18: error: 'i' was not declared in this scope
    7 |   if(int i=0;i<N;i++){
      |                  ^
a.cc:12:28: error: expected ';' before numeric constant
   12 |         if(a[i]%2!=0){break 2;}
      |                            ^~
      |                            ;
Language: Java

import java.util.Scanner;
public class Main{
  
  		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] hoge =new int[N];

		for (int i=0; i<N; i++) {
			hoge[i] = scan.nextInt();
		}


		//seisuuka?
		int[] hoge2 = new int[N];
		boolean b = true;
		int count = 0;
		while(b) {

			for(int i = 0; i<N; i++) {
				if((hoge[i]%2)!=0) {
					b = false;
					break;
				}
				hoge2[i] = hoge[i]/2;
				if (i==N-1) {
					hoge = hoge2;
					count = count +1;
				}


			}

		}
		System.out.println(count);


	}

}

Compiler output:
Main.java:8: error: illegal start of type
		for (int i=0; i<N; i++) {
		^
Main.java:8: error: > or ',' expected
		for (int i=0; i<N; i++) {
		                 ^
Main.java:8: error: <identifier> expected
		for (int i=0; i<N; i++) {
		                    ^
Main.java:17: error: illegal start of type
		while(b) {
		^
Main.java:17: error: <identifier> expected
		while(b) {
		       ^
Main.java:34: error: <identifier> expected
		System.out.println(count);
		                  ^
Main.java:34: error: <identifier> expected
		System.out.println(count);
		                        ^
Main.java:39: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

import java.util.Scanner;
public class Main{
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int[] hoge =new int[N];

		for (int i=0; i<N; i++) {
			hoge[i] = scan.nextInt();
		}


		//seisuuka?
		int[] hoge2 = new int[N];
		boolean b = true;
		int count = 0;
		while(b) {

			for(int i = 0; i<N; i++) {
				if((hoge[i]%2)!=0) {
					b = false;
					break;
				}
				hoge2[i] = hoge[i]/2;
				if (i==N-1) {
					hoge = hoge2;
					count = count +1;
				}


			}

		}
		System.out.println(count);


	}

}

Compiler output:
Main.java:7: error: illegal start of type
		for (int i=0; i<N; i++) {
		^
Main.java:7: error: > or ',' expected
		for (int i=0; i<N; i++) {
		                 ^
Main.java:7: error: <identifier> expected
		for (int i=0; i<N; i++) {
		                    ^
Main.java:16: error: illegal start of type
		while(b) {
		^
Main.java:16: error: <identifier> expected
		while(b) {
		       ^
Main.java:33: error: <identifier> expected
		System.out.println(count);
		                  ^
Main.java:33: error: <identifier> expected
		System.out.println(count);
		                        ^
Main.java:38: error: class, interface, enum, or record expected
}
^
8 errors
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[i];
  bool odd = false;
  int ans = 0;
  while(true){
    
    if(a[i] % 2 != 0){
      odd = true;
    }
    if(odd) break;
    for(int i = 0;i < n; ++i){
      a[i] /= 2;
    }
    ans++;
  }
  cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'i' was not declared in this scope
   12 |     if(a[i] % 2 != 0){
      |          ^
Language: C

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

Compiler output:
main.c:18:12: error: expected declaration specifiers or '...' before string constant
   18 |     printf("%d\n",cnt);
      |            ^~~~~~
main.c:18:19: error: unknown type name 'cnt'; did you mean 'int'?
   18 |     printf("%d\n",cnt);
      |                   ^~~
      |                   int
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

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


Compiler output:
main.c:18:12: error: expected declaration specifiers or '...' before string constant
   18 |     printf("%d\n",cnt);
      |            ^~~~~~
main.c:18:19: error: unknown type name 'cnt'; did you mean 'int'?
   18 |     printf("%d\n",cnt);
      |                   ^~~
      |                   int
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     scanf('%d',&n);
      |           ^~~~
main.c:5:11: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    5 |     scanf('%d',&n);
      |           ^~~~
      |           |
      |           int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c: At top level:
main.c:18:12: error: expected declaration specifiers or '...' before string constant
   18 |     printf("%d\n",cnt);
      |            ^~~~~~
main.c:18:19: error: unknown type name 'cnt'; did you mean 'int'?
   18 |     printf("%d\n",cnt);
      |                   ^~~
      |                   int
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
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:28:25: error: expected '}' at end of input
   28 |     cout << res << endl;
      |                         ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^