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

#include <iostream>
using namespace std;

int main(){
    int n;
    cin >> n;
    int a[n];
    for(int i = 0; i < n; i++){
        cin >> a[i];
    }
    sort(a, a+n);
    int ans = 0;
    while(true){
        bool result = true;
        for(int i = 0; i < n; i++){
            result &= (a[i] % 2 == 0);
            if(!result) break;
        }
        if(!result){
            break;
        } else {
            ans++;
            for(int i = 0; i < n; i++){
                a[i] /= 2;
            }
        }
    }
    cout << ans << endl;
    return 0;
}

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

#include<iostream>

using namespace std;

int main() {
  int N;
  cin >> N;
  
  vector<int> A(N);
  
  for(int i = 0; i < N; ++i) {
    cin >> A[i];
  }
  
  int ret = 0;
  
  while(true) {
    for(int i = 0; i < N; ++i) {
      if(A[i] % 2 == 0) {
        A[i] /= 2;
      } else {
        break;
      }
  	}
    
    ret++;
  }
  
  cout << ret;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<int> A(N);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | 
a.cc:9:10: error: expected primary-expression before 'int'
    9 |   vector<int> A(N);
      |          ^~~
a.cc:12:12: error: 'A' was not declared in this scope
   12 |     cin >> A[i];
      |            ^
a.cc:19:10: error: 'A' was not declared in this scope
   19 |       if(A[i] % 2 == 0) {
      |          ^
Language: C++

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

int main(){
  int n;
  vector <int> a;
  cin >> n;
  for(int i=0;i<n;i++){
    int tmp;
    cin >> tmp;
    a.push_back(tmp)
  }
  
  int counter = 0;
  while(true){
    for(int i=0;i<n;i++){
      if(a[i]%2==0){
        a[i] = a[i] / 2;
      }else{
        break;
      }
    }
    counter++;
  }
  
  cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected ';' before '}' token
   12 |     a.push_back(tmp)
      |                     ^
      |                     ;
   13 |   }
      |   ~
Language: C++

#include<iostream>
#include<vector>

int main(){
  int n;
  vector <int> a;
  cin >> n;
  for(int i=0;i<n;i++){
    int tmp;
    cin >> tmp;
    a.push_back(tmp)
  }
  
  int counter = 0;
  while(true){
    for(int i=0;i<n;i++){
      if(a[i]%2==0){
        a[i] = a[i] / 2;
      }else{
        break;
      }
    }
    counter++;
  }
  
  cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector <int> a;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:11: error: expected primary-expression before 'int'
    6 |   vector <int> a;
      |           ^~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:11:5: error: 'a' was not declared in this scope
   11 |     a.push_back(tmp)
      |     ^
a.cc:17:10: error: 'a' was not declared in this scope
   17 |       if(a[i]%2==0){
      |          ^
a.cc:26:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |   cout << counter << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |   cout << counter << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostaream>
#include<vector>

int main(){
  int n;
  vector <int> a;
  cin >> n;
  for(int i=0;i<n;i++){
    int tmp;
    cin >> tmp;
    a.push_back(tmp)
  }
  
  int counter = 0;
  while(true){
    for(int i=0;i<n;i++){
      if(a[i]%2==0){
        a[i] = a[i] / 2;
      }else{
        break;
      }
    }
    counter++;
  }
  
  cout << counter << endl;
}

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

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

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

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

int main (){
  int N;
  cin >> N;
  int A[N];
  for(int i=0;i<N;i++){
    cin >> A[i];
  }
  int cnt=0;
  int ans=0;
  bool F=ture;
  while(F){
  for(int i=0;i<N;i++){
    if(A[i]%2==0){
      cnt++;
      A[i]/=2;
    }
    if(cnt==N){
      ans++;
      cnt=0;
    }else{
      F=false;
      break;
    }
  }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'ture' was not declared in this scope
   13 |   bool F=ture;
      |          ^~~~
Language: C

#include <stdio.h>
int main(void){
  int m,i,l[201],k;
  scanf("%d\n",&m);
  for(i=0;i<=m;i++){
    scanf("%d ",&l[i]);
    if(!(l[i]%2))k++
  }
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected ';' before '}' token
    7 |     if(!(l[i]%2))k++
      |                     ^
      |                     ;
    8 |   }
      |   ~
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);
  }
  vector<int> l(N);
  for(int j=0;j<N;j++){
    for(int k=0;k<A.at(j);k++){
      if(A.at(j)%2=0){
        A.at(j)/=2;
        l.at(j)++;
      }
      else{
        break;
      }
    }
  }
  sort(l.begin(),l.end());
  cout<<l.at(0)<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  vector<int> A(N);
  for(int i=0;i<N;i++){
    cin>>A.at(i);
  }
  vector<int> l(N);
  for(j=0;j<N;j++){
    for(k=0;k<A.at(j);k++){
      if(A.at(j)%2=0){
        A.at(j)/=2;
        l.at(j)++;
      }
      else{
        break;
      }
    }
  }
  sort(l.begin(),l.end());
  cout<<l.at(0)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'j' was not declared in this scope
   11 |   for(j=0;j<N;j++){
      |       ^
a.cc:12:9: error: 'k' was not declared in this scope
   12 |     for(k=0;k<A.at(j);k++){
      |         ^
Language: Java

import java.util.*;
 
public class Main{

public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int count = 0;
		int[] a = new int[n];
		for(int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		int i = 0;
		while(a[i] % 2 == 0) {
			count++;
			a[i] /= 2; 
			i++;
			i = i % n;
			}
		
		System.out.println(count/n);

	}
}
}

Compiler output:
Main.java:25: error: class, interface, enum, or record expected
}
^
1 error
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 exsit_odd = false;
    for(int i = 0; i < N; i++){
      if(A[i] % 2 != 0){
        exist_odd = true;
      }
      break;
    }
    res++;
    A[i] /= 2;
  }
  cout << res << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'exist_odd' was not declared in this scope; did you mean 'exsit_odd'?
   18 |         exist_odd = true;
      |         ^~~~~~~~~
      |         exsit_odd
a.cc:23:7: error: 'i' was not declared in this scope
   23 |     A[i] /= 2;
      |       ^
Language: C++

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

int order(int a) {
  int i = 0;
  while (a % 2 == 0) {
    a /= 2;
    i++
  }
  return i;
}

int main() {
  int N;
  cin >> N;
  vector<int> vec(N), ord(N);
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
    ord.at(N) = order(vec.at(i))
  }
  sort(ord.begin(), ord.end());
  cout << ord.at(N - 1) << endl;
}

Compiler output:
a.cc: In function 'int order(int)':
a.cc:8:8: error: expected ';' before '}' token
    8 |     i++
      |        ^
      |        ;
    9 |   }
      |   ~     
a.cc: In function 'int main()':
a.cc:19:33: error: expected ';' before '}' token
   19 |     ord.at(N) = order(vec.at(i))
      |                                 ^
      |                                 ;
   20 |   }
      |   ~
Language: C++

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

int order(int a) {
  int i = 0;
  while (a % 2 == 0) {
    a /= 2;
    i++
  }
  return i;
}

int main() {
  int N;
  cin >> N;
  vector<int> vec(N), ord(N);
  for (int i = 0; i < N; i++) {
    cin >> ;
    ord(N) = order(vec.at(i))
  }
  sort(ord.begin(), ord.end());
  cout << ord.at(N - 1) << endl;
}

Compiler output:
a.cc: In function 'int order(int)':
a.cc:8:8: error: expected ';' before '}' token
    8 |     i++
      |        ^
      |        ;
    9 |   }
      |   ~     
a.cc: In function 'int main()':
a.cc:18:12: error: expected primary-expression before ';' token
   18 |     cin >> ;
      |            ^
a.cc:19:8: error: no match for call to '(std::vector<int>) (int&)'
   19 |     ord(N) = order(vec.at(i))
      |     ~~~^~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int count = 0;
  for (int i = 0; count / 5 == i && count % 5 == 0; i++) {
    for (int j = 0; j < N; j++) {
      int x;
      int two = 2;
      cin >> x;
      for (int k = 0; k < i; k++) {
        two *=2
      }
      if (x % two == 0) {
        count++;
      }
      else {
        break;
      }
    }
  }
  cout << count / 5 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: expected ';' before '}' token
   15 |         two *=2
      |                ^
      |                ;
   16 |       }
      |       ~
Language: Java

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

Compiler output:
Main.java:13: error: cannot find symbol
        if ( a % 2 ){
             ^
  symbol:   variable a
  location: class Main
1 error
Language: C

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

int main() {
  int N;
  cin >> N;
  int minc = 0;
  for (int i = 0; i < N; i++) {
    int A;
    cin >> A;
    int cnt = 0;
    while (!(A % 2)) {
      cnt += 1;
      A /= 2;
    }
    if (i == 0) {
      minc = cnt;
    }
    else if (minc > cnt) {
      minc = cnt;
    }
  }
  cout << minc << endl;
}

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

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cmath>
#include <cassert>
#include <sstream>
#include <fstream>

#define all(c) (c).begin(), (c).end()
#define iter(c) __typeof((c).begin())
#define cpresent(c, e) (find(all(c), (e)) != (c).end())
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define tr(c, i) for (iter(c) i = (c).begin(); i != (c).end(); ++i)
#define pb(e) push_back(e)
#define mp(a, b) make_pair(a, b)

using namespace std;
typedef long long unsigned int ll;

int main() {
  int N;
  cin >> N;
  int ans = INT_MAX;
  int a;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    if (a % 2 != 0) {
      cout << 0 << '\n';
      return 0;
    }
    int total = 0;
    while (a % 2 == 0) {
      a /= 2;
      total++;
    }
    ans = min(ans, total);
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:13: error: 'INT_MAX' was not declared in this scope
   33 |   int ans = INT_MAX;
      |             ^~~~~~~
a.cc:18:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   17 | #include <fstream>
  +++ |+#include <climits>
   18 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expected primary-expression before ')' token
   10 |                 for(a%2==0;){
      |                            ^
a.cc:10:28: error: expected ';' before ')' token
   10 |                 for(a%2==0;){
      |                            ^
      |                            ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before ')' token
   10 |                 for(a%2==0){
      |                           ^
      |                           ;
a.cc:14:17: error: expected primary-expression before 'if'
   14 |                 if(A>B){
      |                 ^~
a.cc:13:18: error: expected ';' before 'if'
   13 |                 }
      |                  ^
      |                  ;
   14 |                 if(A>B){
      |                 ~~
a.cc:14:17: error: expected primary-expression before 'if'
   14 |                 if(A>B){
      |                 ^~
a.cc:13:18: error: expected ')' before 'if'
   13 |                 }
      |                  ^
      |                  )
   14 |                 if(A>B){
      |                 ~~
a.cc:10:20: note: to match this '('
   10 |                 for(a%2==0){
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before ')' token
   10 |                 for(a%2==0){
      |                           ^
      |                           ;
a.cc:14:17: error: expected primary-expression before 'if'
   14 |                 if(A>B){
      |                 ^~
a.cc:13:18: error: expected ';' before 'if'
   13 |                 }
      |                  ^
      |                  ;
   14 |                 if(A>B){
      |                 ~~
a.cc:14:17: error: expected primary-expression before 'if'
   14 |                 if(A>B){
      |                 ^~
a.cc:13:18: error: expected ')' before 'if'
   13 |                 }
      |                  ^
      |                  )
   14 |                 if(A>B){
      |                 ~~
a.cc:10:20: note: to match this '('
   10 |                 for(a%2==0){
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int N,A=0,B=0;
	cin>>N;
	for(int i=0; i<N; i++ ){
		int a;
		cin>>a;
		for(a%2==0){
		A++
		a/=2
		}
		if(A>B){
			B=A
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before ')' token
   10 |                 for(a%2==0){
      |                           ^
      |                           ;
a.cc:14:17: error: expected primary-expression before 'if'
   14 |                 if(A>B){
      |                 ^~
a.cc:13:18: error: expected ';' before 'if'
   13 |                 }
      |                  ^
      |                  ;
   14 |                 if(A>B){
      |                 ~~
a.cc:14:17: error: expected primary-expression before 'if'
   14 |                 if(A>B){
      |                 ^~
a.cc:13:18: error: expected ')' before 'if'
   13 |                 }
      |                  ^
      |                  )
   14 |                 if(A>B){
      |                 ~~
a.cc:10:20: note: to match this '('
   10 |                 for(a%2==0){
      |                    ^
a.cc:15:28: error: expected ';' before '}' token
   15 |                         B=A
      |                            ^
      |                            ;
   16 |                 }
      |                 ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vec' was not declared in this scope
    6 |   vec<int> a;
      |   ^~~
a.cc:6:7: error: expected primary-expression before 'int'
    6 |   vec<int> a;
      |       ^~~
a.cc:8:10: error: 'a' was not declared in this scope
    8 |   cin >> a;
      |          ^
Language: Java

import java.util.*;
public class B_81 {
	static int cnt = 0;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			list.add(sc.nextInt());
		}
		boolean flag = false;
		while(!flag) {
			for(int i = 0;i < n;i++) {
				int a = list.get(i);
				if(a % 2 == 0) {
					a = a / 2;
					list.set(i, a);
				}else {
					flag = true;
					break;
				}
			}
			if(!flag)cnt++;
		}
		System.out.print(cnt);
	}

}

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

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

int mainI(){
  int N,P;
  cin>>N>>P;
  int x,y=0;
  while(P%2==0){
    P/=2;
    x++;
  }
  for(int i=0;i<N-1;i++){
    int Q;
    cin>>Q;
    while(Q%2==0){
      Q/=2;
      y++;
    }
    if(y<x){
      x=y;
    }
  }
  cout<<x<<endl;
}
    


Compiler output:
a.cc: In function 'int mainI()':
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int mainI(){
  int N,P;
  cin>>N>>P;
  int x,y=0;
  while(P%2=0){
    P/=2;
    x++;
  }
  for(int i=0;i<N-1;i++){
    int Q;
    cin>>Q;
    while(Q%2=0){
      Q/=2;
      y++;
    }
    if(y<x){
      x=y;
    }
  }
  cout<<x<<endl;
}
    

Compiler output:
a.cc: In function 'int mainI()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   while(P%2=0){
      |         ~^~
a.cc:15:12: error: lvalue required as left operand of assignment
   15 |     while(Q%2=0){
      |           ~^~
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
Language: C++

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

int main(){
  int N,P;
  cin>>N>>P;
  for(int x=0;P%2=0;x++){
    P/=2;
  }
  for(int y=0;y<N-1;y++){
    int Q;
    cin>>Q;
    for(z=0;Q%2=0;z++){
      Q/=2;
    }
    if(z<x){
      x=z;
    }
  }
  cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: lvalue required as left operand of assignment
    7 |   for(int x=0;P%2=0;x++){
      |               ~^~
a.cc:13:9: error: 'z' was not declared in this scope
   13 |     for(z=0;Q%2=0;z++){
      |         ^
a.cc:13:14: error: lvalue required as left operand of assignment
   13 |     for(z=0;Q%2=0;z++){
      |             ~^~
a.cc:16:8: error: 'z' was not declared in this scope
   16 |     if(z<x){
      |        ^
a.cc:16:10: error: 'x' was not declared in this scope
   16 |     if(z<x){
      |          ^
a.cc:20:9: error: 'x' was not declared in this scope
   20 |   cout<<x<<endl;
      |         ^
Language: Java

package AtCoder;

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

public class Beginner081 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		int n = sc.nextInt(), c = 0, s = 0;
		for(int i = 0; i < n; i++) {
			int e = sc.nextInt();
			list.add(e);
		}
		int j;
		for(j = 0; j < list.size(); j++) {
			if(list.get(j) % 2 == 0) c++;
			if(c == list.size()) {
				for(int i = 0; i < list.size();i++) {
					list.set(i, list.get(i) / 2);
					j = -1; c = 0;
				}
				s++;
			}
		}
		System.out.println(s);
		sc.close();
	}
}

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

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

public class Beginner081 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		int n = sc.nextInt(), c = 0, s = 0;
		for(int i = 0; i < n; i++) {
			int e = sc.nextInt();
			list.add(e);
		}
		int j;
		for(j = 0; j < list.size(); j++) {
			if(list.get(j) % 2 == 0) c++;
			if(c == list.size()) {
				for(int i = 0; i < list.size();i++) {
					list.set(i, list.get(i) / 2);
					j = -1; c = 0;
				}
				s++;
			}
		}
		System.out.println(s);
		sc.close();
	}
}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		int n = sc.nextInt(), c = 0, s = 0;
		for(int i = 0; i < n; i++) {
			int e = sc.nextInt();
			list.add(e);
		}
		int j;
		for(j = 0; j < list.size(); j++) {
			if(list.get(j) % 2 == 0) c++;
			if(c == list.size()) {
				for(int i = 0; i < list.size();i++) {
					list.set(i, list.get(i) / 2);
					j = -1; c = 0;
				}
				s++;
			}
		}
		System.out.println(s);
		sc.close();
	}

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: Java

		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		int n = sc.nextInt(), c = 0, s = 0;
		for(int i = 0; i < n; i++) {
			int e = sc.nextInt();
			list.add(e);
		}
		int j;
		for(j = 0; j < list.size(); j++) {
			if(list.get(j) % 2 == 0) c++;
			if(c == list.size()) {
				for(int i = 0; i < list.size();i++) {
					list.set(i, list.get(i) / 2);
					j = -1; c = 0;
				}
				s++;
			}
		}
		System.out.println(s);
		sc.close();

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
		for(int i = 0; i < n; i++) {
		^
Main.java:4: error: class, interface, enum, or record expected
		for(int i = 0; i < n; i++) {
		               ^
Main.java:4: error: class, interface, enum, or record expected
		for(int i = 0; i < n; i++) {
		                      ^
Main.java:6: error: class, interface, enum, or record expected
			list.add(e);
			^
Main.java:7: error: class, interface, enum, or record expected
		}
		^
Main.java:9: error: class, interface, enum, or record expected
		for(j = 0; j < list.size(); j++) {
		^
Main.java:9: error: class, interface, enum, or record expected
		for(j = 0; j < list.size(); j++) {
		           ^
Main.java:9: error: class, interface, enum, or record expected
		for(j = 0; j < list.size(); j++) {
		                            ^
Main.java:11: error: class, interface, enum, or record expected
			if(c == list.size()) {
			^
Main.java:12: error: class, interface, enum, or record expected
				for(int i = 0; i < list.size();i++) {
				               ^
Main.java:12: error: class, interface, enum, or record expected
				for(int i = 0; i < list.size();i++) {
				                               ^
Main.java:14: error: class, interface, enum, or record expected
					j = -1; c = 0;
					^
Main.java:14: error: class, interface, enum, or record expected
					j = -1; c = 0;
					        ^
Main.java:15: error: class, interface, enum, or record expected
				}
				^
Main.java:17: error: class, interface, enum, or record expected
			}
			^
Main.java:20: error: class, interface, enum, or record expected
		sc.close();
		^
17 errors
Language: C++

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

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

  int cnt = 0;

  while(true){
    bool exist_odd = false;
    for(i=0;i<n;i++){
      if(a[i]%2 != 0) exist_odd=true;
    }

    if(exist_odd) break;

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

    cnt++;
  }

  cout << cnt <<endl;
}


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

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

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

  int cnt = 0;

  while(true){
    bool exist_odd = false;
    for(i=0;i<n;i++){
      if(a[i]%2 != 0) exist_odd true;
    }

    if(exist_odd) break;

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

    cnt++;
  }

  cout << cnt <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'i' was not declared in this scope
   13 |     for(i=0;i<n;i++){
      |         ^
a.cc:14:32: error: expected ';' before 'true'
   14 |       if(a[i]%2 != 0) exist_odd true;
      |                                ^~~~~
      |                                ;
a.cc:19:9: error: 'i' was not declared in this scope
   19 |     for(i=0;i<n;i++){
      |         ^
Language: C++

#include<iostream>

using namespace std;

int main(){

int N;
int A[200];

cin >> N;
  for(int i = 0; i<N; ++i) cin >> A[i];
  
  
  int res = 0;
  
  
  while(ture){
    bool exist_odd = false;
    for(int i = 0; i<N; ++i){
      if(A[i]%2 != 0) exist_odd = ture;
    }
    
    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:17:9: error: 'ture' was not declared in this scope
   17 |   while(ture){
      |         ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define scan(arg) cin>>arg
#define prin(arg) cout<<arg<<"\n"
#define prin2(arg1,arg2) cout<<arg1<<" "<<arg2<<"\n"
using namespace std;
typedef long long ll;
const int NMAX=1<<17;
int n;
int a[210];
int main(){
  scan(n);
  rep(i,n)scan(a[i]);
  int res=INT_MAX;
  rep(i,n){
    int cnt=0;
    while(a[i]%2==0){
      cnt++;
      a[i]/=2;
    }
    res=min(res,cnt);
  }
  prin(res);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'INT_MAX' was not declared in this scope
   16 |   int res=INT_MAX;
      |           ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include<algorithm>
  +++ |+#include <climits>
    3 | #define rep(i,n) for(int i=0;i<n;i++)
Language: C++

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



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

    int ans = 0;

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

        if (odd) break;

        for (int i = 0; i < N; ++i) {vec[i] /= 2;}
        ++ans;
    }
    cout << ans << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'int')
   16 |       vec[i] = val;
      |                ^~~
In file included from /usr/include/c++/14/vector:72,
                 from a.cc:3:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'int' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:24:24: error: no match for 'operator%' (operand types are 'std::vector<int>' and 'int')
   24 |             if (vec[i] % 2 != 0) odd = true;
      |                 ~~~~~~ ^ ~
      |                      |   |
      |                      |   int
      |                      std::vector<int>
a.cc:29:45: error: no match for 'operator/=' (operand types are 'std::vector<int>' and 'int')
   29 |         for (int i = 0; i < N; ++i) {vec[i] /= 2;}
      |                                      ~~~~~~~^~~~
Language: C

#include<stdio.h>

int main()
{
	int N;
	int A[222];
	scanf("%d",&N);
	int i;
	for(i=0;i<=N-1;i++)
		scanf("%d",&A[i]);
	int sisuu[222] = {0};
	for(i=0;i<=N-1;i++){
		while(A[i]%2 == 0){
			sisuu[i]++;
			A[i] = A[i] / 2;
		};
	};
	int min = sisuu[0];
	for(i=1;i<=N-1;i++){
		if(min > sisuu[i])	min = sisuu[i];
	};
	printf("%d",max);
		
	
}

Compiler output:
main.c: In function 'main':
main.c:22:21: error: 'max' undeclared (first use in this function)
   22 |         printf("%d",max);
      |                     ^~~
main.c:22:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include "bits/stdc++.h"
#define ALL(x) x.begin(), x.end()
#define LEN(x) (int)x.size()
#define iostreamBooster() do{ cin.tie(nullptr); ios_base::sync_with_stdio(false); }while(0)
using namespace std;
typedef int64_t i64;
typedef pair<int,int> pii;
template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
constexpr int INF = 0x3f3f3f3f;

int f(i64 n)
{
  int ans = 0;
  while(n % 2 == 0) {
    n /= 2;
    ++ans;
  }
  return ans;
}

signed main()
{
  int N;
  i64 a[205];

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

  int ans = INF;
  for (int i = 0; i < N; ++i) {
    chmin(ans, f(a[i]));
  }

  cout << ans << endl;

  return 0;
}

#include "bits/stdc++.h"
#define ALL(x) x.begin(), x.end()
#define LEN(x) (int)x.size()
#define iostreamBooster() do{ cin.tie(nullptr); ios_base::sync_with_stdio(false); }while(0)
using namespace std;
typedef int64_t i64;
typedef pair<int,int> pii;
template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
constexpr int INF = 0x3f3f3f3f;

int f(i64 n)
{
  int ans = 0;
  while(n % 2 == 0) {
    n /= 2;
    ++ans;
  }
  return ans;
}

signed main()
{
  int N;
  i64 a[205];

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

  int ans = INF;
  for (int i = 0; i < N; ++i) {
    chmin(ans, f(a[i]));
  }

  cout << ans << endl;

  return 0;
}



Compiler output:
a.cc:49:39: error: redefinition of 'template<class A, class B> bool chmax(A&, const B&)'
   49 | template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
      |                                       ^~~~~
a.cc:8:39: note: 'template<class A, class B> bool chmax(A&, const B&)' previously declared here
    8 | template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
      |                                       ^~~~~
a.cc:50:39: error: redefinition of 'template<class A, class B> bool chmin(A&, const B&)'
   50 | template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
      |                                       ^~~~~
a.cc:9:39: note: 'template<class A, class B> bool chmin(A&, const B&)' previously declared here
    9 | template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
      |                                       ^~~~~
a.cc:51:15: error: redefinition of 'constexpr const int INF'
   51 | constexpr int INF = 0x3f3f3f3f;
      |               ^~~
a.cc:10:15: note: 'constexpr const int INF' previously defined here
   10 | constexpr int INF = 0x3f3f3f3f;
      |               ^~~
a.cc:53:5: error: redefinition of 'int f(i64)'
   53 | int f(i64 n)
      |     ^
a.cc:12:5: note: 'int f(i64)' previously defined here
   12 | int f(i64 n)
      |     ^
a.cc:63:8: error: redefinition of 'int main()'
   63 | signed main()
      |        ^~~~
a.cc:22:8: note: 'int main()' previously defined here
   22 | signed main()
      |        ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,k; //kは割る回数
  int A[220];
  cin >> ;
  for(int i=0;i<N;i++)
    cin >> A[i];
        
  while(true){
    bool a = false ;
    for (int j=0 ;j<N ;j++){
      if(A[j]%2 != 0)
        a = true ;
    }
    if(a) break ;
    for(int k=0;k<N;k++)
      A[k] /= 2 ;
  }
  cout << k <<endl ;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,k; //kは割る回数
  int A[220];
  cin >>N ;
  for(int i=0;i<n;i++)
    cin >> A[i];
        
  while(true){
    bool a = false ;
    for (int j=0 ;j<N ;j++){
      if(A[j]%2 != 0)
        a = true ;
    }
    if(a) break ;
    for(int k=0;k<N;k++)
      A[k] /= 2 ;
  }
  cout << k <<endl ;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,k; //kは割る回数
  int A[220];
  cin >> ;
  for(int i=0;i<n;i++)
    cin >> A[i];
        
  while(true){
    bool a = false ;
    for (int j=0 ;j<N ;j++){
      if(A[j]%2 != 0)
        a = true ;
    }
    if(a) break ;
    for(int k=0;k<N;k++)
      A[k] /= 2 ;
  }
  cout << k <<endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before ';' token
    6 |   cin >> ;
      |          ^
a.cc:7:17: error: 'n' was not declared in this scope
    7 |   for(int i=0;i<n;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 b=0;
  
    while(true){
      bool odd = false;
      for(int i=0;i<n;i++){
        if(A[i]%2==1)odd=true;
      }
      if(odd)break;
      for(int i=0;i<n;i++){
        A[i]/=2;
      }
    }  
    b++;
  }
  cout<<b<<endl;
}


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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'b' was not declared in this scope
   19 |     b++;
      |     ^
a.cc:21:9: error: 'b' was not declared in this scope
   21 |   cout<<b<<endl;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'b' was not declared in this scope
   18 |     b++;
      |     ^
a.cc:20:9: error: 'b' was not declared in this scope
   20 |   cout<<b<<endl;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'exist' was not declared in this scope; did you mean 'exit'?
   12 |       if(A[i]%2==1)exist-odd=true;
      |                    ^~~~~
      |                    exit
a.cc:18:5: error: 'b' was not declared in this scope
   18 |     b++;
      |     ^
a.cc:20:9: error: 'b' was not declared in this scope
   20 |   cout<<b<<endl;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'exist' was not declared in this scope; did you mean 'exit'?
   12 |       if(A[i]%2==1)exist-odd=true;
      |                    ^~~~~
      |                    exit
a.cc:12:26: error: 'odd' was not declared in this scope
   12 |       if(A[i]%2==1)exist-odd=true;
      |                          ^~~
a.cc:18:5: error: 'b' was not declared in this scope
   18 |     b++;
      |     ^
a.cc:20:9: error: 'b' was not declared in this scope
   20 |   cout<<b<<endl;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected initializer before '-' token
   10 |     bool exist-odd = false;
      |               ^
a.cc:12:20: error: 'exist' was not declared in this scope; did you mean 'exit'?
   12 |       if(A[i]%2==1)exist-odd=true;
      |                    ^~~~~
      |                    exit
a.cc:12:26: error: 'odd' was not declared in this scope
   12 |       if(A[i]%2==1)exist-odd=true;
      |                          ^~~
a.cc:14:8: error: 'exist' was not declared in this scope; did you mean 'exit'?
   14 |     if(exist-odd)break;
      |        ^~~~~
      |        exit
a.cc:14:14: error: 'odd' was not declared in this scope
   14 |     if(exist-odd)break;
      |              ^~~
a.cc:18:5: error: 'b' was not declared in this scope
   18 |     b++;
      |     ^
a.cc:20:9: error: 'b' was not declared in this scope
   20 |   cout<<b<<endl;
      |         ^
Language: C++

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

/* REPmacro */
#define REP(i,n) for(int i=0,i##_len=(n);i<i##_len;++i)
#define REPR(i,n) for(int i=((int)(n)-1);i>=0;--i)
#define FOR(i,m,n) for(int i=(int)(m);i<(int)(n);++i)

/*alias*/
#define ALL(x) (x).begin(),(x).end()
#define SZ(x) ((int)(x).size())
#define F first
#define S second
#define PB push_back
#define MP make_pair 

#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
#define next asdnext
#define prev asdprev

/*template*/
template<class T>inline bool amax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>inline bool amin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

/* func */
int gcd(int a,int b){return b?gcd(b,a%b):a;}

/*struct*/
struct aaa{
    aaa(){
        cin.tie(0); ios::sync_with_stdio(0); cout<<fixed<<setprecision(20);
    };
}aaaaaaa;


/* const */
const int INF = 1001001001;
const long long LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7; //10^9
const double EPS = 1e-9;

//#define int long long

signed main()
{
  int a;
  int n;
  vector<int> v1(0);
  while(cin >> n)
  v1.PB(n);
  
  for(auto& i: v1)
　cout << i << endl;
  return 0;
}

Compiler output:
a.cc:56:1: error: extended character 　 is not valid in an identifier
   56 | 　cout << i << endl;
      | ^
a.cc: In function 'int main()':
a.cc:56:1: error: '\U00003000cout' was not declared in this scope
   56 | 　cout << i << endl;
      | ^~~~~~
Language: C++

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

int main(){
  int N;
  vector<int> A;
  
  cin >> N;
  for (int i=0;i<N;i++){
  cin >> A[i];
  }
  
 int count=0;
 int tmp=N-1; 
  while(tmp==N-1){
    tmp=0;
    for (int i=0;i<N;i++){
      if(A[i]%2==1){
        break;
      }

    }
    if (tmp==N-1){
    count++;
     for (int i=0;i<N;i++){
       A[i] /= 2;
    
    }  
  }
  cout << count << endl;
  
}

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

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

int main(){
  int N;
  vector<int> A;
  
  cin >> N;
  for (int i=0;i<N;i++){
  cin >> A[i];
  }
  
 int count=0;
 int tmp=N-1; 
  while(tmp==N-1){
    tmp=o;
    for (int i=0;i<N;i++){
      if(A[i]%2==1){
        break;
      }else{
        A[i] = A[i]/2;
        tmp=i;
      }
    }
    count++;
  }
  cout << count << endl;
  
}

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

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

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

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

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

int main(){
    int n;

    vector<int> v(n);
    for(int i = 0; i < n; i++) cin >> v[i];
    
    int counter = 0;
    bool flg = True;
    while(flg){
        for(int i = 0; i < n; i++){
            if(0 != v[i] % 2){
                flg = False;
            }else{
                v[i] = v[i] / 2;
                ++counter;
            }
        }
    }

    cout << counter << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'True' was not declared in this scope
   12 |     bool flg = True;
      |                ^~~~
a.cc:16:23: error: 'False' was not declared in this scope
   16 |                 flg = False;
      |                       ^~~~~
Language: C++

#include <iostream>
#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 counter;

  
  while (true){
    bool flag = false;
    for(int i = 0;i<N;++i){
      if(A[i]%2==1) {
        flag=true;break;
      }else{
        A[i]/=2;
      }
    }
    if (flag) break;
    ++counter;
  }
  
  cout << counter << endl;

}


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

#include<stdio.h>

int main(){
  int i,j,k=0;
  int N;
  scanf("%d",&N);
  int A[N];
  for(i=0:i<N;i++){
    scanf("%d ",&A[i]);
    if(A[i]%2 == 1){
      puts("0");
      return 0;
    }
  }
  
  while(1){
    for(i=0;i<N;i++){
      if(A[i] %2 == 1){
        printf("%d\n",k);
        return 0;
      }
      A[i] /=2;
    }
    k++;
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: expected ';' before ':' token
    8 |   for(i=0:i<N;i++){
      |          ^
      |          ;
main.c:8:18: error: expected ';' before ')' token
    8 |   for(i=0:i<N;i++){
      |                  ^
      |                  ;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  int n[N];
  int count;
  for(int i = 0; i<N; i++){
    cin >> n[i];}
  
  while(true){
    bool judge = false;
    
   for(int j =0; j<N; j++){
     if(n[j]%2!==0){judge = true;}
     }
    
    if(judge) break;
    
    for(k = 0; k<N; k++){
      n[k] /=2;
    }
    
    count++
  }
  
  
  cout << count;
}
     

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected primary-expression before '=' token
   16 |      if(n[j]%2!==0){judge = true;}
      |                 ^
a.cc:21:9: error: 'k' was not declared in this scope
   21 |     for(k = 0; k<N; k++){
      |         ^
a.cc:25:12: error: expected ';' before '}' token
   25 |     count++
      |            ^
      |            ;
   26 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   25 |   count<<count<<endl;
      |   ~~~~~~~~~~~~^~~~~~