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

#include <iostream>
#include <vector>
using namespace std;
int main()
{
  int N;
  cin >> N;
  vector <int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  int ans = 0;
  bool stop = false;
  for (!stop) {
    for (int i = 0; i < N; i++) {
      if (A[i]%2==0) {
        A[i] = A[i]/2;
      } else {
        stop = true;
        break;
      }
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected ';' before ')' token
   14 |   for (!stop) {
      |             ^
      |             ;
a.cc:25:3: error: expected primary-expression before 'return'
   25 |   return 0;
      |   ^~~~~~
a.cc:24:23: error: expected ')' before 'return'
   24 |   cout << ans << endl;
      |                       ^
      |                       )
   25 |   return 0;
      |   ~~~~~~               
a.cc:14:7: note: to match this '('
   14 |   for (!stop) {
      |       ^
Language: C++

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

int main(){
  int n = 0;
  cin >> n;
  int count = 0;
  for (int i = 0;i < n;i++) {
    int subcount = 0;
    int a =0;
    cin >> a;
    for (int j = a;j > 1;j /= 2){
      if( (j % 2) == 1) {
        break;
      }
      else {
        subcount++;
      }
    }
    if (count > subcount){
      count = subcount;
    }
  }
  count >> count >> endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
   24 |   count >> count >> endl;
      |   ~~~~~~~~~~~~~~~^~~~~~~
Language: C++

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

int main(){
  int n = 0;
  cin >> n;
  int count = 0;
  for (int i = 0;i < n;i++) {
    int subcont = 0;
    int a =0;
    cin >> a;
    for (j = a;j > 1;j /= 2){
      if( (j % 2) == 1) {
        break;
      }
      else {
        subcount++;
      }
    }
    if (count > subcount){
      count = subcount;
    }
  }
  count >> count >> endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'j' was not declared in this scope
   12 |     for (j = a;j > 1;j /= 2){
      |          ^
a.cc:17:9: error: 'subcount' was not declared in this scope; did you mean 'subcont'?
   17 |         subcount++;
      |         ^~~~~~~~
      |         subcont
a.cc:20:17: error: 'subcount' was not declared in this scope; did you mean 'subcont'?
   20 |     if (count > subcount){
      |                 ^~~~~~~~
      |                 subcont
a.cc:24:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
   24 |   count >> count >> endl;
      |   ~~~~~~~~~~~~~~~^~~~~~~
Language: C++

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

int main() {
  int N, A, X, Y;
  cin >> N;
  X = 0;
  Y = 0;
  for(int i = 0;i < N;i++){
  cin A;
  if(A % 2 != 0){
  X++;
  }
  while(X == 3){
  X = 0;
  for(int i = 0;i < N;i++){
  cin A;
  if(A % 2 != 0){
  X++;
  }
  Y++
  }
  cout << Y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected ';' before 'A'
   10 |   cin A;
      |      ^~
      |      ;
a.cc:17:6: error: expected ';' before 'A'
   17 |   cin A;
      |      ^~
      |      ;
a.cc:21:6: error: expected ';' before '}' token
   21 |   Y++
      |      ^
      |      ;
   22 |   }
      |   ~   
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:9:27: note: to match this '{'
    9 |   for(int i = 0;i < N;i++){
      |                           ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

    

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

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

int main(){
  int N;
  cin >> N;
  vector<int> a(N);
  rep(i,N){
    cin >> a[i];
  }

  int count = 0;
  bool flag = true;
    
  while(flag == true){
    rep(i,N){
    	if(a[i]%2 == 0){
      		a[i] = a[i]/2;
        }
      	else {
          flag = flase;
          break ;
        }
    }
    if(flag == false) break;
    count++;
  }
  
  cout << count << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: 'flase' was not declared in this scope
   22 |           flag = flase;
      |                  ^~~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> a(N);
  rep(i,N){
    cin >> a[i];
  }

  int count = 0;
  bool flag = true;
    
  outside:while(flag == true){
    rep(i,N){
    	if(a[i]%2 == 0){
      		a[i] = a[i]/2;
        }
      	else {
          flag = flase;
          break ;
        }
    }
    if(flag == false) break;
    count++;
  }
  
  cout << count << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: 'flase' was not declared in this scope
   22 |           flag = flase;
      |                  ^~~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> a(N);
  rep(i,N){
    cin >> a[i];
  }

  int count = 0;
  boolean flag = true;
    
  outside:while(flag == true){
    rep(i,N){
    	if(a[i]%2 == 0){
      		a[i] = a[i]/2;
        }
      	else {
          flag = flase;
          break ;
        }
    }
    if(flag == false) break;
    count++;
  }
  
  cout << count << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   14 |   boolean flag = true;
      |   ^~~~~~~
      |   bool
a.cc:16:17: error: 'flag' was not declared in this scope
   16 |   outside:while(flag == true){
      |                 ^~~~
a.cc:22:18: error: 'flase' was not declared in this scope; did you mean 'fclose'?
   22 |           flag = flase;
      |                  ^~~~~
      |                  fclose
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> a(N);
  rep(i,N){
    cin >> a[i];
  }
}
  
  int count = 0;
  boolean flag = true;
    
  outside:while(flag == true){
    rep(i,N){
    	if(a[i]%2 == 0){
      		a[i] = a[i]/2;
        }
      	else {
          flag = flase;
          break outside;
        }
    }
    
    count++;
  }
  
  cout << count << endl;
  
  return 0;
}


Compiler output:
a.cc:15:3: error: 'boolean' does not name a type; did you mean 'bool'?
   15 |   boolean flag = true;
      |   ^~~~~~~
      |   bool
a.cc:17:3: error: 'outside' does not name a type
   17 |   outside:while(flag == true){
      |   ^~~~~~~
a.cc:31:3: error: 'cout' does not name a type
   31 |   cout << count << endl;
      |   ^~~~
a.cc:33:3: error: expected unqualified-id before 'return'
   33 |   return 0;
      |   ^~~~~~
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector <int> a(N);
  vector <int> count(N, 0) ;
  int mx = 0 ;
  for ( int i=0 i< N ; i++){
    cin >> a.at(i) ;
    for ( int j = a.at(i) ; j%2 == 0 ; j/2){
      count.at(i) ++ ;
    }
    mx = max ( mx , count.at(i)) ;
  }
  cout << mx << endl;
}

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

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

int main() {
  int N;
  cin >> N;
  vector <int> a(N);
  vector <int> count(N, 0) ;
  int mx = 0
  for ( int i=0 i< N ; i++){
    cin >> a.at(i) ;
    for ( int j = a.at(i) ; j%2 == 0 ; j/2){
      count.at(i) ++ ;
    }
    mx = max ( mx , count.at(i)) ;
  }
  cout << mx << endl;
}

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

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

int main() {
  int N;
  cin >> N;
  int a(N);
  int count(N, 0) ;
  int mx = 0
  for ( int i=0 i< N ; i++){
    cin >> a.at(i) ;
    for ( int j = a.at(i) ; j%2 == 0 ; j/2){
      count.at(i) ++ ;
    }
    mx = max ( mx , count.at(i)) ;
  }
  cout << mx << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expression list treated as compound expression in initializer [-fpermissive]
    8 |   int count(N, 0) ;
      |                 ^
a.cc:10:3: error: expected ',' or ';' before 'for'
   10 |   for ( int i=0 i< N ; i++){
      |   ^~~
a.cc:10:24: error: 'i' was not declared in this scope
   10 |   for ( int i=0 i< N ; i++){
      |                        ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N;
  cin >> N;
  int A[201];
  for(int i = 0; i < N; i++){
    cin >> A[i];
  }
  
  int count = 0;
  while(true){
    bool can = false;
    
    for(int i = 0; i < N; i++){
      if(A[i] % 2 != 0){
        can = true;
      }
      
    if(can){
      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:30:4: error: expected '}' at end of input
   30 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main () {
  int N;
  cin >> N;
  
  bool zero = true;
  int leastTry = 0;
  

    for (int i = 0; i < N; i++) {
      int num;
      cin >> num;
      int count = 0;
      while (num % 2 = 0) {
        num /= 2;
        count++;
      }
      if (count > 0) {
        if (i == 1) {
          leastTry = count;
        } else if (count < leastTry) {
          leastTry = count;
        }
      } else {
        leastTry = 0;
        break;
      }
    }
    cout << leastTry << endl;
        
        
  
}


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

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

int main () {
  int N;
  cin >> N;
  
  bool zero = true;
  int leastTry = 0;
  

    for (int i = 0; i < N; i++) {
      int num;
      cin >> num;
      int count = 0;
      while (num % 2 = 0) {
        num /= 2;
        count++
      }
      if (count > 0) {
        if (i = 1) {
          leastTry = count;
        else if (count < leastTry) {
          leastTry = count;
        }
      else {
        leastTry = 0;
        break;
      }
    }
    cout << leastTry << endl;
        
        
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: lvalue required as left operand of assignment
   16 |       while (num % 2 = 0) {
      |              ~~~~^~~
a.cc:18:16: error: expected ';' before '}' token
   18 |         count++
      |                ^
      |                ;
   19 |       }
      |       ~         
a.cc:23:9: error: expected '}' before 'else'
   23 |         else if (count < leastTry) {
      |         ^~~~
a.cc:21:20: note: to match this '{'
   21 |         if (i = 1) {
      |                    ^
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, from, to) for (int i = from; i < (to); ++i)
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
#define pb push_back
using ll = long long;
using vin=vector<int>;
using vll=vector<ll>;
using vst=vector<string>;
using P = pair<int, int>;
const int inf=1e9+7;
const ll INF=1e18;
template <typename T> void chmin(T &a, T b) { a = min(a, b); }
template <typename T> void chmax(T &a, T b) { a = max(a, b); }
template<class T> inline void Yes(T condition){ if(condition) cout << "Yes" << endl; else cout << "No" << endl; }
template<class T> inline void YES(T condition){ if(condition) cout << "YES" << endl; else cout << "NO" << endl; }
const int dx[4] = { 1, 0, -1, 0 };
const int dy[4] = { 0, 1, 0, -1 };


int main(){cout<<fixed<<setprecision(10);
		   　int n;
           cin>>n;
           vin a(n);
           rep(i,0,n)cin>>a[i];
           int ans=0;
           rep(i,0,n){
            int cnt=0;
             while(a[i]){
              a[i]/=2;
               cnt++;
             }
             chmax(ans,cnt);
           }
           cout<<ans<<endl;
}

Compiler output:
a.cc:24:20: error: extended character 　 is not valid in an identifier
   24 |                    　int n;
      |                    ^
a.cc: In function 'int main()':
a.cc:24:20: error: '\U00003000int' was not declared in this scope
   24 |                    　int n;
      |                    ^~~~~
a.cc:25:17: error: 'n' was not declared in this scope; did you mean 'yn'?
   25 |            cin>>n;
      |                 ^
      |                 yn
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: 'max' cannot be used as a function
   16 |     max = max ( max , count ) ;
      |           ~~~~^~~~~~~~~~~~~~~
Language: C++

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

int main() {

  int N;
  cin >> N;
  int n = 0;
  //nは２で割れる回数
  
  	for (int i = 0; i < N; i++){
      int x;
      cin >> x
      int sub = 0;//subは入力された数単体が２で割れる回数
	   	
      for (int j = 0; ; j++){
          if ( x % 2 ==0){
            sub ++;
            x /=2;
          }
          else 
            break;
    	}
      
      if(i == 0)
        n = sub;//１回目

      else if(n > sub)
        n = sub;//２回目以降；nを小さい方に書き換え

    }//ここまでfor文
   cout << n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ';' before 'int'
   13 |       cin >> x
      |               ^
      |               ;
   14 |       int sub = 0;//subは入力された数単体が２で割れる回数
      |       ~~~      
a.cc:18:13: error: 'sub' was not declared in this scope; did you mean 'fsub'?
   18 |             sub ++;
      |             ^~~
      |             fsub
a.cc:26:13: error: 'sub' was not declared in this scope; did you mean 'fsub'?
   26 |         n = sub;//１回目
      |             ^~~
      |             fsub
a.cc:28:19: error: 'sub' was not declared in this scope; did you mean 'fsub'?
   28 |       else if(n > sub)
      |                   ^~~
      |                   fsub
Language: C++

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

int main() {

  int N;
  cin >> N;
  int n = 0;
  //nは２で割れる回数
  
  	for (int i = 0; i < N; i++){
      int x;
      cin >> x
      int sub = 0;//subは入力された数単体が２で割れる回数
	   	for (int j = 0; ; j++){
          if ( x % 2 ==0){
            x /=2;
            sub ++;
          }
          else 
            break;
    	}
      
      if(i == 0){
        n = sub;//１回目
      }
      else if(n > sub){
        n = sub;//２回目以降；nを小さい方に書き換え
      }
    }//ここまでfor文
   cout << n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ';' before 'int'
   13 |       cin >> x
      |               ^
      |               ;
   14 |       int sub = 0;//subは入力された数単体が２で割れる回数
      |       ~~~      
a.cc:18:13: error: 'sub' was not declared in this scope; did you mean 'fsub'?
   18 |             sub ++;
      |             ^~~
      |             fsub
a.cc:25:13: error: 'sub' was not declared in this scope; did you mean 'fsub'?
   25 |         n = sub;//１回目
      |             ^~~
      |             fsub
a.cc:27:19: error: 'sub' was not declared in this scope; did you mean 'fsub'?
   27 |       else if(n > sub){
      |                   ^~~
      |                   fsub
Language: C

#include <cstdio>
#include <algorithm>
using namespace std;
 
int N, A[200];
 
int main()
{
	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);
	}
	printf("%d\n", dmin);
	return 0;
}

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

#include <iostream>
using namespace std;

int N;
int A[210]

int main(){
cin >> N;
for(int i = 0; i< N; i++)`}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:9:26: error: stray '`' in program
    9 | for(int i = 0; i< N; i++)`}using namespace std;
      |                          ^
a.cc:7:1: error: expected initializer before 'int'
    7 | int main(){
      | ^~~
a.cc:11:5: error: redefinition of 'int N'
   11 | int N;
      |     ^
a.cc:4:5: note: 'int N' previously declared here
    4 | int N;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  //データの数と割った数を宣言
  int N;
  int n = 0;
  cin >> N;
  
  //データ用のセルを宣言
  vector <int> data (N);
  for (int i = 0; i < N; i++){
    cin >> data.at(i) ;
  }
  
  while(true){
    bool exit_odd =false;
    for (int i =0; i < N; i++){
      if(data.at(i) % 2 != 0){
        exit_odd =true;
      }
    }
    if(exit_odd){
      break;
    }
    
    for (int i =0; i < N; i++){
      data.at(i) /2=;
    }
    n++;
  }
  
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:21: error: expected primary-expression before ';' token
   27 |       data.at(i) /2=;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  //データの数と割った数を宣言
  int N;
  int n = 0;
  cin >> N;
  
  //データ用のセルを宣言
  vector <int> data (N);
  for (int i = 0; i < N; i++){
    cin >> data.at(i) ;
  }
  
  while(true){
    bool exit_odd =false;
    for (int i =0; i < N; i++){
      if(data.at(i) % 2 != 0){
        exit_odd =true;
      }
    }
    if(exit_odd){
      break;
    }
    
    for (int i =0; i < N; i++){
      data.at(i) 2/=;
    }
    n++;
  }
  
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:17: error: expected ';' before numeric constant
   27 |       data.at(i) 2/=;
      |                 ^~
      |                 ;
a.cc:27:14: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   27 |       data.at(i) 2/=;
      |       ~~~~~~~^~~
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:1180:7: note: declared here
 1180 |       at(size_type __n)
      |       ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  //データの数と割った数を宣言
  int N;
  int n = 0;
  cin >> N;
  
  //データ用のセルを宣言
  vector <int> data (N);
  for (int i = 0; i < N; i++){
    cin >> data.at(i) ;
  }
  
  while(true){
    bool exit_odd =false;
    for (i =0; i < N; i++){
      if(data.at(i) % 2 != 0){
        exit_odd =true
      }
    }
    if(exit_odd){
      break;
    }
    
    for (i =0; i < N; i++){
      data.at(i) 2/=;
    }
    n++;
  }
  
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'i' was not declared in this scope
   17 |     for (i =0; i < N; i++){
      |          ^
a.cc:19:23: error: expected ';' before '}' token
   19 |         exit_odd =true
      |                       ^
      |                       ;
   20 |       }
      |       ~                
a.cc:26:10: error: 'i' was not declared in this scope
   26 |     for (i =0; i < N; i++){
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  //データの数と割った数を宣言
  int N;
  int n = 0;
  cin >> N;
  
  //データ用のセルを宣言
  vector <int> data (N);
  for (int i = 0; i < N; i++){
    cin >> data.at(i) ;
  }
  
  while(true){
    bool exit_odd =false;
    for (i =0; i < N; i++){
      if(data.at(i) % 2 != 0){
        exit odd =true
      }
    }
    if(exit_odd){
      break;
    }
    
    for (i =0; i < N; i++){
      data.at(i) 2/=;
    }
    n++;
  }
  
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'i' was not declared in this scope
   17 |     for (i =0; i < N; i++){
      |          ^
a.cc:19:13: error: expected ';' before 'odd'
   19 |         exit odd =true
      |             ^~~~
      |             ;
a.cc:26:10: error: 'i' was not declared in this scope
   26 |     for (i =0; i < N; i++){
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  //データの数と割った数を宣言
  int N;
  int n = 0;
  cin >> N;
  
  //データ用のセルを宣言
  vector <int> data (N);
  for (int i = 0: i < N; i++){
    cin >> data.at(i) ;
  }
  
  while(true){
    bool exit_odd =false;
    for (i =0; i < N; i++){
      if(data.at(i) % 2 != 0){
        exit odd =true
      }
    }
    if(exit_odd){
      break;
    }
    
    for (i =0; i < N; i++){
      data.at(i) 2/=;
    }
    n++;
  }
  
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: initializer in range-based 'for' loop
   11 |   for (int i = 0: i < N; i++){
      |              ^
a.cc:11:24: error: expected ')' before ';' token
   11 |   for (int i = 0: i < N; i++){
      |       ~                ^
      |                        )
a.cc:11:26: error: 'i' was not declared in this scope
   11 |   for (int i = 0: i < N; i++){
      |                          ^
a.cc:19:13: error: expected ';' before 'odd'
   19 |         exit odd =true
      |             ^~~~
      |             ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N ;
  int c = 10;
  int d;
  for ( int i=0 ; i < N; i++ ) {
    int x; 
    cin >> x ;
   for ( int j=x ,y=0; j%2 == 0 ; ){
     y=y+1;
     j=j/2;
       d = min (y,c) ;
   }
    c=min(d,c)
  }
  cout << c << endl ;
}



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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N ;
  int c = 10;
  for ( int i=0 ; i < N; i++ ) {
    int x;
    int y=0 ; 
    cin >> x ;
   for ( int j==x ; j%2 != 0 ; ){
     y=y+1;
     j=j/2;
    }
    c = min (y,c) ; 
    cout << y << endl;
  }
  cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before '==' token
   12 |    for ( int j==x ; j%2 != 0 ; ){
      |               ^~
      |               ;
a.cc:12:15: error: expected primary-expression before '==' token
   12 |    for ( int j==x ; j%2 != 0 ; ){
      |               ^~
a.cc:12:29: error: expected ')' before ';' token
   12 |    for ( int j==x ; j%2 != 0 ; ){
      |        ~                    ^~
      |                             )
a.cc:12:32: error: expected primary-expression before ')' token
   12 |    for ( int j==x ; j%2 != 0 ; ){
      |                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N ;
  int c = 10;
  for ( int i=0 ; i < N; i++ ) {
    int x,y=0 ; 
    cin >> x ;
   for ( ; x%2 !=0 ; x= x/2){
     y+=1
    }
    c = min (y,c) ;
  }
  cout << c << endl;
}



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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N ;
  int c = 0;
  for ( int i=0 ; i < N; i++ ) {
    int x,y=0 ; 
    cin >> x ;
    for (int z = x; z%2 = 1 ; z/=2){
      y += 1;
    }
    c = min (y,c) ;
  }
  cout << c << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N ;
  int c = 0;
  for ( int i=0 ; n < N; i++ ) {
    int x,y=0 ; 
    cin >> x ;
    for (int z = x; z%2 = 1 ; z/=2){
      y += 1;
    }
    c = min (y,c) ;
  }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'n' was not declared in this scope
    8 |   for ( int i=0 ; n < N; i++ ) {
      |                   ^
a.cc:11:22: error: lvalue required as left operand of assignment
   11 |     for (int z = x; z%2 = 1 ; z/=2){
      |                     ~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N ;
  int c = 0;
  for ( int i=0 ; n < N; i++ ) {
    int x,y=0 ; 
    cin >> x ;
    for (int z = x; z%2 = 1 ; z/=2){
      y += 1;
    }
    c = min (y,c) ;
  }
  cout << c<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'n' was not declared in this scope
    8 |   for ( int i=0 ; n < N; i++ ) {
      |                   ^
a.cc:11:22: error: lvalue required as left operand of assignment
   11 |     for (int z = x; z%2 = 1 ; z/=2){
      |                     ~^~
Language: C++

#include <iostream>
using namespace std;

int main(){
  	int N;
  	cin >> N;
  	min_div = 30;
  	for (int i = 0; i < N; i++){
      	int x;
      	cin >> x;
      	int res = 0;
      	while (x%2==0){
          	x /= 2;
          	res++;
        }
      	min_div = res < min_div ? res : min_div;
    }
  	cout << min_div << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'min_div' was not declared in this scope
    7 |         min_div = 30;
      |         ^~~~~~~
Language: C++

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

int main()
{
  int N;
  int min;
  double input;
  bool flag=false;
  cin >> N;
  
  for(int i=0; i<N; i++)
  {
    cin >> input;
    if(input % 2.0 == 0)
    {
      	int cnt = 0;
    	while(true)
    	{
          if(input % 2.0 != 0)
          {
            break;
          }
          cnt += 1;
          input /= 2.0;
    	}
      	if(min > cnt || i == 0)
        {
          min = cnt;
        }
    }
    else
    {
      flag = true;
    }
  }
  if(flag)
  {
    cout << 0 << endl;
  }
  else
  {
    cout << min << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   15 |     if(input % 2.0 == 0)
      |        ~~~~~ ^ ~~~
      |        |       |
      |        double  double
a.cc:20:20: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   20 |           if(input % 2.0 != 0)
      |              ~~~~~ ^ ~~~
      |              |       |
      |              double  double
Language: C++

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

int main()
{
  int N;
  int min=0;
  double input;
  bool flag=false;
  cin >> N;
  
  for(int i=0; i<N; i++)
  {
    cin >> input;
    if(input % 2 == 0)
    {
      	int cnt = 0;
    	while(true)
    	{
          if(input % 2 != 0)
          {
            break;
          }
          cnt += 1;
          input /= 2;
    	}
      	if(min > cnt || i == 0)
        {
          min = cnt;
        }
    }
    else
    {
      flag = true;
    }
  }
  if(flag)
  {
    cout << 0 << endl;
  }
  else
  {
    cout << min << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   15 |     if(input % 2 == 0)
      |        ~~~~~ ^ ~
      |        |       |
      |        double  int
a.cc:20:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   20 |           if(input % 2 != 0)
      |              ~~~~~ ^ ~
      |              |       |
      |              double  int
Language: C++

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

int main()
{
  int N;
  int input;
  int min;
  bool flag=false;
  cin >> N;
  
  for(int i=0; i<N; i++)
  {
    cin >> input;
    if(input % 2 == 0)
    {
      if(i == 0)
      {
        min = input
      }
      else
      {
        if(min > input)
        {
          min = input;
        }
      }
    }
    else
    {
      flag = true;
    }
  }
  if(flag)
  {
    cout << 0 << endl;
  }
  else
  {
    cout << min / 2 << endl;
  }
}

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

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt(),A[]=new int[N],Ma=0;
        for(int i=0;i<N;i++){
            int t=sc.nextInt(),n=0;
          	if(t%2==1){
              	Ma=0;
              	break;
            }
            while(t%2==0){
                n++;
                 t/=2;
            }
            if(Ma==0&&n!=0){
                Ma=n;
            }
            else{
                Ma=Math.min(n,Ma);
            }
        }
        System.out.println(Ma);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:26:2: error: expected ';' after class definition
   26 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:15: error: 'sc' was not declared in this scope
    6 |         int N=sc.nextInt(),A[]=new int[N],Ma=0;
      |               ^~
a.cc:10:17: error: 'Ma' was not declared in this scope; did you mean 'Main'?
   10 |                 Ma=0;
      |                 ^~
      |                 Main
a.cc:14:17: error: 'n' was not declared in this scope
   14 |                 n++;
      |                 ^
a.cc:17:16: error: 'Ma' was not declared in this scope; did you mean 'Main'?
   17 |             if(Ma==0&&n!=0){
      |                ^~
      |                Main
a.cc:17:23: error: 'n' was not declared in this scope
   17 |             if(Ma==0&&n!=0){
      |                       ^
a.cc:21:20: error: 'Math' was not declared in this scope
   21 |                 Ma=Math.min(n,Ma);
      |                    ^~~~
a.cc:24:9: error: 'System' was not declared in this scope
   24 |         System.out.println(Ma);
      |         ^~~~~~
a.cc:24:28: error: 'Ma' was not declared in this scope; did you mean 'Main'?
   24 |         System.out.println(Ma);
      |                            ^~
      |                            Main
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int N = sc.nextInt();
            int bit = 0;
            for (int i=0; i<N; i++) {
                bit |= sc.nextInt();
            }
            System.out.println(Integer.numberOfTrailingZeros(bit));
        }
    }
}

Compiler output:
Main.java:5: error: illegal start of expression
        public static void main(String[] args) {
        ^
Main.java:15: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

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

int main(){
  int n, a, cnt;
  
  cin >> n;
  
  for(int i = 0; i < n; i++){
    int tmp;
    cin >> a;
    tmp = a;
    cnt = 0;
    for(int j = 0; tmp <= 1; j++){
      if((tmp % 2) == 0){
        cnt++;
      }else{
        break;
      }
      tmp /= 2;
    }
    if(i == 0) mincnt = cnt;
    if(cnt < mincnt) mincnt = cnt;
  }
  cout << mincnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: 'mincnt' was not declared in this scope
   22 |     if(i == 0) mincnt = cnt;
      |                ^~~~~~
a.cc:23:14: error: 'mincnt' was not declared in this scope
   23 |     if(cnt < mincnt) mincnt = cnt;
      |              ^~~~~~
a.cc:25:11: error: 'mincnt' was not declared in this scope
   25 |   cout << mincnt << endl;
      |           ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
 
ll f(int x) {
    if (x%2==1) return 0;
    return f(x/2) + 1;
}
 
int main() {
    int n, ret = 1000000001;
    cin >>n;
    int a;
    for (int i = 0; i < n; i++) {
        cin >> a;
        a = f(a);
        ret = min(a, ret);
    }
    cout << ret << endl;
    return 0;
}
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

ll f(int x) {
    if (x%2==1) return 0;
    return f(x/2) + 1;
}

int main() {
    int n, ret = 1000000001;
    cin >>n;
    int a;
    for (int i = 0; i < n; i++) {
        cin >> a;
        a = f(a);
        ret = min(a, ret);
    }
    cout << ret << endl;
    return 0;
}


Compiler output:
a.cc:26:4: error: redefinition of 'll f(int)'
   26 | ll f(int x) {
      |    ^
a.cc:5:4: note: 'll f(int)' previously defined here
    5 | ll f(int x) {
      |    ^
a.cc:31:5: error: redefinition of 'int main()'
   31 | int main() {
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
 
ll f(int x) {
    if (x%2==1) return 0;
    return f(x/2) + 1;
}
 
int main() {
    int n, ret = 1000000001;
    cin >>n;
    int a;
    for (int i = 0; i < n; i++) {
        cin >> a;
        a = f(a);
        ret = min(a, ret);
    }
    cout << ret << endl;
    return 0;
}
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

ll f(int x) {
    if (x%2==1) return 0;
    return f(x/2) + 1;
}

int main() {
    int n, ret = 1000000001;
    cin >>n;
    int a;
    for (int i = 0; i < n; i++) {
        cin >> a;
        a = f(a);
        ret = min(a, ret);
    }
    cout << ret << endl;
    return 0;
}
提出情報

Compiler output:
a.cc:26:4: error: redefinition of 'll f(int)'
   26 | ll f(int x) {
      |    ^
a.cc:5:4: note: 'll f(int)' previously defined here
    5 | ll f(int x) {
      |    ^
a.cc:31:5: error: redefinition of 'int main()'
   31 | int main() {
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main() {
      |     ^~~~
a.cc:43:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   43 | 提出情報
      | ^~~~~~~~
Language: C++

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

int main() {
    int n;
    cin>>n;
    int max_num=0;
    int ans=0;
    

    rep(i,n){
        int cnt=0;
        int num=i;
        while(true){
            bool exist_odd=false;
            if(num%2!=0)exist_odd=true;
            if(exist_odd){
                //cout<<i;
                break;
            }
            num/=2;
            cnt++;
        }
        
        max_num=max(cnt,max_num);
        if(max_num==cnt)ans=i;

    }
    cout<<ans;

Compiler output:
a.cc: In function 'int main()':
a.cc:31:15: error: expected '}' at end of input
   31 |     cout<<ans;
      |               ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

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

int main () {
    int N;
    cin >> N;
    vector<int>vec(N);
    for (int i=0; i<N; i++) {
        cin >> vec.at (i);
    }
    int sum=0;
    
    while (true) {
        for (int i=0; i<N; i++) {
            if (vec.at(i)%2==1) {
                sum-=(i+0.0)/6.0;
                vec.at(i)/=2;
                break;
            }
            else {
                sum+=1.0/6.0;
                vec.at(i)/=2;
            }
        }
    cout << sum << endl;
}
                
                
                


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

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

int main () {
    int N;
    cin >> N;
    vector<int>vec(N);
    for (int i=0; i<N; i++) {
        cin >> vec.at (i);
    }
    int sum=0;
    
    while (true) {
        for (int i=0; i<N; i++) {
            if (vec.at(i)%2==1) {
                sum-=(i+0.0)/6.0
                vec.at(i)/=2;
                break;
            }
            else {
                sum+=1.0/6.0;
                vec.at(i)/=2;
            }
        }
    cout << sum << endl;
}
                
                
                


Compiler output:
a.cc: In function 'int main()':
a.cc:16:33: error: expected ';' before 'vec'
   16 |                 sum-=(i+0.0)/6.0
      |                                 ^
      |                                 ;
   17 |                 vec.at(i)/=2;
      |                 ~~~              
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

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

int main () {
    int N;
    cin >> N;
    vector<int>vec(N);
    for (int i=0; i<N; i++) {
        cin >> vec.at (i);
    }
    for (int i=0; i<N; i++) {
        if (vec.at(i)%2==1) {
            cout << "

Compiler output:
a.cc:13:21: warning: missing terminating " character
   13 |             cout << "
      |                     ^
a.cc:13:21: error: missing terminating " character
a.cc: In function 'int main()':
a.cc:13:20: error: expected primary-expression at end of input
   13 |             cout << "
      |                    ^
a.cc:13:20: error: expected '}' at end of input
a.cc:12:29: note: to match this '{'
   12 |         if (vec.at(i)%2==1) {
      |                             ^
a.cc:13:20: error: expected '}' at end of input
   13 |             cout << "
      |                    ^
a.cc:11:29: note: to match this '{'
   11 |     for (int i=0; i<N; i++) {
      |                             ^
a.cc:13:20: error: expected '}' at end of input
   13 |             cout << "
      |                    ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> a;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> a;
      |          ^~~
a.cc:10:10: error: 'a' was not declared in this scope
   10 |     cin>>a[i];
      |          ^
a.cc:17:10: error: 'a' was not declared in this scope
   17 |       if(a[i]%2!=0){
      |          ^
a.cc:23:7: error: 'a' was not declared in this scope
   23 |       a[i]/=2;
      |       ^
a.cc:27:4: error: expected '}' at end of input
   27 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  int a[210];
  int counter = 0;
  for(int i = 0;i < n;i++){
    cin >> a[i];
  }

 
  while(true){
    bool Odd_flag = false;
    for(int i = 0;i < n;i++){
      if(a[i] % 2 != 0){
        Odd_flag = true;
      }
    }
    if(Odd_flag) break;
    
    for(int i = 0;i<n;i++){
      a[i] /= 2;
    }
    counter++
  }

  cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:14: error: expected ';' before '}' token
   26 |     counter++
      |              ^
      |              ;
   27 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;

const int INF=10000000;
int N;
int A[230];

int main(){
 	cin>>N;
  	for(int i=0;i<N;++i)cin>>A[i];
  
  	int res=INF;
  	for(int i=0;i<N;++i){
		int count=0;
      	while(A[i]%2==0){
          A[i]/=2;
          ++count;
        }
     
      if(res<count)res=count;
  
  
      cout<<res;
  
}

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

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

int main() {
  int N, A;
  cin >> N;
  int ans = 1e9;
  while (cin >> A) {
    int cnt = 0;
    while (A % 2 == 0) A /= 2, cnt++;
    ans = min(ans, cnt);
  }
  cout << cnt << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |   cout << cnt << "\n";
      |           ^~~
      |           int
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <cmath>
#include <string.h>
#include <string>

using namespace std;

bool get_odd(long long a[]) {
    for (int x: a) {
        if (x % 2 != 0) return true;
    }
    return false;
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int n;
    cin >> n;
    long long a[n];
    for (int i=0; i<n; i++) cin >> a[i];
    
    int cnt = 0;
    while (!get_odd(a)) {
        for (int i=0; i<n; i++) a[i] /= 2;
        cnt++;
    }
    cout << cnt << '\n';
}

Compiler output:
a.cc: In function 'bool get_odd(long long int*)':
a.cc:12:17: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   12 |     for (int x: a) {
      |                 ^
      |                 std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:12:17: error: 'end' was not declared in this scope; did you mean 'std::end'?
   12 |     for (int x: a) {
      |                 ^
      |                 std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

#include<bits/stdc++.h>
#include<stdlib.h>
using namespace std;
int main(void){

  int m=0,count=0,kaisu=0,i=0;
  unsigned int kazu=0;
  cin >> kaisu;
  int num[kaisu]={0};
  for(i=0;i<kaisu;i++){
    cin >> kazu;
    num[i]=kazu;
  }
  while(num[i]%2==0){
    if(num[i]%2==0){
      m++;
      num[i]=num[i]/2;
    }
    if(m==kaisu){
      count++;
      n=0;
      m=0;
      i=0;
   }
  }
cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: 'n' was not declared in this scope
   21 |       n=0;
      |       ^
Language: C++

#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;
  }
  cont << res << endl;
}
    

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int main(){
      | ^~~
Language: C++

#include <bits/stdc++.h>
int main()
{
  int N,A,b=0,ans=0; // b : ビット和
  cin >> N;

  for (int i = 0; i < N; ++i)
  {
    cin >> A; // A[i]を格納
    b = (A | b); // bはA_1～A_Nのビット和
  }

  while((b&1)==0){ // ビット和の最下位ビットが0である限り
    b = b>>1; // ビット和を右に1ビットシフトして
    ans++; // 操作回数を1回増やす
  }

  cout << ans << endl;
  return 0;
}

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

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

int main() {
  int N, A;
  cin >> N >> A;
  int s =2;
  int t = 0
  for (int i = 0; i < N; i++ ,s = s*2 ) {
    int x;
    cin >> x;

    if ( x % s == 0) {
      t++;
    }
  }
  cout << t << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for (int i = 0; i < N; i++ ,s = s*2 ) {
      |   ^~~
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < N; i++ ,s = s*2 ) {
      |                   ^