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

#include <utility>
#include <stdio.h>
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<map>
#include<cmath>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define YES(b) std::cout<< (b ? "Yes" : "No")
using namespace std;
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	int n = 0, m;
	cin >> n >> m;
	if (m == 100) {
		cout << (int64_t)(pow(100, n)*(m + 1);
		return 0;
	}
	cout << (int64_t)(pow(100, n))*m;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:54: error: expected ')' before ';' token
   19 |                 cout << (int64_t)(pow(100, n)*(m + 1);
      |                                  ~                   ^
      |                                                      )
Language: C++

<D-v>#include <bits/stdc++.h>

using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int d,n; cin >> d >> n;

	int ans = 1;
	int n2 = n;

	while(n%100 == 0){
		n2++;
		n /= 100;
	}

	for (int i = 0;i < d;i++){
		ans *= 100;
	}	

	cout << ans * n2 << endl;

	return 0;

}


Compiler output:
a.cc:1:6: error: stray '#' in program
    1 | <D-v>#include <bits/stdc++.h>
      |      ^
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <D-v>#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin.tie(0);
      |         ^~~
a.cc:7:9: error: 'ios' has not been declared
    7 |         ios::sync_with_stdio(false);
      |         ^~~
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << ans * n2 << endl;
      |         ^~~~
a.cc:23:29: error: 'endl' was not declared in this scope
   23 |         cout << ans * n2 << endl;
      |                             ^~~~
Language: C

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

int main()
{
    int D,N;
    scanf("%d%d",&D,&N);
    if( N != 100 ){
        printf("%d\n",N*(int)pow(100,D));
    }else if( D == 0 ){
        printf("101\n");
    }else if( D == 1 ){
        printf("10100\n");
    }else if( D == 2 ){
        printf("1010000")
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:26: error: expected ';' before '}' token
   17 |         printf("1010000")
      |                          ^
      |                          ;
   18 |     }
      |     ~
Language: C++

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


int main()
{
	int D, N; 
	long long answer;
	cin >> D >> N;

	answer = pow(100, D)*N;

	cout << answer << endl;

    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expected '}' at end of input
   16 |     return 0;
      |              ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a),_b=(b);i<=_b;i=i+1)
#define FORD(i,b,a) for (int i=(b),_a=(a);i>=_a;i=i-1)
#define REP(i,n) for (int i=0,_n=(n);i<_n;i=i+1)
#define FORE(i,v) for (__typeof((v).begin()) i=(v).begin();i!=(v).end();i++)
#define ALL(v) (v).begin(),(v).end()
#define pb push_back
#define mp make_pair
#define fi first
#define se second+++
#define SZ(x) ((int)(x).size())
#define double db
typedef long long ll;
typedef pair<int,int> PII;
const ll mod=1000000007;
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
const int MAXN = 1E5+3;
const ll oo = 1e18+3;



int main() {
	cin >> d >> n;
	cout << n;
	FOR(i,1,d) {
		cout << "00";
	}
   	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: 'd' was not declared in this scope
   24 |         cin >> d >> n;
      |                ^
a.cc:24:21: error: 'n' was not declared in this scope; did you mean 'yn'?
   24 |         cin >> d >> n;
      |                     ^
      |                     yn
Language: C++

#include <iostream>

using namespace std;

int main() {

	int d, n;
	int sum;
	cin >> d >> n;

	switch(d){
	case 0:
		for (int i = 0; i < n; i++) {
			sum += i;
		}
		break;

	case 1:
		for (int i = 0; i < n; i++) {
			sum = 100 * i
		}
		break;

	case 2:
		for (int i = 0; i < n; i++) {
			sum = 10000 * i;
		}
		break;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:38: error: expected ';' before '}' token
   20 |                         sum = 100 * i
      |                                      ^
      |                                      ;
   21 |                 }
      |                 ~
Language: C++

int main(){
	int d, n; cin >> d >> n;
	if(d==0){
		if(n!=100) cout << n;
      	else cout << 101;
	} else if(d==1){
		if(n!=100) cout << 100*n;
      	else cout << 10100;
	} else{
		if(n!=100) cout << 10000*n;
      	else cout << 1010000;
	}
 
 
	return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:19: error: 'cin' was not declared in this scope
    2 |         int d, n; cin >> d >> n;
      |                   ^~~
a.cc:4:28: error: 'cout' was not declared in this scope
    4 |                 if(n!=100) cout << n;
      |                            ^~~~
a.cc:5:14: error: 'cout' was not declared in this scope
    5 |         else cout << 101;
      |              ^~~~
a.cc:7:28: error: 'cout' was not declared in this scope
    7 |                 if(n!=100) cout << 100*n;
      |                            ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |         else cout << 10100;
      |              ^~~~
a.cc:10:28: error: 'cout' was not declared in this scope
   10 |                 if(n!=100) cout << 10000*n;
      |                            ^~~~
a.cc:11:14: error: 'cout' was not declared in this scope
   11 |         else cout << 1010000;
      |              ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<cmath>
#include<cstdlib>
#include<string>
#include<algorithm>
#include<map>
#include<iomanip>
#include<limits>
#include<queue>
#include<set>
#include<cstdio>
#include<climits>
#include<cstring>

using namespace std;



int main(){

	int D,N;

    cin >> D >> N;

   if(D == 0){
    if(N  <100){
      cout << N << endl;
    }else{
       cou << 101 << endl;
    }
   }else{
	int b = 100;
	for(int i = 2;i <= D;i++){
		b = b*100;
	}

	int ans = b;

	cout << ans*N << endl;

   }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:8: error: 'cou' was not declared in this scope; did you mean 'cos'?
   31 |        cou << 101 << endl;
      |        ^~~
      |        cos
Language: C++

#include<stdio.h>
int main() {
    int a, b,ans=1,i;
    scanf("%d%d", &a, &b);
    for (i = 0; i < a; i++) {
        ans = ans * 100;
    }
if(n==100)
ans=ans*101;
else
    ans = ans * b;
printf("%d\n",ans);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 'n' was not declared in this scope
    8 | if(n==100)
      |    ^
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <sstream>
#include <fstream>
#include <iomanip>

#define rep(i,a,b) for(long long i=a;i<b;i++)

using namespace std;
int combination(int n, int r)
{
	if (r == 0 || r == n)
		return (1);
	else if (r == 1)
		return (n);
	return (combination(n - 1, r - 1) + combination(n - 1, r));
}


int main(void) {

	long long N = 0, D = 0, N = 0, X = 0, Y = 0;
	
	cin >> D >> N;

	if (D == 0) {
		cout << N << endl;
	}else if (D == 1) {
		cout << N*100 << endl;
	}
	else {
		cout << N*10000 << endl;
	}

	


	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:33: error: redeclaration of 'long long int N'
   26 |         long long N = 0, D = 0, N = 0, X = 0, Y = 0;
      |                                 ^
a.cc:26:19: note: 'long long int N' previously declared here
   26 |         long long N = 0, D = 0, N = 0, X = 0, Y = 0;
      |                   ^
Language: C++

#include <iostream>
#include <math.h>

using namespace std;

int main()
{
        int d, n;
        int ret;

        cin >> d;
        cin >> n;


        ret = d == 0 ? n : pow(100, d) * n;
        if (d == 0 && n == 100) {
                cout << n+1 << endl;
        } else {
                cout << ret << endl;
        }
        r

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'r' was not declared in this scope
   21 |         r
      |         ^
a.cc:21:10: error: expected '}' at end of input
   21 |         r
      |          ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    if(a==0&&a<=99){
        cout << b << endl;
    }else if(a==1%%a<=99){
        cout << b << "00" << endl;
    }else if(a==2&&a<=99){
        cout << b << "0000" << endl;
    }else if(a==0&&a==100){
        cout << "99" << endl;
    }else if(a==1&&a==100){
        cout << "9900" << endl;
    }else if(a==2&&a==100){
        cout << "990000"<< endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before '%' token
    8 |     }else if(a==1%%a<=99){
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,k;
    scanf("%d %d",&n,&k);
    if(n == 0)
    {
        if(k != 100)
        printf("%d\n",k);
        else
            printf("101\n");
    }
    else if(n == 1)
    {
        if(k != 100)
            printf("%d00\n",k);
        else
            printf("10100\n");
    }    
    else
    {
        if( k!= 1==)
        printf("%d0000\n",k);
        else
            printf("1010000\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: expected primary-expression before ')' token
   23 |         if( k!= 1==)
      |                    ^
Language: Java

import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int n = sc.nextInt();
        if (d == 0) {
            if (n < 100) {
                System.out.println(n);
            } else {
                System.out.println(101);
            }
        } else if (d == 1) {
            if (n < 100) {
                System.out.println(100 * n);
            } else {
                System.out.println(10100);
            }

        } else {
            if (n < 100) {
                System.out.println(10000 * n);
            } else {
                System.out.println(1010000);
            }
        }

    }

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

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

int main(){
  int a,b;
  cin >> a >> b;
  if(a == 0){
    if(b == 100){
      cout << 101 << endl;
    }else{
    cout << b << endl;
  }else if(a == 1){
    cout << 100*b << endl;
  }else if(a == 2){
    cout << 100*100*b << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: expected '}' before 'else'
   12 |   }else if(a == 1){
      |    ^~~~
a.cc:7:13: note: to match this '{'
    7 |   if(a == 0){
      |             ^
Language: C++

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

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

	if(d==0){
		cout<<n<<endl;
	}else if(d==1){
		cout<<n*100<<endl;
	}else if(d==2){
		cout<<n*10000<<endl;
	}else{
		break;
	}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: break statement not within loop or switch
   15 |                 break;
      |                 ^~~~~
Language: Java

import java.util.Scanner;

public class ABC100_2 {
	public static void main(String args[]) {
		Scanner scn = new Scanner(System.in);
		int D = scn.nextInt();
		int N = scn.nextInt();
		System.out.println(N == 100?(long)Math.pow(100, D) * N:(long)Math.pow(100, D) * 101);
		scn.close();
	}
}


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

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

int D,N;

int main(){  
  //freopen("ABC049C_in.txt", "r", stdin);

  scanf("%d %d",&D,&N);

  if(D!=0){
  	const int a=pow(100,D);
  	const int ans=a*N;
  	printf("%d\n",ans);
  	return 0;
  }
  else{
  	if(N!=100){printf("%d\n",N);}
  	else(printf("101\n");)
  	return 0;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:29: error: expected ')' before ';' token
   19 |         else(printf("101\n");)
      |             ~               ^
      |                             )
a.cc:19:30: error: expected primary-expression before ')' token
   19 |         else(printf("101\n");)
      |                              ^
Language: C++

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

int main()
{
  int d,n,ans=1;
  cin>>d>>n;

  if (n<100) ans=pow(100,d)*n;
  else ans=pow(100,d)*(n+1)

  cout<<ans<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ';' before 'cout'
   11 |   else ans=pow(100,d)*(n+1)
      |                            ^
      |                            ;
   12 | 
   13 |   cout<<ans<<endl;
      |   ~~~~
Language: C++

#includeac<cstdio>
int main(){
	int d,n;
	scanf("%d%d",&d,&n);
	if(d==0)
		printf("%d\n",n);
	else if(d==1)
		printf("%d\n",n*100);
	else if(d==2)
		printf("%d\n",n*10000);
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includeac; did you mean #include?
    1 | #includeac<cstdio>
      |  ^~~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d%d",&d,&n);
      |         ^~~~~
a.cc:6:17: error: 'printf' was not declared in this scope
    6 |                 printf("%d\n",n);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #includeac<cstdio>
a.cc:8:17: error: 'printf' was not declared in this scope
    8 |                 printf("%d\n",n*100);
      |                 ^~~~~~
a.cc:8:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:10:17: error: 'printf' was not declared in this scope
   10 |                 printf("%d\n",n*10000);
      |                 ^~~~~~
a.cc:10:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C

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

int main()
{
    int D,N;
    scanf("%d%d",&D,&N);
    if( N != 100 ){
        printf("%d\n",N*(int)pow(100,D));
    }elseif( D == 0 ){
        printf("101\n");
    }elseif( D == 1 ){
        printf("10001\n");
    }elseif( D == 2 ){
        printf("1000001\n");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:6: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   12 |     }elseif( D == 0 ){
      |      ^~~~~~
main.c:12:22: error: expected ';' before '{' token
   12 |     }elseif( D == 0 ){
      |                      ^
      |                      ;
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
using namespace std;
int n,d;
int x[100001];
int ans=0;
int main(){
  cin >> d >> n;
  if(d==0){ans=n;if(n==100)ans=101;}
  else if(d==1){ans=100*n;if(n==100)ans=10100;}
  else {ans=10000*n;if(n==100)ans=1010000}
  
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:42: error: expected ';' before '}' token
   14 |   else {ans=10000*n;if(n==100)ans=1010000}
      |                                          ^
      |                                          ;
Language: C

#include <stdio.h>
int main(void)
{
　int D;
　int N;
 　scanf("%d %d", &D,&N);
　
　if (D==0){
　    printf("%d", N);
　    
　}
　else if(D==1){
　    printf("%d",100*N);
　    
　}
　else {
　    printf("%d",10000*N);
　    
　}
  return 0;
}
　


Compiler output:
main.c: In function 'main':
main.c:4:1: error: stray '\343' in program
    4 | <U+3000>int D;
      | ^~~~~~~~
main.c:5:1: error: stray '\343' in program
    5 | <U+3000>int N;
      | ^~~~~~~~
main.c:6:2: error: stray '\343' in program
    6 |  <U+3000>scanf("%d %d", &D,&N);
      |  ^~~~~~~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000>
      | ^~~~~~~~
main.c:8:1: error: stray '\343' in program
    8 | <U+3000>if (D==0){
      | ^~~~~~~~
main.c:9:1: error: stray '\343' in program
    9 | <U+3000>    printf("%d", N);
      | ^~~~~~~~
main.c:10:1: error: stray '\343' in program
   10 | <U+3000>
      | ^~~~~~~~
main.c:11:1: error: stray '\343' in program
   11 | <U+3000>}
      | ^~~~~~~~
main.c:12:1: error: stray '\343' in program
   12 | <U+3000>else if(D==1){
      | ^~~~~~~~
main.c:13:1: error: stray '\343' in program
   13 | <U+3000>    printf("%d",100*N);
      | ^~~~~~~~
main.c:14:1: error: stray '\343' in program
   14 | <U+3000>
      | ^~~~~~~~
main.c:15:1: error: stray '\343' in program
   15 | <U+3000>}
      | ^~~~~~~~
main.c:16:1: error: stray '\343' in program
   16 | <U+3000>else {
      | ^~~~~~~~
main.c:17:1: error: stray '\343' in program
   17 | <U+3000>    printf("%d",10000*N);
      | ^~~~~~~~
main.c:18:1: error: stray '\343' in program
   18 | <U+3000>
      | ^~~~~~~~
main.c:19:1: error: stray '\343' in program
   19 | <U+3000>}
      | ^~~~~~~~
main.c: At top level:
main.c:22:1: error: stray '\343' in program
   22 | <U+3000>
      | ^~~~~~~~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  if(a == 0){
    cout << b << endl;
  }else if(a == 1){
    cout << 100*b << endl;
  }else if(a == 2){
    cout << 100*100*b << endl;
}

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

#include "bits/stdc++.h"
using namespace std;
#define ri(a,b,c) for(int a=(b);a<(c);++a)
#define ll long long
#define rll(a,b,c) for(ll a=(b);a<(c);++a)

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
    cin>>a>>b;
  c=(a?(a-1?10000:100):1);
  n=(b-100)?b:99
  







    cout<<n*c<<endl;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before 'cout'
   14 |   n=(b-100)?b:99
      |                 ^
      |                 ;
......
   23 |     cout<<n*c<<endl;
      |     ~~~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		partB();
	}
	
	
	public static void partB100() {
		Scanner scB = new Scanner(System.in);
		int D = scB.nextInt();
		int N = scB.nextInt();
		
		if(D == 0) {
			System.out.println(N);
		}else if(D == 1) {
			System.out.println(N * 100);
		}else if(D == 2) {
			System.out.println(N * 10000);
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		partB();
		^
  symbol:   method partB()
  location: class Main
1 error
Language: C++

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

int d, n;

int ans;

int main(void){
  // Here your code !
  scanf("%d %d", &d, &n);

  if (d > 0) {
    ans = pow(100, d) * n;
  }
  else {
    else ans = n;
  }

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

  return 0;
}


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

d, n = map(int, input().split())		# 5 7

a = 100**d
print(a*n)


Compiler output:
a.cc:1:49: error: stray '#' in program
    1 | d, n = map(int, input().split())                # 5 7
      |                                                 ^
a.cc:1:1: error: 'd' does not name a type
    1 | d, n = map(int, input().split())                # 5 7
      | ^
Language: C++

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <bitset>
#include <deque>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <vector>
#include <algorithm>
#include <iterator>
#include <string>
using namespace std;
int main(){

int x,y;

cin >> x >> y;

if( y!=100){
if( x==0){
cout << y;
}else if(x==1){
cout << 100*y;
}else{
	cout << 10000*y;
}
}else{
if( x==0){
cout << y+1;
}else if(x==1){
cout << 100*y+100;
}else{
	cout << 10000*y+10000;
}

}

return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:43:10: error: expected '}' at end of input
   43 | return 0;
      |          ^
a.cc:18:11: note: to match this '{'
   18 | int main(){
      |           ^
Language: C++

int main() {
	int D, N;
	 cin >> D >> N;
	 
	 if(D == 0)cout << N << endl;
	 
	 else if(D == 1) cout << 100*N;
	 
	 else cout << 10000*N;



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' was not declared in this scope
    3 |          cin >> D >> N;
      |          ^~~
a.cc:5:20: error: 'cout' was not declared in this scope
    5 |          if(D == 0)cout << N << endl;
      |                    ^~~~
a.cc:5:33: error: 'endl' was not declared in this scope
    5 |          if(D == 0)cout << N << endl;
      |                                 ^~~~
a.cc:7:26: error: 'cout' was not declared in this scope
    7 |          else if(D == 1) cout << 100*N;
      |                          ^~~~
a.cc:9:15: error: 'cout' was not declared in this scope
    9 |          else cout << 10000*N;
      |               ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include <algorithm>
#include <functional>
using namespace std;
#define REP(i,n) for(int i=0;i<n;i++)
#define FOR(var,init,end) for(int var=init;var<end;var++)
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)

int main() {
	int D, N;
	cin >> D >> N;
	cout << pow(100, D)*N;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'pow' was not declared in this scope
   14 |         cout << pow(100, D)*N;
      |                 ^~~
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <sstream>
#include <fstream>
#include <iomanip>

#define rep(i,a,b) for(long long i=a;i<b;i++)

using namespace std;
int combination(int n, int r)
{
	if (r == 0 || r == n)
		return (1);
	else if (r == 1)
		return (n);
	return (combination(n - 1, r - 1) + combination(n - 1, r));
}

//int main(void) {
//
//	long long N=0,A=0,B=0,X=0,Y=0;
//	long long big = 0,big2=0;
//	long long c = 0;
//
//	cin >> A >> B;
//	
//	
//	if (A < 9 && B < 9) {
//		cout << "Yay!" << endl;
//	}
//	else {
//		cout << ":(" << endl;
//	}
//	
//
//	return 0;
//
//}

int main(void) {

	long long N = 0, D = 0, N = 0, X = 0, Y = 0;
	long long big = 0, big2 = 0;
	long long c = 0;

	cin >> D >> N;

	if (D == 0) {
		cout << N << endl;
	}else if (D == 1) {
		cout << N*100 << endl;
	}
	else if(D == 2) {
		cout << N*10000 << endl;
	}

	


	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:33: error: redeclaration of 'long long int N'
   46 |         long long N = 0, D = 0, N = 0, X = 0, Y = 0;
      |                                 ^
a.cc:46:19: note: 'long long int N' previously declared here
   46 |         long long N = 0, D = 0, N = 0, X = 0, Y = 0;
      |                   ^
Language: C++

#include <stdio.h>
#include <math.h>
double a,b,c;
int main(){
scanf("%lf,%lf,&a,&b);
if(b<100){
c=pow(10,a)*b;
}else{
c=pow(10,a+1)*99+pow(10,a);
}
return 0;
}

Compiler output:
a.cc:5:7: warning: missing terminating " character
    5 | scanf("%lf,%lf,&a,&b);
      |       ^
a.cc:5:7: error: missing terminating " character
    5 | scanf("%lf,%lf,&a,&b);
      |       ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: expected primary-expression before 'if'
    6 | if(b<100){
      | ^~
Language: Java

import java.util.Scanner;

public class Main2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int D = sc.nextInt();
        int N = sc.nextInt();

        if (D == 0) {
            System.out.println(N);
        } else if (D == 1) {
            System.out.println(N * 100);
        } else {
            System.out.println(N * 1000);
        }
    }
}


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

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

using namespace std;

int main() {

	//int A, B;

	//cin >> A >> B;

	//if (A > 8 || B > 8){
	//	std::cout << ":(" << std::endl;
	//	return 0;
	//}
	//else{
	//	std::cout << "Yay!" << std::endl;
	//}

	int D, N;

	cin >> D >> N;

	std::cout << N << std::endl;

	//int wariNum = 100 * D;

	//int min = 0;

	//for (int i = 0; i < )

	//

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:38:18: error: expected '}' at end of input
   38 |         return 0;
      |                  ^
a.cc:10:12: note: to match this '{'
   10 | int main() {
      |            ^
Language: Java

import java.util.Scanner;
import java.util.*;

public class Ringo {

    public static void main(String[] args)
    {
        Scanner key = new Scanner(System.in);
        String word = key.nextLine();
        
        StringTokenizer st = new StringTokenizer(word);
        
        int D = Integer.parseInt(st.nextToken());
        int N = Integer.parseInt(st.nextToken());
        int val = 0;
        
        if (D == 0)
        {
            System.out.println(N);
        }
        
        else
        {
            val = (int) (Math.pow(100,D));
        
            System.out.println(N * val);
        }
    }
}

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

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <cmath>
#include <set>
#include <map>
#include <string>
#include <numeric>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iterator>
#include <fstream>
#include <cstddef>
#include <cstring>
//#include <chrono> //正確な時間計測のため
using namespace std;

typedef pair<int, int> P;
typedef long long ll;
#define PB push_back
#define rep(i, a) for(int i = 0; i < a; i++)
#define all(v) v.begin(),v.end()
#define FF first
#define SS second
#define mp make_pair
#define INT int_64
#define MOD 998244353
const ll INF = (1<<30);
const ll NEGA=-INF*10000; 

//階乗
ll Kaijou(ll a) {
if (a < 2) return 1;
return a * Kaijou(a - 1)%MOD;
}

//逆元の計算用(pは素数のときb=p-2で逆元)
ll calc(ll a, ll b, ll p) {
	if (b == 0) return 1;
	if (b % 2 == 0) {
		ll d = calc(a, b / 2, p);
		return (d*d) % p;
	}
	else {
		return (a*calc(a, b - 1, p)) % p;
	}
}


//ユークリッドの互除法
ll gcd(ll x, ll y) {
	if (x < y) swap(x, y);
	if (y == 0) return x;
	return gcd(y, x%y);
}

ll CCC(ll all,ll a,ll b,ll c){
  all=Kaijou(all)%MOD;
  a=Kaijou(a);
  b=Kaijou(b);
  c=Kaijou(c);
  ll sita=((a*b)%MOD*c)%MOD;
  return all*calc(sita,MOD-2,MOD)%MOD;
}

 ll ans=INF;

 ll cc[501][501];
 ll D[31][31];
 
 ll pdmin[3];

//再帰なし累乗
ll iPOW(ll x, ll p){
  ll result;
	for(result=1;p!=0;p>>=1)
	{
    if(p&1) result*=x;
	  x*=x;
  }
  return result;
}


int main(){  
 int d,n:
 cin>>d>>n;
 int t=1;
 rep(i,d) t*=100;
 cout<<n*t<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:91:9: error: found ':' in nested-name-specifier, expected '::'
   91 |  int d,n:
      |         ^
      |         ::
a.cc:91:8: error: 'n' has not been declared
   91 |  int d,n:
      |        ^
a.cc:92:5: error: qualified-id in declaration before '>>' token
   92 |  cin>>d>>n;
      |     ^~
a.cc:95:8: error: 'n' was not declared in this scope
   95 |  cout<<n*t<<endl;
      |        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define int ll

typedef pair<int, int> pii;
typedef pair<ll, ll> pll; 

#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define FileIn(file) freopen(file, "r", stdin)
#define FileOut(file) freopen(file, "w", stdout)
#define syso(n) cout<<n<<endl;  
#define sysom(message, n) cout<<message<<n<<endl;
#define all(c) c.begin(), c.end() 
#define tr(container, it )\
for(__typeof__(container.begin()) it = container.begin(); it != container.end(); it++) 
#define present(container, element) (container.find(element) != container.end())  //map, set
#define cpresent(container, element) (find(aint(container),element) != container.end()) //vector
#define what_is(x) cout << #x << " is " << x << endl; 
#define all(c) c.begin(), c.end() 

#define TRACE
#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
    cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
    const char* comma = strchr(names + 1, ',');cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
}
#else
#define trace(...)
#endif

int gcd(int a, int b){
    if (b==0) return a;
    return gcd(b, a%b);
} 

int lcm(int fir, int sec){
    return (fir*sec)/(gcd(fir, sec));
}

const int MOD = 1988;
// --
// -- 
// -- 
// std::cout << std::fixed;
// std::cout << std::setprecision(26) << f << '\n';

// sort(arr, arr+n, greater<int>());

const int maxN = 1e6 + 12;
// const int maxVal = pow(2, 11);

signed main(){
	string n;
	int d;
	cin>>d>>n;
	for (int i = 0; i < d; ++i){
		d+="00"<<endl;
	}
	cout<<d<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:65:24: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   65 |                 d+="00"<<endl;
      |                    ~~~~^~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>


int 

int main()
{
    int d, n;
    std::cin >> d >> n;
    if (n == 100) {
        n += 1;
    }

    for (int i = 0; i < d; i++) {
        n *= 100;
    }
    std::cout << n << std::endl;
    return 0;
}


Compiler output:
a.cc:6:1: error: two or more data types in declaration of 'main'
    6 | int
      | ^~~
Language: C++

//Date : 16 - 06 - 18  //Author : Rishabh Paul

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

// int main() {
// 	int a ,b;
// 	cin >> a >> b;
// 	if(min(a ,b) <= 8)	cout << "Yay!";
// 	else cout << ":(";
// 	return 0;
// }

 int main() {
 	int d ,n;
 	cin >> d >> n;
 	int ans;
 	if(d == 0)	ans = 1;
 	else if(d == 1)	ans = 100;
 	else ans = 10000;
 	ans *= n;
 	cout << ans;
 	return 0;
 }

 

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #incldue; did you mean #include?
    3 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:16:9: error: 'cin' was not declared in this scope
   16 |         cin >> d >> n;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | //Date : 16 - 06 - 18  //Author : Rishabh Paul
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << ans;
      |         ^~~~
a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++


using namespace std;
int main(){
	int a,b;
	cin >> a >> b;

    int power=1;
    for(int i=0; i < a;i++){
        power *= 100;
    }
    
    cout << power*b;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a >> b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << power*b;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
   int d, n;
   cin >> d >> n;
   vector<int> v(n) = {0};
   int c = 1;
   if(d == 0){
       cout << n << endl;
       return 0;
   }
   for(int i = 1; i <= d; i++){
       c *= 100;
   }
   cout << c * n << endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ',' or ';' before '=' token
    6 |    vector<int> v(n) = {0};
      |                     ^
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;

int main() {
    int d,n;
    cin>>d>>n;
    int c;
    if(n<10){
        c=pow(100,d)*n;
    }else if(n<100){
        c=pow(100,d)*(n);
    }else{c=pow(100,d)*(n+1);}
    cout<<c<<endl;
    return 

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: expected primary-expression at end of input
   16 |     return
      |           ^
a.cc:16:11: error: expected ';' at end of input
   16 |     return
      |           ^
      |           ;
a.cc:16:11: error: expected '}' at end of input
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int D, N;
    cin >> D >> N;

    int result = 1;¥

    for(int i = 0; i < D; i ++){
        result *= 100;
    }
    result *= N;
    
    cout << result << endl;  
    
    return 0;
}

Compiler output:
a.cc:8:20: error: extended character ¥ is not valid in an identifier
    8 |     int result = 1;¥
      |                    ^
a.cc: In function 'int main()':
a.cc:8:20: error: '\U000000a5' was not declared in this scope
    8 |     int result = 1;¥
      |                    ^
a.cc:10:20: error: 'i' was not declared in this scope
   10 |     for(int i = 0; i < D; i ++){
      |                    ^
Language: C++

// UNNECESSARY
// #include <chrono>//std::chrono::/system_clock/steady_clock/high_resolution_clock/duration
// #include <cstdio>//printf/scanf/fopen/fclose/fprintf/fscanf/snprintf/putc/puts/getc/gets
// #include <fstream>//ifstream/ofstream

// DATA STRUCTURES
#include <array>
#include <bitset>
#include <list>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <tuple>
#include <valarray>
#include <vector>

// MISCELLANEOUS
#include <algorithm>//min/max/sort(rand-access it)/merge
#include <cassert>
#include <climits>//INT_MAX/INT_MIN/ULLONG_MAX
#include <cmath>//fmin/fmax/fabs/sin(h)/cos(h)/tan(h)/exp/log/pow/sqrt/cbrt/ceil/floor/round/trunc
#include <cstdlib>//abs/atof/atoi/atol/atoll/strtod/strtof/..., srand/rand, calloc/malloc, exit, qsort
#include <iomanip>//setfill/setw/setprecision/fixed/scientific
#include <iostream>//cin/cout/wcin/wcout/left/right/internal/dec/hex/oct/fixed/scientific
#include <iterator>
#include <limits>//numeric_limits<type>::max/min/lowest/epsilon/infinity/quiet_NaN/signaling_NaN
#include <new>
#include <string>//stoi/stol/stoul/stoll/stoull/stof/stod/stold/to_string/getline
#include <utility>//pair

#ifndef REP
#define REP(i,n) for (int i = 0; i < n; ++i)
#endif

#ifndef REPST
#define REPST(i,n) for (size_t i = 0; i < n; ++i)
#endif

#ifndef READ
#define READ(x) std::cin >> x
#endif

typedef unsigned int ui;
typedef long long ll;
typedef unsigned long long ull;
typedef std::pair<int, int> pii;
typedef std::pair<ll, int> plli;
typedef std::pair<ull, int> puli;
typedef std::pair<double, int> pdi;
typedef std::pair<ll, ll> pllll;
typedef std::pair<ull, ull> pulul;
typedef std::pair<double, double> pdd;
typedef std::tuple<int, int, int> ti3;
typedef std::tuple<int, int, int, int> ti4;

const bool debug = true;

// --------------------------------------------------------------------------------------

using namespace std;

int main(void)
{
    int D, N;
    cin >> D >> N;
    if (D == 0) {
        cout << N.to_string << endl;
    } else if (D == 1) {
        cout << N.to_string + "00" << endl;
    } else {
        cout << N.to_string + "0000" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:19: error: request for member 'to_string' in 'N', which is of non-class type 'int'
   68 |         cout << N.to_string << endl;
      |                   ^~~~~~~~~
a.cc:70:19: error: request for member 'to_string' in 'N', which is of non-class type 'int'
   70 |         cout << N.to_string + "00" << endl;
      |                   ^~~~~~~~~
a.cc:72:19: error: request for member 'to_string' in 'N', which is of non-class type 'int'
   72 |         cout << N.to_string + "0000" << endl;
      |                   ^~~~~~~~~
Language: C++

d,n=map(int,input().split())
if d==0:
    print(n)
elif d==1:
    print(n*100)
elif d==2:
    print(n*10000)

Compiler output:
a.cc:1:1: error: 'd' does not name a type
    1 | d,n=map(int,input().split())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
  ll a;
  cin>>a;
  ll b;
  for(ll i=0;i<a;i++){
    ll c;
    cin>>c;
    for(ll j=0;;){
      if(c%2==0){
        c=c/2;
        j++;
      }
      else{
        c+=j;
        break;
      }
    }    
  }
  cout<<c<<endl;
  return 0;
}

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

	#include<bits/stdc++.h>

	using namespace std;

	int main()
	{ios_base::sync_with_stdio(false);
	    cin.tie(NULL);
	    int n,sum;
	    cin >> n;
		for (int i = 1; i <= n; i++) {
			cin >> a[i];
			while (a[i] % 2 == 0) { a[i] /= 2; sum++; }
	
       }
		cout << sum << endl;
		return 0;

	}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: 'a' was not declared in this scope
   11 |                         cin >> a[i];
      |                                ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin >> n;
	for (int i = 1; i <= n; i++) {
		cin >> a[i];
		while (a[i] % 2 == 0) { a[i] /= 2; sum++; }
	}
	cout << sum << endl;
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |     cin >> n;
      |            ^
      |            yn
a.cc:10:24: error: 'a' was not declared in this scope
   10 |                 cin >> a[i];
      |                        ^
a.cc:11:52: error: 'sum' was not declared in this scope
   11 |                 while (a[i] % 2 == 0) { a[i] /= 2; sum++; }
      |                                                    ^~~
a.cc:13:17: error: 'sum' was not declared in this scope
   13 |         cout << sum << endl;
      |                 ^~~
Language: C++

#include<bits/stdc++.h>
int main(){
  int n; cin>>n;
  vector<long long int> arr(n);
  for(int i=0;i<n;i++)
    cin>>arr[i];
  int ans =0;
  for(int i=0;i<n;i++)
    while(!(arr[i]%2))
    {ans++;arr[i]/=2;}
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int n; 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:4:3: error: 'vector' was not declared in this scope
    4 |   vector<long long int> arr(n);
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:4:10: error: expected primary-expression before 'long'
    4 |   vector<long long int> arr(n);
      |          ^~~~
a.cc:6:10: error: 'arr' was not declared in this scope
    6 |     cin>>arr[i];
      |          ^~~
a.cc:9:13: error: 'arr' was not declared in this scope
    9 |     while(!(arr[i]%2))
      |             ^~~
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   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 count(int x){
  int counter = 0;
  while(x%2 == 0){
    counter++;
    x /= 2;
  }
  return counter;
}
 
int main(){
  int n, y;
  cin >> n;
  int ans = 0;
  for(int i = 0; i < n; ++i)[
      cin >> y;
      if(y%2 == 0) ans += count(y);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: warning: capture of variable 'std::cin' with non-automatic storage duration
   18 |       cin >> y;
      |       ^~~
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::istream std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:10: error: expected ',' before '>>' token
   18 |       cin >> y;
      |          ^~~
      |          ,
a.cc:18:11: error: expected identifier before '>>' token
   18 |       cin >> y;
      |           ^~
a.cc:18:15: error: expected ']' before ';' token
   18 |       cin >> y;
      |               ^
      |               ]
a.cc: In lambda function:
a.cc:18:15: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

int count(int x){
  int counter = 0;
  while(x%2 = 0){
    counter++;
    x /= 2;
  }
}

int main(){
  int n, y;
  cin >> n;
  int ans = 0;
  for(int i = 0; i < n; ++i)[
      cin >> y;
      if(y%2 == 0) ans += count(y);
  }
}

Compiler output:
a.cc: In function 'int count(int)':
a.cc:6:10: error: lvalue required as left operand of assignment
    6 |   while(x%2 = 0){
      |         ~^~
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: In function 'int main()':
a.cc:17:7: warning: capture of variable 'std::cin' with non-automatic storage duration
   17 |       cin >> y;
      |       ^~~
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::istream std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:10: error: expected ',' before '>>' token
   17 |       cin >> y;
      |          ^~~
      |          ,
a.cc:17:11: error: expected identifier before '>>' token
   17 |       cin >> y;
      |           ^~
a.cc:17:15: error: expected ']' before ';' token
   17 |       cin >> y;
      |               ^
      |               ]
a.cc: In lambda function:
a.cc:17:15: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

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


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

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

int main(){
  int N;
  int ans = 0;
  vector<int> A(N);
  for (int i = 0; i < N; i++){
    cin >> A.at(i);
  }
  for (int i = 0; i < N; i++){
    while (A.at(i)%2 == 0){
      ans++;
      A.at(i) /= 2
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: expected ';' before '}' token
   14 |       A.at(i) /= 2
      |                   ^
      |                   ;
   15 |     }
      |     ~
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		long[] a = new long[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	int count = 0;
      	for(int i=0; i<a.length; ++i){
			for(int j=0; j<1000; j++){
              a[i]=a[i]/2;
              count++;
              if(a[i]%2=1) break;
            }
		}
      	System.out.println(count);
	}
}

Compiler output:
Main.java:16: error: unexpected type
              if(a[i]%2=1) break;
                     ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class Multiply3Div2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        boolean div2 = true;
        int cnt = 0;
        while (div2) {
            div2 = false;
            for (int i = 0; i < n; i++) {
                if (arr[i] % 2 == 0 && !div2) {
                    div2 = true;
                    arr[i] /= 2;
                } else {
                    arr[i] *= 3;
                }
            }
            System.out.println(Arrays.toString(arr));
            if (div2)
                cnt += 1;
        }
        System.out.println(cnt);
    }
}


Compiler output:
Main.java:4: error: class Multiply3Div2 is public, should be declared in a file named Multiply3Div2.java
public class Multiply3Div2 {
       ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);   
       //値の取得
       int N = sc.nextInt();
	   long[] A = new long[N];
      for(int i=0;i<N;i++){
        A[i] = sc.nextLong();
      }
      //カウント
      int count = 0;
      //偶数があるなら操作
      while(even>0){
        int even=0;
      	for(int i=0;i<N;i++){
          if(A[i]%2==1){
            A[i]=A[i]*3;
          }else{
        	if((A[i]/2)%2==0){//２で割った数が偶数なら２で割る
          		A[i]=A[i]/2;
        	}else{
             	A[i]=A[i]*3;
        	}
            even++;
          }
      	}
        count++;
      }
      
      System.out.println(count);
    }
}
      
      

Compiler output:
Main.java:14: error: cannot find symbol
      while(even>0){
            ^
  symbol:   variable even
  location: class Main
1 error