criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    
    int x = scan.nextInt();
    int count = 0;
    int mon = 100;
    
    do{
      mon = (int)mon*1.01;
      count++;
      if(mon >= x){
        System.out.println(count);
        break;
      }
    }while(true);
  }
}


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

#include <stdio.h>
#include <math.h>
int main(void){
  int x;
  cin>>x;
  int k=100;
  int i = 0;
  while(1){
    i++;
    k*=1.01;
    if(x<=k){
      cout<<i<<endl;
      break;
    }
  }
}


Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'cin' undeclared (first use in this function); did you mean 'sin'?
    5 |   cin>>x;
      |   ^~~
      |   sin
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:7: error: 'cout' undeclared (first use in this function)
   12 |       cout<<i<<endl;
      |       ^~~~
main.c:12:16: error: 'endl' undeclared (first use in this function)
   12 |       cout<<i<<endl;
      |                ^~~~
Language: C++

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

int main() {
    long long X;
    cin >> X;
    
    int year=0;
    long long s=100;

   　while(s<X){
        s=s*101/100;
        
        year++;
        
    }
    cout << year << endl;
}


Compiler output:
a.cc:11:4: error: extended character 　 is not valid in an identifier
   11 |    　while(s<X){
      |    ^
a.cc: In function 'int main()':
a.cc:11:4: error: '\U00003000while' was not declared in this scope
   11 |    　while(s<X){
      |    ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;
using T = tuple<string,int,int>;

int main(){
  ll x; cin >> x;
  ll total = 100;
  ll cnt = 0;
  while(x > total){
    cnt++;
    total += total*0.01;
  }
  cout < cnt << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout < cnt << endl;
      |          ~~~~^~~~~~~
Language: C

int main()
{
    long long int x, sum = 100, year = 0;
    float y = 0.01;

    scanf_s("%lld", &x);
    while (sum < x)
    {
        sum += (sum /100);
        year++;
    }
    printf("%lld\n", year);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    6 |     scanf_s("%lld", &x);
      |     ^~~~~~~
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf("%lld\n", year);
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |     printf("%lld\n", year);
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.util.Scanner;

public class main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    
    int x = scan.nextInt();
    int count = 0;
    int mon = 100;
    
    do{
      mon = mon + mon * 0.01;
      count++;
      if(mon >= x){
        System.out.println(count);
        break;
      }
    }while(true);
  }
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:12: error: incompatible types: possible lossy conversion from double to int
      mon = mon + mon * 0.01;
                ^
2 errors
Language: C

int main()
{
    long long int x, sum = 100, year = 0;
    float y = 0.01;

    scanf("%lld", &x);
    while (sum < x)
    {
        sum += (sum /100)
        year++;
    }
    printf("%lld\n", year);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     scanf("%lld", &x);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     scanf("%lld", &x);
      |     ^~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:26: error: expected ';' before 'year'
    9 |         sum += (sum /100)
      |                          ^
      |                          ;
   10 |         year++;
      |         ~~~~              
main.c:12:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |     printf("%lld\n", year);
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main() {
  long long int x=100,z,count=0;
  cin>>z;
  //co=x;
  int i=1
while(i)
  {
    
   // t=int(x/100);
  	count++;
    x+=x/100;
    //cout<<x;
    if(x>=z)
    i=0;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected ',' or ';' before 'while'
   10 | while(i)
      | ^~~~~
Language: C++


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:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin >> X;
      |  ^~~
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:11:2: error: 'cout' was not declared in this scope
   11 |  cout << step << endl;
      |  ^~~~
a.cc:11:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |  cout << step << 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 <iostream>
#include <cmath>
using namespace std; 

int main() {
  long long int x=100,z,count=0;
  cin>>z;
  //co=x;
while(i)
  {
    
   // t=int(x/100);
  	count++;
    x+=x/100;
    //cout<<x;
    if(x>=z)
    i=0;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 | while(i)
      |       ^
Language: C++

#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
using namespace std; 
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<=(b);i++)
#define FORD(i,a,b) for(int i=(a);i>=(b);i--)

int main() {
  long long int x=100,z,count=0;
  cin>>z;
  //co=x;
while(i)
  {
    
   // t=int(x/100);
  	count++;
    x+=x/100;
    //cout<<x;
    if(x>=z)
    i=0;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:7: error: 'i' was not declared in this scope
   26 | while(i)
      |       ^
Language: C++

int main(){
    int a, count;
    cin >> a;
    count = 1;

    for(int i=100; i<a; count++){
        i= i+i/100;
    }
    cout << count << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a;
      |     ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'count'?
    9 |     cout << count << endl;
      |     ^~~~
      |     count
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << count << endl;
      |                      ^~~~
Language: C++





#include <iostream>
using namespace std;
int main() {
  int sum=100;
  int X;
  cin >>X;
  int i =0;
  while (sum<X){
    sum +=sum/100
    i++;}
  cout<<i<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before 'i'
   13 |     sum +=sum/100
      |                  ^
      |                  ;
   14 |     i++;}
      |     ~
Language: C++

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

int main() {
	long long X;
	cin >> X;
	long long okane = 100;
	long long count = 0;
	while (okane<X) {
		okane = okane *1. 01;
		count++;
	}
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: expected ';' before numeric constant
   11 |                 okane = okane *1. 01;
      |                                  ^~~
      |                                  ;
Language: C++

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

int main() {
	long long X;
	cin >> X;
	long long okane = 100;
	long long count = 0;
	while (okane<X) {
		okane += okane *1. 01;
		count++;
	}
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: expected ';' before numeric constant
   11 |                 okane += okane *1. 01;
      |                                   ^~~
      |                                   ;
Language: C++

#include <bits/stdc++.h> 
using namespace std;
int main() {
  long long x;
  cin>>x;
  
  long long s=100;
  long long y=0;
  while(s>0){
      if(s<x){
      s+=s/100;
	  y++;
  }
  cout<<y+1<<endl;
}


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

#include <bits/stdc++.h> 
using namespace std;
int main() {
  long long x;
  cin>>x;
  
  int s=100;
  int y=0;
  while(s>0){
      if(s<x){
      s+=s/100;
	  y++;
  }
  cout<<y+1<<endl;
}


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

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

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

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

int main(){
    double X;
    cin >> X;
    double y = (log(X)-log(100.0)) / log(1.01);
    int x = y;
    double z = x;
    if (100 * pow(1.01,z) < X) {
        int ans = x + 1;
    }
    else {
        int ans = x;
    }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

int main(){
    double X;
    cin >> X;
    double y = (log(X)-log(100.0)) / log(1.01);
    int x = y;
    double z = x;
    if (100 * pow(1.01,z) < X) ans = x + 1;
    else ans = x;
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     if (100 * pow(1.01,z) < X) ans = x + 1;
      |                                ^~~
      |                                abs
a.cc:12:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     else ans = x;
      |          ^~~
      |          abs
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X;
  cin >> X;
  int n;
  int s=0;
  
  while (n<x){
    n += n/100;
    s++;
  }
  cout << s << endl;
}
    

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

#include <bits/stdc++.h> 
using namespace std;
int main() {
  int x;
  cin>>x;
  
  int s=100;
  int y=0;
  while(s>0){
      if(s<x){
      s+=s/100;
	  y++;
  }
  cout<<y+1<<endl;
}


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

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

Compiler output:
a.cc:16:5: error: redefinition of 'int main()'
   16 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include  <queue>
#include <vector>
#include  <cstdio>
#include <cstring>
#include<map>
#include<set>
//#include<bits/stdc++.h>
#define ll long long int
#define ull unsigned long long int
#define I(a) scanf("%d",&a)
#define I2(a,b) scanf("%d%d",&a,&b)
#define I3(a,b,c) scanf("%d%d%d",&a,&b,&c)
#define L(a) scanf("%lld",&a)
#define L2(a,b) scanf("%lld%lld",&a,&b)
#define L3(a,b,c) scanf("%lld%lld%lld",&a,&b,&c)
#define PI(a) printf("%d",a)
#define PL(a) printf("%lld",a)
#define PT(t) printf("Case %d: ",t)
#define PB push_back
#define x first
#define y second
#define xx first.first
#define xy first.second
#define yx second.first
#define yy second.second
#define SC scanf
#define PC printf
#define NL printf("\n")
#define SET(a) memset(a,0,sizeof a)
#define SETR(a) memset(a,-1,sizeof a)
#define SZ(a) ((int)a.size())-1
#define f(i,a,b) for(int i=a;i<=b; i++)
#define fr(i,a,b) for(int i=a;i<=b; i++)
#define frr(i,a,b) for(int i=a;i>=b; i--)
#define frv(i,a)  for(int i=0;i<a.size();i++)
#define pi 2.0*acos(0.0)
#define R(a) freopen(a, "r", stdin);
#define W(a) freopen(a, "w", stdout);
#define CB(x) __builtin_popcount(x)
#define STN(a) stringtonumber<ll>(a)
#define lol printf("BUG\n")
#define Endl "\n"
#define mk make_pair
using namespace std;
template <class T> inline T BM(T p, T e, T M)
{
    ll ret = 1;
    for(; e > 0; e >>= 1)
    {
        if(e & 1) ret = (ret * p) % M;
        p = (p * p) % M;
    }
    return (T)ret;
}
template <class T> inline T mul(T p, T e, T M)
{
    ll ret = 0;
    for(; e > 0; e >>= 1)
    {
        if(e & 1) ret = (ret + p) ;
        p = (p + p) ;
        if(ret>=M)ret-=M;
        if(p>=M)p-=M;
    }
    return (T)ret;
}
template <class T> inline T gcd(T a, T b)
{
    if(b == 0)return a;
    return gcd(b, a % b);
}
template <class T> inline T mdINV(T a, T M)
{
    return BM(a, M - 2, M);
}
template <class T> inline T PW(T p, T e)
{
    ll ret = 1;
    for(; e > 0; e >>= 1)
    {
        if(e & 1) ret = (ret * p);
        p = (p * p);
    }
    return (T)ret;
}
 
 
template <class T>bool ISLEFT(T a, T b, T c)
{
    if(((a.xx - b.xx) * (b.yy - c.yy) - (b.xx - c.xx) * (a.yy - b.yy)) < 0.0)return 1;  //Uporer dike //A,b,c, x okkher ordera sorted
    else return 0;
}
 

#define  mx 200004
#define base 193ll
 
typedef pair<int,int >P;
//////////////////////////
////////////////////////
#define F(i,a,b) for(int i=a;i<b; i++)
#define LL long long
#define MX  200007
#define md 998244353ll
///////////////////////////
///////////////////////////
///
int intlog(double bas, double x) {
    return (int)(log(x) / log(bas));
}
int main(){

    double x;
    cin>>x;
    cout<< intlog(1.01, x/ 100.0)<<endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int intlog(double, double)':
a.cc:112:18: error: 'log' was not declared in this scope; did you mean 'long'?
  112 |     return (int)(log(x) / log(bas));
      |                  ^~~
      |                  long
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main(){
	double a=100,b,c=0;
	cin>>b;
	while(a<=b){
		a=*1.01;
		if(a/1!=0) a=floor(a);
		c+=1;
	}
	cout<<c;
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: invalid type argument of unary '*' (have 'double')
    8 |                 a=*1.01;
      |                   ^~~~~
Language: Java

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;



public class D {

	public static class pair implements Comparable<pair> {
		int id;
		int ans;
 
		pair(int x, int y) {
 
			id = x;
			ans = y;
 
		}
 
		public pair() {
 
		}
 
		public int compareTo(pair o) {
			// TODO Auto-generated method stub
 
			return this.id - o.id;
		}
	}
 
//	static int mod = (int) 998244353.;
	static ArrayList<Integer> gr[];
	static int[] ar;
	static Scanner sc = new Scanner(System.in);
	static int pri[] = new int[(int) 1e6 + 5];
	static StringBuilder out = new StringBuilder();
 
	//static long dp[];
 
	public static void main(String[] args) throws IOException {
		int t =1;//sc.nextInt();
		
		while (t-- > 0) {
 
			long ru=sc.nextLong();
			long val=100;
			long n=0;
			
			System.out.println(bs(ru));
			
		}
		
		System.out.println(out);
	}
	static long bs (long r) {
		long lo=0;
		long  hi=6000;
		long n=0;
		while(lo<=hi) {
			long mid=(hi+lo)/2;
			long val=(long) ((long)100*(double)Math.pow(101/100, n));
			if(val>=r) {
				n=mid;hi=mid-1;
			}
			else lo=mid+1L;
		}
		return n;
	}
 
	
}

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

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

int main() {
  int X;
  double i=1.01
  cin >> X;

  int count = 0;
  while (N > 0) {
    // 2で割り切れなければループを抜ける
    if (X<=100) {
      break;
    }
    N = 100*i;
    count++;
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cin'
    7 |   cin >> X;
      |   ^~~
a.cc:10:10: error: 'N' was not declared in this scope
   10 |   while (N > 0) {
      |          ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	long x;
  	long double a,b,c;
	x=1;
  	a=100;
  	b=a;
  	scanf("%Lf",&c);
	while(b<c){
	  	b=power(b,1.001);
      	x++;
    }
	printf("%ld",x);  	
  
  
  
  
}

Compiler output:
main.c: In function 'main':
main.c:11:19: error: implicit declaration of function 'power' [-Wimplicit-function-declaration]
   11 |                 b=power(b,1.001);
      |                   ^~~~~
Language: Java

import java.util.*;
import java.lang.Math; 
public class sum
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
   int n,a,b,ans=0;
    n=sc.nextInt();
    a=Math.log(n/100);
    b=Math.log(101/100);
    ans=a/b;
    System.out.println(round(ans));
  }
}
    

Compiler output:
Main.java:3: error: class sum is public, should be declared in a file named sum.java
public class sum
       ^
Main.java:10: error: incompatible types: possible lossy conversion from double to int
    a=Math.log(n/100);
              ^
Main.java:11: error: incompatible types: possible lossy conversion from double to int
    b=Math.log(101/100);
              ^
Main.java:13: error: cannot find symbol
    System.out.println(round(ans));
                       ^
  symbol:   method round(int)
  location: class sum
4 errors
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<cmath>
#include<map>
#include<iomanip>
#define rip(i,n) for(int i=0;i<n;i++)
#define ll long long
#define ld long double
#define set setprecision　//小数点以下何位まで知りたいか
#define mod 1000000007
#define pi 3.14159265
#include<numeric>
using namespace std;
int gcd(int a, int b)//最大公約数
{
	if (a % b == 0)	return(b);
	else return(gcd(b, a % b));
}
int lcm(int a, int b)//最小公倍数
{
	return a * b / gcd(a, b);
}
ll pow(ll a, ll b) {
	ll k = b % 30000, h = b / 30000, s = 1;
	rip(i, 30000)s = (s * a) % mod; ll j = 1;
	if (h != 0)rip(i, h)j = j * s % mod;
	if (k != 0)rip(i, k)j = j * a % mod;
	return(j);
}
int main() {
	ll x;
	cin >> x;
	ll s = 100;
  ll p = 0;
  ll j;
  	while(s<x){
      j = s/100;
      if(s + j*((99/j)+1)>s+100)s +=j*((99/j)+1),  p += ((99/j)+1);
      else s += (j)*((99/j)+2),p += ((99/j)+2)
	}
  while(s<x){
    s += s/100;
    p++;
  }
  cout << p << endl;
}


Compiler output:
a.cc:11:13: error: extended character 　 is not valid in an identifier
   11 | #define set setprecision　//小数点以下何位まで知りたいか
      |             ^
a.cc: In function 'int main()':
a.cc:41:47: error: expected ';' before '}' token
   41 |       else s += (j)*((99/j)+2),p += ((99/j)+2)
      |                                               ^
      |                                               ;
   42 |         }
      |         ~
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	long x;
  	long double a,b,c;
	x=1;
  	a=100;
  	b=a;
  	scanf("%lf",&c);
	while(b<c){
	  	b=power(b,1.001);
      	x++;
    }
	printf("%ld",x);  	
  
  
  
  
}

Compiler output:
main.c: In function 'main':
main.c:11:19: error: implicit declaration of function 'power' [-Wimplicit-function-declaration]
   11 |                 b=power(b,1.001);
      |                   ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a=100,b,c=0;
	cin>>b;
	while(a<=b){
		a=*1.01;
		c+=1;
	}
	cout<<c;
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid type argument of unary '*' (have 'double')
    7 |                 a=*1.01;
      |                   ^~~~~
Language: C

#include <stdio.h>
#include <math.h>
int main(){
	long x;
  	long double a,b,c;
	x=1;
  	a=100;
  	b=a;
  	scanf("%c",&c);
	while(b<c){
	  	b=power(b,1.001);
      	x++;
    }
	printf("%d",x);  	
  
  
  
  
}

Compiler output:
main.c: In function 'main':
main.c:11:19: error: implicit declaration of function 'power' [-Wimplicit-function-declaration]
   11 |                 b=power(b,1.001);
      |                   ^~~~~
Language: C++

#include <bits/stdc++.h> 
using namespace std;
int main() {
  int x;
  cin>>x;
  
  int y=0;
  while(s>0){
      if(s>=x){
        break;
      }
   int s=100;
      s+=s/100;
	  y++;
  }
  cout<<y<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 's' was not declared in this scope
    8 |   while(s>0){
      |         ^
Language: C

include <stdio.h>

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




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

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

int main(){
    double X;
    cin >> X;
    int ans;
    double y = log(x) / (log(100.0)+log(1.01));
    int x = y;
    double z = x;
    if (100 * pow(1.01,z) >= X) ans = x;
    else ans = x + 1;
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'x' was not declared in this scope
    9 |     double y = log(x) / (log(100.0)+log(1.01));
      |                    ^
Language: C++

#include<stdio.h>

int main(void) {
	int X;
	int S;
	int A;
	int i=0;
	scanf_s("%d", &X);

	S = X / X;
	A=S + 100;
	while (A <= X) {
		A += S;
		i++;
		if (A > X) {
			break;
		}
	}
	printf("%d", i);
}
	


	





Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%d", &X);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main(){
    double X;
    cin >> X;
    double y = log(x) / (log(100.0)+log(1.01));
    int x = y;
    double z = x;
    if (100 * pow(1.01,z) >= X) ans = x;
    else ans = x + 1;
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'x' was not declared in this scope
    8 |     double y = log(x) / (log(100.0)+log(1.01));
      |                    ^
a.cc:11:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     if (100 * pow(1.01,z) >= X) ans = x;
      |                                 ^~~
      |                                 abs
a.cc:12:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     else ans = x + 1;
      |          ^~~
      |          abs
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

int main() {
  // ここにプログラムを追記
  int X;
  cin>> X ;
  int x=100;
  while(){
    x*=1.01;
    if(x>=X){
      cout<< i <<endl;
      break;
  }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before ')' token
    9 |   while(){
      |         ^
a.cc:12:14: error: 'i' was not declared in this scope
   12 |       cout<< i <<endl;
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X;
  cin >> X;
  int y = 100;
  int n;
  int z;
  z = std::pow(1.01, n)
  if (y * z / 1 == X){
    cout << n << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before 'if'
   10 |   z = std::pow(1.01, n)
      |                        ^
      |                        ;
   11 |   if (y * z / 1 == X){
      |   ~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int X = sc.nextInt();
        
        int year = 0;
        int money = 100;
        while(money < X) {
            money = money * (double)1.1;
            money++;
        }

		// 出力
		System.out.println(year);
	}
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            money = money * (double)1.1;
                          ^
1 error
Language: C

#include <stdio.h>
int main(){
  long long x;
  int y,k;
  int money =100;
  scanf("%lld\n",&x);
  if(x<400){
    money=390;
    y=180;
  }
  for(y=1;1==1;y++){
    money = money*1.01;
    if(money>=x){
      printf("%d",y);
      return 0;
    }
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int X = sc.nextInt();
        
        int year = 0;
        int money = 100;
        while(money < X) {
            money = money * 1.1;
            money++;
        }

		// 出力
		System.out.println(year);
	}
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            money = money * 1.1;
                          ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int X = sc.nextInt();
        
        int year = 0;
        int money = 100;
        while(money < X) {
            money = money * 1.1;
            i++;
        }

		// 出力
		System.out.println(year);
	}
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            money = money * 1.1;
                          ^
Main.java:12: error: cannot find symbol
            i++;
            ^
  symbol:   variable i
  location: class Main
2 errors
Language: C

#include <stdio.h>
int main(){
  long long x;
  int y,k;
  int money =100;
  scanf("%d\n",&x);
  if(x<400){
    money=390;
    y=180;
  }
  for(y=1;1==1;y++){
    money = money*1.01;
    if(money>=x){
      printf("%d",y);
      return 0;
    }
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int X = sc.nextInt();
        
        int year = 0;
        int money = 100;
        while(i < X) {
            money = money * 1.1;
            i++;
        }

		// 出力
		System.out.println(year);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
        while(i < X) {
              ^
  symbol:   variable i
  location: class Main
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            money = money * 1.1;
                          ^
Main.java:12: error: cannot find symbol
            i++;
            ^
  symbol:   variable i
  location: class Main
3 errors
Language: C

#include <stdio.h>
int main(){
  long long x;
  int y;
  int money =100;
  scanf("%d\n",&x);
  if(x<400){
    money=390;
    y=180;
  }
  for(y=1;1==1;y++){
    money = money*1.01;
    if(money>=x){
      printf("%d",y);
      return 0;
    }
}


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

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

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

  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before 'if'
   11 |    count++
      |           ^
      |           ;
   12 |  if(a <= b){
      |  ~~
Language: C++

using namespace std;

int main() {
  int X;
  cin >> X;
  int64_t T = 100;
  int64_t year = 0;

  if (X > pow(10, 9)) {
    T = pow(10, 9);
    year = 1677;
  }

  
  while (T < X) {
    T = T * 1.01;
    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:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:3: error: 'int64_t' was not declared in this scope
    6 |   int64_t T = 100;
      |   ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | using namespace std;
a.cc:7:10: error: expected ';' before 'year'
    7 |   int64_t year = 0;
      |          ^~~~~
      |          ;
a.cc:9:11: error: 'pow' was not declared in this scope
    9 |   if (X > pow(10, 9)) {
      |           ^~~
a.cc:10:5: error: 'T' was not declared in this scope
   10 |     T = pow(10, 9);
      |     ^
a.cc:11:5: error: 'year' was not declared in this scope
   11 |     year = 1677;
      |     ^~~~
a.cc:15:10: error: 'T' was not declared in this scope
   15 |   while (T < X) {
      |          ^
a.cc:17:5: error: 'year' was not declared in this scope
   17 |     year++;
      |     ^~~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout << year << endl;
      |   ^~~~
a.cc:20:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:11: error: 'year' was not declared in this scope
   20 |   cout << year << endl;
      |           ^~~~
a.cc:20:19: error: 'endl' was not declared in this scope
   20 |   cout << year << endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

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

  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int b'
    7 |   int b=100;
      |       ^
a.cc:5:9: note: 'int b' previously declared here
    5 |   int a,b;
      |         ^
a.cc:11:11: error: expected ';' before 'if'
   11 |    count++
      |           ^
      |           ;
   12 |  if(a <= b){
      |  ~~
Language: C++

#include<bits/stdc++.h>
use nameplace std;
int main()
{
    unsigned long long a=2000000000000,n,k,ans=0;
    cin>>n>>k;
    if(k!=0)//特判
    {
        while(n!=a&&1+n*k+n<a)
        {
            n+=1+n*k;
            ans++;
        }
        cout<<ans+1<<endl;
       return 0;
    }
    else cout<<a-n<<endl;
    return 0;
}

Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use nameplace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>n>>k;
      |     ^~~
      |     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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout<<ans+1<<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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout<<ans+1<<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)
      |     ^~~~
a.cc:17:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     else cout<<a-n<<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:17:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     else cout<<a-n<<endl;
      |                     ^~~~
      |                     std::endl
/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>
use nameplace std;
int main()
{
    unsigned long long a=2000000000000,n,k,ans=0;
    cin>>n>>k;
    while(n!=a&&1+n*k+n<a)
    {
        n+=1+n*k;
        ans++;
    }
    cout<<ans+1<<endl;
    return 0;
}

Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use nameplace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>n>>k;
      |     ^~~
      |     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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<ans+1<<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:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout<<ans+1<<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 X ;
  cin >> X ;
  int sum = 0 ;
  int a = 100 ;
  while(X>a){
    a = *= 1.01 ;
    sum++ ;
  }
  cout << sum << endl;
  
}



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

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

int main() {
  // ここにプログラムを追記
  int X;
  cin>> X ;
  int x=100;
  for(int i=1; ;i++){
    x*=1.01
    if(x>=X){
      cout<< i <<endl;
      break;
  }
}
}

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

import java.util.Scanner;


class Main{
 public static void main(String[] args){
  Scanner stdIn = new Scanner(System.in);
   
  //X入力
  int X = stdIn.nextInt();
   
  int money = 100;
  int num = 0;
   
  for (int i =0 ; i < X; i++){
   money = (money / 100) * 101;
   num = num + 1;
   if(money >= x )
     break;
  }
   System.out.println(num);
 }
}


Compiler output:
Main.java:17: error: cannot find symbol
   if(money >= x )
               ^
  symbol:   variable x
  location: class Main
1 error
Language: C++

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

int main() {
  // ここにプログラムを追記
  int X;
  cin>> X ;
  int x=100;
  for(int i=1; ;i++){
    x*=1.01
    if(x>=X){
      cout<< i <<endl;
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before 'if'
   10 |     x*=1.01
      |            ^
      |            ;
   11 |     if(x>=X){
      |     ~~      
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X;
  cin >> X;
  int y = 100;
  
  for (int N = 0; ; N++){
    int z;
    z = std::pow(1.01, N)
      if (y * z / 1 == X){
        cout << N << endl;
        break;
      }
      
     else {
       continue;
     }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected ';' before 'if'
   11 |     z = std::pow(1.01, N)
      |                          ^
      |                          ;
   12 |       if (y * z / 1 == X){
      |       ~~                  
a.cc:17:6: error: 'else' without a previous 'if'
   17 |      else {
      |      ^~~~
Language: Java

import java.util.Scanner;

public class Main {
	static long X;
	static int m=0;
	static long a=100;
	static boolean n=true;
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		X=sc.nextLong();
		while(X>=a) {
			m=m+1;
			a=a/100+a;
		}
		System.out.println(m);
	}

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

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

int main() {
  int X;
  cin >> X;
  
  int A=100;
  int i = 0;
  
  while(A < X){
    if(A/100==b) A=A+b;
    i++;
      }
  
  cout << i << endl;
    
}



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

#include<stdio.h>

int main()
{
	double X;
	double kane = 100;
	double k;
	int nen = 0;

	scanf_s("%lf", &X);

		while (kane < X)
		{
			k = kane * 1.01;
			kane = (double)(int)k;
			nen++;
			//		printf("%lf\n", kane);
		}

	printf("%d",nen);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |         scanf_s("%lf", &X);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main(){
  int a;
  cin >> a;
  
  int i,
  int64_t b=100;
  i=0;
  while(i<4200){
    b *= 1.01;
    i++;
    if(b>=a)
      break;
  }
  cout << i << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected initializer before 'b'
    9 |   int64_t b=100;
      |           ^
a.cc:12:5: error: 'b' was not declared in this scope
   12 |     b *= 1.01;
      |     ^
Language: C++

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

int main() {
	int x;
	int a=100;
	cin >> x;
	int y=0;
	for(int i=0;a<x;i++){
		a += (a/100);
	}
	cout << i << endl;
}



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

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

int main(){
  int a;
  cin >> a;
  
  int i,
  int64_t b;
  i=0;
  b=100;
  while(i<4200){
    b *= 1.01;
    i++;
    if(b>=a)
      break;
  }
  cout << i << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected initializer before 'b'
    9 |   int64_t b;
      |           ^
a.cc:11:3: error: 'b' was not declared in this scope
   11 |   b=100;
      |   ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main()
{
	int X;
	cin >> X;
	int total = 0;
	int cnt = 0;
	
	for(int i = 101;i<=X;i++){
		total = X*0.01;
		if(total>=X){
			cnt = X/0.01;
			cnt*=100
		}
		
	}
	
	std::cout << cnt  <<  std::endl;
  
}


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

#include <iostream>

int main()
{
    int X;

    cin >> X;

    int en = 100;
    int c = 1;

    while (true)
    {

        en = en * 1.01;

        if (en >= X)
        {
            break;
        }
        c++;
    }

    cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin >> X;
      |     ^~~
      |     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:24:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |     cout << c << 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:24:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |     cout << c << 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 <stdio.h>
#include <stdlib.h>

int main(void){
    int X;

    scanf("%d",&X);


    int money;
    int nowmoney;
    int year;

    absmoney=100;
    year=0;

    while(money<X){
        money=absmoney*1.01;
        year++;
        absmoney=abs(money);
    }

    printf("%d",year);
    return 0;


}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: 'absmoney' undeclared (first use in this function)
   14 |     absmoney=100;
      |     ^~~~~~~~
main.c:14:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;

int main(){
    int X;
    cin >> X;
    int ans = 0;
    while (yokin < X){
        yokin = yokin * 1.01;
        ++ans;
    }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'yokin' was not declared in this scope
    8 |     while (yokin < X){
      |            ^~~~~
Language: C++

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


int main() {
  int X,A;
  cin >> X;
  
  int N = 100;
  
  rep(i,A)
    N *= 1.01
  
    if(N >= X){
        cout << A << endl;
        break;
    }
}


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

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

int main() {
  
  int X;
  int Y = 100
  cin >> X;
  
  for (int i = 1;  Y < X; i++) {
    Y += Y / 100
  }
    cout << i << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cin'
    8 |   cin >> X;
      |   ^~~
a.cc:11:17: error: expected ';' before '}' token
   11 |     Y += Y / 100
      |                 ^
      |                 ;
   12 |   }
      |   ~              
a.cc:13:13: error: 'i' was not declared in this scope
   13 |     cout << i << endl;
      |             ^
Language: C++

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

int main(){
  int x;
  cin >> x;
  
  int y=100
  int n=0;
  while(y>=x){
    y*=1.01;
    n++
  }
  cout << n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'int'
    9 |   int n=0;
      |   ^~~
a.cc:12:5: error: 'n' was not declared in this scope
   12 |     n++
      |     ^
a.cc:14:11: error: 'n' was not declared in this scope
   14 |   cout << n << endl;
      |           ^
Language: C++

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


int main() {
  int X,A;
  cin >> X;
  
  int N = 100;
  
  rep(i,A)
    N *= 1.01
  
  if(N >= X){
      cout << A << endl;
      break;
  }
}


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

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

int main(){
  int X,M,Y;
  cin >> X;
  M = 100;
  Y = 0;
  while(M<X){
   M *= 1.01;
   M /= 1
   Y++;
  }
  cout << Y << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'Y'
   11 |    M /= 1
      |          ^
      |          ;
   12 |    Y++;
      |    ~
Language: C++

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

int main(){
long long int k=100;
  long long int x;
  cin >> x;
  int roop=0;
  while(true){
    roop++;
    k+=k*0.01;
    if(k>=x){
     cout << roop << endl;
     return 0;
    }
  }

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