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

#include<algorithm>
#include<bits/allocator.h>
#include<bits/basic_ios.h>
#include<bits/basic_string.h>
#include<bits/basic_string.tcc>
#include<bits/c++config.h>
#include<bits/char_traits.h>
#include<bits/cpp_type_traits.h>
#include<bits/cxxabi_forced.h>
#include<bits/ios_base.h>
#include<bits/locale_classes.h>
#include<bits/localefwd.h>
#include<bits/ostream_insert.h>
#include<bits/postypes.h>
#include<bits/range_access.h>
#include<bits/stl_algobase.h>
#include<bits/stl_function.h>
#include<bits/stl_iterator.h>
#include<bits/stl_iterator_base_funcs.h>
#include<bits/stl_iterator_base_types.h>
#include<bits/stringfwd.h>
#include<bitset>
#include<cassert>
#include<cctype>
#include<cctype>
#include<cerrno>
#include<cfloat>
#include<ciso646>
#include<climits>
#include<clocale>
#include<cmath>
#include<complex>
#include<csetjmp>
#include<csignal>
#include<cstdarg>
#include<cstddef>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<cwchar>
#include<cwchar>
#include<cwctype>
#include<debug/debug.h>
#include<deque>
#include<exception>
#include<ext/atomicity.h>
#include<ext/numeric_traits.h>
#include<fstream>
#include<functional>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<limits>
#include<list>
#include<locale>
#include<map>
#include<new>
#include<numeric>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<valarray>
#include<vector>
using namespace std;
int main()
{
	int n,b,c,ans=0;
	cin>>n>>b>>c;
	if (n==1) ans++;
	if (a==1) ans++;
	if (b==1) ans++;
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:79:13: error: 'a' was not declared in this scope
   79 |         if (a==1) ans++;
      |             ^
Language: C

#include <stdio.h>

int main(){
        char S[2]
        for(int i=0;i<2;i++){
                scanf("%c",&S[i]);
        }
        int count=0;
        for(int i=0;i<2;i++){
                if(S[i]==1){
                        count++;
                }
        }
        printf("%d",count);
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    5 |         for(int i=0;i<2;i++){
      |         ^~~
main.c:6:29: error: 'S' undeclared (first use in this function)
    6 |                 scanf("%c",&S[i]);
      |                             ^
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>
int main()
{
	int z,i;
	char s[10];
	gets(s);
	z=0;
	for(i=0;s[i];i++)
	{
		z+=s[i]-'0';
	}
	printf("%d\n",z);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(s);
      |         ^~~~
      |         getw
Language: C

#include <stdio.h>

int main(){
        char S[2]
        for(int i=0;i<2;i++){
                scanf("%c",&S[i])
        }
        int count=0;
        for(int i=0;i<2;i++){
                if(S[i]==1){
                        count++;
                }
        }
        printf("%d",count);
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    5 |         for(int i=0;i<2;i++){
      |         ^~~
main.c:6:29: error: 'S' undeclared (first use in this function)
    6 |                 scanf("%c",&S[i])
      |                             ^
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:34: error: expected ';' before '}' token
    6 |                 scanf("%c",&S[i])
      |                                  ^
      |                                  ;
    7 |         }
      |         ~
Language: C++

/* -------------------------------------------------

Author :- Vaibhav Pal
College :- Northern India Engineering College, New Delhi
Coding Handle :- underdog_eagle
Title :-

----------------------------------------------------*/
#include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
typedef vector<ii> vii;
typedef vector<pll> vpll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vi> vvi;

#define FAST_IO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define INF 1000000000000000000         
#define nl '\n'
#define sp ' '
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define F first
#define S second
#define bg begin()
#define en end()
#define fo(i, a, b) for(int (i) = (a); (i) <= (b); (i)++)

inline ll gcd(ll a, ll b) { return b == 0 ? a : gcd(b, a % b); }
inline ll lcm(ll a, ll b) { return a * (b / gcd(a, b)); }

int main()
{
	FAST_IO
    /*#ifndef ONLINE_JUDGE
	freopen("in.txt", "r", stdin);
	freopen("out.txt", "w", stdout);
    #endif*/

	string str;
	cin >> str;
	cnt = str[0] == '1' + str[1] == '1' + str[2] == '1';
	cout << cnt;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   50 |         cnt = str[0] == '1' + str[1] == '1' + str[2] == '1';
      |         ^~~
      |         int
Language: C++

#include <iostream>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <functional>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <cmath>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int,int> P;
#define rep(i,a,n) for(ll i = (a);i < (n);i++)
#define per(i,a,n) for(ll i = (a);i > (n);i--)
#define lep(i,a,n) for(ll i = (a);i <= (n);i++)
#define pel(i,a,n) for(ll i = (a);i >= (n);i--)
#define clr(a,b) memset((a),(b),sizeof(a))
#define pb push_back
#define mp make_pair
#define all(c) (c).begin(),(c).end()
#define sz size()
#define print(x) cout << x << endl
const int INF = 1e+8+7;
ll n,m;
int a,b,c = 1;
string s,t;
int d[100],dp1[500][500],dp2[500][500];
vi vec;

int main(){
  bitset<3> bt;
  cin >> bt;
  print(bt.count());
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: 'bitset' was not declared in this scope
   34 |   bitset<3> bt;
      |   ^~~~~~
a.cc:11:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>'
   10 | #include <cmath>
  +++ |+#include <bitset>
   11 | using namespace std;
a.cc:34:13: error: 'bt' was not declared in this scope; did you mean 't'?
   34 |   bitset<3> bt;
      |             ^~
      |             t
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
      	int minDivTwo = 1000;
    	for(int i=0; i<n; i++){
          	int v = sc.nextInt();
			int c = 0;
          	while(v > 0 && v%2 == 0)	{
            	v/=2;
	            c++;
	        }
            minDivTwo = min(c, minDivTwo);
        }
        System.out.println(minDivTwo);
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
            minDivTwo = min(c, minDivTwo);
                        ^
  symbol:   method min(int,int)
  location: class Main
1 error
Language: C++

int main() 
{
    int n, count=0;
    cin >> n;

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

    while(true){
        for(int i=0; i<n; ++i){
            if(A[i]%2){
                cout << count << endl;
                return 0;
            }
        }    
        for(int i=0; i<n; ++i){
            A[i] /= 2; 
        }
        ++count;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> n;
      |     ^~~
a.cc:12:17: error: 'cout' was not declared in this scope; did you mean 'count'?
   12 |                 cout << count << endl;
      |                 ^~~~
      |                 count
a.cc:12:34: error: 'endl' was not declared in this scope
   12 |                 cout << count << endl;
      |                                  ^~~~
Language: C++

6
382253568 723152896 37802240 379425024 404894720 471526144#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long sum=0,n,i,count=0,pount=0;
  cin>>n;
  vector<long long> v(n);
  for(i=0;i<n;i++)
  {
      cin>>v[i];
  }
  
  while(1)
 {
    for(int i=0;i<n;i++)
    {
        if(v[i]%2==0)
        {
          v[i]=v[i]/2;
          pount++;
        }
        
        else if(v[i]%2!=0)
        {
            break;
        }
    }
    if(pount==n)
    {
        count++;
    }
    else if(pount!=n)
    {
        break;
    }
 }
 cout<<count<<"\n";
 return 0;
}

Compiler output:
a.cc:2:59: error: stray '#' in program
    2 | 382253568 723152896 37802240 379425024 404894720 471526144#include<bits/stdc++.h>
      |                                                           ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 6
      | ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<long long> v(n);
      |   ^~~~~~
a.cc:8:10: error: expected primary-expression before 'long'
    8 |   vector<long long> v(n);
      |          ^~~~
a.cc:11:12: error: 'v' was not declared in this scope
   11 |       cin>>v[i];
      |            ^
a.cc:18:12: error: 'v' was not declared in this scope
   18 |         if(v[i]%2==0)
      |            ^
a.cc:38:2: error: 'cout' was not declared in this scope; did you mean 'count'?
   38 |  cout<<count<<"\n";
      |  ^~~~
      |  count
Language: C++

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

int main( void )
{
  int N;
  cin >> N;
  vector<int> A( N );

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

  int ans = 0;
  while( 1 ) {
    for( int i = 0; i < N; i++ ) {
      if( A.at( i ) % 2 == 0 )
	count++;
    }
    
    if( count == N ) {
      for( int i = 0; i < N; i++ ) {
	A.at( i ) /= 2;
      }
	ans++;
        for( int i = 0; i < N; i++ )
       // cout << A.at( i );
       // cout << endl;
      }
    else
      break;
    
    count = 0;
 
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:7: error: expected primary-expression before '}' token
   31 |       }
      |       ^
Language: C++

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

int main(){
  int n, a, c = 0;
  cin >> n;
  vector<int> v;
  for(int i = 0; i < n; i++){
    cin >> a;
    while(a % 2 == 0){
      c++;
      a = a / 2;
    }
    v.push_back(c);
    c = 0;
  }
  sort(v.begin(), v.end());
  c = v.begin(array);
  cout << c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: missing template arguments before ')' token
   19 |   c = v.begin(array);
      |                    ^
Language: C++

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

int main(){
  int n, a, c = 0;
  cin >> n;
  vector<int> v;
  for(int i = 0; i < n; i++){
    cin >> a;
    while(a % 2 == 0){
      c++;
      a = a / 2;
    }
    v.push_back(c);
    c = 0;
  }
  sort(v.begin(), v.end());
  c = v.begin();
  cout << c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: cannot convert 'std::vector<int>::iterator' to 'int' in assignment
   19 |   c = v.begin();
      |       ~~~~~~~^~
      |              |
      |              std::vector<int>::iterator
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();	
        int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	int count = 0;
      	boolean flg = true;
      while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++;
      }
      
System.out.print(count);


    }
}


Compiler output:
Main.java:8: error: cannot find symbol
        for(int i = 0 ; i < n ; i ++){
                            ^
  symbol:   variable n
  location: class Main
Main.java:14: error: cannot find symbol
      	for(int i = 0 ; i < n ; i++){
      	                    ^
  symbol:   variable n
  location: class Main
2 errors
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();	
        int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	int count = 0;
      	boolean flg = true;
      while(flg){
      	for(int i = 0 ; i < n ; i++){
        	if(array[i] % 2 != 0){
            	flg = false;
              break;
            }
          	array[i] /= 2;
        }
        if(!flg) {
        	break;
        }
      	count ++:
      }
      
System.out.print(count);


    }
}


Compiler output:
Main.java:24: error: ';' expected
      	count ++:
      	        ^
1 error
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results = true;
      
      while(results){
        
          for(int j = 0; j < list.size(); j++ ){
            if(list.get(j) % 2 != 0){
              results = false;
              break;
            }
              list.set(j,list.get(i) / 2);
        }
        if(results){
          count += 1;
        }
      }
     System.out.println(count);
    }
}

Compiler output:
Main.java:25: error: cannot find symbol
              list.set(j,list.get(i) / 2);
                                  ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean results;
      
      for(int i = 0; i < 999999 ; i++){
        if(results){
        	break;
        }
        if(i != 0){
            count += 1;
        }
          for(int j = 0; j < list.get(i) ; j++ ){
            if(list.get(j) % 2 != 0){
              results = true;
              break;
            }else{
              list.set(j,list.get(i) / 2);
            }
        }
      }
     System.out.println(count);
    }
}

Compiler output:
Main.java:19: error: variable results might not have been initialized
        if(results){
           ^
1 error
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int n = scanner.nextInt();
      
      List<Integer> list = new ArrayList<>();
      
      for (int i = 0; i < n ; i++){
      	int b = scanner.nextInt();
        list.add(b);
      }
      
      int count = 0;
      Boolean result;
      
      for(int i = 0; i < 999999 ; i++){
        if(results){
        	break;
        }
        if(i != 0){
            count += 1;
        }
          for(int j = 0; j < list.get(i) ; j++ ){
            if(list.get(j) % 2 != 0){
              results = true;
              break;
            }else{
              split.set(j,list.get(i) / 2));
            }
        }
      }
     System.out.println(count);
    }
}

Compiler output:
Main.java:30: error: ';' expected
              split.set(j,list.get(i) / 2));
                                          ^
1 error
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int a = scanner.nextInt();
      String b = scanner.nextLine();
      
      List<String> split = Arrays.asList(b.split(" "));
      
      int count = 0;
      String results = "";
      
      for(int i = 0; i < 999999 ; i++){
        if(results.equals("n")){
        	break;
        }
        if(i != 0){
            count += 1;
        }
        
          for(int j = 0; j < a ; j++ ){
            if(Integer.parseInt(split.get(j)) % 2 != 0){
              results = "n";
              break;
            }else{
              split.set(j,String.valueOf(Integer.parseInt(split.get(j)) / 2));
            }
        }
      }
     System.out.println(count);
    }
}
import java.util.*;
 
public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int a = scanner.nextInt();
      String b = scanner.next();
      
      List<String> split = Arrays.asList(b.split(" "));
      
      int count = 0;
      String results = "";
      
      for(int i = 0; i < 999999 ; i++){
        if(results.equals("n")){
        	break;
        }
        if(i != 0){
            count += 1;
        }
        
          for(int j = 0; j < a ; j++ ){
            if(Integer.parseInt(split.get(j)) % 2 != 0){
              results = "n";
              break;
            }else{
              split.set(j,String.valueOf(Integer.parseInt(split.get(j)) / 2));
            }
        }
      }
     System.out.println(count);
    }
}


Compiler output:
Main.java:34: error: class, interface, enum, or record expected
import java.util.*;
^
1 error
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
	Scanner scanner = new Scanner(System.in);
      int a = scanner.nextint();
      String b = String b = scanner.next();
      
      List<String> split = Arrays.asList(b.split(" "));
      
      int count = 0;
      String results = "";
      
      for(int i = 0; i < 999999 ; i++){
        if(results.equals("n")){
        	break;
        }
        if(i != 0){
            count += 1;
        }
          for(int j = 0; j < a ; j++ ){
            if(Integer.parseInt(split.get(j)) % 2 != 0){

              results = "n";
              break;
            }else{
              split.set(j,String.valueOf(Integer.parseInt(split.get(j)) / 2));
            }
        }
      }
     System.out.println(count);
    }
}

Compiler output:
Main.java:7: error: ';' expected
      String b = String b = scanner.next();
                       ^
1 error
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
      	int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt();
        }
      	boolean flg = true;
      	int count = 0 ;
      while (flag) {
        for(int i = 0 ; i < n ; i ++){
          if(array[i] % 2 != 0){
            flg = false;
            break;
          }
          array[i] = array[i] / 2;
        }
        count ++ ; 
      } 
      
      System.out.print(count);
    }
}


Compiler output:
Main.java:13: error: cannot find symbol
      while (flag) {
             ^
  symbol:   variable flag
  location: class Main
1 error
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
      	int[] array = new int[200];
        for(int i = 0 ; i < n ; i ++){
          array[i] = sc.nextInt()
        }
      	boolean flg = true;
      	int count = 0 ;
      while (flag) {
        for(int i = 0 ; i < n ; i ++){
          if(array[i] % 2 != 0){
            flg = false;
            break;
          }
          array[i] = array[i] / 2;
        }
        count ++ ; 
      } 
      
      System.out.print(count);
    }
}


Compiler output:
Main.java:9: error: ';' expected
          array[i] = sc.nextInt()
                                 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,a,counter,k,save;
  cin >>N;
  save = 0;
  for (int i=0;i<N;i++){
    k=0;
    cin >> a;
    counter=0;
    while(a%2=1){
      a/=2;
      counter++;
      if (counter-1 < save)
      	save=counter-1;      
  	  else
      	k=0;
    }  
      
  }
  cout << save << endl;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'else' without a previous 'if'
   23 |     else
      |     ^~~~
Language: C++

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,a,counter,k,save;
  cin >>N;
  save = 0;
  k=0;
  counter=0;
  for (int i=0;i<N;i++){
    cin >> a;
    while(k==0){
      k=a%2;
      a/=2;
      counter++;
    }
    if (counter > save)
      save=counter;
  }
  cout << save << endl;

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,a,counter,k,save;
  cin >>N;
  save = 0;
  k=0;
  counter=0;
  for (int i=0;i<N;i++){
    cin >> a;
    while(k==0){
      k=a%2;
      a/=2;
      counter++;
    }
    if counter > save;
      save=counter;
  }
  cout << save
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: expected '(' before 'counter'
   16 |     if counter > save;
      |        ^~~~~~~
      |        (
a.cc:19:15: error: expected ';' at end of input
   19 |   cout << save
      |               ^
      |               ;
a.cc:19:15: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java


import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int a[]=new int[N];
		int i,j=0;
		for( i=0;i<N;++i) {
		 a[i]=sc.nextInt(); 
		}
		outside:while(true) {
			for( i=0;i<N;++i) {
				if(a[i]%2==0) {
				a[i]=a[i]/2;	
				}else {
				break outside;
				}
			}
			++j;
		}
			System.out.println(j);
		
		
			
	}

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

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

int main(){
  int N;
  cin >> N;
  vector<int>vec(N);
  bool p=false;
  for(int j=0;j<100000;j++){
    for(int i:vec){
      cin >> vec.at(i);
      if(vec.at(i)%2!=0){
        p=true;
      }
      while(p){
        break;
      }
    }
    j++;
    while(p) break;
    
  }
  cout << j <<endl;
}
  


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

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

int main(){
  int N;
  cin >> N;
  vector<int>vec(N);
  bool p=false;
  for(int j=0;j++){
    for(int i:vec){
      cin >> vec.at(i);
      if(vec.at(i)%2!=0){
        p=true;
      }
      while(p){
        break;
      }
    }
    j++;
    while(p) break;
    
  }
  cout << p <<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before ')' token
    9 |   for(int j=0;j++){
      |                  ^
      |                  ;
Language: C++

using namespace std;

int main(){
    int n;
    int ans = 0;
    cin >> n;
    int array[n];
    for(int i=0; i<n; i++) cin >> array[i];

    while(true){
        bool breaker = false;
        for(int i=0; i<n; i++){
            if(array[i]%2 == 1) breaker = true;
        }
        if(breaker = true) break;

        
        for(int i=0;  i<n; i++) array[i] /= 2;
        ans++;

    }
    cout << ans << endl;
}

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

#include<iostream>
#include<cmath>
#include<algorithm>
#define ll long long
#define pb push_back
#define mp make_pair
using namespace std;
int main()
{
	ios_base :: sync_with_stdio(false);
	cin.tie(0);
	int n;
	cin >> n;
	ll count = INT_MAX, tmp = 0;
	for(int i=1; i<=n; i++){
		ll x;
		cin >> x;
		while(x%2==0){
			x /= 2;
			tmp++;
		}
		count = min(count, tmp);
		tmp = 0;
	}
	cout << count << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'INT_MAX' was not declared in this scope
   14 |         ll count = INT_MAX, tmp = 0;
      |                    ^~~~~~~
a.cc:4:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    3 | #include<algorithm>
  +++ |+#include <climits>
    4 | #define ll long long
a.cc:20:25: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   20 |                         tmp++;
      |                         ^~~
      |                         tm
a.cc:22:36: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   22 |                 count = min(count, tmp);
      |                                    ^~~
      |                                    tm
Language: C++

#include <iostream>
using namespace std;
int main(){
	int FLG,N,counter;
	counter=0;
	FLG =0;
	cin>>N;
	int a[222];
	for(int i=0;i<N;i++)
	{cin>>a[i];}
	
	while(FLG==0){
	for(int c=0;c<N;c++)
	{
		if(a[c]%2==0)
		    {
			a[c]=a[c]/2;
			}
		else {FLG=1;break;}	
	}
      counter++;
    }
	cout << counter << endl;
}



#include <iostream>
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:34:5: error: redefinition of 'int main()'
   34 | int main() {
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

#include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;

#define rep(i, n) for(ll i = 0; i < n; i++)
#define REP(i, n) for(ll i = 1; i < n + 1; i++)
#define PI 3.14159265359
#define EPS 0.0000000001
#define MOD 1000000007
//cout << std::fixed << std::setprecision(15) << y << endl;


int main(){
    ll N;
    cin >> N;

    ll minDiv = 10000;
    ll divtimes;
    ll A;
    rep(i, N){
        cin >> A;
        divtimes = 0;
        while(A % 2 == 0){
            A /= 2;
            divtimes++;
        }
        minDiv = min(minDiv, divtimes);
    }

    cout << minDive << endl;
    
    return 0;
}

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

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

main(){
  vector<int> seisu;
  int N, count=0;
  cin >> N;
  int kakunin=N;
  
  for(int i=0; i<N; i++){
    cin >> seisu.at(i);
  }
  
  while(kakunin==N){
   kakunin=0;
   for(int j=0; j<N; j++){
     if(seisu.at(j)/(2)==0){
      seisu.at(j) /= 2;
      kakunin++;
     }
   }
   count++;
  }
  
  cout << count << endl;
  

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:25:25: error: expected '}' at end of input
   25 |   cout << count << endl;
      |                         ^
a.cc:4:7: note: to match this '{'
    4 | main(){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> a(n);
  int c = 0;
  cin >> 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++;
      continue;
    }
    else break;
  }
  cout << c << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ')' before ';' token
   11 |   for(int i = 0; i < n; i++;){
      |      ~                     ^
      |                            )
a.cc:11:29: error: expected primary-expression before ')' token
   11 |   for(int i = 0; i < n; i++;){
      |                             ^
Language: C++

#include <bits/stdc++.h>
#define ri register
#define int long long
#define E (n+1)
using namespace std;
inline int read()
{
    int s=0, w=1; ri char ch=getchar();
    while(ch<'0'||ch>'9') { if(ch=='-') w=-1; ch=getchar(); }
    while(ch>='0'&&ch<='9') s=(s<<3)+(s<<1)+(ch^48), ch=getchar();
    return s*w;
}
int n,a[N],qwq=1e9;
signed main()
{
    n=read();
    for(ri int i=1;i<=n;i++)
    {
        a[i]=read();
        int cnt=0;
        int x=a[i];
        while(x%2==0) x/=2, cnt++;
        qwq=min(qwq,cnt);
    }
    printf("%lld\n",qwq);
    return 0;
}

Compiler output:
a.cc: In function 'long long int read()':
a.cc:8:27: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    8 |     int s=0, w=1; ri char ch=getchar();
      |                           ^~
a.cc: At global scope:
a.cc:13:9: error: 'N' was not declared in this scope
   13 | int n,a[N],qwq=1e9;
      |         ^
a.cc: In function 'int main()':
a.cc:17:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   17 |     for(ri int i=1;i<=n;i++)
      |                ^
a.cc:19:9: error: 'a' was not declared in this scope
   19 |         a[i]=read();
      |         ^
Language: C++

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



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

include<iostream>

using namespace std;

int main(void) {
	int N;
	int a[200];
	int count = 0;
	cin >> N;


	for (int i = 0; i < N; i++) {
		cin >> a[i];
	}
	while (true) {
		bool odd_flag = false;
		//奇数かどうかの判定
		for (int j = 0; j < N; j++) {
			if (a[j] % 2 != 0) {
				odd_flag = true;
			}
		}
		//flagがtrueならwhile文を抜ける
		if (odd_flag) break;
		//実際に2で÷処理をする
		for (int k = 0; k < N; k++) {
			a[k] /= 2;
		}
		count++;
	}
	printf("%d", count);
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> N;
      |         ^~~
a.cc:31:9: error: 'printf' was not declared in this scope
   31 |         printf("%d", count);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<iostream>
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before ')' token
   12 |   while(){
      |         ^
a.cc:15:24: error: expected ';' before '}' token
   15 |         A[i] = A[i] / 2
      |                        ^
      |                        ;
   16 |      }else{
      |      ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i, n) for(ll i = 0; i < ll(n); i++)
ll div_2(ll a) {
  ll ans = 0;
  while(a % 2 == 0) {
    ans++;
    ans /= 2;
  }
  return ans;
}
int main() {
  int N;
  cin >> N;
  vector<ll> A(N);
  ll min = 1000000000;
  rep(i, N) {
    cin >> A[i];
    if(min > div_2(A[i])) {
      min = div_2(A[i])
    }
  }
  cout << min << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:24: error: expected ';' before '}' token
   21 |       min = div_2(A[i])
      |                        ^
      |                        ;
   22 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef for(int i = 0;  i < (int)n, i++) rep(i, n);
ll div_2(ll a) {
  ll ans = 0;
  while(a % 2 == 0) {
    ans++;
    ans /= 2;
  }
  return ans;
}
int main() {
  int N;
  cin >> N;
  vector<ll> A(N);
  ll min = 1000000000;
  rep(i, N) {
    cin >> A[i];
    if(min > div_2(A[i])) {
      min = div_2(A[i])
    }
  }
  cout << min << endl;
}

Compiler output:
a.cc:4:9: error: expected unqualified-id before 'for'
    4 | typedef for(int i = 0;  i < (int)n, i++) rep(i, n);
      |         ^~~
a.cc:4:25: error: 'i' does not name a type
    4 | typedef for(int i = 0;  i < (int)n, i++) rep(i, n);
      |                         ^
a.cc: In function 'int main()':
a.cc:18:7: error: 'i' was not declared in this scope
   18 |   rep(i, N) {
      |       ^
a.cc:18:3: error: 'rep' was not declared in this scope
   18 |   rep(i, N) {
      |   ^~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
int n;
  scanf("%d",&n);
 long int a[n],min,s,cc,ans,temp;
  temp=0;
  ans=0;
  s=0;
  cc=0;
  min=pow(10,9);
  for(i=0;i<n;++i)
  {
  scanf("%ld",&a[i]);
  if(a[i]<min) min=a[i];
  }

  for(i=1;cc==0;++i)
  {
  if(min<pow(2,i+1)) s++;
  if(min>=pow(2,i+1)) cc++;
  }
  cc=0;
  for(i=0;i<s && cc==0;++i)
  {
  for(int j=0;j<n;++j)
  {
  if(a[j]%2==0) {temp++;
                a[j]=a[j]/2;
                }
  else cc++;
  }
  if(temp==n) ans++;
  temp=0;
  }
  printf("%d",ans);

return 0;}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: 'i' undeclared (first use in this function)
   13 |   for(i=0;i<n;++i)
      |       ^
main.c:13:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

# 2020-08-27, Thu

n = int(input())
lis = list(map(int, input().split()))
ans = 0

while (1):
    count = 0
    for i in range(n):
        if lis[i] % 2 == 0:
            lis[i] //= 2
            count += 1
    if count == n:
        ans += 1
    else:
        break

print(ans)

Compiler output:
a.cc:1:7: error: "-" is not a valid filename
    1 | # 2020-08-27, Thu
      |       ^
a.cc:3:1: error: 'n' does not name a type
    3 | n = int(input())
      | ^
Language: C++

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

Compiler output:
a.cc:20:2: error: stray '#' in program
   20 | }#include<iostream>
      |  ^
a.cc:20:3: error: 'include' does not name a type
   20 | }#include<iostream>
      |   ^~~~~~~
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

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

int main(){
  int N; cin>>N;
  int a[N];
  for(int i=0; i<N; i++)cin>>a[i];
  int cnt=0;
  while(1){
    bool ndiv=false;
    for(int i=0; i<N; i++){
      if(a[i]%2!=0)ndiv=true;
    }
    if(ndiv)break;
    cnt++;
  }
  cout<<cnt<<endl;
  return 0;
}
  

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before '<' token
    9 |   for ( int i=0, i<N, i++){
      |                   ^
      |                   ;
a.cc:9:19: error: expected primary-expression before '<' token
a.cc:9:26: error: expected ';' before ')' token
    9 |   for ( int i=0, i<N, i++){
      |                          ^
      |                          ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: 'k' was not declared in this scope
   23 |             if (k < j)
      |                 ^
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 count= 0;
  while(true){
    bool exist_odd = false;
      for(int i=0;i<N;i++){
        if(A[i]%2!==0) exist_odd= true;
      }
      if(exist_odd) break;
    for(int i=0;i<N;i++){
      A[i]/=2;
    }
      count++;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:20: error: expected primary-expression before '=' token
   16 |         if(A[i]%2!==0) exist_odd= true;
      |                    ^
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:20: error: expected primary-expression before '=' token
   16 |         if(A[i]%2!==0) exist_odd= true;
      |                    ^
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:20: error: expected primary-expression before '=' token
   16 |         if(A[i]%2!==0) exist_odd= true;
      |                    ^
Language: C++

#include <iostream>
using namespace std;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:20: error: expected primary-expression before '=' token
   16 |         if(A[i]%2!==0) exist_odd= true;
      |                    ^
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:20: error: expected primary-expression before '=' token
   16 |         if(A[i]%2!==0) exist_odd= true;
      |                    ^
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:16: error: expected primary-expression before '=' token
   16 |     if(A[i]%2!==0) exist_odd= true;
      |                ^
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:16: error: expected primary-expression before '=' token
   16 |     if(A[i]%2!==0) exist_odd= true;
      |                ^
a.cc:24:25: error: expected '}' at end of input
   24 |   cout << count << endl;
      |                         ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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


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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
a.cc:16:16: error: expected primary-expression before '=' token
   16 |     if(A[i]%2!==0) exist_odd= true;
      |                ^
Language: C++

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


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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected unqualified-id before '[' token
   10 |   for(int i=0;i<N;i++)cin >> A.[i];
      |                                ^
Language: C++

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


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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: request for member 'at' in 'A', which is of non-class type 'int [20]'
   10 |   for(int i=0;i<N;i++)cin >> A.at(i);
      |                                ^~
Language: C++

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


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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: request for member 'at' in 'A', which is of non-class type 'int [20]'
   10 |   for(int i=0;i<N;i++)cin >> A.at(i);
      |                                ^~