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

#include <iostream>
using namespace std;
int main(){
  int N;
  cin >> N;
  int a[1100000000];
  for(int i = 0;i < a;++i) cin >> a[i];
  
  int res = 0;
  while(true){
   bool f = true;
    for(int i = 0;i < N;++i){
      if(a[i]%2 != 0) f = false;
    }
    if(!f) 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:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   for(int i = 0;i < a;++i) cin >> a[i];
      |                 ~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   for(int i = 0;i < a;++i) cin >> a[i];
      |                 ~~^~~
a.cc:12:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     for(int i = 0;i < a;++i){
      |                   ~~^~~
a.cc:16:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     for(int i = 0;i < a;++i) a[i]/=2;
      |                   ~~^~~
Language: C++

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

int main() {
    int N;
    cin >> N;
    
    std::vector<int> arr(N);
    
    for (int i = 0; i > N; i++) {
        cin >> arr.at(i);    
    }
    
    int counter = 0;
    while (true) {
        for (int i=0; i > N; i++) {
            bool exist_odd = false;
            if (arr.at(i) % 2 != 0) exist_odd = true;
        
            if (exist_odd) break;
            
            for (int i=0; i > N ++i) {
                arr.at(i) / 2;
            }
            counter++;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:35: error: expected ';' before 'i'
   22 |             for (int i=0; i > N ++i) {
      |                                   ^
      |                                   ;
Language: C++

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

int main() {
    int N;
    cin >> N;
    
    std::vector<int> arr(N);
    
    for (int i = 0; i > N; i++) {
        cin >> arr.at(i);    
    }
    
    int counter = 0;
    while (true) {
        for (int i=0; i > N; i++) {
            bool exist_odd = false;
            if (arr.at(i) % 2 != 0) exist_odd = true;
        
            if (exist_odd) break;
            
            for (int i=0; i > N ++i) {
                arr.at(i) / 2 
            }
            counter++
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:35: error: expected ';' before 'i'
   22 |             for (int i=0; i > N ++i) {
      |                                   ^
      |                                   ;
a.cc:23:30: error: expected ';' before '}' token
   23 |                 arr.at(i) / 2
      |                              ^
      |                              ;
   24 |             }
      |             ~                 
a.cc:25:22: error: expected ';' before '}' token
   25 |             counter++
      |                      ^
      |                      ;
   26 |         }
      |         ~
Language: C++

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

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

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

#include<stdio.h>

main(){
  int N, A[200], odd = 0, ans = 0;
  scanf("%d",&N);
  for(int i = 0; i < N; i++)
  scanf("%d" &(A[i]));
  
  while(1){
    for(int i = 0; i < N; i++){
      if(A[i] % 2 == 1)
        odd = 1;
    }
    if(odd) break;
    
    for(int i = 0; i < N; i++){
      A[i] /= 2;
      ans++;
    }
  }
  printf("%d\n", ans);
}
      
      
      

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:14: error: invalid operands to binary & (have 'char *' and 'int')
    7 |   scanf("%d" &(A[i]));
      |         ~~~~ ^~~~~~~
      |         |       |
      |         char *  int
Language: C

#include<stdio.h>

main(){
  int N, A[200], odd = 0, ans = 0;
  scanf("%d",&N);
  for(int i = 0; i < N; i++)
  scanf("%d" &A[i]);
  
  while(1){
    for(int i = 0; i < N; i++){
      if(A[i] % 2 == 1)
        odd = 1;
    }
    if(odd) break;
    
    for(int i = 0; i < N; i++){
      A[i] /= 2;
      ans++;
    }
  }
  printf("%d\n", ans);
}
      
      
      

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:14: error: invalid operands to binary & (have 'char *' and 'int')
    7 |   scanf("%d" &A[i]);
      |         ~~~~ ^~~~~
      |         |      |
      |         char * int
Language: C

#include<stdio.h>

main(){
  int N, A[200], odd = 0, ans = 0;
  scanf("%d",&N);
  for(int i = 0; i < N; i++)
  printf("%d" &A[i]);
  
  while(1){
    for(int i = 0; i < N; i++){
      if(A[i] % 2 == 1)
        odd = 1;
    }
    if(odd) break;
    
    for(int i = 0; i < N; i++){
      A[i] /= 2;
      ans++;
    }
  }
  printf("%d\n", ans);
}
      
      
      

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:15: error: invalid operands to binary & (have 'char *' and 'int')
    7 |   printf("%d" &A[i]);
      |          ~~~~ ^~~~~
      |          |      |
      |          char * int
Language: C

#include<stdio.h>

main(){
  int N, A[200], odd = 0, ans = 0;
  scanf("%d",&N);
  for(int i = 0; i < N; i++)
  printf("%d" &A[i]);
  
  while(1){
    for(int i = 0; i < N; i++){
      if(A[i] % 2 == 1)
        odd = 1;
    }
    if(odd) break;
    
    for(int i = 0; i < N; i++){
      A[i] /= 2
      ans++
    }
  }
  printf("%d\n", &ans);
}
      
      
      

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:15: error: invalid operands to binary & (have 'char *' and 'int')
    7 |   printf("%d" &A[i]);
      |          ~~~~ ^~~~~
      |          |      |
      |          char * int
main.c:17:16: error: expected ';' before 'ans'
   17 |       A[i] /= 2
      |                ^
      |                ;
   18 |       ans++
      |       ~~~
Language: C++

#include<iostream> 
#include<iomanip> 
#include<vector> 
#include<map> 
#include<set> 
#include<algorithm> 
#include<numeric> 
#include<limits> 
#include<bitset> 
#include<functional> 
#include<type_traits> 
#include<queue> 
#include<stack> 
#include<array> 
#include<random> 
#include<utility> 
#include<cstdlib> 
#include<ctime>
#define _LIBCPP_DEBUG 0
#define _GLIBCXX_DEBUG
#define rep(i,n) for (int i = 0; i < (n); ++i)	
using namespace std;


int max(int a,int b) {
	int max;
	if (a > b) max = a;
	else max = b;
	return max;
}
int min(int a, int b) {
	int min;
	if (a < b) min = a;
	else min = b;
	return min;
}


int main() {
	int INF = INT_MAX;
	int n;
	cin >> n;
	vector<int> a(n);

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

	int count_min = INF;

	rep(i, n) {

		int count = 0;
		while (a[i] % 2 == 0) {
			a[i] /= 2;
			count++;
		}
		if (count < count_min) {
			count_min = count;
		}
	}

	cout << count_min << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:19: error: 'INT_MAX' was not declared in this scope
   40 |         int INF = INT_MAX;
      |                   ^~~~~~~
a.cc:19:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   18 | #include<ctime>
  +++ |+#include <climits>
   19 | #define _LIBCPP_DEBUG 0
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<string>
#include<cstdlib>
using namespace std;
int n,a[201],ans;
bool e;
int main(){
	cin>>n;
	for(int i=1;i<=n;i++) cin>>a[i],if(a[i]%2) e=1;
	while(!e){
		if(!e) for(int i=1;i<=n;i++) a[i]/=2;
		ans++;
		for(int i=1;i<=n;i++) if(a[i]%2) e=1;
	}
	cout<<ans<<endl;
 	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:41: error: expected primary-expression before 'if'
   13 |         for(int i=1;i<=n;i++) cin>>a[i],if(a[i]%2) e=1;
      |                                         ^~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<string>
#include<cstdlib>
using namespace std;
int n,a[201],ans;
bool e;
int main(){
	cin>>n;
	for(int i=1;i<=n;i++) cin>>n,if(a[i]%2) e=1;
	while(!e){
		if(!e) for(int i=1;i<=n;i++) a[i]/=2;
		ans++;
		for(int i=1;i<=n;i++) if(a[i]%2) e=1;
	}
	cout<<ans<<endl;
 	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:38: error: expected primary-expression before 'if'
   13 |         for(int i=1;i<=n;i++) cin>>n,if(a[i]%2) e=1;
      |                                      ^~
Language: C++

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


int main(){
  int N, A, c, max = 0;

  cin >> N;
  
  for(i = 0; i < N; i++){
    cin >> A;
    c = 0;
    while(A % 2 == 0){
      A /= 2;
      c++;
    }
    if(c > max)
      max = c;
  }
  
  cout << max << endl;    
}


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

#include <stdio.h>
int main(void) 
{
  int i, n;
  int oddflag = 0;
  int count = 0;
  int array[300];
  
  scanf("%d\n", &n);
  for(i = 0; i < n; i++) 
    scanf("%d", &array[i]);
  
  while(1) {
    for (i = 0; i < n; i++) 
      if (array[i] % 2 != 0)
        oddflag = 1;
        
    if (oddflag) break;
 
    for (i = 0; i < n; i++)
       array[i] /= 2;
    count++;
  };
  
  printf("%d", count);
  return 0;
}
#include <stdio.h>
int main(void) 
{
  int i, n;
  int oddflag = 0;
  int count = 0;
  int array[300];
  
  scanf("%d\n", &n);
  for(i = 0; i < n; i++) 
    scanf("%d", &array[i]);
  
  while(1) {
    for (i = 0; i < n; i++) 
      if (array[i] % 2 != 0)
        oddflag = 1;
        
    if (oddflag) 
      break;
 
    for (i = 0; i < n; i++)
       array[i] /= 2;
    count++;
  };
  
  printf("%d", count);
  return 0;
}
提出情報

Compiler output:
main.c:29:5: error: redefinition of 'main'
   29 | int main(void)
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void)
      |     ^~~~
main.c:56:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   56 | 提出情報
      | ^~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected ';' before 'k'
   15 |     z=y%2
      |          ^
      |          ;
   16 |     k++;
      |     ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'z' was not declared in this scope
    9 |   z=y%2;
      |   ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: expected ';' before '<' token
   17 |   for(int i=1,i<N,i++){
      |                ^
      |                ;
a.cc:17:16: error: expected primary-expression before '<' token
a.cc:17:22: error: expected ';' before ')' token
   17 |   for(int i=1,i<N,i++){
      |                      ^
      |                      ;
a.cc:24:10: error: expected ';' before '}' token
   24 |       j++
      |          ^
      |          ;
   25 |     }
      |     ~
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;
    cin >> N;
    int ans = 10 ** 10;
    int cnt = 0;
    int num;
    for (int i = 0; i < N; i++) {
        cin >> num;
        while (num % 2 == 0) {
            num /= 2;
            cnt++;
        }
        if (ans > cnt) {
            ans = cnt;
        }
    }
  cout << ans;
}


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

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

      

Compiler output:
main.c: In function 'main':
main.c:16:18: error: expected ';' before '}' token
   16 |       b[k]=b[k-1]
      |                  ^
      |                  ;
   17 |     }
      |     ~
Language: C

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

      

Compiler output:
main.c: In function 'main':
main.c:16:18: error: expected ';' before '}' token
   16 |       b[i]=b[i-1]
      |                  ^
      |                  ;
   17 |     }
      |     ~
Language: C

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

      

Compiler output:
main.c: In function 'main':
main.c:15:18: error: expected ';' before '}' token
   15 |       b[i]=b[i-1]
      |                  ^
      |                  ;
   16 |     }
      |     ~
Language: C++

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

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

  for (int i; i<n; i++){
    int a;
    cin >> a;
    
    x=0
    while (a%2==0){
      x++;
      a/=2;
    }
    
    if (i=0){
      ans=x;
    }
    
    else if (x<ans){
      ans=x;
    }
    
    
  }
  cout << ans << endl;
}

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

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

int main() {
  int n;
  cin >> n;
  
  string a;
  cin >> a;
  
  for (int i = 0; i < n; i++) cin >> a[i];
  
  int count = 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;
    
    count++;
    
  }
  
  cout << count << endl;
}  

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string a;
      |   ^~~~~~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |   cin >> a;
      |          ^
a.cc:27:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   27 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:27:20: error: 'endl' was not declared in this scope
   27 |   cout << count << endl;
      |                    ^~~~
Language: C++

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

int main() {
  int N, a=0; cin >> N;
  vector<int> A(N);
  for (int i=0; i<N; i++) cin >> A[i];
  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;
    a++;
  }
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected ';' before '}' token
   11 |       if (A[i]%2!=0) odd = true
      |                                ^
      |                                ;
   12 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: expected ';' before '}' token
   19 |         A[i]=A[i]/2
      |                    ^
      |                    ;
   20 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int>a(n);
  rep(i,n) cin >> a(i);
  int res=0;
  while(true) {
    bool exist_odd=false;
    rep(i,n) {
      if(a[i]%2!=0) exist_odd=true;
    }
    if(exist_odd) break;
    rep(i,n) a[i]/=2;
    ++res;
  }
  cout << res << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: no match for call to '(std::vector<int>) (int&)'
    8 |   rep(i,n) cin >> a(i);
      |                   ~^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int>a(n);
  rep(i,n) cin >> a(i);
  int res=0;
  while(true) {
    bool exist_odd=false;
    rep(i,n) {
      if(a[i]%2!=0) exist_odd=true;
    }
    if(exist_odd) break;
    rep(i,n) a[i]/=2;
    ++res;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: no match for call to '(std::vector<int>) (int&)'
    8 |   rep(i,n) cin >> a(i);
      |                   ~^~~
a.cc:18:4: error: expected '}' at end of input
   18 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include<stdio.h>

int main(void){
  int i,c;
  int j=0;
  int n[200];
  int t=1;
  scanf("%d\n",&i);
  for(i=0;n[i]!='\0';i++){
    scanf("%d ",&n[i]);
  }
  while(1){
  for(i=0;n[i]!='\0';i++){
	    if(n[i]%2==1){
          t=0
      break;
    }
    n[i]=n[i]/2;
  }  
    if(t==0){
      break;
    }
    j++;
  }
  printf("%d",j);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:14: error: expected ';' before 'break'
   15 |           t=0
      |              ^
      |              ;
   16 |       break;
      |       ~~~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected expression before ')' token
   11 |   while(){
      |         ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected ';' before '}' token
   14 |         if (A[i]%2!=0) exist = true
      |                                    ^
      |                                    ;
   15 |     }
      |     ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected ';' before '}' token
   14 |         if (A[i]%2!=0) exist = true
      |                                    ^
      |                                    ;
   15 |     }
      |     ~                               
a.cc:19:14: error: expected ';' before ':' token
   19 |     ++counter:
      |              ^
      |              ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: expected ';' before '}' token
   15 |         if (A[i]%2!=0) exist = true
      |                                    ^
      |                                    ;
   16 |     }
      |     ~                               
a.cc:20:14: error: expected ';' before ':' token
   20 |     counter++:
      |              ^
      |              ;
Language: C++

N=int(input())
A=list(map(int,input().split()))

ans=0
exist_odd=False
while True:
  for i in range(N):
    if A[i]%2!=0:
      exist_odd=True
  if exist_odd:
      break
  ans+=1
  for i in range(N):
    A[i]=int(A[i]/2)

print(ans)

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N=int(input())
      | ^
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 count = 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;
      }
      count++;
    }
    
    cout << count <<endl;
  }
      

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

#include <iostream>
using namespace std;
int main(){
  int a;
  cin >> a;
  int array[200];
  
  for(int i = 0; i < a;++i) cin >> array[i];
  
  int sum = 0;
  
  while(true){
    bool odd = false;
    for(int i = 0;i < a;++i){
      if(array[i]%2 != 0) odd = true;
    }
    if(b) break;
    for(int i = 0; i < a;++i){
      array[i] /= 2;
    }
    ++sum;
  }
  
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: 'b' was not declared in this scope
   17 |     if(b) break;
      |        ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a;
  cin >> a;
  int array = new int[a];
  
  int sum = 0;
  bool b = true;
  
  while(b){
  for(int i = 0;i < a;++i){
    array[i] /= 2;
    if(array[i]%2 != 0){
      b = false;
    }
  }
    if(b)
    ++sum;
  }
  
  cout << sum << endl;
  
  delete[] array;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    6 |   int array = new int[a];
      |                        ^
      |                        |
      |                        int*
a.cc:13:10: error: invalid types 'int[int]' for array subscript
   13 |     array[i] /= 2;
      |          ^
a.cc:14:13: error: invalid types 'int[int]' for array subscript
   14 |     if(array[i]%2 != 0){
      |             ^
a.cc:24:12: error: type 'int' argument given to 'delete', expected pointer
   24 |   delete[] array;
      |            ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a;
  cin >> a;
  int[] array = new int[a];
  
  int sum = 0;
  bool b = true;
  
  while(b){
  for(int i = 0;i < a;++i){
    array[i] /= 2;
    if(array[i]%2 != 0){
      b = false;
    }
  }
    if(b)
    ++sum;
  }
  
  cout << sum << endl;
  
  delete[] array;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: structured binding declaration cannot have type 'int'
    6 |   int[] array = new int[a];
      |      ^~
a.cc:6:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:6: error: empty structured binding declaration
a.cc:6:9: error: expected initializer before 'array'
    6 |   int[] array = new int[a];
      |         ^~~~~
a.cc:13:11: error: redeclaration of 'auto i'
   13 |     array[i] /= 2;
      |           ^
a.cc:12:11: note: 'int i' previously declared here
   12 |   for(int i = 0;i < a;++i){
      |           ^
a.cc:13:14: error: expected initializer before '/=' token
   13 |     array[i] /= 2;
      |              ^~
a.cc:13:14: error: expected ';' before '/=' token
a.cc:14:13: error: expected unqualified-id before '[' token
   14 |     if(array[i]%2 != 0){
      |             ^
a.cc:24:17: error: missing template arguments before ';' token
   24 |   delete[] array;
      |                 ^
Language: C++

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

int N;
int A[210];

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

  int res = 0;

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

    if (exist_odd) break;

    for (int i = o; i < N; ++i) {
      A[i] /= 2;
    }
    ++res;
  }

  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'o' was not declared in this scope
   16 |     for (int i =o; i < N; ++i) {
      |                 ^
a.cc:22:18: error: 'o' was not declared in this scope
   22 |     for (int i = o; i < N; ++i) {
      |                  ^
Language: C++

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; // A[i]がすべて偶数か判定
    for (int i =o; i < N; ++i) {
      if (A[i] % 2 != 0) exist_odd = true; //奇数があったらフラグ立てる
    }

    if (exist_odd) break;

    for (int i = o; i < N; ++i) {
      A[i] /= 2;
    }
    ++res;
  }

  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N;
      |   ^~~
a.cc:13:17: error: 'o' was not declared in this scope
   13 |     for (int i =o; i < N; ++i) {
      |                 ^
a.cc:19:18: error: 'o' was not declared in this scope
   19 |     for (int i = o; i < N; ++i) {
      |                  ^
a.cc:25:3: error: 'cout' was not declared in this scope
   25 |   cout << res << endl;
      |   ^~~~
a.cc:25:18: error: 'endl' was not declared in this scope
   25 |   cout << res << endl;
      |                  ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: invalid types 'int[int]' for array subscript
    9 |     cin>>A[i];
      |           ^
a.cc:14:11: error: invalid types 'int[int]' for array subscript
   14 |       if(A[i]%2!=0){
      |           ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  
  int out;
  for(int i=0;i<N;i++){
  	int input;
    cin >> input;
    int count=0;
    while(input%2==0){
      input=input/2;
      count++;
    }
    if (i==0)||(count<out){
      out=count;
    }
  }
  cout << out << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: expected primary-expression before '||' token
   17 |     if (i==0)||(count<out){
      |              ^~
Language: C++

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

int main(){
    int N;
    cin >> N;
    int A[N];
    int count = 0;
    int initial = 100 ;
    int n;

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

        while(n % 2 == 0){
            count++;
            n = n / 2;
        } 
        if(initial > count){
            
          initial = count ;

        }
        
        }
    }
    cout << initial << endl;
}

Compiler output:
a.cc:28:5: error: 'cout' does not name a type
   28 |     cout << initial << endl;
      |     ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

int main(){
    int N;
    cin >> N;
    int A[N];
    int count = 0;
    int initial = 100 ;
    int n;

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

        while(n % 2 == 0){
            count++;
            n = n / 2;
        } 
        if(initial > count){
            
          initial = count ;

        }
        
        }
    }

    cout << initial <<endl;
}

Compiler output:
a.cc:29:5: error: 'cout' does not name a type
   29 |     cout << initial <<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[N];
    int count = 0;
    int initial = 100 ;
    int n;

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

        while(n % 2 == 0){
            count++;
            n = n / 2;
        } 
        if(initial > count){
            
          initial = count ;

        }
        
        }
    }
    cout << initial <<endl;
}

Compiler output:
a.cc:28:5: error: 'cout' does not name a type
   28 |     cout << initial <<endl;
      |     ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

int main(){
    int N;
    cin >> N;
    int A[N];
    int count = 0;
    int initial = 100 ;
    int n;

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

        while(n % 2 == 0){
            count++;
            n = n / 2;
        } 
        if(initial > count){
            
          initial = count ;

        }
        
        }
    }
    cout << initial <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before 'while'
   14 |         n = A[i]
      |                 ^
      |                 ;
   15 | 
   16 |         while(n % 2 == 0){
      |         ~~~~~    
a.cc: At global scope:
a.cc:28:5: error: 'cout' does not name a type
   28 |     cout << initial <<endl;
      |     ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

int main() {

  int N, num;
  cin >> N;
  int count = 100;
  for (int i = 0; i < N; i++) {
    cin >> num;
    int j = 0;
    while(num%2==0){
          num /= 2;
          j++;
    }
    count = min(count, j);
  }

  cout << count << endl;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:16:13: error: 'min' was not declared in this scope; did you mean 'main'?
   16 |     count = min(count, j);
      |             ^~~
      |             main
a.cc:19:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   19 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:19:20: error: 'endl' was not declared in this scope
   19 |   cout << count << endl;
      |                    ^~~~
Language: C++

#include <stdio.h>
int main(){
  int N = 0;
  int i = 0;
  int input[200];
  int result = 0;
  int minresult = 0;
  
  scanf("%d",&N);
  scanf("%d",&input);
  
  for(i = 0; i<N; i++){ 
    if(input[i]%2 == 0){
      continue; 
    }
    else{
	  goto RTN;
    }
  }
   
  minresult = 200;
  for(i = 0; i<N; i++){   
    result =0;
    while(a != 0){
      if(input[i]%2 == 0){
        result++; 
      }
      else{
        break;
      }
    }
    if(result<minresult){
      minresult = result;
    }
  }
RTN; 
  printf("%d",minresult);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: 'a' was not declared in this scope
   24 |     while(a != 0){
      |           ^
a.cc:36:1: error: 'RTN' was not declared in this scope
   36 | RTN;
      | ^~~
a.cc:17:16: error: label 'RTN' used but not defined
   17 |           goto RTN;
      |                ^~~
Language: C

#include <stdio.h>
int main(){
    int n,x,r=1<<29;
    for(scanf("%d",&n);n--;){
        int r0=0;
        scanf("%d",&x);

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected declaration or statement at end of input
    6 |         scanf("%d",&x);
      |         ^~~~~
main.c:6:9: error: expected declaration or statement at end of input
Language: C++

int main() {
  int n;
  cin >> n;
  int ans = 100000;

  for(int i = 0; i < n; i++){
    int num;
    cin >> num;
    int cnt = 0;

    while(num % 2 == 0){
      num /= 2;
      cnt++;
    }

    ans = min(ans, cnt);
  }

  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> n;
      |   ^~~
a.cc:16:11: error: 'min' was not declared in this scope; did you mean 'main'?
   16 |     ans = min(ans, cnt);
      |           ^~~
      |           main
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << ans << endl;
      |   ^~~~
a.cc:19:18: error: 'endl' was not declared in this scope
   19 |   cout << ans << endl;
      |                  ^~~~
Language: C++

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

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


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

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

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

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

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

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

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

#include<stdio.h>
  int main(void)
  {
    int n,x,r=!<<29;
    for(scanf("%d",&n);n--;){
     int r0=0;
      scanf("%d",&x);
      for(;x%2<1;x/=2)r0++;
      if(r>r0)r=r0;
    }
    printf("%d\n",r);
    return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected expression before '<<' token
    4 |     int n,x,r=!<<29;
      |                ^~
Language: C++


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

int main() {
  int N, A, c, w;
  cin >> N;
  w = 30;

  // ここにプログラムを追記
  for (int i = 0; i < N; i++) {
    cin >> A;
    c = 0
    while (A % 2 == 0) {
      c++;
      A = A / 2;
    }
    if (w > c) {
      w = c;
    }
      
  }
  cout << w << endl;
        
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before 'while'
   13 |     c = 0
      |          ^
      |          ;
   14 |     while (A % 2 == 0) {
      |     ~~~~~
Language: C++



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

int main() {
  int N, A, b, w;
  cin >> N;
  w = 30;

  // ここにプログラムを追記
  for (int i = 0; i < N; i++) {
    cin >> A;
    c = 0
    while (A % 2 == 0) {
      c++;
      A = A / 2;
    }
    if (w > c) {
      w = c;
    }
      
  }
  cout << w << endl;
        
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'c' was not declared in this scope
   14 |     c = 0
      |     ^
Language: C++



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

int main() {
  int N, A, b, c;
  cin >> N;
  b = 0;
  c = 10000;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected ';' before 'while'
   15 |     b = 0
      |          ^
      |          ;
   16 |     while (A % 2 == 0) {
      |     ~~~~~
Language: Java

import java.io.*;

public class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(
      new InputStreamReader(System.in));
    
    int number = Integer.parseInt(br.readLine());//数の個数
    String input = br.readLint();//数字の羅列
    int[] numbers = new int[number];//数字の配列
    
    //配列に数字を格納していく
    for(int i = 0; i<number - 1; i++){
      int space = input.indexOf(' ');
      numbers[i] = Integer.parseInt(input.substring(0, space));
      input = input.substring(space);
    }
    numbers[number - 1] = Integer.parseInt(input);
    
    //一つ目の数は何回２で割り切れるか？
    int minEven = 0;
    while(numbers[0] %2 == 0){
      numbers[0] = numbers[0] /2;
      minEven++;
    }
    //2つ目以降の数は1つ目より２で割り切れるか？
    for(int j = 0; j<length.numbers; j++){
      for(int i = 0; i < minEven; i++){
        if(numbers[j] % 2 != 0){
          minEven = i;
          break;
        }
        else{numbers[j] = nummbers[j] /2;}
      }
    }
    System.out.println(minEven);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    String input = br.readLint();//?????
                     ^
  symbol:   method readLint()
  location: variable br of type BufferedReader
Main.java:27: error: cannot find symbol
    for(int j = 0; j<length.numbers; j++){
                     ^
  symbol:   variable length
  location: class Main
Main.java:33: error: cannot find symbol
        else{numbers[j] = nummbers[j] /2;}
                          ^
  symbol:   variable nummbers
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){int n,x,p=29;cin>>n;for(int i=0;i<n;i++){cin>>x;for(int j=0;j<=p;j++)if(x%2){p=j;break;}else(x/=2)}cout<<p<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:110: error: expected ';' before '}' token
    3 | int main(){int n,x,p=29;cin>>n;for(int i=0;i<n;i++){cin>>x;for(int j=0;j<=p;j++)if(x%2){p=j;break;}else(x/=2)}cout<<p<<endl;}
      |                                                                                                              ^
      |                                                                                                              ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){int n,x,p=29;cin>>n;for(int i=0;i<N;i++){cin>>x;for(int j=0;j<=p;j++)if(x%2){p=j;break;}else(x/=2)}cout<<p<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:46: error: 'N' was not declared in this scope
    3 | int main(){int n,x,p=29;cin>>n;for(int i=0;i<N;i++){cin>>x;for(int j=0;j<=p;j++)if(x%2){p=j;break;}else(x/=2)}cout<<p<<endl;}
      |                                              ^
a.cc:3:110: error: expected ';' before '}' token
    3 | int main(){int n,x,p=29;cin>>n;for(int i=0;i<N;i++){cin>>x;for(int j=0;j<=p;j++)if(x%2){p=j;break;}else(x/=2)}cout<<p<<endl;}
      |                                                                                                              ^
      |                                                                                                              ;
Language: C++

#include<stdio.h>
#include<stdlib.h>
 
int main()
{
	int N,counter;
	scanf("%d",&N);
	int * A = (int*)molloc(N * sizeof(int));
	for(int i = 0;i < N;i++)
	{
		scanf("%d",&A[i]);
	}
	while(1)
	{
		for(int i = 0;i < N;i++)
		{
			if (A[i] % 2) goto end;
			else A[i] /= 2;
		}
		counter++;
	}
end:
	free(A);
	printf("%d",counter);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'molloc' was not declared in this scope; did you mean 'malloc'?
    8 |         int * A = (int*)molloc(N * sizeof(int));
      |                         ^~~~~~
      |                         malloc
Language: C++

#include<stdio.h>
#include<stdlib.h>
 
int main()
{
	int N,counter;
	scanf("%d",&N);
	int * A = (int*)molloc(sizeof(int) * N);
	for(int i = 0;i < N;i++)
	{
		scanf("%d",&A[i]);
	}
	while(1)
	{
		for(int i = 0;i < N;i++)
		{
			if (A[i] % 2) goto end;
			else A[i] /= 2;
		}
		counter++;
	}
end:
	free(A);
	printf("%d",counter);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'molloc' was not declared in this scope; did you mean 'malloc'?
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                         ^~~~~~
      |                         malloc
Language: C++

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

int main() {
  int n, i, count;
  int a[200] = { 0 };
  int result = 100;

  cin >> n;

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

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

    if(result > c)
      result = c;
  }

  cout << result << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'c' was not declared in this scope
   16 |     c = 0;
      |     ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main()
{
	int N,counter;
	scanf("%d",&N);
	int * A = (int*)molloc(sizeof(int) * N);
	for(int i = 0;i < N;i++)
	{
		scanf("%d",&A[i]);
	}
	while(1)
	{
		for(int i = 0;i < N;i++)
		{
			if (A[i] % 2) goto end;
			else A[i] /= 2;
		}
		counter++;
	}
end:
	free(A);
	printf("%d",counter);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: implicit declaration of function 'molloc'; did you mean 'malloc'? [-Wimplicit-function-declaration]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                         ^~~~~~
      |                         malloc
main.c:8:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                   ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main()
{
	int N,counter;
	scanf("%d",&N);
	int * A = (int*)molloc(sizeof(int) * N);
	for(int i = 0;i < N;i++)
	{
		scanf("%d",&A[i]);
	}
	while(1)
	{
		for(int i = 0;i < N;i++)
		{
			if (A[i] % 2) goto end;
			else A[i] /= 2;
		}
		counter++;
	}
end:
	free(A);
	printf("%d",counter);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: implicit declaration of function 'molloc'; did you mean 'malloc'? [-Wimplicit-function-declaration]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                         ^~~~~~
      |                         malloc
main.c:8:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                   ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main()
{
	int N,counter;
	scanf("%d",&N);
	int * A = (int*)molloc(sizeof(int) * N);
	for(int i = 0;i < N;i++)
	{
		scanf("%d",&A[i]);
	}
	while(1)
	{
		for(int i = 0;i < N;i++)
		{
			if (A[i] % 2) goto end;
			else A[i] /= 2;
		}
		counter++;
	}
end:
	free(A);
	printf("%d",counter);
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: implicit declaration of function 'molloc'; did you mean 'malloc'? [-Wimplicit-function-declaration]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                         ^~~~~~
      |                         malloc
main.c:8:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                   ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main()
{
	int N,counter;
	scanf("%d",&N);
	int * A = (int*)molloc(sizeof(int) * N);
	for(int Ai,i = 0;i < N;i++)
	{
		scanf("%d",&Ai);
	}
	while(1)
	{
		for(int i = 0;i < N;i++)
		{
			if (A[i] % 2) goto end;
			else A[i] /= 2;
		}
		counter++; 
	}
end:
	printf("%d",counter);
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: implicit declaration of function 'molloc'; did you mean 'malloc'? [-Wimplicit-function-declaration]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                         ^~~~~~
      |                         malloc
main.c:8:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                   ^
Language: C

#include<stdio.h>
#include<stdlib.h>

int main()
{
	int N,counter;
	scanf("%d",&N);
	int * A = (int*)molloc(sizeof(int) * N);
	for(int Ai,i = 0;i < N;i++)
	{
		scanf("%d",&Ai);
	}
	while(true)
	{
		for(int i = 0;i < N;i++)
		{
			if (A[i] % 2) goto end;
			else A[i] /= 2;
		}
		counter++;
	}
end:
	printf("%d",counter);
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: implicit declaration of function 'molloc'; did you mean 'malloc'? [-Wimplicit-function-declaration]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                         ^~~~~~
      |                         malloc
main.c:8:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    8 |         int * A = (int*)molloc(sizeof(int) * N);
      |                   ^
main.c:13:15: error: 'true' undeclared (first use in this function)
   13 |         while(true)
      |               ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<stdlib.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:13:15: note: each undeclared identifier is reported only once for each function it appears in
   13 |         while(true)
      |               ^~~~