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

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int ans=0;

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Integer[] nums = new Integer[n];
        for(int i = 0;i<n;i++){
            nums[i] = sc.nextInt();
        }

        loop: while (true) {
            for (int i = 0; i < n; i++) {
                int num=nums[i];
                if(num%2==0){
                    nums[i] = num/2;
                }else{
                    break loop;
                }
            }
            ans++;
        }
        System.out.println(ans);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> v(N);
  for (int i = 0;i < N;i++) {
    cin >> v.at(i);
  }
  int count = 0;
  bool finished = false;
  for (int j = 0;j <2) {
    for (int i=0;i < N;i++) {
      if (v.at(i) % 2 == 0) {
        v.at(i) /= 2;
        continue;
      }
      else {
        finished = true;
        break;
      }
    }
    if (finished) {
      break;
    }
    count++;
  }
  cout << count <<endl;
}
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ';' before ')' token
   13 |   for (int j = 0;j <2) {
      |                      ^
      |                      ;
Language: C++

#include <iostream>
#include <string>
#include <vector>
usign namespace std;
int main()
{
	int N;
	int c = 0;
	int flag = 1;
	cin >> N;
	vector<int> A(N);
	for (int i = 0; i < N; i++) cin >> A[i];
	while (flag)
	{
		for (int i = 0; i < N; i++)
		{
			if (A[i] % 2 == 0)
			{
				A[i] = A[i] / 2;
			}
			else
			{
				flag = 0;
				break;
			}
			if (i == N - 1) c++;
		}
	}
	cout << c << endl;
    return 0;
}

Compiler output:
a.cc:4:1: error: 'usign' does not name a type
    4 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin >> N;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:9: error: 'vector' was not declared in this scope
   11 |         vector<int> A(N);
      |         ^~~~~~
a.cc:11:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/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:11:16: error: expected primary-expression before 'int'
   11 |         vector<int> A(N);
      |                ^~~
a.cc:12:44: error: 'A' was not declared in this scope
   12 |         for (int i = 0; i < N; i++) cin >> A[i];
      |                                            ^
a.cc:17:29: error: 'A' was not declared in this scope
   17 |                         if (A[i] % 2 == 0)
      |                             ^
a.cc:29:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |         cout << c << 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:29:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   29 |         cout << c << 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 <bits/stdc++.h>
int main(){
  
  int n;
  cin >> n;
  
  int a;
  int res = 0;
  int cnt;
  
  for(int i = 0; i < n; ++i){
    cin >> a;
    cnt = 0;
    while(!(a % 2)){
      ++cnt;
    }
    res = max(cnt, res);
  }
  
  cout << res;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
   17 |     res = max(cnt, res);
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:20:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   cout << res;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> number(N);
  for (int i = 0; i < N; i++) {
  	cin >> number.at(i);
  }
  vector<int> count(N);
  for (int i = 0; i < N; i++) {
    for (number.at(i) % 2 == 0;) {
      number.at(i) = number.at(i)/2;
      count.at(i)++;
    }
  }
  sort(count.begin(), count.end());
  cout << count.at(0) << endl;
}


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

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

int main() {
  int N;
  cin >> N;
  vector<int> number(N);
  for (int i = 0; i < N; i++) {
  	cin >> number.at(i);
  }
  vector<int> count(N);
  for (int i = 0; i < N; i++) {
    for (number.at(i) % 2 == 0) {
      number.at(i) = number.at(i)/2;
      count.at(i)++;
    }
  }
  sort(count.begin(), count.end());
  cout << count.at(0) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: expected ';' before ')' token
   13 |     for (number.at(i) % 2 == 0) {
      |                               ^
      |                               ;
a.cc:17:3: error: expected primary-expression before '}' token
   17 |   }
      |   ^
a.cc:16:6: error: expected ';' before '}' token
   16 |     }
      |      ^
      |      ;
   17 |   }
      |   ~   
a.cc:17:3: error: expected primary-expression before '}' token
   17 |   }
      |   ^
a.cc:16:6: error: expected ')' before '}' token
   16 |     }
      |      ^
      |      )
   17 |   }
      |   ~   
a.cc:13:9: note: to match this '('
   13 |     for (number.at(i) % 2 == 0) {
      |         ^
a.cc:17:3: error: expected primary-expression before '}' token
   17 |   }
      |   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
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> number(N);
  for (int i = 0; i < N; i++) {
  cin >> number.at(i);
  }
  int count = 0;
  while (number.at(1) % 2 == 0) {
    for (int i = 0; i < N; i++) {
      if (number.at(i) % 2 == 0){
      number.at(i) = number.at(i) / 2;
        if (i == N){
          count++;
        }
      }
      else{
        break;
      }
cout << count << endl;     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:12:33: note: to match this '{'
   12 |   while (number.at(1) % 2 == 0) {
      |                                 ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
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> number(N);
  for (int i = 0; i < N; i++) {
  cin >> number.at(i);
  }
  int count = 0;
  sort(number.begin(), number.end());
  while (number.at(1) % 2 == 0) {
    for (int i = 0; i < N; i++) {
      if (number.at(i) % 2 == 0){
      number.at(i) = number.at(i) / 2
        if (i == N){
          count++;
        }
      }
      else{
        break;
      }
cout << count << endl;     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'vector'
    6 |   cin >> N
      |           ^
      |           ;
    7 |   vector<int> number(N);
      |   ~~~~~~   
a.cc:9:10: error: 'number' was not declared in this scope
    9 |   cin >> number.at(i);
      |          ^~~~~~
a.cc:12:8: error: 'number' was not declared in this scope
   12 |   sort(number.begin(), number.end());
      |        ^~~~~~
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:13:33: note: to match this '{'
   13 |   while (number.at(1) % 2 == 0) {
      |                                 ^
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main()
{
  int N;
  int count = 0;
  vector<int> arr(210);
  cin >> N;
  for (int i = 0; i < N; i++)
    cin >> arr.at(i);
  int some_odd = false;
  while(1)
  {
    for (int i = 0; i < N; i++)
    {
      if(arr.at(i) % 2 == 1)
        some_odd = true;
    }
    if (some_odd = true)
      break;
    for (int i = 0; i < N; i++)
      arr.at(i) /= 2;
    count++:
  }  
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: expected ';' before ':' token
   24 |     count++:
      |            ^
      |            ;
Language: C++

int N;
int A[210];         // 最大 200 個なので余裕を持って 210 に --- 200 以上ならなんでもよいです

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

    int res = 0;

    // 操作が行える限り操作を繰り返す
    while (true) {
        bool exist_odd = false;  // A[i] がすべて偶数かどうかを判定するフラグ
        for (int i = 0; i < N; ++i) {
            if (A[i] % 2 != 0) exist_odd = true;  // 奇数があったらフラグを立てる
        }

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

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

    cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> N;
      |     ^~~
a.cc:26:5: error: 'cout' was not declared in this scope
   26 |     cout << res << endl;
      |     ^~~~
a.cc:26:20: error: 'endl' was not declared in this scope
   26 |     cout << res << endl;
      |                    ^~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  int j=2;
  int ans=0;
  
  for(int i=0;i<N;i++){
    int A[i];
    cin >> A[i];  
  } //入力完了
  
  int i=0;
  while(1){
    while(1){
      if(A[i]%j==0){
          i++;
      }else{
          break;
      }
    } 
    if(i==N){
      j*=2;
      ans++;
    }else{
      break;
    } //A[0]からA[N]がjで割り切れるとき、ans++,j*=2

  }
  
  
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: 'k' was not declared in this scope
   19 |     if(k==N){
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: expected ';' before '}' token
   16 |                 k++
      |                    ^
      |                    ;
   17 |         }
      |         ~           
a.cc:19:8: error: 'k' was not declared in this scope
   19 |     if(k==N){
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected unqualified-id before '=' token
   10 |   for (int = 0; i < N; i++) {
      |            ^
a.cc:10:11: error: expected ';' before '=' token
   10 |   for (int = 0; i < N; i++) {
      |           ^~
      |           ;
a.cc:10:12: error: expected primary-expression before '=' token
   10 |   for (int = 0; i < N; i++) {
      |            ^
a.cc:10:17: error: 'i' was not declared in this scope
   10 |   for (int = 0; i < N; i++) {
      |                 ^
a.cc:10:22: error: expected ')' before ';' token
   10 |   for (int = 0; i < N; i++) {
      |       ~              ^
      |                      )
a.cc:10:24: error: 'i' was not declared in this scope
   10 |   for (int = 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=0;
  bool=true;
  while(1){
    for(int i=0; i<N; i++){
      if(A.at(i)%2==0){
        A.at(i)/=2;
      }
      else{
        flg=false;
        break;
      }
    }
    if(flg){
      count++;
    }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected unqualified-id before '=' token
   12 |   bool=true;
      |       ^
a.cc:19:9: error: 'flg' was not declared in this scope
   19 |         flg=false;
      |         ^~~
a.cc:23:8: error: 'flg' was not declared in this scope
   23 |     if(flg){
      |        ^~~
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=0;
  while(1){
    for(int i=0; i<N; i++){
      if(A.at(i)%2==0){
        A.at(i)/=2;
      }
      else{
        flg=false;
        break;
      }
    }
    if(flg){
      break;
    }
    count++;
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'flg' was not declared in this scope
   18 |         flg=false;
      |         ^~~
a.cc:22:8: error: 'flg' was not declared in this scope
   22 |     if(flg){
      |        ^~~
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=0;
  while(1){
    for(int i=0; i<N; i++){
      if(A.at(i)%2==0){
        A.at(i)/=2;
      }
      else{
        flg=false;
        break;
      }
    }
    if(flg){
      break;
    }
    count++
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'flg' was not declared in this scope
   18 |         flg=false;
      |         ^~~
a.cc:22:8: error: 'flg' was not declared in this scope
   22 |     if(flg){
      |        ^~~
a.cc:25:12: error: expected ';' before '}' token
   25 |     count++
      |            ^
      |            ;
   26 |   }
      |   ~
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=0;
  bool flg=true;
  while(flg){
    for(int i=0; i<N; i++){
      if(A.at(i)%2==0){
        A.at(i)/=2;
        continue;
      }
      else{
        flg=false;
        break;
      }
    }
    if(flg){
      count++;
    }
  }
  eout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:3: error: 'eout' was not declared in this scope
   28 |   eout << count << endl;
      |   ^~~~
Language: C++

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: array must be initialized with a brace-enclosed initializer
    8 |   int A[N] = 0;
      |              ^
a.cc:11:9: error: expected primary-expression before ')' token
   11 |   while(){
      |         ^
a.cc:19:10: error: 'i' was not declared in this scope
   19 |     if(A[i]%2!=0)
      |          ^
Language: C++

#include<siotream>
using namespace std;

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

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

#include<iostream>
using namespace std;
bool isAllEven(int[] &A, int N){
  for(int i=0;i<N;i++){
    if(A[i] % 2 != 0){
      return false;
    }
  }
  return true;
}

int main(){
  int N;
  cin >> N;
  int A[N];
  for(int i=0;i<N;i++){
    cin >> A[i];
  }
  int counter = 0;
  while(isAllEven(A, N)){
    counter ++;
    for(int i=0;i<N;i++){
      A[i] = A[i]/2;
    }
  }
  cout << counter;
}



Compiler output:
a.cc:3:22: error: expected ',' or '...' before '&' token
    3 | bool isAllEven(int[] &A, int N){
      |                      ^
a.cc: In function 'bool isAllEven(int*)':
a.cc:4:17: error: 'N' was not declared in this scope
    4 |   for(int i=0;i<N;i++){
      |                 ^
a.cc:5:8: error: 'A' was not declared in this scope
    5 |     if(A[i] % 2 != 0){
      |        ^
a.cc: In function 'int main()':
a.cc:20:18: error: too many arguments to function 'bool isAllEven(int*)'
   20 |   while(isAllEven(A, N)){
      |         ~~~~~~~~~^~~~~~
a.cc:3:6: note: declared here
    3 | bool isAllEven(int[] &A, int N){
      |      ^~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'i' was not declared in this scope
   17 |     if (i == N){
      |         ^
a.cc:24:4: error: expected '}' at end of input
   24 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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];
  }
  int counter = 0;
  while(isAllEven(A, N)){
    counter ++;
    for(int i=0;i<N;i++){
      A[i] = A[i]/2;
    }
  }
  cout << counter;
}

bool isAllEven(int *A, int N){
  for(int i=0;i<N;i++){
    if(A[i] % 2 != 0){
      return false;
    }
  }
  return true;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'isAllEven' was not declared in this scope
   12 |   while(isAllEven(A, N)){
      |         ^~~~~~~~~
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];
  }
  int counter = 0;
  while(isAllEven(A, N)){
    counter ++;
    for(int i=0;i<N;i++){
      A[i] = A[i]/2;
    }
  }
  cout << counter;
}

bool isAllEven(int[]& A, int N){
  for(int i=0;i<N;i++){
    if(A[i] % 2 != 0){
      return false;
    }
  }
  return true;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'isAllEven' was not declared in this scope
   12 |   while(isAllEven(A, N)){
      |         ^~~~~~~~~
a.cc: At global scope:
a.cc:21:21: error: expected ',' or '...' before '&' token
   21 | bool isAllEven(int[]& A, int N){
      |                     ^
a.cc: In function 'bool isAllEven(int*)':
a.cc:22:17: error: 'N' was not declared in this scope
   22 |   for(int i=0;i<N;i++){
      |                 ^
a.cc:23:8: error: 'A' was not declared in this scope
   23 |     if(A[i] % 2 != 0){
      |        ^
Language: C++

#include <iostream>
using namespace std;
int main() {
  
  int N;
  cin >> N;
  
  int A[200];
  int ANS = 0;
  
  for(int i=0; i<N; i++){
    
    while(A[i]%2=0){
      A[i] /= 2;
      ANS ++;
    }
  }
  
  cout << ANS;
  
  return 0;
}

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

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

int main() {
  int n,a,b,c,r;
  cin >> n;
  b=2;
  r=0;
  c=0;
  
  while (r==0){
    for (int j=0;i<n;j++){
      cin >> a;
      if (a%b==1){
        r=1;
        break;
      }
    b*=2;
    if (r==0)
      c++;
    }
  }
  cout << c << endl;
}


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

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

int main() {
  int n,k;
  cin >> n;
  k=27;
  
  for(int i=0;i<n;i++){
    int a[i];
    cin >> a[i];
    int D=0;
    
    while(a[i]%2=0){
      D++;
      a[i]/=2;
    }
    k=min(D,k);
  }
	cout << k <<endl;
}


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

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

int main() {
  int n,k;
  cin >> n;
  k=27;
  
  for(int i=0;i<n;i++){
    cin >> a[i];
    int D=0;
    
    while(a[i]%2=0){
      D++;
      a[i]/=2;
    }
    k=min(D,k);
  }
	cout << k <<endl;
}


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

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

int main() {
  int N;
  cin >> N;
  vector<int> v(N);
    for(int i=0; i<N;i++)
	cin >> v[i];
	int k=0;
  
  bool exist_odd = false;
  for(int i = 0; i<N ;i++)
    if(v[i]%2 !=0) exist_odd =true;
    }

  while(false){
    if(true)
      break;
    for(int i=0; i < N; i++){
      v[i] /=2;
    }
    k++;
  }
  cout << k << endl;
}


Compiler output:
a.cc:17:3: error: expected unqualified-id before 'while'
   17 |   while(false){
      |   ^~~~~
a.cc:25:3: error: 'cout' does not name a type
   25 |   cout << k << endl;
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> v(N);
    for(int i=0; i<N;i++)
	cin >> v[i];
	int k=0;
  
  bool a = exist_odd
  
  while(false){
    if a = true
      break;
    for(int i=0; i < N; i++){
      v[i] /=2;
    }
    k++;
  }
}
  cout << k << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'exist_odd' was not declared in this scope
   12 |   bool a = exist_odd
      |            ^~~~~~~~~
a.cc: At global scope:
a.cc:23:3: error: 'cout' does not name a type
   23 |   cout << k << endl;
      |   ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> v(N);
    for(int i=0; i<N;i++)
	cin >> v[i];
	int k=0;
  
  bool a = exist_odd
  
  while(false){
    if a = true
      break;
    for(int i=0; i < N; i++){
      v[i] /=2;
    }
    k++;
  }
  cout << k << endl;
}


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

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

int main() {
  int N;
  cin >> N;
  vector<int> v(N);
    for(int i=0; i<N;i++)
	cin >> v[i];
	int k=0;
  
  bool a != exist_odd
  
  while(true){
    if a = false
      break;
    for(int i=0; i < N; i++){
      v[i] /=2;
    }
    k++;
  }
  cout << k << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected initializer before '!=' token
   12 |   bool a != exist_odd
      |          ^~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> v(N)
    for(int i=0; i<N;i++)
	cin >> v[i];
	int k=0;
  
  bool a != exist_odd
  
  while(true){
    if a = false
      break;
    for(int i=0; i < N; i++){
      v[i] /=2;
    }
    k++;
  }
  cout << k << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'for'
    8 |     for(int i=0; i<N;i++)
      |     ^~~
a.cc:8:18: error: 'i' was not declared in this scope
    8 |     for(int i=0; i<N;i++)
      |                  ^
a.cc:12:10: error: expected initializer before '!=' token
   12 |   bool a != exist_odd
      |          ^~
Language: C

#include <stdio.h>
#icnldue <math.h>



int main()
{
  logn long int x[1000],j;
for(j=0;j<101;++j)
{
  x[j]=pow(2,j);
}
  int n;
  scanf("%d",&n);
  long int a[n],i,min=1000000000;
 
  int flag=0;
  
  for(i=0;i<n;++i)
  { scanf("%ld",&a[i]);
    if(a[i]%2!=0)
        flag=1;
   
    if(min>a[i])
         min=a[i];
  }
  
  if(flag==1)
      printf("0");
  
  else
     for(j=0;j<101;++j)
     {
       for(i=0;i<n;++i) 
       {
         if(a[i]%x[j]!=0)
         {
           flag=1;
           break;
         }
       }
        if(flag==1)
            break;
     }
  
  printf("%ld",j+1);
}
     

Compiler output:
main.c:2:2: error: invalid preprocessing directive #icnldue; did you mean #include?
    2 | #icnldue <math.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:8:3: error: 'logn' undeclared (first use in this function)
    8 |   logn long int x[1000],j;
      |   ^~~~
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:7: error: expected ';' before 'long'
    8 |   logn long int x[1000],j;
      |       ^~~~~
      |       ;
main.c:9:5: error: 'j' undeclared (first use in this function)
    9 | for(j=0;j<101;++j)
      |     ^
main.c:11:3: error: 'x' undeclared (first use in this function)
   11 |   x[j]=pow(2,j);
      |   ^
main.c:11:8: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   11 |   x[j]=pow(2,j);
      |        ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | #icnldue <math.h>
main.c:11:8: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   11 |   x[j]=pow(2,j);
      |        ^~~
main.c:11:8: note: include '<math.h>' or provide a declaration of 'pow'
Language: C++

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

  res++;
}
}


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

#include <bits/stdc++.h>
using namespace std;
int N;
int A[210];
int main(){
  cin >> N;
  for(int i= 0; i< N; i++) cin >> A[i];
  
  int res = 0;
  while(true){　
    bool exist_odd = false;
    for(int i =0; i < N; i++){
      if(A[i] % 2 != 0) exist_odd = true; // フラグを立てる
    }
    if(exist_odd) break;
    for(int i= 0; i < N; i++){
      A[i] /= 2;
    }
    ++res;
    
  }
  cout << res << endl;
}

Compiler output:
a.cc:10:15: error: extended character 　 is not valid in an identifier
   10 |   while(true){　
      |               ^
a.cc: In function 'int main()':
a.cc:10:15: error: '\U00003000' was not declared in this scope
   10 |   while(true){　
      |               ^~
a.cc:13:25: error: 'exist_odd' was not declared in this scope
   13 |       if(A[i] % 2 != 0) exist_odd = true; // フラグを立てる
      |                         ^~~~~~~~~
a.cc:15:8: error: 'exist_odd' was not declared in this scope
   15 |     if(exist_odd) break;
      |        ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int N;
int A[210];
int main(){
  cin >> N;
  for(int i = 0; i < N; i++){
    cin >> A[i];
  }
  int res = 0; //操作が行えるだけ行う
  while(true){  
    bool  exist_odd = false;  
    for(int i = 0; i< N; i++){　//全探索
      if( A[i] % 2 != 0){ //全探索してもし奇数があればフラグを立てる
        exist_odd = true;
      }
    }
      if(exist_odd == true)break; //もしフラグがたったらループを抜ける
      
      for(int i = 0; i< N; i++){ //全探索してフラグが立たなかったら要素を2で割る
        A[i] /= 2;
      }
      ++res;  //
   }
  cout << res << endl;
  
}

Compiler output:
a.cc:13:31: error: extended character 　 is not valid in an identifier
   13 |     for(int i = 0; i< N; i++){　//全探索
      |                               ^
a.cc: In function 'int main()':
a.cc:13:31: error: '\U00003000' was not declared in this scope
   13 |     for(int i = 0; i< N; i++){　//全探索
      |                               ^~
Language: C++

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

int main(){
    int n;
    cin >> n;

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

    int res = 0;

    while(1){
        bool exist_odd = false;
        rep(i,n){
            if(a[i]%2 != 0){
                exist_odd = true;//奇数発見
            }
        }

        if(exist_odd == true){//奇数発見したら終了
            break;
        }

        //奇数が発見できなかったら2で割る
        rep(i,n){
            a[i] /= 2;
        }

        res++:
    }

    cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:14: error: expected ';' before ':' token
   34 |         res++:
      |              ^
      |              ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,ans=0,a[200];
  for(int i=0;i<n;i++)cin>>a[i];
  loop: while(1){
    for(int i=0;i<n;i++){
      if(a[i]%2==0)a[i]/=2;
      else break loop;
    }
    ans++;
  }
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'loop'
    9 |       else break loop;
      |                 ^~~~~
      |                 ;
a.cc:9:18: error: 'loop' was not declared in this scope
    9 |       else break loop;
      |                  ^~~~
Language: C++

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

int count(vector<int> &A) {
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    if (A.at(i) % 2 == 0) {
      A.at(i) /= 2;
    }
    else {
      cnt = 1;
      break;
    }
  }
  if (cnt == 1) return 0;
  else return 1;
}

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

Compiler output:
a.cc: In function 'int count(std::vector<int>&)':
a.cc:6:23: error: 'N' was not declared in this scope
    6 |   for (int i = 0; i < N; i++) {
      |                       ^
Language: C++

#include <iostream>
using namespace std;

int N;
int A[201];

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;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:7:11: note: to match this '{'
    7 | 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] >> endl;
  }
  int counter = 0;
  bool divide = true;
  
  while(divide){
    for (int i = 0; i < N; i++){
      if(A.at[i]%2==1){
        divide = false;
        break;         
      }
      A.at[i] /= 2;
    }
    if(divide){
      counter+=1;
    }
  }
  
  cout << counter << endl;
  
  return 0;
}
    

  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |     cin >> A.at[i] >> endl;
      |                ^
a.cc:16:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   16 |       if(A.at[i]%2==1){
      |              ^
a.cc:20:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   20 |       A.at[i] /= 2;
      |           ^
Language: C++

input()
A = list(map(int, input().split()))
count = 0
while all(a%2 == 0 for a in A):
	A = [a/2 for a in A]
	count += 1
print(count)


Compiler output:
a.cc:2:1: error: expected constructor, destructor, or type conversion before 'A'
    2 | A = list(map(int, input().split()))
      | ^
Language: C++

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

int N;
int A[210];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: expected ';' before '}' token
   23 |     res++
      |          ^
      |          ;
   24 |   }
      |   ~
Language: C++

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


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

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

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

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

int main(){
	int N,A,J=0,K=0;
	cin >>N>>A;
	while(A%2==0){
		A/=2;
		K++;
	}
	for(int i=1;i<N;i++ ){
		cin >>A;
		while(A%2==0){
			A/=2;
			J++;
		}
		if(J<K)
			K=J;
      j=0;
	}
	cout << K << endl;
}

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

#include<cstdio>
long long x,s=101,n;
int main(){
    scanf("%lld",&n);
    for(register int i=0;i<a;++s){
        scanf("%lld",&x);
        short cnt=0;
        while(x&1){
            x>>=1;
            ++cnt;
        }
        s=s<cnt?s:cnt;
    }
    pritnf("%lld\n",s);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |     for(register int i=0;i<a;++s){
      |                      ^
a.cc:5:28: error: 'a' was not declared in this scope
    5 |     for(register int i=0;i<a;++s){
      |                            ^
a.cc:14:5: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   14 |     pritnf("%lld\n",s);
      |     ^~~~~~
      |     printf
Language: C++

#include<cstdio>
long long x,s=101,cnt;
int main()
{
    scanf("%lld",&n);
    for(register int i=0;i<a;++s)
    {
        scanf("%lld",&x);
        short cnt=0;
        while(x&1)
        {
            x>>=1;
            ++cnt;
        }
        s=s<cnt?s:cnt;
    }
    pritnf("%lld\n",s);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'n' was not declared in this scope
    5 |     scanf("%lld",&n);
      |                   ^
a.cc:6:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    6 |     for(register int i=0;i<a;++s)
      |                      ^
a.cc:6:28: error: 'a' was not declared in this scope
    6 |     for(register int i=0;i<a;++s)
      |                            ^
a.cc:17:5: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   17 |     pritnf("%lld\n",s);
      |     ^~~~~~
      |     printf
Language: C++

#include<cstdio>
long long x,s=101,cnt;
int main()
{
    scanf("%lld",&n);
    for(register int i=0;i<a;++s)
    {
        scanf("%lld",&x);
        short cnt=0;
        while(x&1)
        {
            b>>=1;
            ++cnt;
        }
        s=s<cnt?s:cnt;
    }
    pritnf("%lld\n",s);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'n' was not declared in this scope
    5 |     scanf("%lld",&n);
      |                   ^
a.cc:6:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    6 |     for(register int i=0;i<a;++s)
      |                      ^
a.cc:6:28: error: 'a' was not declared in this scope
    6 |     for(register int i=0;i<a;++s)
      |                            ^
a.cc:12:13: error: 'b' was not declared in this scope
   12 |             b>>=1;
      |             ^
a.cc:17:5: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   17 |     pritnf("%lld\n",s);
      |     ^~~~~~
      |     printf
Language: C++

#include<cstdio>
long long x,s=101,cnt;
int main()
{
    scafn("%lld",&n);
    for(register int i=0;i<a;++s)
    {
        scanf("%lld",&x);
        short cnt=0;
        while(x&1)
        {
            b>>=1;
            ++cnt;
        }
        s=s<cnt?s:cnt;
    }
    pritnf("%lld\n",s);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'n' was not declared in this scope
    5 |     scafn("%lld",&n);
      |                   ^
a.cc:5:5: error: 'scafn' was not declared in this scope; did you mean 'scanf'?
    5 |     scafn("%lld",&n);
      |     ^~~~~
      |     scanf
a.cc:6:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    6 |     for(register int i=0;i<a;++s)
      |                      ^
a.cc:6:28: error: 'a' was not declared in this scope
    6 |     for(register int i=0;i<a;++s)
      |                            ^
a.cc:12:13: error: 'b' was not declared in this scope
   12 |             b>>=1;
      |             ^
a.cc:17:5: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   17 |     pritnf("%lld\n",s);
      |     ^~~~~~
      |     printf
Language: C++

#include<iostream>  
#include<cmath>
#include<algorithm>
typedef unsigned int ud;

int main(){
  ud a;
  int d,dmin,n;
  dmin = 1000000;
  std::cin >> n;
  while(n--){
    std::cin >> a;
    d = 0;
    while(a%2 == 0)
      d++;
    dmin = min(dmin, d);
  }
  std::cout << dmin << std::endl;
  return 0;
}

    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'min' was not declared in this scope; did you mean 'std::min'?
   16 |     dmin = min(dmin, d);
      |            ^~~
      |            std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

import math

n = int(input())
a = list(map(int, input().split()))

ans = float("inf") #ansに無限を代入

for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Compiler output:
a.cc:6:20: error: stray '#' in program
    6 | ans = float("inf") #ansに無限を代入
      |                    ^
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> A(N);
  for(int i = 0; i < N; i++){
    cin >> A.at(i);
  }
  int count = 0;
  while(true){
    bool exist_odd = false;
    for(int i = 0; i < N; i++){
      if(A.at(i) %2 != 0){
        exist_odd = true
      }
    }
    if(exist_odd){
      break;
    }
    for(int i = 0; i < N; i++){
      A.at(i) /= 2;
    }
    count++;
  }
  cout << count << endl;
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before '}' token
   16 |         exist_odd = true
      |                         ^
      |                         ;
   17 |       }
      |       ~
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 = 0;
  while(true){
    bool exist_odd = false;
    for(int i = 0; i < N; i++){
      if(A.at(i) %2 != 0){
        exist_odd = true
      }
    }
    if(exist_odd){
      break;
    }
    for(int i = 0; i < N; i++){
      A.at(i) /= 2:
    }
    count++;
  }
  cout << count << endl;
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before '}' token
   16 |         exist_odd = true
      |                         ^
      |                         ;
   17 |       }
      |       ~                  
a.cc:23:19: error: expected ';' before ':' token
   23 |       A.at(i) /= 2:
      |                   ^
      |                   ;
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 = 0;
  while(true){
    bool exist_odd = false;
    for(int i = 0; i < N; i++){
      if(A.at(i) %2 != 0){
        break;
      }
      else{
        exist_odd = true;
        count++;
      }
    }
  }
  cout << count << endl;
}
        

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> A(N);
      |   ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> A(N);
      |          ^~~
a.cc:9:12: error: 'A' was not declared in this scope
    9 |     cin >> A.at(i);
      |            ^
a.cc:15:10: error: 'A' was not declared in this scope
   15 |       if(A.at(i) %2 != 0){
      |          ^
a.cc:24:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   24 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:24:20: error: 'endl' was not declared in this scope
   24 |   cout << count << endl;
      |                    ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N);
  for (i=0; i<N; i++) {
    cin >> vec.at(i);
  }
  for (j=0; j<N; j++) {
    for (k=0; k<N; k++) {
      if (vec.at(k)%(2^(j+1))!=0) {
        cout << j << endl;
      }
    }
  }
}

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

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

int main() {
  int N;
  cin >> N;
  rector<int> rec(N);
  for (i=0; i<N; i++) {
    cin >> rec.at(i);
  }
  for (j=0; j<N; j++) {
    for (k=0; k<N; k++) {
      if (rec.at(k)%(2^(j+1))!=0) {
        cout << j << endl;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'rector' was not declared in this scope
    7 |   rector<int> rec(N);
      |   ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   rector<int> rec(N);
      |          ^~~
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i=0; i<N; i++) {
      |        ^
a.cc:9:12: error: 'rec' was not declared in this scope
    9 |     cin >> rec.at(i);
      |            ^~~
a.cc:11:8: error: 'j' was not declared in this scope
   11 |   for (j=0; j<N; j++) {
      |        ^
a.cc:12:10: error: 'k' was not declared in this scope
   12 |     for (k=0; k<N; k++) {
      |          ^
a.cc:13:11: error: 'rec' was not declared in this scope
   13 |       if (rec.at(k)%(2^(j+1))!=0) {
      |           ^~~
Language: C++

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

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


Compiler output:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^