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

#include <bits/stdc++.h>


using namespace std;
typedef long long unsigned int ll;

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

class B1 {
public:
void solve(std::istream& cin, std::ostream& cout) {
    ll a;
    ll i=0;
    ll ans = 0;
    //string ans = "";
    cin >> a;
    ll mon = 100;
    while(mon < a){
        i++;
        mon *= 1.01;
//        if(mon >= a){
//            ans = i;
//            break;
//        }
    }
    ans = i;
    cout << ans << endl;
}
};


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

long long main() {
  int X;
  cin >> X;
  double A = 100;
  
  for(int i = 0;;i++){
    A*1.01
  	if (A >= X) {
      break;
    }
    cout << i << endl;
  }
  
}


Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'if'
   10 |     A*1.01
      |           ^
      |           ;
   11 |         if (A >= X) {
      |         ~~
Language: C++

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

int main() {
  int X;
  cin >> X;
  double A = 100;
  
  for(int i = 0;true;i++){
    A*1.01
  	if (A >= X) {
      break;
    }
    cout << i << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'if'
   10 |     A*1.01
      |           ^
      |           ;
   11 |         if (A >= X) {
      |         ~~
Language: C++

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

int main() {
  int X;
  cin >> X;
  double A = 100;
  
  for(int i = 0;;i++){
    A*1.01
  	if (A >= X) {
      break;
    }
    cout << i << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'if'
   10 |     A*1.01
      |           ^
      |           ;
   11 |         if (A >= X) {
      |         ~~
Language: C++

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

long long main() {
  int X;
  cin >> X;
  double A = 100;
  
  for(int i = 0;A*0.01;i++){
  	if (A >= X) {
      break;
    }
    cout << i << endl;
  }
  
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

Takahashi has a deposit of 
100
 yen (the currency of Japan) in AtCoder Bank.

The bank pays an annual interest rate of 
1
 % compounded annually. (A fraction of less than one yen is discarded.)

Assuming that nothing other than the interest affects Takahashi's balance, in how many years does the balance reach 
X
 yen or above for the first time?

Compiler output:
a.cc:9:64: warning: missing terminating ' character
    9 | Assuming that nothing other than the interest affects Takahashi's balance, in how many years does the balance reach
      |                                                                ^
a.cc:9:64: error: missing terminating ' character
    9 | Assuming that nothing other than the interest affects Takahashi's balance, in how many years does the balance reach
      |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
a.cc:1:1: error: 'Takahashi' does not name a type
    1 | Takahashi has a deposit of
      | ^~~~~~~~~
Language: Java

package collection;
import java.util.*;
public class greateroftwo {
	
	public static void main(String[]args)
	{
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter the number you want");
		int A = sc.nextInt();
		int B = sc.nextInt();
      	int C = sc.nextInt();
      System.out.println("The number of days is");
      System.out.println(B-A);
    }
}

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

package collection;
import java.util.*;
public class greateroftwo {
	
	public static void main(String[]args)
	{
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter the number you want");
		int A = sc.nextInt();
		int B = sc.nextInt();
      	int C = sc.nextInt();
      System.out.println("The number of days is");
      System.out.println(B-A);
      
          

Compiler output:
Main.java:13: error: reached end of file while parsing
      System.out.println(B-A);
                              ^
1 error
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<math.h>
#include<bitset>
#include <numeric>
using namespace std;
using ll=long long;
using ld=long double;
using pint=pair<int,int>;
using pll=pair<ll,ll>;
#define LONG_INF 9223372036854775807
#define INF 1000000000LL
#define EPS 1e-10
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define dump(a) rep(d,a.size()){cout<<a[d];if(d!=a.size()-1)cout<<" ";else cout<<endl;}
#define all(v) v.begin(),v.end()
#define pb push_back

#define INT 1.01

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

    int64_t X; //intにすると大幅に遅くなる（2ms -> 2005ms）
    int64_t ret = 0, v = 100;

    cin >> X;

    

    
    int ret;
    while(true){
        ret++;
        v *= INF;
        if(X<=v) break;
    }
    cout << ret << endl;
    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:9: error: conflicting declaration 'int ret'
   38 |     int ret;
      |         ^~~
a.cc:31:13: note: previous declaration as 'int64_t ret'
   31 |     int64_t ret = 0, v = 100;
      |             ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll; // int -> ll

int main(){
    ll sum = 100;
    ll year=0;
    ll x;
    cin >> x;
    for(ll i=0; sum<x; i++) {
        sum = sum * 1.01 / 1
        year++;
    }
    cout << year << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected ';' before 'year'
   11 |         sum = sum * 1.01 / 1
      |                             ^
      |                             ;
   12 |         year++;
      |         ~~~~
Language: Java

import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int a=s.nextInt();int b=100;int c=0;while(true){c++;b=(int)Math.floor(b+b/100);if(b>=a)break;}System.out.println(c);}}


Compiler output:
Main.java:1: error: variable a is already defined in method main(String[])
import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int a=s.nextInt();int b=100;int c=0;while(true){c++;b=(int)Math.floor(b+b/100);if(b>=a)break;}System.out.println(c);}}
                                                                                                             ^
1 error
Language: C

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

#define ASC(vec) vec.begin(), vec.end()    // 昇順ソート 例：sort(ASC(vec));
#define DESC(vec) vec.rbegin(), vec.rend() // 降順ソート 例：sort(DESC(vec));
#define rep(i, n) for (int i = 0; i < (n); i++)
#define Rep(i, n) for (int i = 1; i < n; i++)
#define REP(i, vec) for (auto i = vec.begin(); i != vec.end(); ++i)

const int       mod = 1000000007;
const int       inf = (1 << 21);
const long long INF = 1LL << 60;

using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
using vd = vector<double>;
using vb = vector<bool>;
using vl = vector<ll>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
using vvb = vector<vector<bool>>;
using vii = vector<pair<int, int>>;
using vll = vector<pair<ll, ll>>;

template<class T>
inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T>
inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T>
T GCD(T a, T b) { if (b == 0) return a; else return GCD(b, a % b); }
template<class T>
T LCM(T a, T b) { return a / GCD(a, b) * b; }

constexpr array<int, 9> dx = { 0, 1, 0, -1, -1, 1, 1, -1, 0 };
constexpr array<int, 9> dy = { 1, 0, -1, 0, 1, 1, -1, -1, 0 };

// ──────────────────────────────────────────────────────────────────

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

	ll m = 100, cnt = 0;
	while (m < x) {
		m += m / 100;
		cnt++;
	}
	cout << cnt << 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 <bits/stdc++.h>
using namespace std;
int main()
{
    int x;
    cin>>x;
    P=100;
    time=0;
    while(P<x)
    {
      P=P+P/100;
      time++;
    }cout<<time;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'P' was not declared in this scope
    7 |     P=100;
      |     ^
a.cc:8:9: error: assignment of function 'time_t time(time_t*)'
    8 |     time=0;
      |     ~~~~^~
a.cc:12:7: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith]
   12 |       time++;
      |       ^~~~
a.cc:12:11: error: lvalue required as increment operand
   12 |       time++;
      |           ^~
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        Long X = scanner.nextLong();
        Long i = 100L;
        int count = 0;
        while(i < X;){
            count += 1;
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:9: error: ')' expected
        while(i < X;){
                   ^
Main.java:9: error: illegal start of expression
        while(i < X;){
                    ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        long X = (long)scanner.nextInt();
        int i = 0;
        int count = 0;
        for(i = 100; i <= X;){
            i += i/100;
            i = Math.floor(i);
            count += 1;
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            i = Math.floor(i);
                          ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int X = scanner.nextInt();
        int i = 0;
        int count = 0;
        for(i = 100; i <= X;){
            i += i/100;
            i = Math.floor(i);
            count += 1;
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            i = Math.floor(i);
                          ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int X = scanner.nextInt();
        double i = 0;
        int result = 0;
        int count = 0;
        for(i = 100; i <= X; i++){
            i -=1;
            i = i * 1.01;
            result = Math.floor(i);
            count += 1;
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:13: error: incompatible types: possible lossy conversion from double to int
            result = Math.floor(i);
                               ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int X = scanner.nextInt();
        int i = 0;
        double count = 0;
        for(i = 100; i <= X; i++){
            i -=1;
            i = i * 1.01;
            i = Math.floor(i);
            count += 1;
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            i = i * 1.01;
                  ^
Main.java:12: error: incompatible types: possible lossy conversion from double to int
            i = Math.floor(i);
                          ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int X = scanner.nextInt();
        double i = 0;
        int count = 0;
        for(i = 100; i <= X; i * 1.01){
            count += 1;
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:9: error: not a statement
        for(i = 100; i <= X; i * 1.01){
                               ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int X = scanner.nextInt();
        int i = 0;
        for(i = 100; i <= X; i++){
            i = i * 1.01;
        }

        System.out.println(i);
    }
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
            i = i * 1.01;
                  ^
1 error
Language: C

#include <stdio.h>

int main()
{
  long int x;
  int ip ci;
  scanf("%d",&x);
  
  while(x <= ip){
  	ci = ip / 100;
  	ip += ci;
  }
  
  printf("%d",ip);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ci'
    6 |   int ip ci;
      |          ^~
main.c:6:10: error: 'ci' undeclared (first use in this function)
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:14: error: 'ip' undeclared (first use in this function)
    9 |   while(x <= ip){
      |              ^~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    Long price = 100;
    int year = 0;
    while(price<N){
      price += price/100;
      year++;
    }
    System.out.print(year);
  }
}


Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to Long
    Long price = 100;
                 ^
1 error
Language: C++

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

int main(){
    int X;
    int a=0;
    int b=100;
    cin>>X;
   for(i=0;b<=X;i++){
       b*=1.01;
       a++;
   }
cout<<a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |    for(i=0;b<=X;i++){
      |        ^
Language: C++

#include <iostream>
#include<string>
#include<cmath>
#include<ciso646>
#include<cstring>
#include<iomanip>


using namespace std;
int main()
{/*二日目*/
	long  x;cin >> x;
	int y = 100;
	bool less= true;
	int i = 0;
	while(less) {
		y += y / 100;
		i++;
		if (y >= x)
			less = false;
	}cout << i;

	

	

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: expected '}' at end of input
   21 |         }cout << i;
      |                    ^
a.cc:11:1: note: to match this '{'
   11 | {/*二日目*/
      | ^
Language: Java

import java.util.*;
class Main{
public static void main(String[]args){
int i=1;
  long a=101;
  long po=sc.nextLong();
  while(a<po){
    a*=a/101;
    i++;
  }System.out.println(a);
}
}

Compiler output:
Main.java:6: error: cannot find symbol
  long po=sc.nextLong();
          ^
  symbol:   variable sc
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
 
int main() {
  int64_t x;
  cin >> x;
  int64_t s = 100;
  rep (i,3761) {
    s  = s * 1.01
    if (s >= x) {
    cout << i + 1 << endl;
      break;
    }
    
  }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'if'
   10 |     s  = s * 1.01
      |                  ^
      |                  ;
   11 |     if (s >= x) {
      |     ~~
Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
 
int main() {
  int64_t x;
  cin >> x;
  int64_t s = 100;
  rep (i,3761) {
    s  = s * 101 / 100 + 0.5;
    if (s > 1000000000000000000) {
    cout << i + 1 << endl;
      bresk;
    }
    
  }
  
  
     
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'bresk' was not declared in this scope; did you mean 'brk'?
   14 |       bresk;
      |       ^~~~~
      |       brk
Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
 
int main() {
  int64_t x;
  cin >> x;
  int64_t s = 100;
  rep (i,3761) {
    s *= 1.01;
    if (s > 1000000000000000000) {
    cout << i + 1 << endl;
      bresk;
    }
    
  }
  
  
     
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'bresk' was not declared in this scope; did you mean 'brk'?
   14 |       bresk;
      |       ^~~~~
      |       brk
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
 int a;
  cin >> a;
 int b = 100;
  int i = 0;
  while(a>b){
    b += B/100;
    i++;
  }
  cout << i << endl;
}


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

#include <stdio.h>

int main(void) {
	long long x;
	scanf("%lld", &x);
	long long a = 100;
	int year = 0;
	while (a < x) {
		 a = long long(a * 1.01);
		year = year + 1;
	}
	printf("%d", year);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected expression before 'long'
    9 |                  a = long long(a * 1.01);
      |                      ^~~~
Language: C

#include <stdio.h>

int main(void) {
	long x;
	scanf("%ld", &x);
	long a = 100;
	int year = 0;
	while (a < x) {
		 a = long(a * 1.01);
		year = year + 1;
	}
	printf("%d", year);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected expression before 'long'
    9 |                  a = long(a * 1.01);
      |                      ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
int main()
{
    long long X;
    cin >> X;
    long long P = 100, step = 0;
    while(P < X)
	{
       P += P / 100;
       step++;
    }
    cout << step << endl;
    return 0;
}

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 <bits/stdc++.h>
using namespace std;
int main()、
{
    long long X;
    cin >> X;
    long long P = 100, step = 0;
    while(P < X)
	{
       P += P / 100;
       step++;
    }
    cout << step << endl;
    return 0;
}

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 <bits/stdc++.h>
using namespace std;
int main()
{
	long long a;
	cin>>a;
	long long b=100,c=0;
	while(b<a)
	{
		b+=P/100;
		c++;
	}
	cout<<c<<endl;
 	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'P' was not declared in this scope
   10 |                 b+=P/100;
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a;
	cin>>a;
	for(int i=1;i<=a-100;i++)
	{
		int b=100,c=0,d;
		c=b/100;
		b+=c;
		c=0;
		d++;
		if(b==a)break;
	}
	cout<<b;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: 'b' was not declared in this scope
   16 |         cout<<b;
      |               ^
Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner  yomi = new Scanner(System.in);
        int a = yomi.nextInt();
        int b=100;
        for(int i=1;b<a;i++){
            b=(int)(b*0.01);
            if (a<=b) System.out.println(i);
        }

    }
}

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

#include <stdio.h>
int main(void)
{
    int deposit;
    long X;
    int i;
    scanf("%ld", &X);
    deposit = 100;
    for (i = 0; deposit < X; i++)
    {
        deposit *= 1.01;
    }
    printf_s("%d\n", i);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |     printf_s("%d\n", i);
      |     ^~~~~~~~
      |     printf
Language: C

#include <stdio.h>
int main(void)
{
    int deposit;
    long X;
    int i;
    scanf("%d", &X);
    deposit = 100;
    for (i = 0; deposit < X; i++)
    {
        deposit *= 1.01;
    }
    printf_s("%d\n", i);
    return 0;
}

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

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

using namespace std;

double logn(double base, double antilog) {
    return log(antilog) / log((double)base);
}

int main(){
    int st=100,n=0,cnt=0;
    double tmp1,tmp2;

    cin>>n;
    while(1){
        st=st+st/100
        
        if(st>=n){
            cout<<cnt<<"\n";
            break;
        }
    }
    /*
    tmp2=logn(1.01,tmp1);
    tmp2=(int)tmp2+1;
    */
    //cout<<cnt<<"\n";

    return 0;
}            

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before 'if'
   16 |         st=st+st/100
      |                     ^
      |                     ;
   17 | 
   18 |         if(st>=n){
      |         ~~
Language: C++

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

using namespace std;

double logn(double base, double antilog) {
    return log(antilog) / log((double)base);
}

int main(){
    int st=100,n=0,cnt=0;
    double tmp1,tmp2;

    cin>>n;
    while(1){
        st=st+st/100
        
        if(st>=n){
            cout<<cnt<<"\n";
            break;
        }
    }
    /*
    tmp2=logn(1.01,tmp1);
    tmp2=(int)tmp2+1;
    */
    cout<<cnt<<"\n";

    return 0;
}            

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before 'if'
   16 |         st=st+st/100
      |                     ^
      |                     ;
   17 | 
   18 |         if(st>=n){
      |         ~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
using namespace std;
typedef long long ll;

int main(){
int a;
cin >> a;
cout << ceil(log(a/100)/log1.01) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: 'log1' was not declared in this scope; did you mean 'logp1'?
   23 | cout << ceil(log(a/100)/log1.01) << endl;
      |                         ^~~~
      |                         logp1
Language: C

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

int main()
{
	long long n=100,x,y=0;
	cin>>x;
	while(n<x)
	{
		n=n+n/100;
		y++;
	}
	cout<<y;
	return 0;
}

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

#include <stdio.h>
 int main(void) {
 int k, a, b,s;

 scanf("%d", &k);
 scanf("%d%d", &a, &b);

 s=(b / k) * k;
 if (a <= largest) {
 puts("OK");
 } 
 else {
 puts("NG");
 }

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: 'largest' undeclared (first use in this function)
    9 |  if (a <= largest) {
      |           ^~~~~~~
main.c:9:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main()
{
    int i, x, cnt;
    cin >> x;
    i = 100;
    cnt = 0;
    while(1){
        i += i * 0.01;
        cnt++;
        if(i >= x) break;
    }
    cout << cnt << endl;
1    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:2: error: expected ';' before 'return'
   16 | 1    return 0 ;
      |  ^   ~~~~~~
      |  ;
Language: Java

/**
 * 1%.
 */
public class Main {
    public static void main(String[] args) {
        var scanner = new Scanner(System.in);
        var x = Long.parseLong(scanner.next());

        var deposit = 100L;
        var year = 0;
        while (deposit < x) {
            deposit += deposit * 0.01;
            year++;
        }
        System.out.println(year);
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
        var scanner = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class Main
1 error
Language: C++

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

int main() {
    int X, Y, i = 0;
    cin >> X;
    while(true){
     Y = 100 * (101 / 100) ^ i;
     i++;}
    if(Y > X){
     break;
    }
    cout << i <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: break statement not within loop or switch
   11 |      break;
      |      ^~~~~
Language: C++

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

int main() {
    int X, Y, i;
    cin >> X;
    while(true){
     Y = 100 * (101 / 100) ^ i;
     i++;}
    if(Y > X){
     break;
    }
    cout << i <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: break statement not within loop or switch
   11 |      break;
      |      ^~~~~
Language: C++

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

int main() {
  　int X, i;
    cin >> X;
   while(100 * (101 / 100) ^ i < X){
       i = i + 1;
     }
    cout << i <<endl;
    return 0;
}


Compiler output:
a.cc:5:3: error: extended character 　 is not valid in an identifier
    5 |   　int X, i;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: '\U00003000int' was not declared in this scope
    5 |   　int X, i;
      |   ^~~~~
a.cc:6:12: error: 'X' was not declared in this scope
    6 |     cin >> X;
      |            ^
a.cc:7:30: error: 'i' was not declared in this scope
    7 |    while(100 * (101 / 100) ^ i < X){
      |                              ^
a.cc:10:13: error: 'i' was not declared in this scope
   10 |     cout << i <<endl;
      |             ^
Language: C++

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

int main() {
  　int X, i;
    cin >> X;
   while(100 * (101 / 100) ^ i < X){
      i = i + 1
     }
    cout << i <<endl;
    return 0;
}

Compiler output:
a.cc:5:3: error: extended character 　 is not valid in an identifier
    5 |   　int X, i;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: '\U00003000int' was not declared in this scope
    5 |   　int X, i;
      |   ^~~~~
a.cc:6:12: error: 'X' was not declared in this scope
    6 |     cin >> X;
      |            ^
a.cc:7:30: error: 'i' was not declared in this scope
    7 |    while(100 * (101 / 100) ^ i < X){
      |                              ^
a.cc:10:13: error: 'i' was not declared in this scope
   10 |     cout << i <<endl;
      |             ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  unsigned long long int nowmoney=100,x
  int year=0;
  cin>>x;
  
  while(x>nowmoney){
    nowmoney=nowmoney*1.01;
    year++;
  }
  cout<<year<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'int'
    6 |   int year=0;
      |   ^~~
a.cc:7:8: error: 'x' was not declared in this scope
    7 |   cin>>x;
      |        ^
a.cc:11:5: error: 'year' was not declared in this scope
   11 |     year++;
      |     ^~~~
a.cc:13:9: error: 'year' was not declared in this scope
   13 |   cout<<year<<endl;
      |         ^~~~
Language: C

#include <stdio.h>
int main(void)
{
    int X,i=0;
    double n=100;
    scanf("%d",&X);
    while(n>=X){
        n=N*0.01;
        i++;
    }
    printf("%d\n",i);
    return 0;
}


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

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

int main(){
  long long x;
  cin >> x;
  x=x/100;
  double a=1.01;
  long long k=loga(x);
  cout << k;
  return 0;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'loga' was not declared in this scope; did you mean 'logl'?
   10 |   long long k=loga(x);
      |               ^~~~
      |               logl
Language: C++

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

int main(){
  long long x;
  cin >> x;
  x=x/100;
  double a=1.01;
  long long k=log(a)(x);
  cout << k;
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expression cannot be used as a function
   10 |   long long k=log(a)(x);
      |               ~~~~~~^~~
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
   for(long i=1;;i++ ){
     money=money*1.01;
     if(money>=x){
       System.out.println(i);
     break;
     }
   }
 }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to long
     money=money*1.01;
                ^
1 error
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
   for(long i=0;;i++ ){
     money=money*1.01;
     if(money>=x){
       System.out.println(i);
     break;
     }
   }
 }
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to long
     money=money*1.01;
                ^
1 error
Language: Java

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  long count=0;
   for(long i=0;i<10000000;i++ ){
     money=money*101/100;
     count=count+1;
     if(money>=x){
       
     break;
     }
   }
 }
}

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: Java

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  long count=0;
   for(long i=0;i<10000000;i++ ){
     money=money*101/100;
     count=count+1;
     if(money>=x){
       
     break;
     }
   }

Compiler output:
Main.java:14: error: reached end of file while parsing
   }
    ^
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  long count=0;
   for(long i;import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  long count=0;
   for(long i=0;i<10000000;i++ ){
     money=money*101/100;
     count=count+1;
     if(money>=x){
       
     break;
     }
   }
   
     System.out.println(count);
   
 
 }
}
;i++ ){
     money=money*101/100;
     count=count+1;
     if(money>=x){
       
     break;
     }
   }
   
     System.out.println(count);
   
 
 }
}


Compiler output:
Main.java:9: error: illegal start of expression
   for(long i;import java.util.Scanner;
              ^
Main.java:9: error: not a statement
   for(long i;import java.util.Scanner;
                              ^
Main.java:31: error: ';' expected
;i++ ){
    ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  long count=0;
   for(long i;i<10000000;i++ ){
     money=money*101/100;
     count=count+1;
     if(money>=x){
       
     break;
     }
   }
   
     System.out.println(count);
   
 
 }
}


Compiler output:
Main.java:9: error: variable i might not have been initialized
   for(long i;i<10000000;i++ ){
              ^
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  long count=0;
   for(long i;i<10000000;i++ ){
     money=money*101/100;
     count+=;
     if(money>=x){
       
     break;
     }
   }
   
     System.out.println(count);
   
 
 }
}


Compiler output:
Main.java:11: error: illegal start of expression
     count+=;
            ^
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  
   for(long i;i<10000000;i++ ){
     money=money*101/100;
     if(money>=x){
        System.out.println(i);
     break;
     }
   }
   
     
   
 
 }
}


Compiler output:
Main.java:9: error: variable i might not have been initialized
   for(long i;i<10000000;i++ ){
              ^
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  
   for(long i;i<10000000;i++ ){
     money=money*101/100;
     if(money>=x){
        System.out.println(i);
     break;
     }
   }
   
     System.out.println(i);
   
 
 }
}


Compiler output:
Main.java:17: error: cannot find symbol
     System.out.println(i);
                        ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLong();
	long money=100;
  
   for(long i;i<10000000;i++ ){
     money=money*101/100;
     if(money>=x){
     break;
     }
   }
   
     System.out.println(i);
   
 
 }
}


Compiler output:
Main.java:16: error: cannot find symbol
     System.out.println(i);
                        ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLng();
	long money=100;
  
   for(long i;i<10000000;i++ ){
     money=money*101/100;
     if(money>=x){
     break;
     }
   }
   
     System.out.println(i);
   
 
 }
}


Compiler output:
Main.java:6: error: cannot find symbol
   long x = sc.nextLng();
              ^
  symbol:   method nextLng()
  location: variable sc of type Scanner
Main.java:16: error: cannot find symbol
     System.out.println(i);
                        ^
  symbol:   variable i
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long x = sc.nextLng();
	long money=100;
  
   for(long i;i<10000000000;i++ ){
     money=money*101/100;
     if(money>=x){
     break;
     }
   }
   
     System.out.println(i);
   
 
 }
}

Compiler output:
Main.java:9: error: integer number too large
   for(long i;i<10000000000;i++ ){
                ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
long long X;
cin >> X;
longlong P=100,step=0;
while(P < X){
P += P / 100;
step++;
}
  cout << step << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'longlong' was not declared in this scope
    6 | longlong P=100,step=0;
      | ^~~~~~~~
a.cc:7:7: error: 'P' was not declared in this scope
    7 | while(P < X){
      |       ^
a.cc:9:1: error: 'step' was not declared in this scope; did you mean 'strsep'?
    9 | step++;
      | ^~~~
      | strsep
a.cc:11:11: error: 'step' was not declared in this scope; did you mean 'strsep'?
   11 |   cout << step << endl;
      |           ^~~~
      |           strsep
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
long long X;
cin >> X;
longlongP=100,step=0;
while(P < X){
P += P / 100;
step++;
}
  cout << step << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'longlongP' was not declared in this scope
    6 | longlongP=100,step=0;
      | ^~~~~~~~~
a.cc:6:15: error: 'step' was not declared in this scope; did you mean 'strsep'?
    6 | longlongP=100,step=0;
      |               ^~~~
      |               strsep
a.cc:7:7: error: 'P' was not declared in this scope
    7 | while(P < X){
      |       ^
Language: C++

int main(){
int year=0;
long money=100;
long X;
  cin >> X;
  for(int i=0;money<X;i++){
    money+=money/100;
    year++;
  }
  cout << year <<endl;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> X;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << year <<endl;
      |   ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |   cout << year <<endl;
      |                  ^~~~
Language: C++

int main(){
int year=0;
long int money=100;
long int X;
  
 
  cin >> X;
  for(int i=0;money<X;i++){
    money+=money/100;
    year++;
  }
  cout << year <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> X;
      |   ^~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << year <<endl;
      |   ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |   cout << year <<endl;
      |                  ^~~~
Language: C

#inclued <stdio.h>
int main(void)
{
  int x;
  int money = 100;
  int spend = 0;
  scanf("%d", &x);
  
  while (x < money) {
    money *= 1.01;
    spend++;
  }
  printf("%d", spend);
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclued; did you mean #include?
    1 | #inclued <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d", &x);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclued <stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d", &x);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |   printf("%d", spend);
      |   ^~~~~~
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
  ll x;
  cin>>x;
  long long float val=100;
  int i;
  for (i=0;val<x;i++)
    val=(int)(val*1.01);
  cout<<i<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'long long' specified with 'float'
    8 |   long long float val=100;
      |        ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	long double x,res1;
	cin>>x;int i=1;
	long double res=x/100;
	while(res1<=res)
	{
		res1=pow(1.01,i);
		i++
	}
	cout<<i-1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: expected ';' before '}' token
   15 |                 i++
      |                    ^
      |                    ;
   16 |         }
      |         ~
Language: C++

#include<isotream>
using namespace std;
int main(){
  long long a;
  cin >> a;
  long long ans = 0;
  double val = 100;
  while(true){
    if(a <= val){
      break;
    }
    val *=1.01; 
    ans++;
  }
  cout << ans << endl;
}


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

#include<bits/stdc++.h>
usind namespace std;
int n,years;
int main()
{
 cin>>n;
  years=n-100;
  cout<<years;
  return 0;
}
  


Compiler output:
a.cc:2:1: error: 'usind' does not name a type
    2 | usind namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  cin>>n;
      |  ^~~
      |  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<years;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){

        Scanner scan = new Scanner(new File(System.in);

        long X = scan.nextLong();
        int year= 0;
        long money=100;
        System.out.println(X);

        while(money<X){
            money= (long) (money*1.01);
            year++;
        }
        System.out.println(year);
    }
}



Compiler output:
Main.java:5: error: ')' or ',' expected
        Scanner scan = new Scanner(new File(System.in);
                                                      ^
1 error
Language: C++

#include <algorithm>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>

using namespace std;

typedef long long ll;
// constexpr ll MOD = 998244353;
constexpr ll MOD = 1000000007;

// struct UnionFind {
//     vector<ll> par;
//     vector<ll> siz;
    
//     UnionFind(ll N): par(N), siz(N,1) {
//         for (ll i=0;i<N;i++) par[i] = i;
//     }

//     ll root(ll x) {
//         if (par[x] == x) return x;
//         else return par[x] = root(par[x]);
//     }

//     void unite(ll x, ll y) {
//         ll rx = root(x);
//         ll ry = root(y);
//         if (rx == ry) return;
//         // if (siz[rx] < siz[ry]) swap(rx,ry);
//         par[rx] = ry;
//         siz[ry] += siz[rx];
//     }

//     bool same(ll x, ll y) {
//         ll rx = root(x);
//         ll ry = root(y);
//         return rx == ry;
//     }

//     ll size(ll x) {
//         return siz[root(x)];
//     }
// };

//     vector<ll> par;
//     vector<ll> siz;
    
//     UnionFind(ll N): par(N), siz(N,1LL) {
//         for (ll i=0;i<N;i++) par[i] = i;
//     }

//     ll root(ll x) {
//         if (par[x] == x) return x;
//         else return par[x] = root(par[x]);
//     }

//     void unite(ll x, ll y) {
//         ll rx = root(x);
//         ll ry = root(y);
//         if (rx == ry) return;
//         par[rx] = ry;
//         siz[ry] += siz[rx];
//     }

//     bool same(ll x, ll y) {
//         ll rx = root(x);
//         ll ry = root(y);
//         return rx == ry;
//     }

//     ll size(ll x) {
//         return siz[root(x)];
//     }
// };

int main(void) {
    ll X;
    cin >> X;
    ll y = 100;
    int k = 0;
    while (y < X) {
        y = (ll)floor(y*1.01);
        k++;
    }
    cout << k << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:90:17: error: 'floor' was not declared in this scope
   90 |         y = (ll)floor(y*1.01);
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long X;
  cin >> X;
  
  long long P = 100, step = 0;
    for (int i = A; i <= B; i++) {
    while(P < X) {
      P += P/ 100;
      step++;
    }
    cout << step << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'A' was not declared in this scope
    9 |     for (int i = A; i <= B; i++) {
      |                  ^
a.cc:9:26: error: 'B' was not declared in this scope
    9 |     for (int i = A; i <= B; i++) {
      |                          ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main(){
long long x;
  cin>>x;
   long long p=100,step=0;
  while(p<x){
    p=100*(1.01**step);
    step++;    
  }
cout<<step;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid type argument of unary '*' (have 'long long int')
    9 |     p=100*(1.01**step);
      |                 ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
long long x;
  cin>>x;
   long long p=100,step=0;
  while(p<x){
    p=100*(1.01**step);
    step++;    
  }
cout<<step;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid type argument of unary '*' (have 'long long int')
    8 |     p=100*(1.01**step);
      |                 ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
long long a,x;
  cin>>x;
  while(x>a){
  int step=1;
    a=100*(1.01**step);
    step++;    
  }
cout<<step;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid type argument of unary '*' (have 'int')
    8 |     a=100*(1.01**step);
      |                 ^~~~~
a.cc:11:7: error: 'step' was not declared in this scope
   11 | cout<<step;
      |       ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
long long a,x;
  cin>>x;
  while(x>=a){
  int step=1;
    a=100*(1.01**step);
    step++;    
  }
cout<<step;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid type argument of unary '*' (have 'int')
    8 |     a=100*(1.01**step);
      |                 ^~~~~
a.cc:11:7: error: 'step' was not declared in this scope
   11 | cout<<step;
      |       ^~~~
Language: C++

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

int main() {

	long long x;
	long long table[10000];
	int ans;
	cin >> x;

	table[0] = 100;

	for (int i = 1; i < 4000; i++) {
		table[i] = floor(table[i - 1] * 1.01);
	}

	for (int i = 1; i < 4000; i++) {
		if (x <= table[i]) {
			ans = i;
			break;
		}
	}

	cout << ans << endl;
	cin >> x;

	return 0;


}
	cout << ans << endl;
	cin >> x;

	return 0;


}

Compiler output:
a.cc:35:9: error: 'cout' does not name a type
   35 |         cout << ans << endl;
      |         ^~~~
a.cc:36:9: error: 'cin' does not name a type
   36 |         cin >> x;
      |         ^~~
a.cc:38:9: error: expected unqualified-id before 'return'
   38 |         return 0;
      |         ^~~~~~
a.cc:41:1: error: expected declaration before '}' token
   41 | }
      | ^
Language: C++

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

int main() {

	long long x;
	long long table[10000];
	int ans;
	cin >> x;

	table[0] = 100;

	for (int i = 1; i < 4000; i++) {
		table[i] = long long(table[i - 1] * 1.01);
	}

	for (int i = 1; i < 4000; i++) {
		if (x <= table[i]) {
			ans = i;
			break;
		}
	}

	cout << ans << endl;
	cin >> x;

	return 0;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: expected primary-expression before 'long'
   18 |                 table[i] = long long(table[i - 1] * 1.01);
      |                            ^~~~