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

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

int main()
{
  int d, n;
  cin >> d >> n;
  cout << max (1, pow (100, d)) * n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: no matching function for call to 'max(int, __gnu_cxx::__promote<double>::__type)'
    8 |   cout << max (1, pow (100, d)) * n << endl;
      |           ~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:8:15: note:   deduced conflicting types for parameter 'const _Tp' ('int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'})
    8 |   cout << max (1, pow (100, d)) * n << endl;
      |           ~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:8:15: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    8 |   cout << max (1, pow (100, d)) * n << endl;
      |           ~~~~^~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int d, n, x, k;
	cin >> d >> n;
	x = 1;
	if (d <= 99) {
		for (int i = 0; i < d; i++)
			x *= 100;
		k = x;
		for (int i = 1; i < n; i++)
			x += k;
	}
	else {
		for (int i = 0; i < d; i++)
			x *= 100;
		k = x;
		for (int i = 1; i =< n; i++)
			x += k;
	}
	cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:36: error: expected primary-expression before '<' token
   20 |                 for (int i = 1; i =< n; i++)
      |                                    ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int D,N;
  cin>>D>>N;
  itn ans=N;
  for(int i=0; i<=D; ++i){
    ans *= 100;
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    7 |   itn ans=N;
      |   ^~~
      |   int
a.cc:9:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     ans *= 100;
      |     ^~~
      |     abs
a.cc:11:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C

include <stdio.h>
 
int main(){
  int d,n;
  scanf("%d %d",&d,&n);
  int ans=1;
  while(d>0){
    ans*=100;
    d-=1;
  }
  if(n<100){
    printf("%d",n*ans);
  }else{
    printf("%d",101*ans);
  }
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int D, N, ans[100] = {0};

	cin >> D >> N;

	if (D == 0) {
		cout << N << endl;
	}

	else {
		for (int i = 1; i <= N; i++) {
			ans[i] = (pow(100, D)) * i;
		}
		cout << ans[N] << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:35: error: 'pow' was not declared in this scope
   16 |                         ans[i] = (pow(100, D)) * i;
      |                                   ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C++

#include<bits/stdc++.h>

#define rep(i, a, n)  for(int i=a; i<n; i++)
#define per(i, a, n)  for(int i=n-1; i>=a; i--)
#define fill0(n)  setfill('0') << right << setw(n)
#define all(x)  (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define LONGMAX 1e18
#define INTMAX 1e9
using namespace std;
typedef long long ll;

int d,n;

int main(){
  cin >>  d  >> n;
  vector <ll> v;
  rep(i,1,100){
    v.push_back(i*power(100,d));
  }
  v.push_back(101*power(100,d));
  std::cout << v[n-1] << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: 'power' was not declared in this scope
   19 |     v.push_back(i*power(100,d));
      |                   ^~~~~
a.cc:21:19: error: 'power' was not declared in this scope
   21 |   v.push_back(101*power(100,d));
      |                   ^~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i, a, n)  for(int i=a; i<n; i++)
#define per(i, a, n)  for(int i=n-1; i>=a; i--)
#define fill0(n)  setfill('0') << right << setw(n)
#define all(x)  (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define LONGMAX 1e18
#define INTMAX 1e9
using namespace std;
typedef long long ll;

int d,n;

int main(){
  cin >>  d  >> n;
  vector <ll> v;
  rep(i,1,100){
    v.push_back(i*power(100,d))
  }
  v.push_back(101*power(100,d))
  std::cout << v[n-1] << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: 'power' was not declared in this scope
   19 |     v.push_back(i*power(100,d))
      |                   ^~~~~
a.cc:21:19: error: 'power' was not declared in this scope
   21 |   v.push_back(101*power(100,d))
      |                   ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,d;
  double s=0.01;
  cin>>d>>n;
  for(int i=0,i<=n,i++) s=s*100;
  cout<<d*s;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before '<=' token
    7 |   for(int i=0,i<=n,i++) s=s*100;
      |                ^~
      |                ;
a.cc:7:16: error: expected primary-expression before '<=' token
    7 |   for(int i=0,i<=n,i++) s=s*100;
      |                ^~
a.cc:7:23: error: expected ';' before ')' token
    7 |   for(int i=0,i<=n,i++) s=s*100;
      |                       ^
      |                       ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  int d,n;
  cin>>d>>n;
  if(d==0){
    cout<<d<<endl;
  }
  else{
    cout<<pow(100,d)*d<<endl;
  }
  return 0;
}

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

#include<stdio.h>
int main()
{
  int a,n;
  scanf("%d%d",&a,&n);
  printf("%d",a==0?n:n*pow(100,a));
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'pow' was not declared in this scope
    6 |   printf("%d",a==0?n:n*pow(100,a));
      |                        ^~~
Language: C

#include<stdio.h>

int main(void)
{
 int d,n;
 int i,s,h=100;

 scanf("%d%d", &d,&n);


   if(d==0) s=n;

 else if(d>0){
         for(i=1;i<D;i++)
          h=h*100;
          s=h*n;
        }

 printf("%d\n", s);
}


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

#include<stdio.h>

int main(void)
{
   int d,n;
   int i;

   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){


   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <numeric>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <array>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int GCD(const int& a, const int& b){
   const int& _a = max(a,b);
   const int& _b = min(a,b);
   if(_a % _b == 0){
      return _b;
   }
   else{
      return GCD(_b, _a % _b);
   }
}

int LCM(const int& a, const int& b){
   const int& _a = max(a,b);
   const int& _b = min(a,b);
   return (_a*_b)/(GCD(_a, _b));
}

int main(){
   int d, n;
   cin >> d >> n;
   if(n < 100){
      cout << n*pow(100,d); << endl;
   }
   else{
      cout << 101*pow(100,d) << endl;
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:29: error: expected primary-expression before '<<' token
   46 |       cout << n*pow(100,d); << endl;
      |                             ^~
Language: C

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:6: error: expected '}' before 'else'
   11 |     }else if(d == 1){
      |      ^~~~
Language: C

#include<stdio.h>
int d,n;
int main(void){
    scanf("%d%d",&d,&n);
    if(d == 0){
        if(n == 100){
            printf("101");
        }else{
        printf("%d",n);
        
    }}else if(d == 1){
         if(n == 100){
            printf("10100");
        }else{
        printf("%d",n*100);
    }}else if(d == 2){
         if(n == 100){
            printf("1010000");
        }else{
        printf("%d",n*10000);
        }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:17: error: invalid operands to binary & (have 'char *' and 'int')
    4 |     scanf("%d%d"&d,&n);
      |           ~~~~~~^
      |           |
      |           char *
Language: C++

#include<iostream>
#include<string>
//#include<array>
#include<algorithm>
//#include<deque>
#include<vector>
//#include<utility>
#include<set>
//#include<map>
//#include<list>

using namespace std;

class UnionFind {
public:
	vector<int>data;
	UnionFind(int size) :data(size, -1) {};
	bool unionset(int x, int y) {
		x = root(x), y = root(y);
		if (x != y) {
			if (data[y] < data[x]) {
				swap(x, y);
			}
			data[x] += data[y];
			data[y] = x;
		}
		return x != y;
	}
	bool findset(int x, int y) {
		return root(x) == root(y);
	}
	int root(int x) {
		return data[x] < 0 ? x : data[x] = root(data[x]);
	}
	int size(int x) {
		return -data[root(x)];
	}
};

int gcd(int x, int y) {
	int tmp, r;
	if (x < y) {
		tmp = x;
		x = y;
		y = tmp;
	}
	r = x % y;
	while (r != 0) {
		x = y;
		y = r;
		r = x % y;
	}
	return y;
}

int main(void) {
	int D, N,res;
	cin >> D >> N;
	res = (int)pow(100,D);
	res = res * N;
	cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:20: error: 'pow' was not declared in this scope
   59 |         res = (int)pow(100,D);
      |                    ^~~
Language: C++

#include<iostream>
#include<string>
//#include<array>
#include<algorithm>
//#include<deque>
#include<vector>
//#include<utility>
#include<set>
//#include<map>
//#include<list>

using namespace std;

class UnionFind {
public:
	vector<int>data;
	UnionFind(int size) :data(size, -1) {};
	bool unionset(int x, int y) {
		x = root(x), y = root(y);
		if (x != y) {
			if (data[y] < data[x]) {
				swap(x, y);
			}
			data[x] += data[y];
			data[y] = x;
		}
		return x != y;
	}
	bool findset(int x, int y) {
		return root(x) == root(y);
	}
	int root(int x) {
		return data[x] < 0 ? x : data[x] = root(data[x]);
	}
	int size(int x) {
		return -data[root(x)];
	}
};

int gcd(int x, int y) {
	int tmp, r;
	if (x < y) {
		tmp = x;
		x = y;
		y = tmp;
	}
	r = x % y;
	while (r != 0) {
		x = y;
		y = r;
		r = x % y;
	}
	return y;
}

int main(void) {
	double D, N,res;
	cin >> D >> N;
	res = pow(100,D);
	res = res * N;
	cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:15: error: 'pow' was not declared in this scope
   59 |         res = pow(100,D);
      |               ^~~
Language: C++

#include<iostream>
#include<string>
//#include<array>
#include<algorithm>
//#include<deque>
#include<vector>
//#include<utility>
#include<set>
//#include<map>
//#include<list>

using namespace std;

class UnionFind {
public:
	vector<int>data;
	UnionFind(int size) :data(size, -1) {};
	bool unionset(int x, int y) {
		x = root(x), y = root(y);
		if (x != y) {
			if (data[y] < data[x]) {
				swap(x, y);
			}
			data[x] += data[y];
			data[y] = x;
		}
		return x != y;
	}
	bool findset(int x, int y) {
		return root(x) == root(y);
	}
	int root(int x) {
		return data[x] < 0 ? x : data[x] = root(data[x]);
	}
	int size(int x) {
		return -data[root(x)];
	}
};

int gcd(int x, int y) {
	int tmp, r;
	if (x < y) {
		tmp = x;
		x = y;
		y = tmp;
	}
	r = x % y;
	while (r != 0) {
		x = y;
		y = r;
		r = x % y;
	}
	return y;
}

int main(void) {
	int D, N,res;
	cin >> D >> N;
	res = pow(100,D);
	res = res * N;
	cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:15: error: 'pow' was not declared in this scope
   59 |         res = pow(100,D);
      |               ^~~
Language: C++

#include<iostream>

using namespace std;

int main(){
	int D, N;
  	cin >> D;
  	cin >> N;
  	cout << N*100**D << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: invalid type argument of unary '*' (have 'int')
    9 |         cout << N*100**D << endl;
      |                       ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int d,n;
  	cin>>d>>n;
  
  	if(d==0){
		cout<<n;
    }else{
       if(n==100){
         if(d==1){
		cout<<10100<<endl;
         }else{
		cout<<1000100<<endl;
       }else{
		cout<<pow(100,d)*n<<endl;
       }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected '}' before 'else'
   15 |        }else{
      |         ^~~~
a.cc:10:18: note: to match this '{'
   10 |        if(n==100){
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std ;
int main ()  {
  int D , N ;
  cin >> D >> N ;
  cout << pow(100,D)*((N==100)+)N) << endl ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:32: error: expected primary-expression before ')' token
    6 |   cout << pow(100,D)*((N==100)+)N) << endl ;
      |                                ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <map>
#include <cstdlib>
#include <math.h>

using namespace std;

typedef long long ll;
#define rep(i, n) for(long (i) = 0; (i) < (long) (n); (i)++)
#define rep1(i,n) for(int i=1;i<=(n);i++)
#define rrep(i,a,b) for(long i=(a);i<(b);i++)
#define rrep1(i,a,b) for(long i=(a);i<=(b);i++)
#define rrrep(i,a,b) for(long i=(a);i>=(b);i--)
#define define pb push_back
#define ALL(obj) (obj).begin(), (obj).end()
#define X first
#define Y second
#define vi vector<int>
#define vl vector<ll>
#define vvi vector<vector<int> >
#define vpl vector<pair<long, long> >

const int INF = 100100100;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-9;
const ll LINF = 1e18;

int printYes() {
    cout << "Yes" << endl;
    return 0;
}

int printNo() {
    cout << "No" << endl;
    return 0;
}

int ans;

int printAns() {
    cout << ans << endl;
    return 0;
}


int pow(int x) {
	if (x == 0) {
		return 1;
	}
	else {
		return pow(x - 1) * 2;
	}
}

int main(int argc, char const *argv[])
{
    int d,n;
    cin >> d >> n;
    if (n != 100) {
        cout <<pow(100, d) * n << endl;
    } else (n == 100 && d == 0) {
        cout << n << endl;
    } else
    {
        cout << pow(100, d) * (n + 1);
    }
    
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:64:32: error: expected ';' before '{' token
   64 |     } else (n == 100 && d == 0) {
      |                                ^~
      |                                ;
a.cc:66:7: error: 'else' without a previous 'if'
   66 |     } else
      |       ^~~~
Language: Java

import java.util.*;

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


Compiler output:
Main.java:26: error: 'else' without 'if'
    else{
    ^
Main.java:31: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.*;

class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n;
    double n,ans;
    d = sc.nextInt();
    n = sc.nextInt();
    ans = Math.pow(100,d);
    if(d==0){
      System.out.println(n);
    }
    else{
      System.out.println(ans*n);
    }
    
  }
  
}


Compiler output:
Main.java:8: error: variable n is already defined in method main(String[])
    double n,ans;
           ^
Main.java:9: error: cannot find symbol
    d = sc.nextInt();
    ^
  symbol:   variable d
  location: class Main
Main.java:11: error: cannot find symbol
    ans = Math.pow(100,d);
                       ^
  symbol:   variable d
  location: class Main
Main.java:12: error: cannot find symbol
    if(d==0){
       ^
  symbol:   variable d
  location: class Main
4 errors
Language: Java

import java.util.*;

class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int d,n,ans;
    d = sc.nextInt();
    n = sc.nextInt();
    ans = Math.pow(100,d);
    if(d==0){
      System.out.println(n);
    }
    else{
      System.out.println(ans*n);
    }
    
  }
  
}


Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
    ans = Math.pow(100,d);
                  ^
1 error
Language: Java

import java.util.*;

class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int d,n;
    if(d==0){
      System.out.println(n);
    }
    else{
      System.out.println(100^d*n);
    }
    
  }
  
}

Compiler output:
Main.java:8: error: variable d might not have been initialized
    if(d==0){
       ^
Main.java:9: error: variable n might not have been initialized
      System.out.println(n);
                         ^
Main.java:12: error: variable n might not have been initialized
      System.out.println(100^d*n);
                               ^
3 errors
Language: C

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

int main(){
    int D, N;
    scanf("%d %d",&D, &N);

    int exc=(N-N%100)/100
    int ans=pow(100,D)*(N+exc);
    printf("%d\n",ans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: expected ',' or ';' before 'int'
    9 |     int ans=pow(100,D)*(N+exc);
      |     ^~~
main.c:10:19: error: 'ans' undeclared (first use in this function)
   10 |     printf("%d\n",ans);
      |                   ^~~
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
    int D, N;
    scanf("%d %d",&D, &N);

    printf("%d",(100**D)*N);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: invalid type argument of unary '*' (have 'int')
    7 |     printf("%d",(100**D)*N);
      |                      ^~
Language: C

#include<stdio.h>

int main(){
    int D, N;
    scanf("%d %d",D, N);

    printf("%d",(100**D)*N);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: invalid type argument of unary '*' (have 'int')
    7 |     printf("%d",(100**D)*N);
      |                      ^~
Language: C++

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

int main(){
  int D,N;
  cin>>D>>N;
  int a=1;
  for(int i=0; i<N; i++){
    a *= 100
  }
  cout<<a*N<<endl;
}

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

#include <iostream>
#include <cmath>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> D >> N;
      |   ^~~
      |   std::cin
In file included 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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << N * pow(100, D) << 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:9:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << N * pow(100, D) << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/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;


long long pow100(long long D) {
    long long ans = 1;
    for (int i = 0; i < D; i++) {
        ans *= 100;
    }
    return ans;
}

void solve(long long D, long long N){
    if (N == 100) {
        count << (pow100(D) * (N + 1)) << endl;
    } else {
        cout << (pow100(D) * N) << endl;
    }
}

int main(){
    long long D;
    scanf("%lld",&D);
    long long N;
    scanf("%lld",&N);
    solve(D, N);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int)':
a.cc:15:15: error: invalid operands of types '<unresolved overloaded function type>' and 'long long int' to binary 'operator<<'
   15 |         count << (pow100(D) * (N + 1)) << endl;
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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


long long pow100(long long D) {
    long long ans = 1;
    for (int i = 0; i < D; i++) {
        ans *= 100;
    }
    return ans;
}

void solve(long long D, long long N){
    if (N == 100) {
        count << (pow100(D) * (N + 1) << endl;
    } else {
        cout << (pow100(D) * N) << endl;
    }
}

int main(){
    long long D;
    scanf("%lld",&D);
    long long N;
    scanf("%lld",&N);
    solve(D, N);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int)':
a.cc:15:39: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |         count << (pow100(D) * (N + 1) << endl;
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:15:46: error: expected ')' before ';' token
   15 |         count << (pow100(D) * (N + 1) << endl;
      |                  ~                           ^
      |                                              )
Language: C

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

int main (){
    int d,n,a;
    scanf("%d %d",&d,&n);
    if(d ==0) a = 1;
    if(d ==1) a = 100;
    if(d ==2) a = 10000;

    if(n ==100) printf("%d",101*a);
        else prinf("%d",a*n);
}

Compiler output:
main.c: In function 'main':
main.c:12:14: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |         else prinf("%d",a*n);
      |              ^~~~~
      |              printf
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	int d,n;
  	scanf("%d%d",&d,&n);

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

  	printf("%d",n);
}


Compiler output:
main.c: In function 'main':
main.c:7:24: error: expected ';' before ')' token
    7 |         for(int i=0;i<d){
      |                        ^
      |                        ;
Language: C++

#include<iostram>
using namespace std;
int n,b;
int main()
{
  cin>>n>>b;
  while (n--)
    b*=100;
  cout<<b<<endl;
  return 0;
}

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

#include <iostream>
using namespace std;

int main()
{
    int d, n, i, k=1;

    cin >> d >> n;

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

    if(d = 0&&n = 100) {
        n = 101;
    }

    cout << k*n <<"\n";

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: lvalue required as left operand of assignment
   14 |     if(d = 0&&n = 100) {
      |            ~^~~
Language: C

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

int main(){
	long long a,b;
	cin>>a>>b;
	long long c=1;
	for(int i=0;i<a;i++){
		c*=100;
	}
	if(b==100){
		cout<<c*101<<endl;
	}
	else{
		cout<<c*b<<endl;
	}
}

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

#include <iostream>
using namespace std;

int main()
{
  int d, n;
  cin >> d >> n;
  int k = 1;
  for(int i = 0; i < d; i++){
    i *= 100;
  }
  if(n != 100){
    cout << n * i << endl;
  }
  else{
    cout << 101 * i << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'i' was not declared in this scope
   13 |     cout << n * i << endl;
      |                 ^
a.cc:16:19: error: 'i' was not declared in this scope
   16 |     cout << 101 * i << endl;
      |                   ^
Language: C

#include<stdio.h>

int main(){
  long long int D,N;
  scanf("%lld%lld", &D, &N);
  long long int i, t=1;
  for(i=0;i<D;++i) t *= 100;
  if(t == 0 && N == 100){ printf("%lld\n", 101);
  else if(N < 99){printf("%lld\n",t*N);}
  else if(N==100){printf("%lld\n",t*101);}
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected '}' before 'else'
    9 |   else if(N < 99){printf("%lld\n",t*N);}
      |   ^~~~
Language: C

#include<stdio.h>

int main(){
  long long int D,N;
  scanf("%lld%lld", &D, &N);
  long long int i, t=1;
  for(i=0;i<D;++i) t *= 100;
  if(t == 0 && N == 100){ printf("%d\n", 101);
  else if(N < 99){printf("%lld\n",t*N);}
  else if(N==100){printf("%lld\n",t*101);}
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected '}' before 'else'
    9 |   else if(N < 99){printf("%lld\n",t*N);}
      |   ^~~~
Language: C++

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

int main() {
int D,N;
int ans;
cin>>D>>N;
if(D!==0)
{
    for(int i=0;i<D;i++)
    {
        ans=100*D;
    }
    cout<<ans*N<<endl;
}
else 
{
    cout<<N<<endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected primary-expression before '=' token
    8 | if(D!==0)
      |       ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int D, N;
  int x = 1;
  cin >> D >> N;
  for (int i = 0; i < D; i++;)
    x = x * 100;
  cout << x * N << endl;
}

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

#include <iostream>
using namespace std;

int main(){
  int d, n;
  int ans = 1;
  cin >> d >> n;
  
  for ( int i = 0; i < d; i++ ){
    ans *= 100;
  }
  if ( n != 100 )
    ans *= n;
  else
    ans *= 101
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: expected ';' before 'cout'
   15 |     ans *= 101
      |               ^
      |               ;
   16 |   cout << ans << endl;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)  
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

int main(){

  int a,b;
  cin>>a>>b;
  ans = 1;
  REP(i,a){
    ans *= 100;
  }
  cout<<ans * b<<endl;


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |   ans = 1;
      |   ^~~
      |   abs
Language: C++

#include <iostream>

using  namespace std;

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

    cout << n;
    for (int = 0; i < d; i++) {
        cout << "00";
    }
    cout << '\n';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected unqualified-id before '=' token
   10 |     for (int = 0; i < d; i++) {
      |              ^
a.cc:10:13: error: expected ';' before '=' token
   10 |     for (int = 0; i < d; i++) {
      |             ^~
      |             ;
a.cc:10:14: error: expected primary-expression before '=' token
   10 |     for (int = 0; i < d; i++) {
      |              ^
a.cc:10:19: error: 'i' was not declared in this scope
   10 |     for (int = 0; i < d; i++) {
      |                   ^
a.cc:10:24: error: expected ')' before ';' token
   10 |     for (int = 0; i < d; i++) {
      |         ~              ^
      |                        )
a.cc:10:26: error: 'i' was not declared in this scope
   10 |     for (int = 0; i < d; i++) {
      |                          ^
Language: C++

#include<bits/stdc++.h>
#include<string>
using namespace std;
int d, n;
int main(){
  cin >> d >> n;
  int e = d*pow(10, d)
  cout << e*n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
    8 |   cout << e*n << endl;
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	int D,N;
	cin>>D>>N;
	if(D==0)cout<<N<<endl;
	if(D==1)cout<<N*100<<endl;
	if(D==2)cout<<N*10000<<endl;
	cout<<ANS<<endl;
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int d, n;
int main(){
  cin >> d >> n;
  if(d == 0) cout << n << endl;
  else if {
    int a = pow(100, d) * n;
    cout << a << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected '(' before '{' token
    7 |   else if {
      |           ^
      |           (
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <cstring>
#include <map>
#include <queue>
#include <cmath>
#include <complex> // complex<double> a(1.2 , 2.3);// real(): 1.2, imag()2.3
using namespace std;

#define MOD 1000000007
#define ll long long
#define ld long double
#define FOR(i,a,b) for(ll i=(ll)a;i<(ll)b;i++)
#define rep(i,n) FOR(i,0,n)
#define pb push_back
#define mp make_pair
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define rmsame(a) sort(all(a)),a.erase(unique(all(a)), a.end())
#define rmvector(a,b) rep(i,a.size())rep(j,b.size())if(a[i]==b[j]){a.erase(a.begin()+i);i--;break;}
#define pq_pair_tB priority_queue <pair<ll,ll>, vector<pair<ll,ll> > , greater<pair<ll,ll> > >
#define pq_pair_ts priority_queue <pair<ll,ll> > //第二成分の大きさが関係ない
template<typename X> bool exist(vector<X> vec, X item){return find(all(vec), item)!=vec.end();}
ll gcd(ll a, ll b){if(b==0)return a;return gcd(b,a%b);}
ll lcm(ll a, ll b){return a/gcd(a,b)*b;}

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

	ll N ;
	ll D;
	cin >> N >> D;
	if(D==100) D = 101
	cout << D*pow(100LL, N) << endl;



	//cout << fixed << setprecision(16) << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:27: error: expected ';' before 'cout'
   36 |         if(D==100) D = 101
      |                           ^
      |                           ;
   37 |         cout << D*pow(100LL, N) << endl;
      |         ~~~~
Language: C++

#include <iostream>
using namespace std;
int calc( int x){
  int ret = 0;
  while( x % 100 == 0){
    	x/=100;
    	++ret;
  }
  return ret;
}

int main(){
  int D,N;
  cin >> D >> N;
  int cet =0, val = 0;
  while( cent < N){
    ++ val;
    if (calc(val) == D) ++cent;
  }
  cout << val <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'cent' was not declared in this scope; did you mean 'cet'?
   16 |   while( cent < N){
      |          ^~~~
      |          cet
Language: C++

#include <iostream>

int calc( int x){
  int ret = 0;
  while( x % 100 == 0){
    	x/=100;
    	++ret;
  }
  return ret;
}

int main(){
  int D,N;
  cin >> D >> N;
  int cet =0, val = 0;
  while( cent < N){
    ++ val;
    if (calc(val) == D) ++cent;
  }
  cout << val <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |   cin >> D >> N;
      |   ^~~
      |   std::cin
In file included 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:16:10: error: 'cent' was not declared in this scope; did you mean 'cet'?
   16 |   while( cent < N){
      |          ^~~~
      |          cet
a.cc:20:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   cout << val <<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:20:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |   cout << val <<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/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 D,N;
  cin >> D >> N;
  int t;
  vector<int> num(3);
  for(int i=1;i<=1010000;i++){
    t=i;
    if(i%100==0 && i%10000!=0){
      num[1]++
    }
    else if(t%10000==0 && t%1000000!=0){
	num[2]++;
    }
    else if(t%100!=0)num[0]++;

    if(num[D]==N){
      cout << i << endl;
      return 0;
    }
  }
}
    


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

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

int main() {
  int D,N;
  cin >> D >> N;
  int num=0,sum;
  int t;
  vector<int> num(3);
  for(int i=0;i<1010000;i++){
    t=N;
    if(t%100==0){
      num[1]++;
      t/=100;
      if(t%100==0){
	num[2]++;
      }
    }else num[0]++;

    if(num[D]==N){
      cout << i << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: conflicting declaration 'std::vector<int> num'
    9 |   vector<int> num(3);
      |               ^~~
a.cc:7:7: note: previous declaration as 'int num'
    7 |   int num=0,sum;
      |       ^~~
a.cc:13:10: error: invalid types 'int[int]' for array subscript
   13 |       num[1]++;
      |          ^
a.cc:16:12: error: invalid types 'int[int]' for array subscript
   16 |         num[2]++;
      |            ^
a.cc:18:14: error: invalid types 'int[int]' for array subscript
   18 |     }else num[0]++;
      |              ^
a.cc:20:11: error: invalid types 'int[int]' for array subscript
   20 |     if(num[D]==N){
      |           ^
Language: C++

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

int main() {
  int D,N;
  cin >> D >> N;
  int num=0,sum;
  if(D==0) {
	if(N!=!100) {
	  cout << N << endl;
	  return 0;
	}
	else {
	  cout << 101 << endl;
	}
      }
  else {
      for(int i=1;i<=10000*N;i++) {
	if(N==100 && (i == 10000 || i== 1000000) continue;
	sum=0;
	int t=i;
        for(int j=0;j<D;j++) {
	  if(t%100!=0) break;
	  else {
	    sum++;
	    t/=100;
	  }

	  if(sum==D) num++;
	}
	if(num==N) {
	  cout << i << endl;
	  return 0;
	}
      }
    }
}
       


Compiler output:
a.cc: In function 'int main()':
a.cc:19:49: error: expected ';' before 'continue'
   19 |         if(N==100 && (i == 10000 || i== 1000000) continue;
      |                                                 ^~~~~~~~~
      |                                                 ;
a.cc:20:14: error: expected ')' before ';' token
   20 |         sum=0;
      |              ^
      |              )
a.cc:19:11: note: to match this '('
   19 |         if(N==100 && (i == 10000 || i== 1000000) continue;
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main() {
	int D, N;
	cin >> D >> N;
	int ans = 1;
	if (D == 1) {
		ans *= 100;
	}
	else if (D == 2) {
		ans *= 10000;
	}
	if (N == 100) {
		ans *= 101;
	}
	else {
		ans *= N;
	}
	cout << ans << endl;
	return 0;

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

import java.util.*;
import java.lang.*;

public class Main {
 public static void main(String args[]){
	
	Scanner sc = new Scanner(System.in);
	int D = sc.nextInt();
	int N = sc.nextInt();
	
	int a = (int)Math.pow(100,D);

  if (N ！= 100){
	System.out.println( a*N );

  }
 }
}

Compiler output:
Main.java:13: error: illegal character: '\uff01'
  if (N ?= 100){
        ^
1 error
Language: Java

import java.util.*;
import java.lang.*;

public class Main {
 public static void main(String args[]){
	
	Scanner sc = new Scanner(System.in);
	int D = sc.nextInt();
	int N = sc.nextInt();
	
	int a = (int)Math.pow(100,D);

  if (a*N ！= 100a){
	System.out.println( a*N );

  }
 }
}

Compiler output:
Main.java:13: error: illegal character: '\uff01'
  if (a*N ?= 100a){
          ^
Main.java:13: error: not a statement
  if (a*N ?= 100a){
                ^
Main.java:13: error: ';' expected
  if (a*N ?= 100a){
                 ^
3 errors
Language: Java

import java.util.*;
import java.lang.*;

public class Main {
 public static void main(String args[]){
	
	Scanner sc = new Scanner(System.in);
	int D = sc.nextInt();
	int N = sc.nextInt();
	
	int a = (int)Math.pow(100,D);

  if (a*N ！= 100^D){
	System.out.println( a*N );

  }
 }
}

Compiler output:
Main.java:13: error: illegal character: '\uff01'
  if (a*N ?= 100^D){
          ^
Main.java:13: error: not a statement
  if (a*N ?= 100^D){
                 ^
Main.java:13: error: ';' expected
  if (a*N ?= 100^D){
                  ^
3 errors
Language: Java

import java.lang.*;

public static void main(String args[]){
	
	Scanner sc = new Scanner(System.in);
	int D = sc.nextInt;
	int N = sc.nextInt;
	
	int a = Math.pow(100,D);
	System.out.println( a*N );


}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]){
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

mport java.util.Scanner;
public class Main {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int D = scanner.nextInt();
    int N = scanner.nextInt();

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <math.h>
#include <map>
#include <set>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define INF 1145141919
typedef long long int ll;
using namespace std;

int cal(int n){
    int ret=0;
    while(n%100==0){
        x /= 100;
        ret++;
    }

    return ret;
}

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

    int cnt=0, ans=0;
    while(cnt<N){
        ans++;
        if(cal(ans)==d){
            cnt++;
        }
    }

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int cal(int)':
a.cc:19:9: error: 'x' was not declared in this scope
   19 |         x /= 100;
      |         ^
Language: C++

#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <math.h>
#include <map>
#include <set>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define INF 1145141919
typedef long long int ll;
using namespace std;

int cal(int n)){
    int ret=0;
    while(n%100==0){
        x /= 100;
        ret++;
    }

    return ret;
}

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

    int cnt=0, ans=0;
    while(cnt<N){
        ans++;
        if(cal(ans)==d){
            cnt++;
        }
    }

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc:16:15: error: expected initializer before ')' token
   16 | int cal(int n)){
      |               ^
a.cc: In function 'int main()':
a.cc:33:12: error: 'cal' was not declared in this scope
   33 |         if(cal(ans)==d){
      |            ^~~
Language: C++

#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <math.h>
#include <map>
#include <set>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define INF 1145141919
typedef long long int ll;
using namespace std;

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

    int ans = INF, cnt2 = 0;

    FOR(n,1,1000000000){
        int cnt = 0;
        if(n%100==0){
            cnt++;
            if(n%10000==0){
                cnt++;
            }
        }

        if(cnt==d){
            cnt2++;
            if(cnt2 == j){
                cout << n << endl;
                break;
            }
        }

    }

    return 0;
}#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <math.h>
#include <map>
#include <set>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define INF 1145141919
typedef long long int ll;
using namespace std;

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

    int ans = INF, cnt2 = 0;

    FOR(n,1,1000000000){
        int cnt = 0;
        if(n%100==0){
            cnt++;
            if(n%10000==0){
                cnt++;
            }
        }

        if(cnt==d){
            cnt2++;
            if(cnt2 == j){
                cout << n << endl;
                break;
            }
        }

    }

    return 0;
}

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

#include<vector>
using namespace std;
int main(void)
{
    int d,n,z=1,ans;
    cin>>d>>n;
    if(d==0)
    ans=n;
    if(d>0){
        for(int i=1;i<=d;i++){
            z*=100;
        }
        ans=z*n;
    }
    cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>d>>n;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<vector>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<ans<<endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:16: error: 'endl' was not declared in this scope
   15 |     cout<<ans<<endl;
      |                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<vector>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C

#include<stdio.h>
int main()
{
    long long int d,n;
    scanf("%lld %lld",&d,&n);
    {
        long long int c=100,p=0,i;
        if(d==0 && n%100!=0)
        {
            printf("%lld\n",n);

        }
        if(d==0 && n%100==0)
        {
            printf("%lld\n",n+1);
        }
        else if(d==1)
        {
            p=n*100;
            printf("%lld\n",p);
        }
        else if(d==2)
        {
            p=n*10000;
            printf("%lld\n",p);
        }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <climits>
#include <sstream>

using namespace std;

int main(){
  int D, N
  long int ans;

  cin >> D >> N;

  if(D == 0){
    ans = N;
  }else if(D == 1){
    ans = N*100;
  }else{
    ans = N*10000;
  }

  cout << ans << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected initializer before 'long'
   12 |   long int ans;
      |   ^~~~
a.cc:14:15: error: 'N' was not declared in this scope
   14 |   cin >> D >> N;
      |               ^
a.cc:17:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     ans = N;
      |     ^~~
      |     abs
a.cc:19:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |     ans = N*100;
      |     ^~~
      |     abs
a.cc:21:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |     ans = N*10000;
      |     ^~~
      |     abs
a.cc:24:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int d,n,z=0,tn;
    cin>>d>>n;
    cout<<n*pow(100,d);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'pow' was not declared in this scope
    8 |     cout<<n*pow(100,d);
      |             ^~~