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

#include<bits/bdsc++.h>
using namespace std;
int main(){
	int N,a[200],count=0;
    bool flag=true;
    for(int i=0;i<N;i++){
    	cin >> a[i];
    }
  	while(flag){
  		for(int i=0;i<N;i++){
    		if(a[i]%2!=0){
            	flag=false;
                break;
            }else{
            	a[i]/=2;
            }
    	}
      	if(flag) count++;
    }
}

Compiler output:
a.cc:1:9: fatal error: bits/bdsc++.h: No such file or directory
    1 | #include<bits/bdsc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
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;
  while(true){
    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:4: error: expected '}' at end of input
   21 |   }
      |    ^
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);
    if(a.at(i) % 2 != 0){
      cout << 0 << endl;
      return 0;
    }
  }
  
  for(int j = 1, j < 9999, j++){
  for(int i = 0; i < N; i++){
    if(a.at(i) % 2 == 0){
      a.at(i) /= 2;
    } else{
      cout << j << endl;
    }
  }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: expected ';' before '<' token
   17 |   for(int j = 1, j < 9999, j++){
      |                   ^~
      |                   ;
a.cc:17:20: error: expected primary-expression before '<' token
   17 |   for(int j = 1, j < 9999, j++){
      |                    ^
a.cc:17:31: error: expected ';' before ')' token
   17 |   for(int j = 1, j < 9999, j++){
      |                               ^
      |                               ;
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N,G=0;
  cin >> N;
  vector<int> a(N);

  for(int i = 0; i < N; i++){
    cin >> a.at(i);
    if(a.at(i) % 2 != 0){
      cout << 0 << endl;
      return 0;
    }
  }
  
  for(int j = 1, j < 9999, j++){
  for(int i = 0; i < N; i++){
    if(a.at(i) % 2 == 0){
      a.at(i) /= 2;
    } else{
      cout << j << endl;
    }
  }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: 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 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> a(N);
      |          ^~~
a.cc:10:12: error: 'a' was not declared in this scope
   10 |     cin >> a.at(i);
      |            ^
a.cc:17:19: error: expected ';' before '<' token
   17 |   for(int j = 1, j < 9999, j++){
      |                   ^~
      |                   ;
a.cc:17:20: error: expected primary-expression before '<' token
   17 |   for(int j = 1, j < 9999, j++){
      |                    ^
a.cc:17:31: error: expected ';' before ')' token
   17 |   for(int j = 1, j < 9999, j++){
      |                               ^
      |                               ;
a.cc:19:8: error: 'a' was not declared in this scope
   19 |     if(a.at(i) % 2 == 0){
      |        ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N,G=0;
  vector<int> a(N);
  cin >> N;
  
  for(int i = 0; i < N; i++){
    cin >> a.at(i);
    if(a.at(i) % 2 != 0){
      cout << 0 << endl;
      return 0;
    }
  }
  
  for(int j = 1, j < 9999, j++){
  for(int i = 0; i < N; i++){
    if(a.at(i) % 2 == 0){
      a.at(i) /= 2;
    } else{
      cout << j << endl;
    }
  }
  }

}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N = 0;
  cin >> N;
  int x = 0;
  __int64 sum = 0;
  int ans = 0;
  
  for(int n=0; n<N; n++){
    cin >> x;
    sum += x;
  }

  while(sum % 2 == 0){
    cout << sum << endl;
    ans = ans + 1;
    sum = sum / 2;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
    8 |   __int64 sum = 0;
      |   ^~~~~~~
      |   __ynf64
a.cc:13:5: error: 'sum' was not declared in this scope
   13 |     sum += x;
      |     ^~~
a.cc:16:9: error: 'sum' was not declared in this scope
   16 |   while(sum % 2 == 0){
      |         ^~~
Language: C++

#include<iostream>

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


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

#include<iostream>

using namespace std;
 int N;
 int A[210];
int main(){
  cin >> N;
  for(int i = 0;i<N;i++){
    cin >> A[i];
  }
   	
    int res;
    
    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:24:20: error: expected ';' before '}' token
   24 |           A[i] /= 2
      |                    ^
      |                    ;
   25 |         }
      |         ~
Language: C++

#include<iostream>

using namespace std;
 int N;
 int A[210];
int main(){
  cin >> N;
  for(int i = 0;i<N;i++){
    cin >> A[i];
   	
    int res;
    
    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:20: error: expected ';' before '}' token
   23 |           A[i] /= 2
      |                    ^
      |                    ;
   24 |         }
      |         ~           
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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

int count(vector<int> a, int n){
  
  rep(i,n){
    if(a[i]%2 != 0){
      return 0;
      break;
    }
  }
  
  rep(i,n){
    a[i] = a[i]/2;
    }
    return count(a) + 1;
  }
}

int main(){
  int n;
  cin >> n;
  
  vector<int> a(n);
  rep(i,n){
    cin >> a[i];
  }
  
  cout << count(a, n) << endl;
}


Compiler output:
a.cc: In function 'int count(std::vector<int>, int)':
a.cc:17:17: error: no matching function for call to 'count(std::vector<int>&)'
   17 |     return count(a) + 1;
      |            ~~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note: candidate: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note:   candidate expects 4 arguments, 1 provided
a.cc:5:5: note: candidate: 'int count(std::vector<int>, int)'
    5 | int count(vector<int> a, int n){
      |     ^~~~~
a.cc:5:5: note:   candidate expects 2 arguments, 1 provided
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int count(vector<int> &a, int n){
  
  rep(i,n){
    if(a[i]%2 != 0){
      return 0;
      break;
    }
  }
  
  rep(i,n){
      a[i] = a[i]/2;
    }
    return count(a) + 1;
  }
}

int main(){
  int n;
  cin >> n;
  
  vector<int> a(n);
  rep(i,n){
    cin >> a[i];
  }
  
  cout << count(a, n) << endl;
}


Compiler output:
a.cc: In function 'int count(std::vector<int>&, int)':
a.cc:17:17: error: no matching function for call to 'count(std::vector<int>&)'
   17 |     return count(a) + 1;
      |            ~~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note: candidate: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note:   candidate expects 4 arguments, 1 provided
a.cc:5:5: note: candidate: 'int count(std::vector<int>&, int)'
    5 | int count(vector<int> &a, int n){
      |     ^~~~~
a.cc:5:5: note:   candidate expects 2 arguments, 1 provided
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int count(vector<int> &a){
  
  rep(i,n){
    if(a[i]%2 != 0){
      return 0;
      break;
    }
  }
  
  rep(i,n){
      a[i] = a[i]/2;
    }
    return count(a) + 1;
  }
}

int main(){
  int n;
  cin >> n;
  
  vector<int> a(n);
  rep(i,n){
    cin >> a[i];
  }
  
  cout << count(a) << endl;
}


Compiler output:
a.cc: In function 'int count(std::vector<int>&)':
a.cc:7:9: error: 'n' was not declared in this scope
    7 |   rep(i,n){
      |         ^
a.cc:3:33: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                                 ^
a.cc:14:9: error: 'n' was not declared in this scope
   14 |   rep(i,n){
      |         ^
a.cc:3:33: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                                 ^
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int count(vector<int> &a){
  
  rep(i,n){
    if(a[i]%2 != 0){
      return 0;
      break;
    }
  }
  
  rep(i,n){
      a[i] = a[i]/2;
    }
    return count(a) + 1;
  }
}

int main(){
  int n;
  cin >> n;
  
  vector<int> a(n);
  rep(i,n){
    cin >> a[i];
  }
  
  cout << count(a) << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc:5:11: error: 'vector' was not declared in this scope
    5 | int count(vector<int> &a){
      |           ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #iclude <bits/stdc++.h>
a.cc:5:18: error: expected primary-expression before 'int'
    5 | int count(vector<int> &a){
      |                  ^~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
a.cc: In function 'int main()':
a.cc:23:3: error: 'cin' was not declared in this scope
   23 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude <bits/stdc++.h>
a.cc:25:3: error: 'vector' was not declared in this scope
   25 |   vector<int> a(n);
      |   ^~~~~~
a.cc:25:3: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:25:10: error: expected primary-expression before 'int'
   25 |   vector<int> a(n);
      |          ^~~
a.cc:27:12: error: 'a' was not declared in this scope
   27 |     cin >> a[i];
      |            ^
a.cc:30:3: error: 'cout' was not declared in this scope
   30 |   cout << count(a) << endl;
      |   ^~~~
a.cc:30:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:17: error: 'a' was not declared in this scope
   30 |   cout << count(a) << endl;
      |                 ^
a.cc:30:18: error: 'count' cannot be used as a function
   30 |   cout << count(a) << endl;
      |                  ^
a.cc:30:23: error: 'endl' was not declared in this scope
   30 |   cout << count(a) << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude <bits/stdc++.h>
Language: C++

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

int N, A, S;

int main(){
	cin >> N;
  	for (int i = 0; i < N; i++){
      cin >> A[i];
    }
  	
  	int F = 0;
  	if (F = 0){
      for (int i = 0; i < N; i++){
        S++;
        if (A[i]  % 2 != 0){
          F++;
        }
      }
    }
  cout << S - 1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> N;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <algorithm>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:15: error: invalid types 'int[int]' for array subscript
   10 |       cin >> A[i];
      |               ^
a.cc:17:14: error: invalid types 'int[int]' for array subscript
   17 |         if (A[i]  % 2 != 0){
      |              ^
a.cc:22:3: error: 'cout' was not declared in this scope
   22 |   cout << S - 1 << endl;
      |   ^~~~
a.cc:22:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:20: error: 'endl' was not declared in this scope
   22 |   cout << S - 1 << endl;
      |                    ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <algorithm>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C

#include <stdio.h>

int main()
{
  int n, counter;
  int flag = 1;
  scanf("%d\n", &n);
  int lst[n];
  scanf("%d", lst);
  for(;;){
    for(int i=0; i< n; i++){
    	if(lst[i] % 2 == 0) lst[i] = (lst[i] / 2);
      	else{
          flag = 0;
          break
        }
      
  	} 
    if(flag) counter++;
  }
  
  printf("%d", counter);
}

Compiler output:
main.c: In function 'main':
main.c:15:16: error: expected ';' before '}' token
   15 |           break
      |                ^
      |                ;
   16 |         }
      |         ~
Language: C++

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

int main() {
  int N;
  int ans;
  ans = 10**3;
  cin >> N;
  
  for (int i=0;i<N;i++){
    int a;
    int tmp=0;
   	cin >>  a;
    
    while (a%2==0){
      a /= 2;
      tmp +=1;
    }
    
    if(ans>tmp){
      ans = tmp;
    }
  }
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: invalid type argument of unary '*' (have 'int')
    7 |   ans = 10**3;
      |            ^~
Language: C++

int main() {
  int N;
  int ans=0;
  cin >> N;
  
  for (i=0;i<N;i++){
    int a;
    int tmp=0;
   	cin >>  a;
    while (a%2==0){
      a/=2;
      tmp +=1;
    }
    
    if(ans<tmp){
      ans = tmp;
    }
  }
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> N;
      |   ^~~
a.cc:6:8: error: 'i' was not declared in this scope
    6 |   for (i=0;i<N;i++){
      |        ^
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout << ans << endl;
      |   ^~~~
a.cc:20:18: error: 'endl' was not declared in this scope
   20 |   cout << ans << endl;
      |                  ^~~~
Language: C++

int main() {
  int N;
  int ans=0;
  cin >> N;
  
  for (i=0;i<N;i++){
    int a;
    int tmp=0;
   cin >>  a;
    while (a%2==0){
      a/=0;
      tmp +=1;
    }
    
    if(ans<tmp){
      ans = tmp;
    }
  }
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> N;
      |   ^~~
a.cc:6:8: error: 'i' was not declared in this scope
    6 |   for (i=0;i<N;i++){
      |        ^
a.cc:11:8: warning: division by zero [-Wdiv-by-zero]
   11 |       a/=0;
      |       ~^~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout << ans << endl;
      |   ^~~~
a.cc:20:18: error: 'endl' was not declared in this scope
   20 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main(){
  int N,a[200];
  int dim = 100;
  cin >> N;
  for(int i = 0;i < N; i++){
    cin >> a[i];
    int b = 0;
    while(a[i] % 2 == 0){
      a[i] = a[i] / 2
      b++;
    }
    dim = min(dim,b);
  }
  cout << dim << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before 'b'
   12 |       a[i] = a[i] / 2
      |                      ^
      |                      ;
   13 |       b++;
      |       ~
Language: C++

#include <bits/stdc++.h>
#include <algolithm>
using namespace std;
int main(){
  int N,a[200];
  int dim = 100;
  cin >> N;
  for(int i = 0;i < N; i++){
    cin >> a[i];
    int b = 0;
    while(a[i] % 2 == 0){
      b++;
    }
    dim = min(dim,b);
  }
  cout << dim << endl;
}

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

#include <bits/stdc++.h>
#include <algolithm>
using namespace std;
int main(){
  int N,a[200];
  int dim = 100;
  cin >> N;
  for(int i = 0;i < N; i++){
    cin >> a[i];
    int b = 0;
    while(a[i] % 2 == 0){
      b++;
    }
    dim = min(dim,b);
  }
  cout << dim << endl;
}
    

Compiler output:
a.cc:2:10: fatal error: algolithm: No such file or directory
    2 | #include <algolithm>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
 
int main(){
  int i;
  int n;
  int k = 0;
  int r = 0;
  int a[201]
  
  scanf("%d", &n);
  
  for(i = 0; i < n; i++){
    scanf("%d", &a[i]);
  }
  
  while(1){
    for(i = 0; i < n; i++){
    	if(a[i] % 2){
      		r = 1;
      		break;
    	}
    	a[i] /= 2;
  	}
    if(r == 0)
      k++;
    else if(r == 1)
      break;
  }
  
  printf("%d\n", k);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   10 |   scanf("%d", &n);
      |   ^~~~~
main.c:13:18: error: 'a' undeclared (first use in this function)
   13 |     scanf("%d", &a[i]);
      |                  ^
main.c:13:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int n,a[n],ans=0;
  bool flag=true;
  cin >> n;
  for(int i=0;i<n;i++)cin >> a[i];
  while(flag){
    ans++;
    for(int i=0;i<n;i++){
      if(a[i]%2==1){
        flag=false;
        ans--;
        break;
      }else{
        a[i]/=2;
      }      
    }
  }

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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int n,a[n],ans=0;
  bool flag=true;
  cin >> n;
  for(int i=0;i<n;i++)cin >> a[i];
  while(flag){
    ans++
    for(int i=0;i<n;i++){
      if(a[i]%2==1){
        flag=false;
        ans--;
        break;
      }else{
        a[i]/=2;
      }      
    }
  }
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected ';' before 'for'
   10 |     ans++
      |          ^
      |          ;
   11 |     for(int i=0;i<n;i++){
      |     ~~~   
a.cc:11:17: error: 'i' was not declared in this scope
   11 |     for(int i=0;i<n;i++){
      |                 ^
a.cc:20:4: error: expected '}' at end of input
   20 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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,a[n],ans=0;
  bool flag=true;
  cin >> n;
  rep(i,n)cin >> a[i];
  while(flag){
    ans++
    rep(i,n){
      if(a[i]%2==1){
        flag=false;
        ans--;
        break;
      }else{
        a[i]/=2;
      }      
    }
  }
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'for'
   11 |     ans++
      |          ^
      |          ;
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,n){
      |         ^
a.cc:3:30: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<(int)n;i++)
      |                              ^
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:27:3: error: 'cout' was not declared in this scope
   27 |   cout << res <<endl;
      |   ^~~~
a.cc:27:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:17: error: 'endl' was not declared in this scope
   27 |   cout << res <<endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;

int main(){
        int N;
        int det=0;
        int flag = 0;
        string input1;
        cin >> input1;
        N = atoi(input1.c_str());
        string input2[N];
        int A[N];
        for(int i = 0; i < N; i++){
                cin >> input2[i];
                A[i] = atoi(input2[i].c_str());
        }

        while(1){
                for(int i = 0; i < N; i++){
                        if(A[i]%2 != 0){
                                flag++;
                                break;
                        }
                        A[i] /= 2;
                }
                if(flag != 0){
                        break;
                }else {
                        det++;
                }

        }
        cout << det << endl;
        return 0;
}
~                                                                                     ~                              

Compiler output:
a.cc:38:87: error: expected class-name before '~' token
   38 | ~                                                                                     ~
      |                                                                                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N; cin >> N;
  vector<int> ver(N);
  for (int i = 0; i < N; i++ ) cin >> ver.at(i);
  int count;
  while(true){
    bool odd = false;
    for (int i = 0; i < N; i++ )
      if (ver.at(i)%2!=0) odd = true;
    if (odd) break;
    for (int i = 0; i < N; i++ )
      ver.at(i) = ver.at(i)/2;
    count++
  }
  cout << count << endl;
}

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

#include<stdio.h>
int  main (){
  int  a, b, i, res, cnt = 0;
  int num[100];
  cin >> a;
  for (i = 0; i < a; i++){
    cin >> num[i];
    res += num[i];
    }
  while(res % 2 != 0){
    for(i = 0; i< a; i++){
      num[i] /= 2;
      res += num[i];
      cnt++;
    }
    }
  cout << cnt << endl;
}

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

#include<stdio.h>
int  main (){
  int  a, b, i, res, cnt = 0;
  int num[100];
  cin >> a;
  for (i = 0; i < a; i++){
    cin >> num[i];
    res += num[i];
  }
  
  while(res % 2 != 0){
    for(i = 0; i< a; i++){
      num[i] /= 2;
      res += num[i];
      cnt++;
    }
  }
  cout << cnt << endl;
}

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

#include<stdio.h>
int  main (){
  int  a, b, i, res, cnt = 0;
  int num[100]
  cin >> a;
  for (i = 0; i < a; i++){
    cin >> num[i];
    res += num[i];
  }
  
  while(res % 2 != 0){
    for(i = 0; i< a; i++){
      num[i] /= 2;
      res += num[i];
      cnt++;
    }
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin >> a;
      |   ^~~
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> num[i];
      |     ^~~
a.cc:7:12: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |     cin >> num[i];
      |            ^~~
      |            enum
a.cc:13:7: error: 'num' was not declared in this scope; did you mean 'enum'?
   13 |       num[i] /= 2;
      |       ^~~
      |       enum
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout << cnt << endl;
      |   ^~~~
a.cc:18:18: error: 'endl' was not declared in this scope
   18 |   cout << cnt << endl;
      |                  ^~~~
Language: C++

#include<bits/stic+.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 res = 0;
  
  while(true){
    bool check = false;
    for(int i = 0; i<n; i++){
      if(a.at(i) % 2 != 0)
        check = true;
    }
    if(check)
      break;
    for(int i = 0; i<n; i++)
      a.at(i) /= 2;
    res++;
  }
  cout << res << endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before '}' token
   15 |       cnt = cnt2
      |                 ^
      |                 ;
   16 |     }
      |     ~            
a.cc:17:13: error: expected ';' before '}' token
   17 |     cnt2 = 0
      |             ^
      |             ;
   18 |   }
      |   ~
Language: C

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(auto i=(x).begin(),i##_fin=(x).end();i!=i##_fin;i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define solve(a) ((a)?"Yes":"No")
typedef vector<int> Vi;
typedef vector<Vi> VVi;
typedef pair<int , int> Pi;
typedef vector<Pi> VPi;
typedef vector<long long> V;
typedef vector<V> VV;
typedef pair<long long , long long> P;
typedef vector<P> VP;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
const long long INFLL = 1LL<<60;
const int INF = 1<<30;
const double PI=acos(-1);
int main(){
	int n;
	int ans=INF;
	int cnt=0;
	cin >>n;
	Vi a(n);
	rep(i,n){
		cin>>a[i];
		cnt=0;
		while(a[i]%2==0){
			cnt++;
			a[i]/=2;
		}
		chmin(ans,cnt);
	}
	cout<<ans<<endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cin >> A[i];
      |             ^
a.cc:15:12: error: invalid types 'int[int]' for array subscript
   15 |       if (A[i]/2==1){
      |            ^
a.cc:23:8: error: invalid types 'int[int]' for array subscript
   23 |       A[i]/=2;
      |        ^
Language: C

#include<stdio.h>
int N;
int A[201];

int main()
{
    int i;
  int res = 0;
  int odd_flg;
  
  //数値の数の設定
  scanf("%d", &N);

  // 整数の入力
    for(i=0;i<N;i++)
    {
      scanf("%d", &A[i]);
    }
  
  //奇数が出てくるまで2で割り続ける
  odd_flg = false;
  while(1)
  {
    for(i=0;i<N;i++)
    {
      if(A[i] % 2 != 0)
      {
        odd_flg = true;
      }
      else
      {
        A[i] /= 2;
      }
    }
    
    // 奇数が存在していたら抜ける
    if(odd_flg == true)
    {
      break;
    }
	// 操作回数を加算
    res++;
  }
    printf("%d\n",res);
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N;
  cin >> N;
  int min = 100;
  for(int i = 0; i < N; i++){
    int number = 0;
    int Ni;
    cin >> Ni;
    for(int j = 0; true; j++){
      if(Ni % 2 == 0){
        number++;
      }else{
        break;
      }
    }
    if(min > number){
      min = number;
    }
  }
  cout << number << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: 'number' was not declared in this scope
   23 |   cout << number << endl;
      |           ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N;
  cin >> N;
  int min = 100;
  for(int i = 0; i < N; i++){
    int number = 0;
    int Ni;
    cin >> Ni;
    for(int j = 0; True; j++){
      if(Ni % 2 == 0){
        number++;
      }else{
        break;
      }
    }
    if(min > number){
      min = number;
    }
  }
  cout << number << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'True' was not declared in this scope
   12 |     for(int j = 0; True; j++){
      |                    ^~~~
a.cc:23:11: error: 'number' was not declared in this scope
   23 |   cout << number << endl;
      |           ^~~~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  int min = 100;
  for(int i = 0; i < N; i++){
    int number = 0;
    cin >> Ni;
    for(int j = 0; True; j++){
      if(Ni % 2 == 0){
        number++;
      }else{
        break;
      }
    }
    if(min > number){
      min = number;
    }
  }
  cout << number << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'Ni' was not declared in this scope; did you mean 'i'?
   10 |     cin >> Ni;
      |            ^~
      |            i
a.cc:11:20: error: 'True' was not declared in this scope
   11 |     for(int j = 0; True; j++){
      |                    ^~~~
a.cc:22:11: error: 'number' was not declared in this scope
   22 |   cout << number << endl;
      |           ^~~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		int count = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		for(int t = 0; t < i; t++) {
			int j = sc.nextInt();
		}
		me: while(true) {
			for(int t = 0; t < i; t++) {
				if(al.get(t) % 2 == 0) {
					al.set(t, al.get(t) / 2);
				}else {
					System.out.println(count);
					break me;
				}
				count++;
			}
		}


	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		^
  symbol:   class ArrayList
  location: class Main
Main.java:7: error: cannot find symbol
		ArrayList<Integer> al = new ArrayList<Integer>(i);
		                            ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: C++

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

int main(){
  int n;
  cin >> n;
  vector<int> a(n);
  for(int i = 0; i<n; i++)
    cin >> a.at(i);
  
  int answer = 0;
  
  while(true){
    bool check = false;
    for(int i = 0; i<n; i++){
      if(a.at(i) % 2 == 0)
        check = true;
    }
    if(check)
      break;
    a.at(i) /= 2;
    answer++;
  }
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: 'i' was not declared in this scope
   21 |     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 answer = 0;
  
  while(true){
    bool check = false;
    for(int i = 0; i<n; i++){
      if(a.at(i) % 2 != 0;)
        check = true;
    }
    if(check)
      break;
    
    for(int i = 0; i<n; i++)
      a.at(i) /= 2;
    
    answer++;
  }
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected primary-expression before ')' token
   16 |       if(a.at(i) % 2 != 0;)
      |                           ^
Language: C++

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

int main() {
  int count = 0;
  int i, n;
  cin >> n;
  vector<int> vec(n);
   vector<int> vec2(n);
  for(i=0;i<n;i++){
    cin >> vec.at(i);
  }
  
  while(vec2.at(i)%2==1){
    vec2.at(i)=vec.at(i)%2;
    count++;
    }else{
    break;
    }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: 'else' without a previous 'if'
   17 |     }else{
      |      ^~~~
a.cc:18:5: error: break statement not within loop or switch
   18 |     break;
      |     ^~~~~
a.cc: At global scope:
a.cc:21:3: error: 'cout' does not name a type
   21 |   cout << count << endl;
      |   ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

int main() {
  int count = 0;
  int i, n;
  cin >> n;
  vector<int> vec(n);
   vector<int> vec2(n);
  for(i=0;i<n;i++){
    cin >> vec.at(i);
  }
  
  for(i=0;i<n;i++){
    ve2.at(i)=vec.at(i)%2;
    if(vec.at(i)%2=0){
    vec.at(i)=vec2.at(i)%2;
    count++;
    }else{
    break;
    }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 've2' was not declared in this scope; did you mean 'vec2'?
   15 |     ve2.at(i)=vec.at(i)%2;
      |     ^~~
      |     vec2
a.cc:16:17: error: lvalue required as left operand of assignment
   16 |     if(vec.at(i)%2=0){
      |        ~~~~~~~~~^~
Language: C++

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

int main() {
  int count = 0;
  int i, n;
  cin >> n;
  vector<int> vec(n);
   vector<int> vec2(n);
  for(i=0;i<n;i++){
    cin >> vec.at(i);
  }
  
  for(i=0;i<n;i++){
    ve2.at(i)=vec.at(i)%2
    if(vec.at(i)%2=0){
    vec.at(i)=vec2.at(i)%2
    count++;
    }else{
    break;
    }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 've2' was not declared in this scope; did you mean 'vec2'?
   15 |     ve2.at(i)=vec.at(i)%2
      |     ^~~
      |     vec2
a.cc:19:6: error: 'else' without a previous 'if'
   19 |     }else{
      |      ^~~~
Language: C++

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

int main() {
  int count = 0;
  int i, n;
  vector<int> vec;
  cin >> n;
  for(i=0;i<n;i++){
    cin >> vec.at(i);
  }
  
  for(i=0;i<n;i++){
  	if(vec.at(i)%2==0){
    count++
    }else{
    break;
    }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected ';' before '}' token
   15 |     count++
      |            ^
      |            ;
   16 |     }else{
      |     ~
Language: C++

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

int main(){
  int counter = 0;//カウンター
  int N;
  bool finish = false;
  cin >> N;

  vector<int> p(N);

  for (int i = 0; i < N; i++){
    cin >> p.at(i);
  }

  while(true){
      for (int i = 0; i < N; i++){
        if(p[i]%2){
          finish = true;
          break;
        }
        int counter = 0;
        p[i] /= 2;
      }
    if(finish){
      break;
    }
    counter++;
  }

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'A' was not declared in this scope
   15 |   cout << A << endl;
      |           ^
Language: C++

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

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

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

int main(){
    int N;
    cin >> N;
    vector<int> vec(N)
    for(int i=0; i < N; i++){
    cin >> vec.at(i);
    }
    int ans = -1;
    bool even = true;
    while(even){

        ans++;

        for(int i=0; i<N; i++){
            if(vec.at(i) % 2 == 0){
                vet.at(i) = vec.at(i)/2;
            }else{
                even = false;
                break;
            }
        }
    }
    cout >> ans >>endl;
    return 0;
}

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:4:5: error: 'vector' was not declared in this scope
    4 |     vector<int> vec(N)
      |     ^~~~~~
a.cc:4:12: error: expected primary-expression before 'int'
    4 |     vector<int> vec(N)
      |            ^~~
a.cc:5:18: error: 'i' was not declared in this scope
    5 |     for(int i=0; i < N; i++){
      |                  ^
a.cc:15:16: error: 'vec' was not declared in this scope
   15 |             if(vec.at(i) % 2 == 0){
      |                ^~~
a.cc:16:17: error: 'vet' was not declared in this scope
   16 |                 vet.at(i) = vec.at(i)/2;
      |                 ^~~
a.cc:23:5: error: 'cout' was not declared in this scope
   23 |     cout >> ans >>endl;
      |     ^~~~
a.cc:23:19: error: 'endl' was not declared in this scope
   23 |     cout >> ans >>endl;
      |                   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define f first
#define s second
#define go ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define mem(arr,v) memset(arr,v,sizeof(arr))
/*bool sortbysec(const pair<int,int> &a,
              const pair<int,int> &b)
{
    return (a.second < b.second);
} */
func(ll a)
{
    ll cnt=0;
    while(true)
    {
        if(a%2!=0)
            break;
        else
        {
            cnt++;
            a=a/2;
        }
    }
    return cnt;
}
int main()
{
     ll t,mn=INT_MAX,v,kk;
     cin>>t;
     for(int i=0;i<t;i++)
     {
         cin>>v;
         kk=func(v);
         if(kk<mn)
            mn=kk;
     }
     cout<<mn<<endl;
}



Compiler output:
a.cc:14:1: error: ISO C++ forbids declaration of 'func' with no type [-fpermissive]
   14 | func(ll a)
      | ^~~~
Language: C++

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

#define rep(i, n) for (int i = 0; i < n; i++)

const int INF = 1001001001;

int main() {
  int n, min_cnt = INF;
  cin >> n;
  rep(i, n) {
    ll a;
    cin >> a;
    int cnt = 0;
    while (a % 2 == 0) {
      a /= 2;
      cnt++;
    }
    min_cnt = min(min_cnt, cnt);
    // cerr << min_cnt << endl;
  }
  cout << min_cnt << endl;
  return 0;
}


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

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

int main(){
  int N;
  int A[200]
  cin >> N;
  for(int i=0 ; i<N ; ++i) cin >> A[i];
  int res = 0;
  
  while(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:8:3: error: expected initializer before 'cin'
    8 |   cin >> N;
      |   ^~~
a.cc:9:35: error: 'A' was not declared in this scope
    9 |   for(int i=0 ; i<N ; ++i) cin >> A[i];
      |                                   ^
a.cc:16:10: error: 'A' was not declared in this scope
   16 |       if(A[i]%2!=0) exist_odd = true;
      |          ^
a.cc:21:26: error: 'A' was not declared in this scope
   21 |     for(int i=0;i<N;++i) A[i] /= 2;
      |                          ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:28:3: error: expected declaration or statement at end of input
   28 |   }
      |   ^
Language: C++

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

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