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

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

int main(){
	//int a;
	int count =0;
	int n
	cin>>n;
	vector<int> a(n);
	int endflg =0;

	

	// atを使って1つずつ入力
	for(int i=0;i<n;i++){
		cin >> a.at(i);
	}

	for(int j =0;j<11;j++){

		for(int i=0;i<n;i++){
			if(split(a.at(i))!=0){
			a.at(i) = split(a.at(i));
			}else{
				endflg = 1;
				break;
			}
		} 
	
		if(endflg = 0){
			++count;
		}else{
			break;
		}
	}
	
	cout<<count;
	
}

int split(int x){
	if(x%2==1){
		retern 0;
	}else{
		retern x /2;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'cin'
    8 |         cin>>n;
      |         ^~~
a.cc:9:23: error: 'n' was not declared in this scope
    9 |         vector<int> a(n);
      |                       ^
a.cc:22:28: error: 'split' was not declared in this scope
   22 |                         if(split(a.at(i))!=0){
      |                            ^~~~~
a.cc: In function 'int split(int)':
a.cc:43:17: error: 'retern' was not declared in this scope; did you mean 'extern'?
   43 |                 retern 0;
      |                 ^~~~~~
      |                 extern
a.cc:45:17: error: 'retern' was not declared in this scope; did you mean 'extern'?
   45 |                 retern x /2;
      |                 ^~~~~~
      |                 extern
a.cc:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
   47 | }
      | ^
Language: C++

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

int main(){
	//int a;
	int count =0;
	int n
	vector<int> a;
	int endflg =0;
	cin>>n;

	// atを使って1つずつ入力
	for(int i=0;i<n;i++){
		cin >> a.at(i);
	}

	for(int j =0;j<11;j++){

		for(int i=0;i<n;i++){
			if(split(a.at(i))!=0){
			a.at(i) = split(a.at(i));
			}else{
				endflg = 1;
				break;
			}
		} 
	
		if(endflg = 0){
			++count;
		}else{
			break;
		}
	}
	
	cout<<count;
	
}

int split(int x){
	if(x%2==1){
		retern 0;
	}else{
		retern x /2;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'vector'
    8 |         vector<int> a;
      |         ^~~~~~
a.cc:10:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |         cin>>n;
      |              ^
      |              yn
a.cc:14:24: error: 'a' was not declared in this scope
   14 |                 cin >> a.at(i);
      |                        ^
a.cc:20:34: error: 'a' was not declared in this scope
   20 |                         if(split(a.at(i))!=0){
      |                                  ^
a.cc:20:28: error: 'split' was not declared in this scope
   20 |                         if(split(a.at(i))!=0){
      |                            ^~~~~
a.cc: In function 'int split(int)':
a.cc:41:17: error: 'retern' was not declared in this scope; did you mean 'extern'?
   41 |                 retern 0;
      |                 ^~~~~~
      |                 extern
a.cc:43:17: error: 'retern' was not declared in this scope; did you mean 'extern'?
   43 |                 retern x /2;
      |                 ^~~~~~
      |                 extern
a.cc:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
   45 | }
      | ^
Language: C++

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

int main(){
	//int a;
	int count =0;
	int n
	vector<int> a;
	int endflg =0;
	cin>>n;

	// atを使って1つずつ入力
	for(int i=0;i<n;i++){
		cin >> vec.at(i);
	}

	for(int j =0;j<11;j++){

		for(int i=0;i<n;i++){
			if(split(a.at(i))!=0){
			a.at(i) = split(a.at(i));
			}else{
				endflg = 1;
				break;
			}
		} 
	
		if(endflg = 0){
			++count;
		}else{
			break;
		}
	}
	
	cout<<count;
	
}

int split(int x){
	if(x%2==1){
		retern 0;
	}else{
		retern x /2;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before 'vector'
    8 |         vector<int> a;
      |         ^~~~~~
a.cc:10:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |         cin>>n;
      |              ^
      |              yn
a.cc:14:24: error: 'vec' was not declared in this scope
   14 |                 cin >> vec.at(i);
      |                        ^~~
a.cc:20:34: error: 'a' was not declared in this scope
   20 |                         if(split(a.at(i))!=0){
      |                                  ^
a.cc:20:28: error: 'split' was not declared in this scope
   20 |                         if(split(a.at(i))!=0){
      |                            ^~~~~
a.cc: In function 'int split(int)':
a.cc:41:17: error: 'retern' was not declared in this scope; did you mean 'extern'?
   41 |                 retern 0;
      |                 ^~~~~~
      |                 extern
a.cc:43:17: error: 'retern' was not declared in this scope; did you mean 'extern'?
   43 |                 retern x /2;
      |                 ^~~~~~
      |                 extern
a.cc:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
   45 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int N;
int A[200];

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: break statement not within loop or switch
   19 |          if (exist_odd) break;
      |                         ^~~~~
a.cc:22:19: error: expected ';' before '}' token
   22 |          A[i] /= 2
      |                   ^
      |                   ;
   23 |        }
      |        ~           
a.cc: At global scope:
a.cc:25:10: error: expected unqualified-id before '++' token
   25 |          ++res;
      |          ^~
a.cc:27:3: error: 'cout' does not name a type
   27 |   cout << res << endl;
      |   ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int N;
int A[200];

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: break statement not within loop or switch
   19 |          if (exist_odd)break;
      |                        ^~~~~
a.cc:22:19: error: expected ';' before '}' token
   22 |          A[i] /= 2
      |                   ^
      |                   ;
   23 |        }
      |        ~           
a.cc: At global scope:
a.cc:25:10: error: expected unqualified-id before '++' token
   25 |          ++res;
      |          ^~
a.cc:27:3: error: 'cout' does not name a type
   27 |   cout << res << endl;
      |   ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int N;
int A[200];

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: break statement not within loop or switch
   19 |         if (exist_odd) break;
      |                        ^~~~~
a.cc:22:18: error: expected ';' before '}' token
   22 |         A[i] /= 2
      |                  ^
      |                  ;
   23 |       }
      |       ~           
a.cc: At global scope:
a.cc:25:9: error: expected unqualified-id before '++' token
   25 |         ++res;
      |         ^~
a.cc:27:3: error: 'cout' does not name a type
   27 |   cout << res << endl;
      |   ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int N;
int A[200];

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: break statement not within loop or switch
   18 |         if (exist_odd) break;
      |                        ^~~~~
a.cc:21:18: error: expected ';' before '}' token
   21 |         A[i] /= 2
      |                  ^
      |                  ;
   22 |       }
      |       ~           
a.cc: At global scope:
a.cc:24:9: error: expected unqualified-id before '++' token
   24 |         ++res;
      |         ^~
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout << res << endl;
      |   ^~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

#include
using namespace std;

int N;
int A[200];

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

}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   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 | #include
a.cc:18:24: error: break statement not within loop or switch
   18 |         if (exist_odd) break;
      |                        ^~~~~
a.cc:21:18: error: expected ';' before '}' token
   21 |         A[i] /= 2
      |                  ^
      |                  ;
   22 |       }
      |       ~           
a.cc: At global scope:
a.cc:24:9: error: expected unqualified-id before '++' token
   24 |         ++res;
      |         ^~
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout << res << endl;
      |   ^~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

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

int mian () {
  int N;
  cin >> N;
  int M = 0;
  for(int i = 0;i < N;i++){
    int A;
    cin >> A;
    for(int j = 0;true;j++){
    int C = 0;
     if (A % 2 == 0)
      C++;
     if(A % 2 == 1)
       break;
     if( M > C);
    M = C;
    }
  }
  cout << M << endl;
}
 
      
      
      
      
         
         
      
    
    
    

Compiler output:
a.cc: In function 'int mian()':
a.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
   22 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int mian () {
  int N;
  cin >> N;
  int M = 0;
  for(int i = 0;i < N;i++){
    int A;
    cin >> A;
    for(int j = 0;true;j++){
    int C = 0;
     if (A % 2 == 0)
      C++;
     if(A % 2 == 1)
       break;
     if( M > C);
    M = C;
    }
  }
  cout << M << endl;
}
 
      
      
      
      
         
         
      
    
    
    

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

int main(int argc, char const *argv[])
{
	int a, max, temp;
	int s[101] = 0;

	scanf("%d", &a);
//	scanf("%d", &b);
//	scanf("%d", &c);
	scanf("%s", &s);

	for (int i = 0; i < a; ++i){
			scanf("%d", s[i]);
	}

	max = 0;

	for (int i = 0, temp = 0; i < a; ++i)
	{
		while(s[i] % 2 == 0)
		{
			s[i] / 2;
			temp++;

		}else{
			if (temp >= max)
			{
				max = temp;
			}

		}
	}

	printf("%d\n", max);



	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:22: error: invalid initializer
    4 |         int s[101] = 0;
      |                      ^
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d", &a);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(int argc, char const *argv[])
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d", &a);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:24:18: error: 'else' without a previous 'if'
   24 |                 }else{
      |                  ^~~~
main.c:33:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   33 |         printf("%d\n", max);
      |         ^~~~~~
main.c:33:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:33:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:33:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N, A[200];
  
  int dmin = 100;
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    int A;
    scanf("%d", &A);
    int d = 0;
    while (A % 2 == 0) {
      A /= 2;
      ++d;
    }
    dmin = min(dmin, d)
  }
}

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

#include <iostream>
using namespace std;

int main() {
  int N, A[200];
  
  int dmin = 100;
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    scanf("%d", &A);
    int d = 0;
    while (A % 2 == 0) {
      A /= 2;
      ++d;
    }
    dmin = min(dmin, d)
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid operands of types 'int [200]' and 'int' to binary 'operator%'
   12 |     while (A % 2 == 0) {
      |            ~ ^ ~
      |            |   |
      |            |   int
      |            int [200]
a.cc:13:9: error: invalid operands of types 'int [200]' and 'int' to binary 'operator/'
   13 |       A /= 2;
      |       ~~^~~~
a.cc:13:9: note:   in evaluation of 'operator/=(int [200], int)'
a.cc:16:24: error: expected ';' before '}' token
   16 |     dmin = min(dmin, d)
      |                        ^
      |                        ;
   17 |   }
      |   ~
Language: C++

#inlcude<iostream>
using namespace std;

int main(){
  int n;
  int s=100;
  cin>>n;
  for(int i=0;i<n;i++){
    int a;
    int v=0;
    cin>>a;
    while(a%2==0){
      a /= 2;
      v++;
    }
    s=min(v,s);
  }
  cout<<s<<endl;
  return 0;
}
  
    

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:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<iostream>
a.cc:16:7: error: 'min' was not declared in this scope; did you mean 'main'?
   16 |     s=min(v,s);
      |       ^~~
      |       main
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout<<s<<endl;
      |   ^~~~
a.cc:18:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:12: error: 'endl' was not declared in this scope
   18 |   cout<<s<<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,x,y,z;
  cin >> n;
  vector<int> vec(n);
  for(int i=0;i<n;i++){
    cin >> vec.at(i);
  }
  
  x=0;
  z=0;
  while(){
    for(int i=0;i<n;i++){
      if(vec.at(i) % y == 1){
        z = 100;
        break;
      }
    }
    
    if(z == 100){
      break;
    }
    
    y = y*2;
    x++;
  }
  
  cout << x << endl;
}


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

#include<iostream>
#include<vector>

using namespace std;

int main(){
  int n,a,i,j,c;
  vector <int> v;
  
  cin>>n;
  for(i=0;i<n;i++){
    cin>>a;
    v.push_back(s);
  }
  for(i=0;;i++){
    c=0;
    for(j=0;j<n;j++){
      if(v[j]%2==0)
        c++;
    }
    if(c!=n)
      break;
  }
  cout<<c<<endl;
  return 0;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 's' was not declared in this scope
   13 |     v.push_back(s);
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int ord(int n){
  int ret=0;
  while(n%2==0){
    n/=2;
    ret++;
  }
  return ret;
}
int main(){
  int n;
  cin>>n;
  int ans=1000000007;
  vector<int> a(n);
  for(int i=0;i<n;i++){
    cin>>a[i];
    ans=min(ans,ord(a[i]));
  }
  cout<<ans<<endl;
}
  }

Compiler output:
a.cc:22:3: error: expected declaration before '}' token
   22 |   }
      |   ^
Language: C++

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

int main(){
	int n;
	cin >> n;
	vector<int>a;
	for(int i = 0; i < n; i++){
		int ai;
		cin >> ai;
		a.push_back(ai);
	}
	int min = INT_MAX;
	for(int i = 0; i < n; i++){
		int count = 0;
		while(!(a[i]%2)){
			a[i] /= 2;
			++count;
		}
		if(count < min)
			min = count;
	}
	cout << min << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'INT_MAX' was not declared in this scope
   16 |         int min = INT_MAX;
      |                   ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include<algorithm>
  +++ |+#include <climits>
    5 | using namespace std;
Language: C++

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

Compiler output:
a.cc:5:12: error: extended character 　 is not valid in an identifier
    5 |   int N, a,　b, c;
      |            ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'b' was not declared in this scope
    6 |   b = 0;
      |   ^
Language: C++

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

Compiler output:
a.cc:5:12: error: extended character 　 is not valid in an identifier
    5 |   int N, a,　b, c;
      |            ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'b' was not declared in this scope
    6 |   b = 0;
      |   ^
a.cc:12:13: error: lvalue required as left operand of assignment
   12 |       if (a % 2 = 1) {
      |           ~~^~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int min = 0;
    for (int i = 0; i < n; i++) {
      int a = scan.nextInt();
      int count = findMin(a, 0);
      if (i == 0 || count < min) {
        min = count;
      }
    }
    System.out.println(min);
  }
  
  private static int findMin(int n, int count) {
    if (n % 2 != 0) {
      return count;
    }
    findMin(n / 2, ++count);
  }
}

Compiler output:
Main.java:23: error: missing return statement
  }
  ^
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int min = 0;
    for (int i = 0; i < n; i++) {
      int a = scan.nextInt();
      int count = findMin(a, 0);
      if (i = 0 || count < min) {
        min = count;
      }
    }
    System.out.println(min);
  }
  
  private static int findMin(int n, int count) {
    if (n % 2 != 0) {
      return count;
    }
    findMin(n / 2, ++count);
  }
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '||'
      if (i = 0 || count < min) {
                ^
  first type:  int
  second type: boolean
Main.java:11: error: incompatible types: int cannot be converted to boolean
      if (i = 0 || count < min) {
            ^
2 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N;
    unsigned int A[200],MAX,min;
	MAX=100000000;
  	min=MAX;
  	cin >> N;
	for(int i = 0;i<N;i++){
      cin >> A[i];
      if(A[i]%2==1) min=0;
    }
  	if(A[0] <= MAX) min=A[0];
  	for(int i=1;i<N;i++){
    	if(A[i] <= min) min=A[i];
    }
  	unsigned int answer = min/2;
  	cout << answer << endl;

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

int main() {
    int N;
    unsigned int A[200],MAX,min;
	MAX=100000000;
  	min=MAX;
  	cin >> N;
	for(int i = 0;i<N;i++){
      cin >> A[i];
      if(A[i]%2==1) min=0;
    }
  	if(A[0] <= MAX) min=A[0];
  	for(int i=1;i<N;i++){
    	if(A[i] <= min) min=A[i];
    }
  	unsigned int answer = min/2;
  	cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'min'?
    6 |         cin >> N;
      |         ^~~
      |         min
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << answer << endl;
      |         ^~~~
a.cc:16:27: error: 'endl' was not declared in this scope
   16 |         cout << answer << endl;
      |                           ^~~~
Language: C++

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

#define D_iN	200

int main (void) {
	int ii=0, iRetValue=0, iN=0, iA[D_iN], iCount=0;
	int	a=0, b=0, c=0;

	iRetValue = icanf ("%d", &iN);
	for (ii=0; ii < iN; ii++) {
		iRetValue = icanf ("%d", &iA[ii]);
	}

	while (1) {
		for (ii=0; ii < iN; ii++) {
			//c=a-(a/b)*b;
//			a = iA[ii] >> 1;	// /2
//			b = a << 1;			// x2
//			c = iA[ii] - b;		// 1 - 

			a = iA[ii] >> 1;	// /2
			c = iA[ii] - (a << 1);
			if (c == 0) {
				iA[ii] = a;
			} else {
				goto l_Exit;
			}
		}
		iCount++;
	}

l_Exit:
	printf ("%d\n", iCount);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'icanf' was not declared in this scope; did you mean 'scanf'?
   11 |         iRetValue = icanf ("%d", &iN);
      |                     ^~~~~
      |                     scanf
Language: C++

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

#define D_iN	200

int main (void) {
	int ii=0, iRetValue=0, iN=0, iCount=0;
	short	sA[D_iN], sStp=0;
	short	sa=0, sb=0, sc=0;

	iRetValue = scanf ("%d", &iN);
	for (ii=0; ii < iN; ii++) {
		iRetValue = scanf ("%d", &sA[ii]);
	}

	while (1) {
		for (ii=0; ii < iN; ii++) {
			//c=a-(a/b)*b;
			sa = sA[ii] >> 1;	// /2
			sb = sa << 1;		// x2
			sc = sA[ii] - sb;
			
			if (sc == 0) {
				sA[ii] = sA[ii] >> 1;
			} else {
				goto l_Exit:
			}
		}
		if (sStp) {
			break; 
		}
		iCount++;
	}

l_Exit:
	printf ("%d\n", iCount);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:44: error: expected ';' before ':' token
   27 |                                 goto l_Exit:
      |                                            ^
      |                                            ;
a.cc:27:44: error: expected primary-expression before ':' token
Language: C++

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

int main (void) {
	int ii=0, iRetValue=0, iN=0, iCount=0;
	short	sA[200], sStp=0;
	shoart	sa=0, sb=0, sc=0;

	iRetValue = scanf ("%d", &iN);
	for (ii=0; ii < iN; ii++) {
		iRetValue = scanf ("%d", &sA[ii]);
	}

	while (1) {
		for (ii=0; ii < iN; ii++) {
			//c=a-(a/b)*b;
			sa = sA[ii] >> 1;	// /2
			sb = sa << 1;		// x2
			sc = sA[ii] - sb;
			
//			sc = sA[ii] - ((sA[ii] >> 1) << 1);
			
			if (sc == 0) {
				sA[ii] = sA[ii] >> 1;
			} else {
				ii = 200;
				sStp = 1;
			}
		}
		if (sStp) { break; }
		iCount++;
	}
	printf ("%d\n", iCount);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'shoart' was not declared in this scope; did you mean 'short'?
    8 |         shoart  sa=0, sb=0, sc=0;
      |         ^~~~~~
      |         short
a.cc:18:25: error: 'sa' was not declared in this scope; did you mean 'sA'?
   18 |                         sa = sA[ii] >> 1;       // /2
      |                         ^~
      |                         sA
a.cc:19:25: error: 'sb' was not declared in this scope; did you mean 'sA'?
   19 |                         sb = sa << 1;           // x2
      |                         ^~
      |                         sA
a.cc:20:25: error: 'sc' was not declared in this scope; did you mean 'sA'?
   20 |                         sc = sA[ii] - sb;
      |                         ^~
      |                         sA
Language: C++

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

int main (void) {
	int ii=0, iRetValue=0, iN=0, iCount=0;
	int	iA[200];

	iRetValue = scanf ("%d", &iN);
	for (ii=0; ii < iN; ii++) {
		iRetValue = scanf ("%d", &iA[ii]);
	}

	while (1) {
		for (ii=0; ii < iN; ii++) {
			if (iA[ii] % 2 == 0) {
				iA[ii] = iA[ii] / 2;
			} else {
				iStop = 1;
			}
		}
		if (iStop) {
			printf ("%d\n", iCount);
			break;
		}
		iCount++;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:33: error: 'iStop' was not declared in this scope
   19 |                                 iStop = 1;
      |                                 ^~~~~
a.cc:22:21: error: 'iStop' was not declared in this scope
   22 |                 if (iStop) {
      |                     ^~~~~
Language: Java

import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner kb = new Scanner(System.in);
		System.out.print("N: ");
		int n = kb.nextInt();
		
		System.out.print("A: ");
		int[]numA = new int[n];
		
		boolean exist_odd = false;
		
		for(int i=0; i< n; i++) {
			numA[i] = kb.nextInt();
			if(numA[i]%2 == 1) //奇数の場合
				exist_odd = true;
		}
		if(exist_odd == true) //奇数フラグtrueの場合
			System.out.println(0);
		else { //全て偶数の場合
			int min = Integer.MAX_VALUE;
			for(int i=0; i< n; i++) {
				int ans = 0;
				while(numA[i] %2 == 0) { 
					numA[i] /= 2;
					ans++;
				}
				min = Math.min(min, ans);
			}
			System.out.println("answer: "+min);
          kb.close();
		}
    }

Compiler output:
Main.java:35: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.Scanner;

public class Sunuke {
	
	public static void main(String[] args) {
		Scanner kb = new Scanner(System.in);
		System.out.print("N: ");
		int n = kb.nextInt();
		
		System.out.print("A: ");
		int[]numA = new int[n];
		
		boolean exist_odd = false;
		
		for(int i=0; i< n; i++) {
			numA[i] = kb.nextInt();
			if(numA[i]%2 == 1) //奇数の場合
				exist_odd = true;
		}
		if(exist_odd == true) //奇数フラグtrueの場合
			System.out.println(0);
		else { //全て偶数の場合
			int min = Integer.MAX_VALUE;
			for(int i=0; i< n; i++) {
				int ans = 0;
				while(numA[i] %2 == 0) { 
					numA[i] /= 2;
					ans++;
				}
				min = Math.min(min, ans);
			}
			System.out.println("answer: "+min);
		}
    }

Compiler output:
Main.java:34: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected initializer before '>>' token
   10 |     int a[i],cin>>a[i];
      |                 ^~
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     while(a>1)
      |           ~^~
Language: C++

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

int main() {

  int a,i,c,d,e=0;
  cin>>a;
  for(i=0;i<a;i++){
    cin>>c;
  while(1){
    if(c%2=0){
    d++;
    }else{
      break;
    }
    c=c/2
  }
    if(e<d)
    e=d;
  }
cout<<c<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: lvalue required as left operand of assignment
   11 |     if(c%2=0){
      |        ~^~
a.cc:16:10: error: expected ';' before '}' token
   16 |     c=c/2
      |          ^
      |          ;
   17 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'i' undeclared (first use in this function)
   13 |     for(i=0;i<n;i++){
      |         ^
main.c:13:9: 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,count=0,flag=0;
  vector<int> A(N);
  
  cin >> N;
    for(int i=0;i<N;i++){
      cin >> A.at(i);
    }
  while(flag==0){
    for(int i=0;i<N;i++){
      if(A.at(i)%2==0 && i = N-1){
        A.at(i) /= 2;
      }
      else if(A.at(i)%2 != 0){
        flag++;
        break;
      }
      else if(i == N-1 && A.at(i)%2 == 0){
        A.at(i) /= 2;
        count++;
      }
    }
  }
  
  cout << count << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: lvalue required as left operand of assignment
   14 |       if(A.at(i)%2==0 && i = N-1){
      |          ~~~~~~~~~~~~~^~~~
Language: C++

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

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


Compiler output:
a.cc:14:21: error: extended character 　 is not valid in an identifier
   14 |       if(A.at(i)%2==0　&& i != N -1){
      |                     ^
a.cc: In function 'int main()':
a.cc:14:21: error: unable to find numeric literal operator 'operator""\U00003000'
   14 |       if(A.at(i)%2==0　&& i != N -1){
      |                     ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: expected primary-expression before '%' token
   21 |       else if(i == N-1 %% A.at(i)%2 == 0){
      |                         ^
Language: C++

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

int main(){
  int N,count=0,flag=0;
  vector<int> A(N);
  
  cin >> N;
    for(int i=0;i<N;i++){
      cin >> A.at(i);
    }
  while(flag==0){
    for(int i=0;i<N;i++){
      if(A.at(i)%2==0){
        A.at(i) /= 2;
      }
      else if(A.at(i)%2 != 0){
        flag++;
        break;
      }
      else if(i == N){
        count++;
      }
    }
  }
  
  cout << count << 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:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> A(N);
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> A(N);
      |          ^~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:14: error: 'A' was not declared in this scope
   10 |       cin >> A.at(i);
      |              ^
a.cc:14:10: error: 'A' was not declared in this scope
   14 |       if(A.at(i)%2==0){
      |          ^
a.cc:27:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |   cout << count << 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:27:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |   cout << count << 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<iostream>
using namespace std;

int N;
int A[210];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'exits_odd' was not declared in this scope; did you mean 'exists_odd'?
   18 |     if (exits_odd) break;
      |         ^~~~~~~~~
      |         exists_odd
Language: C++

#include<iostream>
using namespace std;

int N;
int A[210];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'exits_odd' was not declared in this scope; did you mean 'exists_odd'?
   18 |     if (exits_odd) break;
      |         ^~~~~~~~~
      |         exists_odd
Language: C++

#include<iostream>
using namespace std;

int N;
int A[210];

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=0;i<N;++i) cin >> A[i];
      |        ^
a.cc:15:10: error: 'i' was not declared in this scope
   15 |     for (i=0;i<N;++i){
      |          ^
a.cc:18:9: error: 'exits_odd' was not declared in this scope; did you mean 'exists_odd'?
   18 |     if (exits_odd) break;
      |         ^~~~~~~~~
      |         exists_odd
a.cc:20:10: error: 'i' was not declared in this scope
   20 |     for (i=0;i<N;++i) A[i] = A[i]/2;
      |          ^
Language: C++

#include<iostream>
using namespace std;

int N;
int A[210];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=0;i<N;++i) cin >> A[i];
      |        ^
a.cc:15:10: error: 'i' was not declared in this scope
   15 |     for (i=0;i<N;++i){
      |          ^
a.cc:18:9: error: 'exits_odd' was not declared in this scope; did you mean 'exists_odd'?
   18 |     if (exits_odd) break;
      |         ^~~~~~~~~
      |         exists_odd
a.cc:20:10: error: 'i' was not declared in this scope
   20 |     for (i=0;i<N;++i) A[i] = A[i]/2
      |          ^
a.cc:20:35: error: lvalue required as increment operand
   20 |     for (i=0;i<N;++i) A[i] = A[i]/2
      |                                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'c' was not declared in this scope
   23 |   }while(c==n);
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    //input N, A..Anを受け取る
    int N, A[N];

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

    int res = 0;

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

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

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

    cout << counter << endl;

}

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

using namespace std;

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

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

    int res = 0;

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

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

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

    cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> N;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout << res << endl;
      |     ^~~~
a.cc:28:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:20: error: 'endl' was not declared in this scope
   28 |     cout << res << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

int N;
int A[210];


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

Compiler output:
a.cc:9:13: error: expected ']' before ';' token
    9 |     cin >> N;
      |             ^
      |             ]
a.cc:10:5: error: expected unqualified-id before 'for'
   10 |     for (int i = 0; i < N; ++i) cin >> A[i]:
      |     ^~~
a.cc:10:21: error: 'i' does not name a type
   10 |     for (int i = 0; i < N; ++i) cin >> A[i]:
      |                     ^
a.cc:10:28: error: expected unqualified-id before '++' token
   10 |     for (int i = 0; i < N; ++i) cin >> A[i]:
      |                            ^~
a.cc:16:4: error: expected unqualified-id before 'while'
   16 |    while (true) {
      |    ^~~~~
a.cc:31:1: error: 'cout' does not name a type
   31 | cout << res << endl;
      | ^~~~
Language: C++

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

int main() {
  int N;
  vector<int> A (200);
  cin >> N;
  
  int res = 0;
  
  for(int i=0;i < N;i++){
    cin >> A.at(i);
  }
while (true){　
bool exist_odd = false;　
    for ( int j =0; j<N ; j++){
      if(A.at(j)%2 != 0) 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:15:14: error: extended character 　 is not valid in an identifier
   15 | while (true){　
      |              ^
a.cc:16:24: error: extended character 　 is not valid in an identifier
   16 | bool exist_odd = false;　
      |                        ^
a.cc: In function 'int main()':
a.cc:15:14: error: '\U00003000' was not declared in this scope
   15 | while (true){　
      |              ^~
a.cc:16:26: error: expected ';' before 'for'
   16 | bool exist_odd = false;　
      |                          ^
      |                          ;
   17 |     for ( int j =0; j<N ; j++){
      |     ~~~                   
a.cc:17:21: error: 'j' was not declared in this scope
   17 |     for ( int j =0; j<N ; j++){
      |                     ^
a.cc:20:9: error: 'exist_odd' was not declared in this scope
   20 |     if (exist_odd) break;
      |         ^~~~~~~~~
Language: C++

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

int main() {
  int N;
  vector<int> A (200);
  cin >> N;
  
  int res = 0;
  
  for(int i=0;i < N;i++){
    cin >> A.at(i);
  }
  while (true){　
    bool exist_odd = false;　
    for ( int j =0; j<N ; j++){
      if(A.at(j)%2 != 0) 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:15:16: error: extended character 　 is not valid in an identifier
   15 |   while (true){　
      |                ^
a.cc:16:28: error: extended character 　 is not valid in an identifier
   16 |     bool exist_odd = false;　
      |                            ^
a.cc: In function 'int main()':
a.cc:15:16: error: '\U00003000' was not declared in this scope
   15 |   while (true){　
      |                ^~
a.cc:16:30: error: expected ';' before 'for'
   16 |     bool exist_odd = false;　
      |                              ^
      |                              ;
   17 |     for ( int j =0; j<N ; j++){
      |     ~~~                       
a.cc:17:21: error: 'j' was not declared in this scope
   17 |     for ( int j =0; j<N ; j++){
      |                     ^
a.cc:20:9: error: 'exist_odd' was not declared in this scope
   20 |     if (exist_odd) break;
      |         ^~~~~~~~~
Language: C++

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

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