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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 
int main() {
    
    int d,n;
    cin>>d>>n;
  
  int pow;
  for(int i=0;i<100; i++){
  
  pow*=100
  
    
    if(d==0){
        
    cout<<n<<endl;
    }
    
    else{
        cout<<n*pow<<endl;
    }
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected ';' before 'if'
   14 |   pow*=100
      |           ^
      |           ;
......
   17 |     if(d==0){
      |     ~~     
a.cc:22:5: error: 'else' without a previous 'if'
   22 |     else{
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int D,X;
  cin >> D >> X;
  int ene=1;
  for (int i=0;i<D;i++){
    ene*=100;
  }
  if (X!-100){
    cout << ene*X << endl;
  }
  else {
    cout << ene*(X+1) << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected ')' before '!' token
   11 |   if (X!-100){
      |      ~ ^
      |        )
Language: C++

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

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

  ll x;
  if (d==0) x = 1;
  else if (d==1) x=100;
  else x=10000;
  cout<<x*n<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll d,n; cin>>d>>n;
      |   ^~
a.cc:6:16: error: 'd' was not declared in this scope
    6 |   ll d,n; cin>>d>>n;
      |                ^
a.cc:6:19: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   ll d,n; cin>>d>>n;
      |                   ^
      |                   yn
a.cc:8:5: error: expected ';' before 'x'
    8 |   ll x;
      |     ^~
      |     ;
a.cc:9:13: error: 'x' was not declared in this scope
    9 |   if (d==0) x = 1;
      |             ^
a.cc:10:18: error: 'x' was not declared in this scope
   10 |   else if (d==1) x=100;
      |                  ^
a.cc:11:8: error: 'x' was not declared in this scope
   11 |   else x=10000;
      |        ^
a.cc:12:9: error: 'x' was not declared in this scope
   12 |   cout<<x*n<<endl;
      |         ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <tuple>
#include <map>
#include <queue>
#include <set>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); i++)
#define mod 1000000007
#define fst first
#define pb push_back

int Wa(int x){
    int cnt = 0;
    while(x % 100 ==0){
        x /= 100;
        cnt++;
    }
    return cnt;
}

int main(){
    int D,N;
    cin >> D >> N;
    int ans = 0, cnt = 0;
    while(cnt < x){
        ++ans;
        if(Wa(ans) == D){
            ++cnt;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:17: error: 'x' was not declared in this scope
   29 |     while(cnt < x){
      |                 ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <tuple>
#include <map>
#include <queue>
#include <set>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); i++)
#define mod 1000000007
#define fst first
#define pb push_back

int main(){
    long long D,N;
    cin >> D >> N;
    for(int i = 0; i < 10000; i++){
        if(D == 0){
            cout << N＋1 << endl;
            return 0;
        }
        else if(D == 1){
            cout << N*100 << endl;
            return 0;
        }
        else{
            cout << N*10000 << endl;
            return 0;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:21: error: 'N\U0000ff0b1' was not declared in this scope
   21 |             cout << N＋1 << endl;
      |                     ^~~~
Language: C++


#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++)

// #include<bits/stdc++.h>

#define ALL(v) v.begin(), v.end()
typedef long long ll;

using namespace std;
int main() {

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


	int hund = 1;
	REP(i, d) {
		hund *= 100;
	}

	if (n == 100) n++;

	cout << n * hund << endl;
	return 0;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'cin' was not declared in this scope
   15 |         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 | 
a.cc:25:9: error: 'cout' was not declared in this scope
   25 |         cout << n * hund << endl;
      |         ^~~~
a.cc:25:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:29: error: 'endl' was not declared in this scope
   25 |         cout << n * hund << endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

#include <bits/stdc++.h>
using namespace std;
int INF = 1000000007;
 
int main(){
  int D, N;
  cin >> D >> N;
  if(D == 0){
    if(N != 100) cout << N << endl;
    else cout << 101 << endl;
  }
  else if(D == 1){
    if(N != 100) cout << N * 100 << endl;
    else cout << 10100 << endl;
  }
  else{
    if(N != 100) cout << N * 10000 << endl;
    else cout << 101 * 10000 << endl;
}

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

#include <iostream>
using namespace std;


int main() {
	int a,b ; cin >> a >> b ;
  	cout << pow(100,a)*b << endl;
  
}

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

#include <iostream>
using namespace std;

int main(void) {
  int D, N;
  int cnt = 0;
  cin >> D >> N;
  for(int x=1;;x++) {
    if(func(x) == D) {
      cnt++;
      if(cnt == N) {
        cout << x << endl;
        return 0;
      }
    }
  }
  return 0;
}

int func(int x) {
  if(x%100 != 0) {
    return 0;
  }
  return func(x/100)+1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'func' was not declared in this scope
    9 |     if(func(x) == D) {
      |        ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  int D, N;
  int cnt = 0;
  cin >> D >> N ;
  for(int x=1;;x++) {
    if(func(x) == D) {
      cnt++;
      if(cnt == N) {
        cout << x << endl;
        return 0;
      }
    }
  }
  return 0;
}

int func(int x) {
  if(x%100) {
    return 0;
  }
  return func(x/100)+1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'func' was not declared in this scope
    9 |     if(func(x) == D) {
      |        ^~~~
Language: C++

#include <iostream>

int main(int argc, char* argv[]) {
  int D, N;
  int res;
  cin >> D >> N ;
  if(D == 0) {
    res = N;
  } else if (D == 1) {
    res = N * 100;
  } else if (D == 2) {
    res = N * 10000;
  }
  cout << res << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << res << 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:14:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout << res << 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 <iostream>

int main(int argc, char* argv[]) {
  int D, N;
  int res;
  cin >> D >> N ;
  if(D == 0) {
    res = N;
  else if (D == 1) {
    res = N * 100;
  else if (D == 2) {
    res = N * 10000;
  }
  cout << res << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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: expected '}' before 'else'
    9 |   else if (D == 1) {
      |   ^~~~
a.cc:7:14: note: to match this '{'
    7 |   if(D == 0) {
      |              ^
a.cc:11:3: error: expected '}' before 'else'
   11 |   else if (D == 2) {
      |   ^~~~
a.cc:9:20: note: to match this '{'
    9 |   else if (D == 1) {
      |                    ^
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << res << 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:14:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout << res << 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 <iostream>

int main(int argc, char* argv[]) {
  int D, N;
  int res;
  cin >> D >> N ;
  if(D == 0) {
    res = N;
  else if (D == 1) {
    res = N * 100;
  else if (D == 2) {
    res = N * 10000;
  }
  cout << res;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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: expected '}' before 'else'
    9 |   else if (D == 1) {
      |   ^~~~
a.cc:7:14: note: to match this '{'
    7 |   if(D == 0) {
      |              ^
a.cc:11:3: error: expected '}' before 'else'
   11 |   else if (D == 2) {
      |   ^~~~
a.cc:9:20: note: to match this '{'
    9 |   else if (D == 1) {
      |                    ^
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << res;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

int main(int argc, char* argv[]) {
  cin >> D >> N ;
  if(D == 0) {
    res = N;
  else if (D == 1) {
    res = N * 100;
  else if (D == 2) {
    res = N * 10000;
  }
  cout << res;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:4:10: error: 'D' was not declared in this scope
    4 |   cin >> D >> N ;
      |          ^
a.cc:4:15: error: 'N' was not declared in this scope
    4 |   cin >> D >> N ;
      |               ^
a.cc:6:5: error: 'res' was not declared in this scope
    6 |     res = N;
      |     ^~~
a.cc:7:3: error: expected '}' before 'else'
    7 |   else if (D == 1) {
      |   ^~~~
a.cc:5:14: note: to match this '{'
    5 |   if(D == 0) {
      |              ^
a.cc:8:5: error: 'res' was not declared in this scope
    8 |     res = N * 100;
      |     ^~~
a.cc:9:3: error: expected '}' before 'else'
    9 |   else if (D == 2) {
      |   ^~~~
a.cc:7:20: note: to match this '{'
    7 |   else if (D == 1) {
      |                    ^
a.cc:10:5: error: 'res' was not declared in this scope
   10 |     res = N * 10000;
      |     ^~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << res;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:11: error: 'res' was not declared in this scope
   12 |   cout << res;
      |           ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
    int D,N;cin>>D>>N;
    int ans;
    ans=pow(100,D)*N;
    if(D==0&&N==100){
        cout<<101;
    }
    else if(D==1&&N==100){
        cout<<10001;
    }
    else if(D==2&&N=100){
        cout<<1000001;
    }
    else{
        cout<<ans;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: lvalue required as left operand of assignment
   13 |     else if(D==2&&N=100){
      |             ~~~~^~~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #inlcude <bits/stdc++.h>
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << p*n << endl;
      |   ^~~~
a.cc:14:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |   cout << p*n << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <bits/stdc++.h>
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
	int D, N,fav;
	D =0,1,2;
	scanf("%d %d",&D,&N);
	fav = math.pow(100,D)*N;
	printf("%d\n",fav);
	

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: 'math' undeclared (first use in this function)
    8 |         fav = math.pow(100,D)*N;
      |               ^~~~
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
	int D, N,fav;
	scanf("%d %d",&D,&N);
	if(D ==0){
		printf("%d",N);
	}
	else{
		result = N*100*D;
		printf("%d\n",fav);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: 'result' undeclared (first use in this function)
   11 |                 result = N*100*D;
      |                 ^~~~~~
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main()
{
    int N,D,i=0,temp;

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

    if(D==0){
        printf("%d\n",N);
    } else if(D==2){
         if(N==100){
            printf("%d\n",(101)*10000);
        }else{printf("%d\n",N*10000);}

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



    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:20:10: error: 'a' undeclared (first use in this function)
   20 |         }a
      |          ^
main.c:20:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:11: error: expected ';' before 'else'
   20 |         }a
      |           ^
      |           ;
   21 |         else{
      |         ~~~~
Language: C

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

int main()
{
    int N,D,i=0,temp;

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

if(d==0){
    printf("%d",N);
}
        printf("%d",(N^D)*100);



    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:4: error: 'd' undeclared (first use in this function)
   10 | if(d==0){
      |    ^
main.c:10:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <math>

using namespace std;

int main(){
	int d,n;
	cin>>d>>n;
	if(d!=0||d!=1||d!=2)
		return 0;
	else 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:2:10: fatal error: math: No such file or directory
    2 | #include <math>
      |          ^~~~~~
compilation terminated.
Language: C

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

int main()
{
    int N,D,i=0,temp;
        
    scanf("%d%d",&D,&N);
    
    while(i<=D){
        temp=((N^D)*100)/100;
        print("%d",i);
        i++;
    }
    
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |         print("%d",i);
      |         ^~~~~
      |         printf
Language: C++

#include <iostream>
#include <math>

using namespace std;

int main(){
	int d,n;
	cin>>d>>n;
	if(d!=0||d!=1||d!=2)
		return 0;
	else if(d==0)
		cout<<n;

	else
		cout<<n*(pow(100,d))<<endl;
		
	


return 0;
}

Compiler output:
a.cc:2:10: fatal error: math: No such file or directory
    2 | #include <math>
      |          ^~~~~~
compilation terminated.
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int d = sc.nextInt();
      int n = sc.nextInt();
      int x = (int) Math.pow(100,d);
      if(n <= 99)
      System.out.println(x*n);
      else
        System.out.println(x*101)
    }
}


Compiler output:
Main.java:11: error: ';' expected
        System.out.println(x*101)
                                 ^
1 error
Language: Java

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


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

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = nerw Scanner(System.in);
      int d = sc.nextInt();
      int n = sc.nextInt();
      int x = (int)n*Math.pow(100,d);
      System.out.println(x);
    }
}

Compiler output:
Main.java:4: error: ';' expected
    	Scanner sc = nerw Scanner(System.in);
    	                 ^
1 error
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iomanip>
#include <random>
#include <cstdio>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int) n; i++)

// 100で何回割り切れるかを返す
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 cnt = 0, x = 0;
	while(cnt < n) {
		x++;
		if(calc(x) == d) cnt++;
	}
	cout << val << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:17: error: 'val' was not declared in this scope
   30 |         cout << val << '\n';
      |                 ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:5: error: expected declaration or statement at end of input
   14 |     return 0;
      |     ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:5: error: expected declaration or statement at end of input
   13 |     return 0;
      |     ^~~~~~
Language: C++

int main(){
  int D,N;
  cin>>D>>N;
  if(N==100){
    cout<<101*pow(100,D)<<endl;
  }else{
    cout<<N*pow(100,D)<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>D>>N;
      |   ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout<<101*pow(100,D)<<endl;
      |     ^~~~
a.cc:5:15: error: 'pow' was not declared in this scope
    5 |     cout<<101*pow(100,D)<<endl;
      |               ^~~
a.cc:5:27: error: 'endl' was not declared in this scope
    5 |     cout<<101*pow(100,D)<<endl;
      |                           ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<N*pow(100,D)<<endl;
      |     ^~~~
a.cc:7:13: error: 'pow' was not declared in this scope
    7 |     cout<<N*pow(100,D)<<endl;
      |             ^~~
a.cc:7:25: error: 'endl' was not declared in this scope
    7 |     cout<<N*pow(100,D)<<endl;
      |                         ^~~~
Language: C++

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

int main(){

    int D, N;
    cin >> D >> N;
    
    int ans = 0;
    
    if(N <= 99){
        ans = pow(100, D) * N;
    }
    if(N == 100)
        ans = pow(100, D) * 101;
    }
    
    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc:19:5: error: 'cout' does not name a type
   19 |     cout << ans << endl;
      |     ^~~~
a.cc:21:5: error: expected unqualified-id before 'return'
   21 |     return 0;
      |     ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

// https://atcoder.jp/contests/dp/tasks/dp_s

#include <iostream>
#include <vector>
#include <array>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <algorithm>
#include <iomanip>

using namespace std;


int main (int argc, char* argv[]) {
	int d, n;
	cin >> d >> n;

	long long base = pow(100, d);
	cout << base * n << endl;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:19:26: error: 'pow' was not declared in this scope
   19 |         long long base = pow(100, d);
      |                          ^~~
Language: C++

l = [int(i) for i in input().split()]
d = l[0]
n = l[1]

if d == 0:
	if n != 100:
		print(n)
	else:
		print(n+1)
else:
	if n != 100:
		print((100**d)*n)
	else:
		print((100**d)*(n+1))

Compiler output:
a.cc:1:1: error: 'l' does not name a type
    1 | l = [int(i) for i in input().split()]
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int d,n;cin>>d>>n;
  cout <<n;
  for(int i = 0; d > i; i++){
    cout << 00;
  }
  cout << endl;

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

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i,n) for (int i=(int)(n)-1; i>=0; --i)
#define debug(x) cerr << #x << " = " << x << "\n"
#define debugv(x) rep(i, x.size()) cerr << x[i] << (i == x.size() - 1 ? "\n" : " ")
#define all(x) x.begin(),x.end()
#define int long long
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int INF = ((1LL << 30) + (1LL << 29));
const int MOD = 1000000007;

//=============================
int N,M,K;
string S,T;
vector<int> A;
vector<int> B;
//=============================
void input()
{
    cin>> N>>M;
}
//=============================
void func(){}
//=============================
void solve()
{
    cout<<M;
    cout<<(N==0? "" : (N==1 ? "00" : "0000")<<endl;
    
}
//=============================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:30:45: error: invalid operands of types 'const char*' and '<unresolved overloaded function type>' to binary 'operator<<'
   30 |     cout<<(N==0? "" : (N==1 ? "00" : "0000")<<endl;
      |                       ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:30:51: error: expected ')' before ';' token
   30 |     cout<<(N==0? "" : (N==1 ? "00" : "0000")<<endl;
      |           ~                                       ^
      |                                                   )
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i,n) for (int i=(int)(n)-1; i>=0; --i)
#define debug(x) cerr << #x << " = " << x << "\n"
#define debugv(x) rep(i, x.size()) cerr << x[i] << (i == x.size() - 1 ? "\n" : " ")
#define all(x) x.begin(),x.end()
#define int long long
typedef long long ll;
typedef pair<int, int> pii;
using namespace std;
const int INF = ((1LL << 30) + (1LL << 29));
const int MOD = 1000000007;

//=============================
int N,M,K;
string S,T;
vector<int> A;
vector<int> B;
//=============================
void input()
{
    cin>> N>>M;
}
//=============================
void func(){}
//=============================
void solve()
{
    cout<<pow(100,N)*M<<endl;
}
//=============================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc:9:9: error: 'pair' does not name a type
    9 | typedef pair<int, int> pii;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i,n) for (int i=(int)(n)-1; i>=0; --i)
#define debug(x) cerr << #x << " = " << x << "\n"
#define debugv(x) rep(i, x.size()) cerr << x[i] << (i == x.size() - 1 ? "\n" : " ")
#define all(x) x.begin(),x.end()
#define int long long
typedef long long ll;
typedef pair<int, int> pii;
using namespace std;
const int INF = ((1LL << 30) + (1LL << 29));
const int MOD = 1000000007;

//=============================
int N,M,K;
string S,T;
vector<int> A;
vector<int> B;
//=============================
void input()
{
    int N>>M;
}
//=============================
void func(){}
//=============================
void solve()
{
    cout<<pow(100,N)*M<<endl;
}
//=============================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc:9:9: error: 'pair' does not name a type
    9 | typedef pair<int, int> pii;
      |         ^~~~
a.cc: In function 'void input()':
a.cc:22:10: error: expected initializer before '>>' token
   22 |     int N>>M;
      |          ^~
Language: Java

class Main {
	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);
		int D = sc.nextInt();
		int N = sc.nextInt();
		int ans = 0;
		sc.close();
		if(D==0) {
			ans = (N!=100)?N:101;			
		}
		else {
			int tmp = 1;
			for(int i=0;i<D;i++) {
				tmp *=100;
				ans = (N!=100)?tmp*N:tmp*(N+1);
			}
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  ans = pow(100, a) * b;
  cout << ans << endl;
}

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

#include <iostream>
#include <vector>
#include <cstring>
#include <algorithm> // sort

#define REP(i, n) for (long long i = 0; i < (n); i++) 
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
using namespace std;

//10000は100で2回割り切れてしまうので、D==1のときはいれない
int main(){
  ll D,N;
  cin >> D >> N;

  ll res = 1;
  REP(i,D)
  {
    res *= 100;
  }

  cout << (N - (N-1)/99)) *res << endl;

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: expected ';' before ')' token
   23 |   cout << (N - (N-1)/99)) *res << endl;
      |                         ^
      |                         ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     else cout<n*10000<<endl;
      |               ~~~~~~~^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'N' was not declared in this scope
    8 |                 N *= 100;
      |                 ^
a.cc:10:17: error: 'N' was not declared in this scope
   10 |         cout << N << endl;
      |                 ^
Language: C++

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

int main(){
    int n,d;
    cin>>d>>n;
    cout<<(n%100!=0?n*pow(100,d):(n+n/100)*pow(100,d)<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:54: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout<<(n%100!=0?n*pow(100,d):(n+n/100)*pow(100,d)<<endl;
      |                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:7:60: error: expected ')' before ';' token
    7 |     cout<<(n%100!=0?n*pow(100,d):(n+n/100)*pow(100,d)<<endl;
      |           ~                                                ^
      |                                                            )
Language: C++

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

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

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

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

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |             return;
      |             ^~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm> // sort
#include <map> // pair
#include <numeric> // accumulate(begin,end,初期値)

typedef long long ll;
using namespace std;

#define FALSE printf("false\n");
#define TRUE printf("true\n");
#define all(x) (x).begin(),(x).end()
#define print(x) cout<<x<<endl;
#define rep(i,n) for(ll i = 0;i < n;++i)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define SUM(vec) accumulate(all(vec),0);

const ll INF = 1e9+7;

// 各桁の和
template<typename T>
T digit(T num){
  T sum = 0;
  while(num){
    sum += num % 10;
    num /= 10;
  }
  return sum;
}

template<typename T>T gcd(T a,T b){
  if(b == 0)
    return a;
  return gcd(b,a%b);
}
template<typename T>T lcm(T a, T b){
  T g = gcd(a,b);
  return a/g*b; 
}

template<typename T>T power(T a,T b){
  T tmp = 1;
  rep(i,b){
    tmp *= a;
  }
  return tmp;
}

int main(){
  ll d,n;cin>>d>>n;
  ll tmp = power(100,d);

  ll ans = tmp * n;
  print(ans)
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:54:17: error: no matching function for call to 'power(int, ll&)'
   54 |   ll tmp = power(100,d);
      |            ~~~~~^~~~~~~
a.cc:44:23: note: candidate: 'template<class T> T power(T, T)'
   44 | template<typename T>T power(T a,T b){
      |                       ^~~~~
a.cc:44:23: note:   template argument deduction/substitution failed:
a.cc:54:17: note:   deduced conflicting types for parameter 'T' ('int' and 'long long int')
   54 |   ll tmp = power(100,d);
      |            ~~~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int D,N;cin>>D>>N;
  int T=1*pow(100,D);
  if(N!=100)cout<<N*T<<endl;
  else cout<<101*T<<endl;;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'pow' was not declared in this scope
    6 |   int T=1*pow(100,D);
      |           ^~~
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:11: error: expected ';' before '}' token
    7 |   return 0
      |           ^
      |           ;
    8 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std ;

#define sz(v) (int)v.size()
#define ll long long
#define all(v)  v.begin() , v.end()
#define rall(v)  v.rbegin() , v.rend()
#define pf push_front
#define pb push_back
#define fast FastInputOutput() ;
#define Clear( container , value ) memset( container , value , sizeof container )
#define PI acos( -1.0 )
#define forn( t , v , be , n ) for( t v = be ; v < n ; v++ )
#define fore( x , j ) for( auto x : j )
#define se second
#define fr first
//#define c_b fflush(stdin);

const ll Long_max = numeric_limits < ll > :: max() ;
const int Int_max = numeric_limits < int > :: max() ;

void File_input( string pathIn ) {
    freopen( pathIn.c_str(), "r", stdin ) ;
}

void File_output( string pathOut ) {
    freopen( pathOut.c_str(), "w", stdout ) ;
}

int msg() {
    srand( time( 0 ) ) ;
    vector < string > st = {
        "Wish everyone high ratings!",
        "Good luck!",
        "Have fun!",
        "Please, read all the problems!",
        "Go Go fight!"
    } ;
    cerr << st[ rand() % sz( st ) ] ;
    return 0 ;
}


void FastInputOutput() {
    ios_base :: sync_with_stdio( 0 ) ;
    cin.tie( 0 ) ;
    cout.tie( 0 ) ;
}

ll len , n ;

int main(){

   cin >> len >> n ;
   ll init ;
   if( len == 0 ){
     init = 1 ;
   }

   if( len == 1 ){
     init = 100 ;
   }

   if( len == 2 ){
     init = 10000 ;
   }

   cout << step * n ;

   return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:69:12: error: 'step' was not declared in this scope; did you mean 'strsep'?
   69 |    cout << step * n ;
      |            ^~~~
      |            strsep
Language: C++

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

int func(int x){
  if(x%100 != 0) return 0;
  return func(x/100) + 1
}

int main(){
  int D, N;
  cin >> D >> N;
  int cnt = 0;
  for(int i=1;;i++){
    if(func(i) == D){
      cnt++;
      if(cnt == N){
        cout << i << endl;
      }
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int func(int)':
a.cc:8:25: error: expected ';' before '}' token
    8 |   return func(x/100) + 1
      |                         ^
      |                         ;
    9 | }
      | ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'll' was not declared in this scope
   10 |   ll a = D*N
      |   ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'pow' is not a member of 'std'
    7 |   D = std::pow(100, D);
      |            ^~~
Language: C++

#include<bits/stdc++.h>
int main(){
    int n;string s;
  cin>>n>>s;
  cout<<s;
  for(int i=0;i<n;i++)
    cout<<"00";
  cout<<endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: 'string' was not declared in this scope
    3 |     int n;string s;
      |           ^~~~~~
a.cc:3:11: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>n>>s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:11: error: 's' was not declared in this scope
    4 |   cin>>n>>s;
      |           ^
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<s;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:9: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<endl;
      |         ^~~~
      |         std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ';' before ':' token
    9 |       N ++:
      |           ^
      |           ;
Language: C++

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

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

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<cstdio>
#include<cmath>
#include<numeric>
#include<queue>
#include<stack>
#include<cstring>
#include<limits>
#define rep(i,a) for(int i=(int)0;i<(int)a;++i)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
using ll=long long;
static const ll mod = 1e9 + 7;
static const ll INF = 1LL << 50;
using namespace std;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |   if(d==0)ans=1;
      |           ^~~
      |           abs
a.cc:28:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |   else if(d==1)ans=100;
      |                ^~~
      |                abs
a.cc:29:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |   else ans=10000;
      |        ^~~
      |        abs
a.cc:30:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |   cout<<ans*n<<endl;
      |         ^~~
      |         abs
Language: Java

import java.util.*;
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) System.out.println(n);
        else if(d==1) System.out.println(n*100);
        else Systme.out.println(n*10000);
    }
}

Compiler output:
Main.java:9: error: package Systme does not exist
        else Systme.out.println(n*10000);
                   ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'm' was not declared in this scope
    7 |         cin>>d>>m;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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


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

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

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

 int main(){
   int D, N;
   cin >> D >> N;
   int x;
   if(D == 0)  x = 1;
   else if(D == 1) x = 100;
   else if(D == 2) x = 10000;
   int ans;
   if(N < 100)ans = x * N;
   else(N == 100) ans = x * 101;
   print(ans); 
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:42:18: error: expected ';' before 'ans'
   42 |    else(N == 100) ans = x * 101;
      |                  ^~~~
      |                  ;
Language: C++

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

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

 int main(){
   int D, N;
   cin >> D >> N;
   int x;
   if(D == 0)  x = 1;
   else if(D == 1) x = 100;
   else if(D == 2) x = 10000;
   if(N < 100)int ans = x * N;
   else(N == 100) int ans = x * 101;
   print(ans); 
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:41:18: error: expected ';' before 'int'
   41 |    else(N == 100) int ans = x * 101;
      |                  ^~~~
      |                  ;
a.cc:42:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   42 |    print(ans);
      |          ^~~
a.cc:10:26: note: in definition of macro 'print'
   10 | #define print(x) cout << x << endl
      |                          ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <tuple>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
  int d,n;
  cin >> d >> n;
  int step = pow(100,d);
  int i = step;
  int cnt = 0;
  
  while(true){
    if(d == 0 && i%100 != 0){
      cnt++;
    }else if(d == 1 && i % 100 == 0 && i%10000 != 0){
      cnt++;
    }else if(d == 2 && i % 10000 == 0) i%1000000 != 0{
      cnt++;
    }
    if(cnt == n ){
      cout << cnt * step << endl;
      return 0;
    }
    i+=step;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:22:54: error: expected ';' before '{' token
   22 |     }else if(d == 2 && i % 10000 == 0) i%1000000 != 0{
      |                                                      ^
      |                                                      ;
Language: C++

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

int main() {
	int d, n;
    cin >> d >> n;
    d *= 2;
    if (n == 100)
    	n++;

    cout (
    	d ? n * pow(10, d) : n
    ) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (__gnu_cxx::__promote<double>::__type)'
   12 |     cout (
      |     ~~~~~^
   13 |         d ? n * pow(10, d) : n
      |         ~~~~~~~~~~~~~~~~~~~~~~
   14 |     ) << endl;
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int d, n;
  cin >> d >> n;
  if (d == 0) {
  	if (n == 100)
  		cout << n+1 << endl;
    cout << n << endl;
    return 0;
  }

  if (n == 100) {
  	cout << (n+1) * pow(100, d) << endl;
  } else {
  	cout << n * pow(100, d) << endl;
  }
}

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected '(' before '{' token
   10 |   } else if {
      |             ^
      |             (
a.cc:12:5: error: 'else' without a previous 'if'
   12 |   } else {
      |     ^~~~
Language: C++

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

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

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

    cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:28: error: expected ';' before '}' token
   28 |             cout << 1010000
      |                            ^
      |                            ;
   29 |         }
      |         ~