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

#include<vector>
#include<iostream>

int main()
{
	using namespace std;

	int N,counter;
	vector<int> A;
	cin >> N;
	for(int Ai,i = 0;i < N;i++)
	{
		cin >> Ai;
		A.pushback(Ai);
	}
	while(true)
	{
		for(int i = 0;i < A.size();i++)
		{
			if(A[i] % 2) A[i] /= 2;
			else goto end;
		}
		counter++;
	}
end:
	cout << counter;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'class std::vector<int>' has no member named 'pushback'; did you mean 'push_back'?
   14 |                 A.pushback(Ai);
      |                   ^~~~~~~~
      |                   push_back
Language: C++

include<Vector>
include<iostream>

int main()
{
	using namespace std;

	int N,counter;
	vector<int> A;
	cin >> N;
	for(int Ai,i = 0;i < N;i++)
	{
		cin >> Ai;
		A.pushback(Ai);
	}
	while(true)
	{
		for(int i = 0;i < A.size();i++)
		{
			if(A[i] % 2) A[i] /= 2;
			else goto end;
		}
		counter++;
	}
end:
	cout << counter;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<Vector>
      | ^~~~~~~
Language: C++

include<vector>
include<iostream>

int main()
{
	using namespace std;

	int N,counter;
	vector<int> A;
	cin >> N;
	for(int Ai,i = 0;i < N;i++)
	{
		cin >> Ai;
		A.pushback(Ai);
	}
	while(true)
	{
		for(int i = 0;i < A.size();i++)
		{
			if(A[i] % 2) A[i] /= 2;
			else goto end;
		}
		counter++;
	}
end:
	cout << counter;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<vector>
      | ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'vector' is not a member of 'std'
    7 |   std::vector<int> vec(N);
      |        ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:15: error: expected primary-expression before 'int'
    7 |   std::vector<int> vec(N);
      |               ^~~
a.cc:9:12: error: 'vec' was not declared in this scope
    9 |     cin >> vec.at(i);
      |            ^~~
a.cc:16:10: error: 'vec' was not declared in this scope
   16 |       if(vec.at(i) % 2 == 1){
      |          ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<int> vec(N);
  for(int i = 0; i < N; i++){
    cin >> vec.at(i);
  }
  
  int count = 0;
  bool odd_exist = false;
  while(odd_exist == false){
    for(int i = 0; i < N; i++){
      if(vec.at(i) % 2 == 1){
        odd_exist = true;
        break;
      }
      else{
        vec.at(i) /= 2;
      }
    }
    if(odd_exist == true){
      break;
    }
    count++;
  }
}


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

#include <iostream>
using namespace std;

int main() {
    int N;
  cin >> N;
  vector<int> vec(N);
  for(int i = 0; i < N; i++){
    cin >> vec.at(i);
  }
  
  int count = 0;
  bool odd_exist = false;
  while(odd_exist == false){
    for(int i = 0; i < N; i++){
      if(vec.at(i) % 2 == 1){
        odd_exist = true;
        break;
      }
      else{
        vec.at(i) /= 2;
      }
    }
    count++;
  }
  
    
}


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

#include <bits/stdc++.h>
using namespace std;
//2で割り切れる回数を求める関数設定
int divide　(int x){
  int a=0;
  for (int j=0; j < x; j++){
    //奇数の場合
    if(x%2 ==1){
      break;
    }
    //偶数の場合
    else{
      x /=2;
      a++;
    }
  }
  return a;
}


int main(){
  int N;
  cin>> N;
  vector <int> X(N);
  vector <int> Y(N);
  
  for (int i=0; i<N; i++){
    cin >> X.at(i);
   //配列Yを2で割り切れる回数に
    Y.at(i) = divide (X.at(i));
  }
  
  //ソートして一番小さい要素を取り出す
  sort (Y.begin(),Y.end());
  cout<< Y.at(0);
}

Compiler output:
a.cc:4:5: error: extended character 　 is not valid in an identifier
    4 | int divide　(int x){
      |     ^
a.cc: In function 'int main()':
a.cc:30:15: error: 'divide' was not declared in this scope
   30 |     Y.at(i) = divide (X.at(i));
      |               ^~~~~~
Language: C++

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

int main() {
  int N,a,b,j;
  cin >>N;
  j=0;
  b=100000000000000000000000;
  for (int i = 0; i < N; i++) {
    cin >> a;
    while (j < a) {
      if (a%2==1)
        break;
      else
        a/=2;
    }
    if (j<b)
      b=j
  }
  cout << b << endl;
}


Compiler output:
a.cc:8:5: warning: integer constant is too large for its type
    8 |   b=100000000000000000000000;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: warning: overflow in conversion from 'long int' to 'int' changes value from '200376420520689664' to '-159383552' [-Woverflow]
a.cc:18:10: error: expected ';' before '}' token
   18 |       b=j
      |          ^
      |          ;
   19 |   }
      |   ~
Language: Java

import java.unit.*;
 
class Main {
 public static void main (String[] args) {
   Scnner sc = new Scanner(system.in);

  int N = sc.nextIn();
  int a = sc.nextIn();
  int b = sc.nextIn();
  int c = sc.nextIn();

  for (int i=1, i>N, i+1){
    
   int d = a%2 
   int e = b%2
   int f = c%2
   
   if(d == 0 & e == 0 & f == 0)
   {}
    else if{
    break;
    }
  }
   
  }

Compiler output:
Main.java:12: error: ';' expected
  for (int i=1, i>N, i+1){
                 ^
Main.java:12: error: ';' expected
  for (int i=1, i>N, i+1){
                   ^
Main.java:12: error: not a statement
  for (int i=1, i>N, i+1){
                      ^
Main.java:14: error: ';' expected
   int d = a%2 
              ^
Main.java:15: error: ';' expected
   int e = b%2
              ^
Main.java:16: error: ';' expected
   int f = c%2
              ^
Main.java:20: error: '(' expected
    else if{
           ^
Main.java:25: error: reached end of file while parsing
  }
   ^
8 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: cannot convert 'const __gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
   24 |   int ans = min(vec2.begin(), vec2.end());
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                |
      |                const __gnu_cxx::__normal_iterator<int*, std::vector<int> >
Language: C++

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

int main(){

  int N;
  cin >> N;
  
  vector<int> vec(N);
  for(int i = 0; i < N; i++){
    cin >> vec.at(i);
  }
  vector<int> vec2(N,0);
  for(int i = 0; i < N; i++){
    for(int j = 0; j < N; j++){
      if(vec.at(i)%2 == 0){
      vec.at(i)/2;
      vec2.at(j)++; 
      }else{
        break;
      }
    }
  }
  int ans = min(vec2.begin(), vec2.end());
  cout << ans << endl;
}

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

#include <iostream>
using namespace std;

 int main() {

int N ;
vector<int>A(200);

for(int i=0; i<N; i++) cin >> A.at(i) ;
int res = 0;

while(true){
        bool fl = false ;
        for(int i=0; i<N; i++){
               if(A.at(i)%2 == 0) {
                       A.at(i) = A.at(i) / 2;
               }
               else{ 
                        fl = true ;
                        break;
                }
         }
        if(fl) break;
        res = res + 1;
}
cout << res << endl;

}


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

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

 int main() {

int N ;
vector<int>A(200);

for(int i=0; i<N; i++) cin >> A.at(i) ;
int res = 0;

while(true){
        bool fl = false ;
        for(int i=0; i<N; i++){
               if(A.at(i)%2 == 0) {
                       A.at(i) = A.at(i) / 2;
               }
               else{ 
                        fl == true ;
                {
         }
        if(fl) break;
        res = res + 1;
}
cout << res << endl;

}

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

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

int main(){
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i=0;i<n;++i) cin >> a[i];
  
  int ans = 0;
  
  bool odd=false;
  for (int i=0;i<n;++i){
    if (a[i]%2==1) {
      odd=true;
    }
  }
  if (odd) break;
  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:18:12: error: break statement not within loop or switch
   18 |   if (odd) break;
      |            ^~~~~
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) a[n];
  
  int ans = 0;
  bool odd=false;
  for (int i=0;i<n;++i){
     if (a[i]%2==1) odd=true;
  }
  if (odd) break;
  ans++;
  for (int i=0;i<n;++i)a[i]/=2;
  cout << ans << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    8 |   for (int i=0;i<n;++i) a[n];
      |                            ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1128:7: note: declared here
 1128 |       operator[](size_type __n) _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
a.cc:15:12: error: break statement not within loop or switch
   15 |   if (odd) break;
      |            ^~~~~
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) a[n];
  
  int ans = 0;
  while (i<n){
    if (a[i]%2==0){
       a[i]/2;
       break;
     }
    ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    8 |   for (int i=0;i<n;++i) a[n];
      |                            ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1128:7: note: declared here
 1128 |       operator[](size_type __n) _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
a.cc:11:10: error: 'i' was not declared in this scope
   11 |   while (i<n){
      |          ^
Language: C++

int main() {
    int N ;
    cin >> N;
    int c;
    vector<int> A(N);
    for(int i=1; i<N ;i++){
        cin >> A.at(i);
    }
    vector<int> ans(N);
    for(int i=0; i<N; i++){
        int c = A.at(i);
        int d = 0;
        for(int j=0;j<100000;j++){
          if(c%2 == 1){
            ans.at(i)=d;
            break;
          }
          if(c%2 ==0){
            c /= 2;
            d++;
          }
        }
    }
    sort(ans.begin(),ans.end());
    cout << ans.at(1) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> N;
      |     ^~~
a.cc:5:5: error: 'vector' was not declared in this scope
    5 |     vector<int> A(N);
      |     ^~~~~~
a.cc:5:12: error: expected primary-expression before 'int'
    5 |     vector<int> A(N);
      |            ^~~
a.cc:7:16: error: 'A' was not declared in this scope
    7 |         cin >> A.at(i);
      |                ^
a.cc:9:12: error: expected primary-expression before 'int'
    9 |     vector<int> ans(N);
      |            ^~~
a.cc:11:17: error: 'A' was not declared in this scope
   11 |         int c = A.at(i);
      |                 ^
a.cc:15:13: error: 'ans' was not declared in this scope
   15 |             ans.at(i)=d;
      |             ^~~
a.cc:24:10: error: 'ans' was not declared in this scope
   24 |     sort(ans.begin(),ans.end());
      |          ^~~
a.cc:24:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   24 |     sort(ans.begin(),ans.end());
      |     ^~~~
      |     short
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << ans.at(1) << endl;
      |     ^~~~
a.cc:25:26: error: 'endl' was not declared in this scope
   25 |     cout << ans.at(1) << endl;
      |                          ^~~~
Language: C++

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

int main() {
  int N,X,Y,A;
  cin>>N;
  X=64;
  	for(int i=0;i<N;i++){
      cin>>A;
      Y=0;
      	while(A/2==(A+1)/2){
            Y++;
            A/=2;
          }
          if(X>=Y){
            X=Y;
          }
        }
    }
  cout<<X<<endl;
}


Compiler output:
a.cc:20:3: error: 'cout' does not name a type
   20 |   cout<<X<<endl;
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

int main() {
  int N,X,Y,A;
  cin>>N;
  X=64;
  	for(int i=0;i<N;i++){
      cin>>A;
      y=0;
      	while(A/2==(A+1)/2){
            Y++;
            A/=2;
          }
          if(X>=Y){
            X=Y;
          }
        }
    }
  cout<<X<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'y' was not declared in this scope
   10 |       y=0;
      |       ^
a.cc: At global scope:
a.cc:20:3: error: 'cout' does not name a type
   20 |   cout<<X<<endl;
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

int main() {
  int N, A, b, c, d;
  cin >> N;
  b = 0;
  c = 0;
  d = 2;
  // ここにプログラムを追記
  for (int i = 0; i < N; i++) {
    cin >> A;
    if (A / d == 0) {
      b++;
    }
    else {
      break;
    }
    if (b == N) {
      c++
    }
    d = d * 2;
      
  }
  cout << c << endl;
        
}


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

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

int main() {
  int n,a,sum=0,min=0;
  cin>>n;
  bool x;
  for(int i=0;i<n;i++){
    cin>>a;
    sum=0;
    x=1;
    while(x){
      if(a%2==0){
        a/=2;
        sum++;
      }
      else
        x=0;
    }
    if(min>sum)
      max=sum;
  }
  cout<<min<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: overloaded function with no contextual type information
   21 |       max=sum;
      |           ^~~
Language: C++

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

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

    int answer = 0;
    bool finished = false;

    while () {
        for (int i = 0; i < n; i++) {
            if (a[i] % 2 == 0) {
                a[i] /= 2;
            } else {
                finished = true;
                break;
            }
        if (finished) {
            break;
        }
        answer++;
        }
    }
    cout << answer << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: expected primary-expression before ')' token
   16 |     while () {
      |            ^
Language: C++

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

int main() {
    int n;
    vector<int> a(n);
    for (i = 0; i < n; i++) {
        cin >> a.at(i);
    }

    int answer = 0;
    bool finished = false

    while {
        for (i = 0; i < n; i++) {
            if (a.at(i) %= 1) {
                a.at(i) /= 2;
            } else {
                finished = True;
                break;
            }
        if (finished) {
            break;
        }
        answer++ 
        }
    }
    cout << amswer << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'i' was not declared in this scope
    9 |     for (i = 0; i < n; i++) {
      |          ^
a.cc:16:5: error: expected ',' or ';' before 'while'
   16 |     while {
      |     ^~~~~
a.cc:30:13: error: 'amswer' was not declared in this scope; did you mean 'answer'?
   30 |     cout << amswer << endl;
      |             ^~~~~~
      |             answer
Language: C++

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

int main() {
    int n;
    vector<int> a(n);
    for (i = 0; i < n; i++) {
        cin >> a.at(i);
    }

    int answer = 0;
    bool finished = false

    while {
        for (i = 0; i < n; i++) {
            if (a[i] %= 1) {
                a[i] /= 2;
            } else {
                finished = True;
                break;
            }
        if (finished) {
            break;
        }
        answer++
        }
    }
    cout << amswer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     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 | #include <string>
a.cc:7:12: error: expected primary-expression before 'int'
    7 |     vector<int> a(n);
      |            ^~~
a.cc:8:10: error: 'i' was not declared in this scope
    8 |     for (i = 0; i < n; i++) {
      |          ^
a.cc:9:16: error: 'a' was not declared in this scope
    9 |         cin >> a.at(i);
      |                ^
a.cc:15:5: error: expected ',' or ';' before 'while'
   15 |     while {
      |     ^~~~~
a.cc:29:13: error: 'amswer' was not declared in this scope; did you mean 'answer'?
   29 |     cout << amswer << endl;
      |             ^~~~~~
      |             answer
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    6 |   *A = new int[N];
      |        ^~~~~~~~~~
      |        |
      |        int*
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    6 |   *A = new int[N];
      |        ^~~~~~~~~~
      |        |
      |        int*
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i = 0;i < N;i++)
      |       ^
a.cc:11:13: error: 'i' was not declared in this scope
   11 |         for(i = 0;i < N;i++){
      |             ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int A, count;
  int min = -1;
  for (int i=0; i<N; i++) {
    cin >> A;
    count = 0;
    while (A % 2 == 0) {
      A /= 2;
      count++;
    }
    if (min > count || count < 0)
      min = count;
    if (min == 0)
      break
  }
  cout << min << endl;
}
        


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

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

int main() {
  int N;
  cin >> N;
  
  int A, count;
  int min = -1;
  for (int i=0; i<N; i++) {
    cin >> A;
    count = 0;
    while (A % 2 == 0) {
      A /= 2;
      count++;
    }
    if (min > count || count < 0)
      min = count
  }
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected ';' before '}' token
   18 |       min = count
      |                  ^
      |                  ;
   19 |   }
      |   ~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int A, count;
  int min = 0;
  for (int i=0; i<N; i++) {
    cin >> A;
    count = -1;
    while (A % 2 == 0) {
      A /= 2;
      count++;
    }
    if (min > count || count < 0)
      min = count
  }
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected ';' before '}' token
   18 |       min = count
      |                  ^
      |                  ;
   19 |   }
      |   ~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int A, count;
  int min = 0;
  for (i=0; i<N; i++) {
    cin >> A;
    count = -1;
    while (A % 2 == 0) {
      A /= 2;
      count++;
    }
    if (min > count || count < 0)
      min = count
  }
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i=0; i<N; i++) {
      |        ^
a.cc:18:18: error: expected ';' before '}' token
   18 |       min = count
      |                  ^
      |                  ;
   19 |   }
      |   ~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int A, count;
  int min = 0;
  for (i==0; i<N; i++) {
    cin >> A;
    count = -1;
    while (A % 2 = 0) {
      A /= 2;
      count++;
    }
    if (min > count || count < 0)
      min = count
  }
}
        

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i==0; i<N; i++) {
      |        ^
a.cc:13:14: error: lvalue required as left operand of assignment
   13 |     while (A % 2 = 0) {
      |            ~~^~~
a.cc:18:18: error: expected ';' before '}' token
   18 |       min = count
      |                  ^
      |                  ;
   19 |   }
      |   ~
Language: C++

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

int main() {
int N,ans;
cin >> N;
ans == INT_MAX;
for(int i = 1 ; i <= N;i++){
 int x,y; cin >> x;
 while(x%2 == 0){
     y++;x /= 2;
 }
 if(y<ans)
 ans = y;
}
 cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'c' was not declared in this scope
   16 |  cout << c << endl;
      |          ^
Language: Java

import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int bit = 0;
		for(int i=0; i<N; i++){
			bit |= sc.nextInt();
		}
		System.out.println(Integer.numberOfTrailingZeros(bit);
		}
	}
}

Compiler output:
Main.java:11: error: ')' or ',' expected
		System.out.println(Integer.numberOfTrailingZeros(bit);
		                                                     ^
Main.java:14: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,count,error=0;
  cin>>N;
  vector<int> vec(N);
  for(int i=0;i<N;i++){
  cin>>vec.at(i);
  }
  while(error<1){
    for(int i=0;i<N;i++){
    if(vec.at(i)%2==1){error++}
    vec.at(i)/=2;
    }
    count++;
  }
  cout<<count-1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: expected ';' before '}' token
   13 |     if(vec.at(i)%2==1){error++}
      |                               ^
      |                               ;
Language: C++

# B - Shift Only
"""
import sys
import clipboard

# テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
# 1行ずつ読み込むように、テキストファイルにいったんコピーする
if sys.platform == 'ios':
	sample = clipboard.get()
	file = open('input_file.txt', 'w')
	file.write(sample)
	file.close()
	sys.stdin = open('input_file.txt')
"""
		
						
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:1:3: error: invalid preprocessing directive #B
    1 | # B - Shift Only
      |   ^
a.cc:2:3: warning: missing terminating " character
    2 | """
      |   ^
a.cc:2:3: error: missing terminating " character
a.cc:6:3: error: extended character 、 is not valid in an identifier
    6 | # テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
      |   ^
a.cc:6:3: error: invalid preprocessing directive #\U000030c6\U000030b9\U000030c8\U000030b1\U000030fc\U000030b9\U0000304c\U00008907\U00006570\U0000884c\U0000306e\U00005834\U00005408\U00003001iOS\U00003060\U00003068\U00004e00\U00006c17\U0000306b\U00008aad\U0000307f\U00008fbc\U00003093\U00003067\U00003057\U0000307e\U00003046\U0000306e\U00003067
    6 | # テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:3: error: extended character 、 is not valid in an identifier
    7 | # 1行ずつ読み込むように、テキストファイルにいったんコピーする
      |   ^
a.cc:7:3: error: "1行ずつ読み込むように、テキストファイルにいったんコピーする" after # is not a positive integer
    7 | # 1行ずつ読み込むように、テキストファイルにいったんコピーする
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:8:20: warning: multi-character character constant [-Wmultichar]
    8 | if sys.platform == 'ios':
      |                    ^~~~~
a.cc:10:21: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
   10 |         file = open('input_file.txt', 'w')
      |                     ^~~~~~~~~~~~~~~~
a.cc:13:26: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
   13 |         sys.stdin = open('input_file.txt')
      |                          ^~~~~~~~~~~~~~~~
a.cc:14:3: warning: missing terminating " character
   14 | """
      |   ^
a.cc:14:3: error: missing terminating " character
a.cc:2:1: error: expected unqualified-id before string constant
    2 | """
      | ^~
Language: C++

# B - Shift Only
import sys
import clipboard

# テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
# 1行ずつ読み込むように、テキストファイルにいったんコピーする
if sys.platform == 'ios':
	sample = clipboard.get()
	file = open('input_file.txt', 'w')
	file.write(sample)
	file.close()
	sys.stdin = open('input_file.txt')
		
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:1:3: error: invalid preprocessing directive #B
    1 | # B - Shift Only
      |   ^
a.cc:5:3: error: extended character 、 is not valid in an identifier
    5 | # テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
      |   ^
a.cc:5:3: error: invalid preprocessing directive #\U000030c6\U000030b9\U000030c8\U000030b1\U000030fc\U000030b9\U0000304c\U00008907\U00006570\U0000884c\U0000306e\U00005834\U00005408\U00003001iOS\U00003060\U00003068\U00004e00\U00006c17\U0000306b\U00008aad\U0000307f\U00008fbc\U00003093\U00003067\U00003057\U0000307e\U00003046\U0000306e\U00003067
    5 | # テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:6:3: error: extended character 、 is not valid in an identifier
    6 | # 1行ずつ読み込むように、テキストファイルにいったんコピーする
      |   ^
a.cc:6:3: error: "1行ずつ読み込むように、テキストファイルにいったんコピーする" after # is not a positive integer
    6 | # 1行ずつ読み込むように、テキストファイルにいったんコピーする
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:20: warning: multi-character character constant [-Wmultichar]
    7 | if sys.platform == 'ios':
      |                    ^~~~~
a.cc:9:21: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
    9 |         file = open('input_file.txt', 'w')
      |                     ^~~~~~~~~~~~~~~~
a.cc:12:26: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
   12 |         sys.stdin = open('input_file.txt')
      |                          ^~~~~~~~~~~~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main() {
  int n,ans=10000,count=0;
  cin >> n;
  rep(i,n){
    int a;
    cin >> a;
    rep(j,200){
      if(a%2==0){
        count++;
        a/=2;
      }else{
        break;
      }
      ans = min({ans,count});
  }
  cout << ans << endl;
}


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

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

  for (int i = 0; i<N-1 ; i++) { 
    int j = 0;
    int A;
    cin >> A;
    int a = A;
    while (true) {
      if (a%2 == 1)
        break;
      else 
        a/=2;
      j++;
    }
    if (j < sum) 
      sum = j;
  }
  cout << sum << endl;
}

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin >> A;
      |     ^~~
a.cc:5:5: error: expected unqualified-id before 'while'
    5 |     while (true) {
      |     ^~~~~
a.cc:14:3: error: expected unqualified-id before 'for'
   14 |   for (int i = 0; i<N-1 ; i++) {
      |   ^~~
a.cc:14:19: error: 'i' does not name a type
   14 |   for (int i = 0; i<N-1 ; i++) {
      |                   ^
a.cc:14:27: error: 'i' does not name a type
   14 |   for (int i = 0; i<N-1 ; i++) {
      |                           ^
a.cc:29:3: error: 'cout' does not name a type
   29 |   cout << sum << endl;
      |   ^~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int A;
    cin >> A;
    int a = A;
    while (true) {
      if (a%2 == 1)
        break;
      else 
        a/=2;
      j++;
    }
  int sum = j;

  for (int i = 0; i<N-1 ; i++) { 
    int j = 0;
    int A;
    cin >> A;
    int a = A;
    while (true) {
      if (a%2 == 1)
        break;
      else 
        a/=2;
      j++;
    }
    if (j < sum) 
      sum = j;
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'j' was not declared in this scope
   16 |       j++;
      |       ^
a.cc:18:13: error: 'j' was not declared in this scope
   18 |   int sum = j;
      |             ^
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 j = 0;
    int a, A;
      cin >> A;
      int a = A;
    while (true) {
      if (a%2 == 1)
        break;
      else 
        a/=2;
      j++;
    }
    if (j < sum) 
      sum = j;
  }
  cout << sum << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: redeclaration of 'int a'
   13 |       int a = A;
      |           ^
a.cc:11:9: note: 'int a' previously declared here
   11 |     int a, A;
      |         ^
a.cc:24:23: error: expected '}' at end of input
   24 |   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;
  vector<int>A(N);
  for(int i = 0; i < N; i++){
    cin >> A.at(i);
  }
  int count = 0;
  while(true){
    if(A.at(i) % 2 == 1) break;
    if(A.at(i) % 2 == 0) {
      A.at(i) = A.at(i) / 2;
      count++;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'i' was not declared in this scope
   13 |     if(A.at(i) % 2 == 1) break;
      |             ^
a.cc:14:13: error: 'i' was not declared in this scope
   14 |     if(A.at(i) % 2 == 0) {
      |             ^
Language: C++

#include <iostream>
#include <string>

int main() {
    int n;
    int a[210];
    int x;

    std::cin >> n;
    for(int i=0;i<n;i++){
        std::cin >> a[i];
    } 
    
    bool odd_exist=false;
    while(1){
        for(int i=0;i<n;i++){
            if(a[i] % 2 !=0)    odd_exist=true;
        }
        if(odd_exist)   break;
        for(int i=0;i<n;i++){
            a[i] /= 2;
        }
        x++;
    }

    std::cout << x << std::endl;

    return 0;


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'countner' was not declared in this scope; did you mean 'counter'?
   18 |     countner = tmp;
      |     ^~~~~~~~
      |     counter
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'coutner' was not declared in this scope; did you mean 'counter'?
   18 |     coutner = tmp;
      |     ^~~~~~~
      |     counter
a.cc:20:11: error: 'couter' was not declared in this scope; did you mean 'counter'?
   20 |   cout << couter << endl;
      |           ^~~~~~
      |           counter
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'coutner' was not declared in this scope; did you mean 'counter'?
   17 |     coutner = tmp;
      |     ^~~~~~~
      |     counter
a.cc:19:11: error: 'couter' was not declared in this scope; did you mean 'counter'?
   19 |   cout << couter << endl;
      |           ^~~~~~
      |           counter
Language: C++

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

int main() {
  int n, ti,ai;
  cin>>n;
  ti=1;
  for(int i = 0; i<n; i++){
    cin >> ai;
    while(ai%(2^ti) == 0){
      ai/=2
      ti++;
    }
  }
  cout<< ti;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before 'ti'
   11 |       ai/=2
      |            ^
      |            ;
   12 |       ti++;
      |       ~~
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'N'
    6 |   cin N;
      |      ^~
      |      ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'N' was not declared in this scope
    5 |   vector<int>A(N);
      |                ^
a.cc:21:12: error: expected ';' before '}' token
   21 |       ans++
      |            ^
      |            ;
   22 |     }
      |     ~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'odd' was not declared in this scope
   15 |         if(A[i]%2!=0)odd=true;
      |                      ^~~
a.cc:17:10: error: 'odd' was not declared in this scope
   17 |       if(odd)break;
      |          ^~~
a.cc:22:12: error: expected ';' before '}' token
   22 |       ans++
      |            ^
      |            ;
   23 |     }
      |     ~       
a.cc:24:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'i' was not declared in this scope
    8 |     cin>>A[i];
      |            ^
a.cc:21:12: error: expected ';' before '}' token
   21 |       ans++
      |            ^
      |            ;
   22 |     }
      |     ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'N'
    6 |   cin N;
      |      ^~
      |      ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'N'
    6 |   cin N;
      |      ^~
      |      ;
a.cc:7:14: error: expected ';' before 'for'
    7 |   c = 0,m = 0
      |              ^
      |              ;
    8 |   for (i = 0;i < N;i++) {
      |   ~~~         
a.cc:8:23: error: expected ';' before ')' token
    8 |   for (i = 0;i < N;i++) {
      |                       ^
      |                       ;
Language: C++

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

int main(){
  int N,A;
  int number2 = 7;
  cin >> N;
  for(int i=0; i<N; i++){
    int number1 = 0,
    cin >> A;
    while(true){
      if(A%2 ==0){
        A /= 2;
        number1++;
      }
      else{
        break;
      }
    }
    if(number1 <= number2){
      number2 = number1;
    }
    else{ 
    }
  }
  cout << number2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected initializer before '>>' token
   10 |     cin >> A;
      |         ^~
Language: C

#include<stdio.h>

int main(void) {
	//入力される数字の数
	int num;

	//入力された数字を格納する配列
	int array[200];

	int i;
	int count = 0;
	
	//偶奇判定のフラグ
	int flag = 0;
	

	//入力1　
	scanf("%d", &num);

	//入力2　数字を配列に格納
	for ( i = 0; i < num; i++)
	{
		scanf("%d", &array[i]);
	}

	//処理関数　
	while (true)
	{
		for (i = 0; i < num; i++)
		{
			if (array[i] % 2 != 0) flag = 1;
		}

		//奇数があれば終了
		if (flag) break;

		for ( i = 0; i < num; i++)
		{
			array[i] = array[i] / 2;
		}
		count++;
	}
	
	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:16: error: 'true' undeclared (first use in this function)
   27 |         while (true)
      |                ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:27:16: note: each undeclared identifier is reported only once for each function it appears in
   27 |         while (true)
      |                ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'vector' was not declared in this scope
    6 | vector <int> data(N);
      | ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:9: error: expected primary-expression before 'int'
    6 | vector <int> data(N);
      |         ^~~
a.cc:7:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 | for (int i; i<N; ++i) cin>>data[i];
      |                                ^
a.cc:12:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |       if (data[i]%2!=0) t=true;
      |               ^
a.cc:17:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   17 |       data[i]/=2;}
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'vector' was not declared in this scope
    6 | vector <int> data(N);
      | ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:9: error: expected primary-expression before 'int'
    6 | vector <int> data(N);
      |         ^~~
a.cc:7:6: error: 'i' was not declared in this scope
    7 | for (i; i<N; ++i) cin>>data[i];
      |      ^
a.cc:12:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |       if (data[i]%2!=0) t=true;
      |               ^
a.cc:17:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   17 |       data[i]/=2;}
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'vector' was not declared in this scope
    6 | vector <int> data(N);
      | ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:9: error: expected primary-expression before 'int'
    6 | vector <int> data(N);
      |         ^~~
a.cc:7:6: error: 'i' was not declared in this scope
    7 | for (i; i<N; ++i) cin>>data[i];
      |      ^
a.cc:11:9: error: 'i' was not declared in this scope
   11 |     for(i=0; i<N; ++i){
      |         ^
a.cc:16:10: error: 'i' was not declared in this scope
   16 |     for (i=0; i<N; ++i){
      |          ^