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

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

int main() {
  int N;
  vector<int> A (210);
  cin >> N;
  
  int res = 0;
  
  for(int i=0;i < N;i++){
    cin >> A.at(i);
  }
  
  //ここから処理
  
  while (true){　// 可能な限り続けるように命令
    
    bool exist_odd = false;　// A.at(i)が偶数かどうか判定
    // exist_odd は変数の名前
    for ( int j =0; j<N ; j++){
      if(A.at(j)%2 != 0) exist_odd = true;
    }
    //もしどれか奇数ならexist_oddをtrueに...
    
    if (exist_odd) break;
    
    for(int s = 0; s < N ; s++){
      A.at(s) /=2;
    }
    ++res;
  }
  cout << res << endl;
  
}


Compiler output:
a.cc:18:16: error: extended character 　 is not valid in an identifier
   18 |   while (true){　// 可能な限り続けるように命令
      |                ^
a.cc:20:28: error: extended character 　 is not valid in an identifier
   20 |     bool exist_odd = false;　// A.at(i)が偶数かどうか判定
      |                            ^
a.cc: In function 'int main()':
a.cc:18:16: error: '\U00003000' was not declared in this scope
   18 |   while (true){　// 可能な限り続けるように命令
      |                ^~
a.cc:20:30: error: expected ';' before 'for'
   20 |     bool exist_odd = false;　// A.at(i)が偶数かどうか判定
      |                              ^
      |                              ;
   21 |     // exist_odd は変数の名前
   22 |     for ( int j =0; j<N ; j++){
      |     ~~~                       
a.cc:22:21: error: 'j' was not declared in this scope
   22 |     for ( int j =0; j<N ; j++){
      |                     ^
a.cc:27:9: error: 'exist_odd' was not declared in this scope
   27 |     if (exist_odd) break;
      |         ^~~~~~~~~
Language: C++

#include <istream>
using namespace;

int main(){
  int N;
  vector<int>vec(0,N);
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>vec.at(i);
  }
  int m　=100;
  for(int i=0;i<n;i++){
    int c;
    while(vec.at(i)%2==0){
      c++;
      vec.at(i)/=2;
    }
    m=min(m,c);
  }
  cout<<m<<endl;
}
    
  

Compiler output:
a.cc:11:7: error: extended character 　 is not valid in an identifier
   11 |   int m　=100;
      |       ^
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>vec(0,N);
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>vec(0,N);
      |          ^~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>N;
      |   ^~~
a.cc:9:10: error: 'vec' was not declared in this scope
    9 |     cin>>vec.at(i);
      |          ^~~
a.cc:12:17: error: 'n' was not declared in this scope
   12 |   for(int i=0;i<n;i++){
      |                 ^
a.cc:14:11: error: 'vec' was not declared in this scope
   14 |     while(vec.at(i)%2==0){
      |           ^~~
a.cc:18:5: error: 'm' was not declared in this scope
   18 |     m=min(m,c);
      |     ^
a.cc:18:7: error: 'min' was not declared in this scope; did you mean 'std::min'?
   18 |     m=min(m,c);
      |       ^~~
      |       std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/istream:40,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout<<m<<endl;
      |   ^~~~
a.cc:20:9: error: 'm' was not declared in this scope
   20 |   cout<<m<<endl;
      |         ^
a.cc:20:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |   cout<<m<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/istream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <istream>
using namespace;

int main(){
  int N;
  vector<int>vec;
  cin>>N;
  for(int i=0;i<N;i++){
    cin>>vec.at(i);
  }
  int m　=100;
  for(int i=0;i<n;i++){
    int c;
    while(vec.at(i)%2==0){
      c++;
      vec.at(i)/=2;
    }
    m=min(m,c)
  }
  cout<<m<<endl;
}
    
  

Compiler output:
a.cc:11:7: error: extended character 　 is not valid in an identifier
   11 |   int m　=100;
      |       ^
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>vec;
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>vec;
      |          ^~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>N;
      |   ^~~
a.cc:9:10: error: 'vec' was not declared in this scope
    9 |     cin>>vec.at(i);
      |          ^~~
a.cc:12:17: error: 'n' was not declared in this scope
   12 |   for(int i=0;i<n;i++){
      |                 ^
a.cc:14:11: error: 'vec' was not declared in this scope
   14 |     while(vec.at(i)%2==0){
      |           ^~~
a.cc:18:5: error: 'm' was not declared in this scope
   18 |     m=min(m,c)
      |     ^
a.cc:18:7: error: 'min' was not declared in this scope; did you mean 'std::min'?
   18 |     m=min(m,c)
      |       ^~~
      |       std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/istream:40,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout<<m<<endl;
      |   ^~~~
a.cc:20:9: error: 'm' was not declared in this scope
   20 |   cout<<m<<endl;
      |         ^
a.cc:20:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |   cout<<m<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/istream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.*;
class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N =	Integer.parseInt(sc.next());
	inta = 0;
        int min	= 0;
	for(int i = 0; i<N; i++) {
	    a = Integer.parseInt(sc.next());
            int	cnt = 0;
	    while(a % 2 == 0) {
		if(cnt>=min) break;
		cnt++;
                a /= 2;
            }
            min	= Math.min(min,cnt);
        }
	System.out.println(min);



    }
}

Compiler output:
Main.java:6: error: cannot find symbol
	inta = 0;
	^
  symbol:   variable inta
  location: class Main
Main.java:9: error: cannot find symbol
	    a = Integer.parseInt(sc.next());
	    ^
  symbol:   variable a
  location: class Main
Main.java:11: error: cannot find symbol
	    while(a % 2 == 0) {
	          ^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
                a /= 2;
                ^
  symbol:   variable a
  location: class Main
4 errors
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(trure){
    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:12:9: error: 'trure' was not declared in this scope
   12 |   while(trure){
      |         ^~~~~
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] strArray = sc.next().split(" ");
		int[] intArray = new int[201];
		int res = 0;

		for (int i=0; i<strArray.length; i++) {
			intArray[i] = Integer.parseInt(strArray[i]);
		}

		while(true) {
			boolean exist_odd = false;
			for (int j=0; j<strArray.length; j++);
			if (intArray[j] %2 != 0) {
				exist_odd = true;
			}

			if (exist_odd) break;

			for (int k=0; k<strArray.length; k++) {
				intArray[k] /= 2;
			}

			res ++;
		}
		System.out.println(res);
	}
}


Compiler output:
Main.java:17: error: cannot find symbol
			if (intArray[j] %2 != 0) {
			             ^
  symbol:   variable j
  location: class Main
1 error
Language: C++

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

int a[210];
int n;
int main(){
  int res = 0;
  cin >> n;
  for(int i = 0 ; i < n ; ++i )  cin >> a[i] ;
  while(true){
    int flag = 0
    for(int j = 0; j < n; ++j){
      if(a[j] % 2 != 0) flag = 1;
    }
    if(flag == 1) 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:13:5: error: expected ',' or ';' before 'for'
   13 |     for(int j = 0; j < n; ++j){
      |     ^~~
a.cc:13:20: error: 'j' was not declared in this scope
   13 |     for(int j = 0; j < n; ++j){
      |                    ^
Language: C++

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

int a[210];
int n;
int main(){
  int res = 0;
  cin >> n;
  for(int i = 0 ; i < n ; ++i )  cin >> a[i] ;
  while(true){
    int flag = 0;
    for(int j = 0; j < n; ++j){
      if(a[j] % 2 != 0) flag =1;
    }
    if(flag = 1) break; 
    for(int i = 0;i < n; ++i){
      a[j] /= 2;
    }
    ++res;
  }
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'j' was not declared in this scope
   18 |       a[j] /= 2;
      |         ^
Language: C++

#include <stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:38: error: expected ';' before '}' token
   16 |             if (A[i] % 2) {odd = true};
      |                                      ^
      |                                      ;
Language: C++

#include <stdio.h>
using namespace std;
const int MAX_VALUE = 99999999999;
int main(){
  int N;
  scanf("%d", &N);
  int flag = 0;
  int minV = MAX_VALUE;
  int A[N];
  for (int i = 0; i < N; i++){
    scanf("%d", &A[i]);
    if (A[i] % 2 == 0){
      flag = 1;
      if (A[i] < minV){
        minV = A[i];
      }
    }
  }
  if (flag){
    int count = 0;
    for (int i = 0; i < MAX_VALUE; i++){
      divNum = minV % 2;
      if (divNum){break;}
      else{
        int newMinV = minV / 2;
        minV = newMinV;
        count += 1;
      }
    }
    printf("%d\n", count);
  }
  else{
    printf("0\n");
  }
}

Compiler output:
a.cc:3:23: warning: overflow in conversion from 'long int' to 'int' changes value from '99999999999' to '1215752191' [-Woverflow]
    3 | const int MAX_VALUE = 99999999999;
      |                       ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:22:7: error: 'divNum' was not declared in this scope
   22 |       divNum = minV % 2;
      |       ^~~~~~
Language: C++

#include <stdio.h>
using namespace std;
const int MAX_VALUE = 99999999999999;
int main(){
  int N;
  scanf("%d", &N);
  int flag = 0;
  int minV = MAX_VALUE;
  int A[N];
  for (int i = 0; i < N; i++){
    scanf("%d", &A[i]);
    if (A[i] % 2 == 0){
      flag = 1;
      if (A[i] < minV){
        minV = A[i];
      }
    }
  }
  if (flag){
    int count = 0;
    for (int i = 0; i < MAX_VALUE; i++){
      divNum = minV % 2;
      if (divNum){break;}
      else{
        int newMinV = minV / 2;
        minV = newMinV;
        count += 1;
      }
    }
    printf("%d\n", count);
  }
  else{
    printf("0\n");
  }
}

Compiler output:
a.cc:3:23: warning: overflow in conversion from 'long int' to 'int' changes value from '99999999999999' to '276447231' [-Woverflow]
    3 | const int MAX_VALUE = 99999999999999;
      |                       ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:22:7: error: 'divNum' was not declared in this scope
   22 |       divNum = minV % 2;
      |       ^~~~~~
Language: C++

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

int main() {
  cin >> N;
  int a[N],ans=0;
  for(int i=0; i<N; i++){
    cin >> a[i]
  }
  while(flag==0){
    for(int i=0; i<N; i++){
	  if(a[i]%2 != 0){
        flag=1;
 	    cout << ans;
	  }
	  a[i] /= 2
	}
  ans++;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:8:12: error: 'a' was not declared in this scope
    8 |     cin >> a[i]
      |            ^
a.cc:10:9: error: 'flag' was not declared in this scope
   10 |   while(flag==0){
      |         ^~~~
a.cc:12:14: error: 'a' was not declared in this scope
   12 |           if(a[i]%2 != 0){
      |              ^
a.cc:16:11: error: 'a' was not declared in this scope
   16 |           a[i] /= 2
      |           ^
Language: C++

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
    int n,a,c=0,d=1000;
    cin >> n;
    for(int i=0;i<n;i++){
        cin >> a;
        while(a%2==0){
            a/=2;
            c++;
        }
        d=min(d,c)
    }
    cout << d << endl;
}


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

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
    int n,c1=0,c2=0;
    cin >> n;
    vector<int> a(n);
    for(int i=0;i<n;i++)    cin >> a.at(i);
    for(int i=0;i<n;i++){
        if(a.at(i)%2==0){
            c++;
        }
        else if(a.at(i)%2!=0)   break;
        if(c==n){
            c2++;
            continue;
        }
    }
    cout << c2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'c' was not declared in this scope
   15 |             c++;
      |             ^
a.cc:18:12: error: 'c' was not declared in this scope
   18 |         if(c==n){
      |            ^
Language: Java

package atcoder_study;

import java.util.Scanner;

public class a_086{
  public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int[] numbers = new int[n];
	  int counter = 0;

	  for(int i = 0; i < n; i++) {
		  numbers[i] = sc.nextInt();
	  }
	  while(true) {
		  int total = 0;
		  for(int j = 0; j < n; j++) {
			numbers[j] /= 2;
			counter = counter + 1;
		  }
		 for(int number : numbers) {
			 total = total + number;
		 }

		 if (total % 2 == 1) {
			 break;
		 }


	  }

	  System.out.println(counter / n);
  }
}


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

#include<stdio.h>
int main(void){
	int n,a[200],count;
	int i;
	
	for(i=0;i<3;i++){
		a[i]=0;
	}
	scanf("%d", &n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}

	int flag=1;
while(flag){
	for(i=0;i<n;i++){
		sum+=a[i];
	}
	if(sum%2==1) {flag=0;}
	else{
		for(i=0;i<n;i++){
			a[i]=a[i]/2;
		}
	}
}

	printf("%d\n",sum);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:17: error: 'sum' undeclared (first use in this function)
   17 |                 sum+=a[i];
      |                 ^~~
main.c:17:17: 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;
  int kaisu = 0;
  int maekaisu = 0;
  
  cin >> N;
  
  for (int i=0; i<N; i++) {
    cin >> a;
    
    while (!(a % 2)) {
      if (!(a % 2) {
         a = a / 2;
         kaisu++; 
      }
    }
    
    if (i==0 || kaisu < maekaisu) {
      maekaisu = kaisu;
    }
    
    kaisu = 0;
  }

  cout << maekaisu << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected ')' before '{' token
   15 |       if (!(a % 2) {
      |          ~        ^~
      |                   )
a.cc:19:5: error: expected primary-expression before '}' token
   19 |     }
      |     ^
Language: C++

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

int main(){
    int N, ans=100000000;
    int Num[210];
    cin >> N;
    for (int i = 0; i < N; i++) cin >> Num[i];
    
    for (int i = 0; i < N; i++) {
        int cnt = 0;
        while (Num[i] % 2 != 0) {
            Num[i] /= 2;
            cnt++;
        }
        ans = min(ans, cnt)
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: expected ';' before '}' token
   16 |         ans = min(ans, cnt)
      |                            ^
      |                            ;
   17 |     }
      |     ~
Language: C++

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

int main() {
  int N;
  int x;
  int i,j;
  int tmp;
  i = 0;
  tmp = 2;
  
  cin >> N >> x;
  while ((x % tmp) = 0) {
    tmp *= 2;
    i++;
  }
  
  for (j = 0; j <= N; j++){
    if i = 0 break;
    cin >> x;
    while ((x % tmp) ! = 0) {
      tmp /= 2;
      i--;
    }
  }
  
  cout << i;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: lvalue required as left operand of assignment
   13 |   while ((x % tmp) = 0) {
      |          ~~~^~~~~~
a.cc:19:8: error: expected '(' before 'i'
   19 |     if i = 0 break;
      |        ^
      |        (
a.cc:21:21: error: expected ')' before '!' token
   21 |     while ((x % tmp) ! = 0) {
      |           ~         ^~
      |                     )
a.cc:21:24: error: expected primary-expression before '=' token
   21 |     while ((x % tmp) ! = 0) {
      |                        ^
Language: C++

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

int main() {
  int N;
  int x;
  int i,j;
  int tmp;
  i = 0;
  tmp = 2;
  
  cin >> N >> x;
  while (x % tmp = 0) {
    tmp *= 2;
    i++;
  }
  
  for (j = 0; j <= N; j++){
    if i = 0 break;
    cin >> x;
    while (x % tmp ! = 0) {
      tmp /= 2;
      i--;
    }
  }
  
  cout << i;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: lvalue required as left operand of assignment
   13 |   while (x % tmp = 0) {
      |          ~~^~~~~
a.cc:19:8: error: expected '(' before 'i'
   19 |     if i = 0 break;
      |        ^
      |        (
a.cc:21:19: error: expected ')' before '!' token
   21 |     while (x % tmp ! = 0) {
      |           ~       ^~
      |                   )
a.cc:21:22: error: expected primary-expression before '=' token
   21 |     while (x % tmp ! = 0) {
      |                      ^
Language: C++

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

int main() {
  int N;
  int x;
  int i,j;
  int tmp;
  i = 0;
  tmp = 2;
  
  cin >> N >> x;
  while (x % tmp = 0) {
    tmp *= 2;
    i++;
  }
  
  for j = 0; j <= N; j++{
    if i = 0 break;
    cin >> x;
    while (x % tmp ! = 0) {
      tmp /= 2;
      i--;
    }
  }
  
  cout << i;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: lvalue required as left operand of assignment
   13 |   while (x % tmp = 0) {
      |          ~~^~~~~
a.cc:18:7: error: expected '(' before 'j'
   18 |   for j = 0; j <= N; j++{
      |       ^
      |       (
a.cc:18:25: error: expected ')' before '{' token
   18 |   for j = 0; j <= N; j++{
      |       ~                 ^
      |                         )
a.cc:19:8: error: expected '(' before 'i'
   19 |     if i = 0 break;
      |        ^
      |        (
a.cc:21:19: error: expected ')' before '!' token
   21 |     while (x % tmp ! = 0) {
      |           ~       ^~
      |                   )
a.cc:21:22: error: expected primary-expression before '=' token
   21 |     while (x % tmp ! = 0) {
      |                      ^
Language: C++

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

int main() {
  int N;
  int x;
  int i,j;
  int tmp;
  i = 0;
  tmp = 2;
  
  cin >> N >> x;
  while (x mod tmp = 0) {
    tmp *= 2;
    i++;
  }
  
  for j = 0; j <= N; j++{
    if i = 0 break;
    cin >> x;
    while (x mod tmp !=0) {
      tmp /= 2;
      i--;
    }
  }
  
  cout << i;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ')' before 'mod'
   13 |   while (x mod tmp = 0) {
      |         ~ ^~~~
      |           )
a.cc:13:12: error: 'mod' was not declared in this scope; did you mean 'modf'?
   13 |   while (x mod tmp = 0) {
      |            ^~~
      |            modf
a.cc:18:7: error: expected '(' before 'j'
   18 |   for j = 0; j <= N; j++{
      |       ^
      |       (
a.cc:18:25: error: expected ')' before '{' token
   18 |   for j = 0; j <= N; j++{
      |       ~                 ^
      |                         )
a.cc:19:8: error: expected '(' before 'i'
   19 |     if i = 0 break;
      |        ^
      |        (
a.cc:21:13: error: expected ')' before 'mod'
   21 |     while (x mod tmp !=0) {
      |           ~ ^~~~
      |             )
a.cc:21:14: error: 'mod' was not declared in this scope; did you mean 'modf'?
   21 |     while (x mod tmp !=0) {
      |              ^~~
      |              modf
Language: C++

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

int main() {
  int N;
  int x;
  int i,j,k;
  int tmp;
  i = 0;
  tmp = 2;
  
  cin >> N >> x;
  while x mod tmp = 0 {
    tmp *= 2;
    i++;
  }
  
  for j = 0; j <= N; j++{
    if i = 0 break;
    cin >> x;
    while x mod tmp !=0 {
      tmp /= 2;
      i--;
    }
  }
  
  cout << i;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected '(' before 'x'
   13 |   while x mod tmp = 0 {
      |         ^
      |         (
a.cc:13:10: error: expected ')' before 'mod'
   13 |   while x mod tmp = 0 {
      |         ~^~~~
      |          )
a.cc:13:11: error: 'mod' was not declared in this scope; did you mean 'modf'?
   13 |   while x mod tmp = 0 {
      |           ^~~
      |           modf
a.cc:18:7: error: expected '(' before 'j'
   18 |   for j = 0; j <= N; j++{
      |       ^
      |       (
a.cc:18:25: error: expected ')' before '{' token
   18 |   for j = 0; j <= N; j++{
      |       ~                 ^
      |                         )
a.cc:19:8: error: expected '(' before 'i'
   19 |     if i = 0 break;
      |        ^
      |        (
a.cc:21:11: error: expected '(' before 'x'
   21 |     while x mod tmp !=0 {
      |           ^
      |           (
a.cc:21:12: error: expected ')' before 'mod'
   21 |     while x mod tmp !=0 {
      |           ~^~~~
      |            )
a.cc:21:13: error: 'mod' was not declared in this scope; did you mean 'modf'?
   21 |     while x mod tmp !=0 {
      |             ^~~
      |             modf
Language: Java



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

public class contest081b {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		List<Long> list = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextLong());
		}
		boolean alleven = true;
		int halfcommand = 0;
		while(alleven) {
			if(list.stream().allMatch(number -> number % 2 == 0)) {
				halfcommand++;
				list.stream()
						.map(number -> number / 2)
						.collect(Collectors.toList());
			} else {
				alleven = false;
			}
			System.out.println(halfcommand);
		}
	}

}


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

#include<bits/stdc++.h>
using namespase std;
int main() {
	int ans = 0;
	bool div_by_2 = true;
	int N;
	cin >> N;
	int A[1000000000];

	while (div_by_2) {
		for (int i = 0; i < N; i++)
		{
			cin >> A[i];
			if (A[i] % 2 == 1)
			{
				div_by_2 = false;
				break;
			}
			else
			{
				A[i] /= 2;
			}
		}
		//全て2で割り切れる
		if (div_by_2) {
			ans++;
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> N;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:29:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |         cout << ans << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:29:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   29 |         cout << ans << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
	int ans = 0;
	bool div_by_2 = true;

	while (div_by_2) {
		for (int i = 0; i < N; i++)
		{
			if (A[i]%2==1)
			{
				div_by_2 = false;
				break;
			}
			else
			{
				A[i] /= 2;
			}
		}
		//全て2で割り切れる
		if (div_by_2) {
			ans++;
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: 'N' was not declared in this scope
    9 |                 for (int i = 0; i < N; i++)
      |                                     ^
a.cc:11:29: error: 'A' was not declared in this scope
   11 |                         if (A[i]%2==1)
      |                             ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before ')' token
    9 |   for (int i=0;i<N<i++){
      |                       ^
      |                       ;
a.cc:16:25: error: expected ';' before ')' token
   16 |     for (int i=0;i<N<i++){
      |                         ^
      |                         ;
a.cc:20:25: error: expected ';' before ')' token
   20 |     for (int i=0;i<N<i++){
      |                         ^
      |                         ;
a.cc:21:20: error: expected ';' before '}' token
   21 |       A[i] = A[i]/2
      |                    ^
      |                    ;
   22 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  //入力
  int N;
  cin >> N;
  vector<int> vec(N);
  for(int i=0; i<N; i++) cin >> vec.at(i);
  
  //奇数があるか判断
  int count = 0;
  while(true) {
    bool exsit_odd = false;
    for(int i=0; i<N; i++) {
      if(vec.at(i)%2==1) exsit_odd = true;
    }
    
    if(exsit_odd) break;
    
    for(int i=0; i<N; i++) vec.at(i) /= 2;
    
    ++count;
  }
  
  cout << count <<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >>n;
  
  int m=0;
  
  int x;
  cin >>x;
  while (int k=0;x%2==0;k++){
      x/=2;
      m=k+1;   
  }
  
  for (int i=0;i<n-1;i++){
    cin >> x;
    int a=0;
    
    while (int k=0;x%2==0;k++){
      x/=2;
      a=k+1;
    }
    m=min(a,m);
  }  
  cout << m <<endl;
      
}
      
        


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ')' before ';' token
   12 |   while (int k=0;x%2==0;k++){
      |         ~       ^
      |                 )
a.cc:12:25: error: 'k' was not declared in this scope
   12 |   while (int k=0;x%2==0;k++){
      |                         ^
a.cc:21:19: error: expected ')' before ';' token
   21 |     while (int k=0;x%2==0;k++){
      |           ~       ^
      |                   )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'A' was not declared in this scope
   12 |     cin >> A;
      |            ^
a.cc:13:5: error: 'countA' was not declared in this scope; did you mean 'count'?
   13 |     countA = 0;
      |     ^~~~~~
      |     count
a.cc:17:14: error: 'i' was not declared in this scope
   17 |         if ( i == 0){
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'A' was not declared in this scope
   12 |     cin >> A;
      |            ^
a.cc:13:5: error: 'countA' was not declared in this scope; did you mean 'count'?
   13 |     countA = 0;
      |     ^~~~~~
      |     count
a.cc:17:14: error: 'i' was not declared in this scope
   17 |         if ( i == 0){
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid type argument of unary '*' (have 'int')
    7 |   count = 2 ** 31;
      |              ^~~~
a.cc:10:12: error: 'A' was not declared in this scope
   10 |     cin >> A;
      |            ^
a.cc:11:5: error: 'countA' was not declared in this scope; did you mean 'count'?
   11 |     countA = 0;
      |     ^~~~~~
      |     count
a.cc:12:12: error: 'True' was not declared in this scope
   12 |     while (True){
      |            ^~~~
Language: C++

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

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

}
    


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

#include <stdio.h>

int main(void){
  int N, list[N], is_dev, i, ans;
  is_dev = true;
  ans = 0;
  scanf("%d", &N);
  for(i=0;i<N;i++){
    scanf("%d", &list[i]);
  }
  while(true){
    for(i=0;i<N;i++){
      if(list[i] % 2 == 1){
        is_dev = false;
        break;
      }
      list[i] = list[i] / 2;
    }
    if(is_dev == true){
      ans++;
    }else{
      break;
    }
  }
  printf("%d", &ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'true' undeclared (first use in this function)
    5 |   is_dev = true;
      |            ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
    5 |   is_dev = true;
      |            ^~~~
main.c:14:18: error: 'false' undeclared (first use in this function)
   14 |         is_dev = false;
      |                  ^~~~~
main.c:14:18: note: 'false' 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;
  for (int i=0;i<N;i++){
    int A,a=0;
    cin>>A;
    for (;A%2==0;){
      a++;
    }
    int b;
    if (i==0){
      b=a;
    }
    if (b>a){
      b=a;
    }
  }
  cout<<b<<endl;
}


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

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

int main(){
  int N;
  cin>>N;
  for (int i=0;i<N;i++){
    int A,a=0;
    cin>>A;
    for (A%2==0){
      a++;
    }
    if (i==0){
      int b;
      b=a;
    }
    if (b>a){
      b=a;
    }
  }
  cout<<b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before ')' token
   10 |     for (A%2==0){
      |                ^
      |                ;
a.cc:13:5: error: expected primary-expression before 'if'
   13 |     if (i==0){
      |     ^~
a.cc:12:6: error: expected ';' before 'if'
   12 |     }
      |      ^
      |      ;
   13 |     if (i==0){
      |     ~~
a.cc:13:5: error: expected primary-expression before 'if'
   13 |     if (i==0){
      |     ^~
a.cc:12:6: error: expected ')' before 'if'
   12 |     }
      |      ^
      |      )
   13 |     if (i==0){
      |     ~~
a.cc:10:9: note: to match this '('
   10 |     for (A%2==0){
      |         ^
a.cc:17:9: error: 'b' was not declared in this scope
   17 |     if (b>a){
      |         ^
a.cc:21:9: error: 'b' was not declared in this scope
   21 |   cout<<b<<endl;
      |         ^
Language: C++

#inlcude <iostream>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int counter = 0;
  int flag = 1;
  while (1) {
    for (int i = 0; i < n; i++) {
      if (a[i] % 2 == 0) a[i] /= 2;
      else {
        flag = 0;
        break;
      }
    }
    if (flag == 1) counter++;
    else break;
  }
  cout << counter << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #inlcude <iostream>
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout << counter << endl;
      |   ^~~~
a.cc:23:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:22: error: 'endl' was not declared in this scope
   23 |   cout << counter << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <iostream>
Language: C++

#inlcude <iostream>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int counter = 0;
  int flag = 1;
  while (1) {
    for (int i = 0; i < n i++) {
      if (a[i] % 2 == 0) a[i] /= 2;
      else {
        flag = 0;
        break;
      }
    }
    if (flag == 1) counter++;
    else break;
  }
  cout << counter << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #inlcude <iostream>
a.cc:13:26: error: expected ';' before 'i'
   13 |     for (int i = 0; i < n i++) {
      |                          ^~
      |                          ;
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout << counter << endl;
      |   ^~~~
a.cc:23:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:22: error: 'endl' was not declared in this scope
   23 |   cout << counter << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <iostream>
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: no matching function for call to 'min(std::vector<int>&)'
   19 |   cout <<min(x) <<endl;
      |          ~~~^~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
a.cc:19:13: note:   'std::vector<int>' is not derived from 'std::initializer_list<_Tp>'
   19 |   cout <<min(x) <<endl;
      |          ~~~^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

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

int main() {
  int N,ans;
  cin>> N;
  vector<int> a(N);
  for (int i =0;i<N;i++){
    cin>> a.at(i);
  }
  while(true){
    bool exist_odd =false;
    for(int i =0; i <N ; i++){
      if (a.at(i) %2 ==1){
        exist_odd =true;
      }
    }
    if(exist_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:24:11: error: expected ';' before '}' token
   24 |     ans ++
      |           ^
      |           ;
   25 |   }
      |   ~
Language: C++

#include<iostream>
#include <climits>
using namespace std;
int main(){
  int num_num, min_divide=INT_MAX;
  cin >> num_num;
  int nums[201];
  for(int i = 0; i < num_num; ++i){
    cin >> nums[i];
  }
  for(int i = 0; i < num_num; ++i){
    int tmp_devide=0;
    while(true){
      if (nums[i] % 2 == 0){
        nums[i] /= 2;
        tmp_devide++;
      }else{
        break;
      }
      if(tmp_devide >= nim_devide){
        break;
      }
    }
    if(tmp_devide < min_devide){
      min_devide = tmp_devide;
    }
  cout << min_devide << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: 'nim_devide' was not declared in this scope; did you mean 'tmp_devide'?
   20 |       if(tmp_devide >= nim_devide){
      |                        ^~~~~~~~~~
      |                        tmp_devide
a.cc:24:21: error: 'min_devide' was not declared in this scope; did you mean 'min_divide'?
   24 |     if(tmp_devide < min_devide){
      |                     ^~~~~~~~~~
      |                     min_divide
a.cc:27:11: error: 'min_devide' was not declared in this scope; did you mean 'min_divide'?
   27 |   cout << min_devide << endl;
      |           ^~~~~~~~~~
      |           min_divide
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define INF (1<<30)
#define MOD 1000000007
#define l_ength size
using ll = long long;
using namespace std;

int main(){
	int n; cin >> n;
	int ans = INF;
	while( n-- ){
		int k, t;
		cin >> k;
		int t = 0;
		while( k % 2 == 0 ){
			k /= 2;
			++t;
		}
		ans = min( ans, t );
	}
	cout << ans << endl;
	return 0;
}

// 1:33

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: redeclaration of 'int t'
   14 |                 int t = 0;
      |                     ^
a.cc:12:24: note: 'int t' previously declared here
   12 |                 int k, t;
      |                        ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  int a[150];
  int N,i,count=0,flag = 0;
  scanf("%d",&N);
  
  for(i=0;i<N;i++){
    scanf("%d",&a[i]);
    //printf("%d ",a[i]);
  }
  //printf("\n");
  while(1){
  	for(i=0;i<N;i++){
      if(a[i]%2 != 0) flag=1;
   	 a[i] = a[i]/2;
   	 
     }
    if(flag == 1) break;
    count++;
  }
  
  printf("%d\n",count);
  retrun 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:3: error: 'retrun' undeclared (first use in this function)
   24 |   retrun 0;
      |   ^~~~~~
main.c:24:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:9: error: expected ';' before numeric constant
   24 |   retrun 0;
      |         ^~
      |         ;
Language: C++

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

int main() {
  int counter, N;
  cin >> N;
  vector<int> num(N);

  for( int i = 0; i < N; i++ ) {
    cin >> num.at(i);
  }
  
  for( int i = 0; i < N; i++ ) {
    if( num.at(i) % 2 == 0 ) {
      num.at(i) /= 2;
      counter++;
    }
    if( !counter %= N ) {
        break;
    }
  cout << counter << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: lvalue required as left operand of assignment
   18 |     if( !counter %= N ) {
      |         ^~~~~~~~
Language: C++

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

int main() {
  int counter, N;
  cin >> N;
  vector<int> num(N);

  for( int i = 0; i < N; i++ ) {
    cin >> num.at(i);
  }
  
  for( int i = 0; i < N; i++ ) {
    if( num.at(i) % 2 == 0 ) {
      num.at(i) /= 2;
      counter++;
    }
    if( counter !%= N ) {
        break;
    }
  cout << counter << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: expected ')' before '!' token
   18 |     if( counter !%= N ) {
      |       ~        ^~
      |                )
Language: C++

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

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

    int countera=0;

    for ( ; ; )｛
        int counterb=0;
        for ( int j=0; j < N ; j++){
            if ( A[j] % 2 == 0) counterb++;
        }
        if ( counterb == N ) {
            for ( int j=0 ; j < N ; j++){
                A[j]/=2;
            }
            countera++;
        }else break;
    } 

    cout << countera << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: '\U0000ff5b' was not declared in this scope
   10 |     for ( ; ; )｛
      |                ^~
a.cc:13:33: error: 'counterb' was not declared in this scope; did you mean 'countera'?
   13 |             if ( A[j] % 2 == 0) counterb++;
      |                                 ^~~~~~~~
      |                                 countera
a.cc:15:14: error: 'counterb' was not declared in this scope; did you mean 'countera'?
   15 |         if ( counterb == N ) {
      |              ^~~~~~~~
      |              countera
a.cc:20:15: error: break statement not within loop or switch
   20 |         }else break;
      |               ^~~~~
a.cc: At global scope:
a.cc:23:5: error: 'cout' does not name a type
   23 |     cout << countera << endl;
      |     ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

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

    int countera=0;

    for ( ; ; )
        int counterb=0;
        for ( int j=0; j < N ; j++){
            if ( A[j] % 2 == 0) counterb++;
        }
        if ( counterb == N ) {
            for ( int j=0 ; j < N ; j++){
                A[j]/=2;
            }
            countera++;
        }else break;
    } 

    cout << countera << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'counterb' was not declared in this scope; did you mean 'countera'?
   13 |             if ( A[j] % 2 == 0) counterb++;
      |                                 ^~~~~~~~
      |                                 countera
a.cc:15:14: error: 'counterb' was not declared in this scope; did you mean 'countera'?
   15 |         if ( counterb == N ) {
      |              ^~~~~~~~
      |              countera
a.cc:20:15: error: break statement not within loop or switch
   20 |         }else break;
      |               ^~~~~
a.cc: At global scope:
a.cc:23:5: error: 'cout' does not name a type
   23 |     cout << countera << endl;
      |     ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^