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


// Problem : B - 1%
// Contest : AtCoder - AtCoder Beginner Contest 165
// URL : https://atcoder.jp/contests/abc165/tasks/abc165_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>

#define FIO ios_base::sync_with_stdio(0); cin.tie(0);
#define T() int tt; cin >> tt; rep1(qq,1,tt)
#define rep(i,start,lim) for(int i=start;i<lim;i++)
#define rep1(i,start,lim) for(int i=start; i<=lim; ++i)
#define repd(i,start,lim) for(int i=start;i>=lim;i--)
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define br cout<<"\n"
#define MOD (1000000007LL)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define eps (1e-6)
#define what_is(x) cerr << #x << " is " << x << "\n";
#define int long long int
#define infll 9e18
#define inf 1e12

#define lnode (2 * node + 1)
#define rnode (2 * node + 2)

using namespace std;

typedef pair<int, int> pii;

const int N = 3 * 1e6 + 2;

int n, k;

int32_t main(){

  FIO
  cout << fixed << setprecision(18);
  //freopen("input.txt", "r", stdin);
  //freopen("output.txt", "w", stdout);

  long double p = 100.0;
  long double m = 1.01;
  int x; cin >> x;
  for(int i = 1; ; ++i){
    int t = i;
    long double val = p;
    while(t--){
      val *= m;
      val = floor(val);
    }
    if((int)val >= x){
      cout << i << '\n';
      break;
    }
  }


	return 0;
}






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

#include <stdio.h>
int main(int argc, char *argv[]){
    int n = argv[1];
    int poket = 100;
    int count = 0;
    while(poket <= n){
        poket += int(poket*0.01)
        count += 1
    }
    printf(count);
}

Compiler output:
main.c: In function 'main':
main.c:3:13: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    3 |     int n = argv[1];
      |             ^~~~
main.c:7:18: error: expected expression before 'int'
    7 |         poket += int(poket*0.01)
      |                  ^~~
main.c:10:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   10 |     printf(count);
      |            ^~~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '}' token
   12 |       break
      |            ^
      |            ;
   13 |     }
      |     ~       
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 <iostream>
#include <vector>
#include <string>
#include <list>
#include <queue>
#include <algorithm>
#define rep(i, n) for(i = 0; i < (n); i++)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
#define MOD 1000000007
#define PI 3.14159265358979323846
#define INF 1 << 30

using namespace std;
typedef long long ll;
typedef pair<int, int> pp;

int main(void) {
	int num, i;
	double n, a = 100;
	cin >> n;
	for (i = 1; i < 10000000; i++) {
		a *= 1.01;
		a = floor(a);
		if (a >= n)
			break;
	}
	cout << i << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:21: error: 'floor' was not declared in this scope
   24 |                 a = floor(a);
      |                     ^~~~~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double targ = scan.nextDouble();
    double first = 100.0;
    double rate = 1.01;
    int i = 100;
    int goal = 0;
    while (i <= targ){
      i*=rate;
      int i=Math.ceil(i);
      goal++;
    System.out.println(goal);
  }
}


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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define MAX(a,b) a=a>b?a:b
#define MIN(a,b) a=a<b?a:b
#define REP(i,x,n) for(int i=x;i<n;i++)
#define REPR(i,x,n) for(int i=n-1;i>=x;i--)
#define pb  push_back
#define ALL(obj) (obj).begin(), (obj).end()
#define ALLr(obj) (obj).rbegin(), (obj).rend()
#define F first
#define S second
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const double PI=3.14159265358979323846;
ll dp;

int main(){
   ll x;
   cin>>x;
   ll n=100,ans=0;
   while(n<x){
      n*=1.01;
      ans++;

   }
   cout<<ans<<endl;
}


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

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

int main() {
	long long unsigned int x;
	cin >> x;
	long long unsigned start = 100;
	for(int it = 1;  ;it++){
	    start = start + start/100;
	    if(start >= x){
	        cout << it;
	        break;
	    }
	}


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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double targ = scan.nextDouble();
    double first = 100.0;
    double rate = 1.01;
    int i = 100;
    int goal = 0
    while (i <= targ){
      i*=rate;
      int i=Math.ceil(i);
      goal++;
    System.out.println(goal);
  }
}


Compiler output:
Main.java:9: error: ';' expected
    int goal = 0
                ^
Main.java:16: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

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

int main() {
  int X;
  cin >> X;
  int T = 100;
  
   for (int i = 1; i++) {
     
     T *= 1.01;
 
    if (T >= X) {
      cout << i - 1 << endl;
      break;
    }
 
    
  }

 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before ')' token
    9 |    for (int i = 1; i++) {
      |                       ^
      |                       ;
Language: C++

import math

x = int(input())
p = 100
i = 0
while x > p:
    p = (101 * p)/100
    p = math.floor(p)
    i += 1

print(i)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main(){
    int x;
    cin >> x;
    int a=100;
    for (int i=1; i<=3760; i++;){
        a=floor(a*1.01);
        if(a>=x){
            cout << i << endl;
            break;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ')' before ';' token
    8 |     for (int i=1; i<=3760; i++;){
      |         ~                     ^
      |                               )
a.cc:8:32: error: expected primary-expression before ')' token
    8 |     for (int i=1; i<=3760; i++;){
      |                                ^
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <map>
 
using namespace std;
int main() {
  int x,s=100,c=0;
  cin>>x;
  
  while(){
      if(s>=x){
        break;
      }
      s+=s*(0.01);
	  c++;
  }
  cout<<c<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected primary-expression before ')' token
   12 |   while(){
      |         ^
Language: C++

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

int comp(int sum, double r, int year,int X)
{
    year--;
    if (sum < X)
        sum = (int)(comp(sum, r, year) * (1 + r));
    return year;
}

int main()
{
  int X;
  cin >> X;
    cout << comp(100, 0.01,0,X) << endl;
}


Compiler output:
a.cc: In function 'int comp(int, double, int, int)':
a.cc:8:25: error: too few arguments to function 'int comp(int, double, int, int)'
    8 |         sum = (int)(comp(sum, r, year) * (1 + r));
      |                     ~~~~^~~~~~~~~~~~~~
a.cc:4:5: note: declared here
    4 | int comp(int sum, double r, int year,int X)
      |     ^~~~
Language: C++

/*
 * main.c
 *
 *  Created on: 2020/03/28
 *      Author: family
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a > b ? b : a)
typedef long long int ll;
typedef unsigned long long int ull;

int sort_inc(const void *a, const void *b) { return (*(int*)a - *(int*)b);}
int sort_dec(const void* a, const void* b) { return (*(int*)b - *(int*)a);}
int sort_dec_ll(const void *a, const void *b) {
    ll da = *(ll*)a, db = *(ll*)b;    int val = 0;
    if(da > db) { val = -1; }
    else if (da == db) { val = 0; }
    else { val = 1; }
    return val;
}
int sort_inc_ll(const void *a, const void *b) {
    ll da = *(ll*)a, db = *(ll*)b;    int val = 0;
    if(da > db) { val = 1; }
    else if (da == db) { val = 0; }
    else { val = -1; }
    return val;
}
int sort_dic(const void *a, const void *b) {
    char *pa = (char *)a;    char *pb = (char *)b;    int i = 0, val = 0, N = 10;
    for (i = 0; i < N; i++) {
    	char da = pa[i], db = pb[i];
    	if (da == db) continue;
  		if (da > db) val = 1; else val = -1;
        break;
    }
    return val;
}

void yesno(int ans) {
	if (ans == 1) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return;
}

int main()
{
	ll X = 0;
	ll i = 0;
	scanf("%lld", &X);
	int j = 0;
	for (i = org; i < X; ) {
		i = i + (i * 0.01);
		j++;
	}
	printf("%lld\n", j);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:59:18: error: 'org' was not declared in this scope
   59 |         for (i = org; i < X; ) {
      |                  ^~~
Language: C

#include <stdio.h>
int n = argv[1];
int poket = 100;
int count = 0;
while(poket <= n){
    poket += int(poket*0.01)
    count += 1
}

printf(count);

Compiler output:
main.c:2:9: error: 'argv' undeclared here (not in a function)
    2 | int n = argv[1];
      |         ^~~~
main.c:5:1: error: expected identifier or '(' before 'while'
    5 | while(poket <= n){
      | ^~~~~
main.c:10:1: warning: data definition has no type or storage class
   10 | printf(count);
      | ^~~~~~
main.c:10:1: error: type defaults to 'int' in declaration of 'printf' [-Wimplicit-int]
main.c:10:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
main.c:10:1: error: conflicting types for 'printf'; have 'int()'
main.c:10:1: note: a parameter list with an ellipsis cannot match an empty parameter name list declaration
In file included from main.c:1:
/usr/include/stdio.h:363:12: note: previous declaration of 'printf' with type 'int(const char *, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
Language: C++

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

int comp(int sum, double r, int year,int X)
{
    year--;
    if (sum < X)
        sum = (int)(comp(sum, r, year) * (1 + r));
    return year;
}

int main()
{
  cin >> X;
    cout << comp(100, 0.01,0,X) << endl;
}


Compiler output:
a.cc: In function 'int comp(int, double, int, int)':
a.cc:8:25: error: too few arguments to function 'int comp(int, double, int, int)'
    8 |         sum = (int)(comp(sum, r, year) * (1 + r));
      |                     ~~~~^~~~~~~~~~~~~~
a.cc:4:5: note: declared here
    4 | int comp(int sum, double r, int year,int X)
      |     ^~~~
a.cc: In function 'int main()':
a.cc:14:10: error: 'X' was not declared in this scope
   14 |   cin >> X;
      |          ^
Language: C++

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

int main() {
	int X, Y, Z;
	cin >> X;

	Y = 100;
	Z = 0;
	
	int c;
	c = X/20000;
	if(c>0){
		Y = 100*200*c;
		Z = Z + c*100;
	}
	
	while(Y<X){
		Y = Y*1.01;
		Z++
	}
	
	cout << Z << endl;
}


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

#include<iostream>
using namespace std;
int main(){
	int X,cou,num=100;
	cin>>X;
	while(){
		num=int(num*1.01);
		cou++;
		if(num>=X)break;
	}
	cout<<cou<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ')' token
    6 |         while(){
      |               ^
Language: C++

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

int main() {
  int X;
  cin >> X;
  int A = 100;
  float N = log((float)(X/100.0f)) / log((float)1.01);
  int a = (int) N*10;
  if (mod(a, 10) > 0) {
    a+=10;
  }
  cout << (int)(a/10) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'mod' was not declared in this scope; did you mean 'modf'?
   12 |   if (mod(a, 10) > 0) {
      |       ^~~
      |       modf
Language: C

#include <iostream>
using namespace std;

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


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

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

int main(){
  int X;
  cin >> X;
  
  int balance=100;
  int i=1;
  while(true){
    balance=<int>(balance*1.01);
    if(balance>=X){
      cout << i << endl;
      break;
    }
      
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '<' token
   11 |     balance=<int>(balance*1.01);
      |             ^
a.cc:11:14: error: expected primary-expression before 'int'
   11 |     balance=<int>(balance*1.01);
      |              ^~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String []args){
    Scanner sc=new Scanner(System.in);
    int t=100;
    int sum=0;
    int k=sc.nextInt();
    while(t<x){
      t= t+floor(t*0.01);
      sum++;
    }
    System.out.println(sum);
  }
}
      

Compiler output:
Main.java:8: error: cannot find symbol
    while(t<x){
            ^
  symbol:   variable x
  location: class Main
Main.java:9: error: cannot find symbol
      t= t+floor(t*0.01);
           ^
  symbol:   method floor(double)
  location: class Main
2 errors
Language: C++

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

int main()
{
    double d,a;

    cin >> d;
    a = 100;
    int count =0;

    while (a < d) {
        a = a * 1.01;
        a = floor(a);
        count++;
    }



        cout << count;
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'floor' was not declared in this scope
   16 |         a = floor(a);
      |             ^~~~~
Language: C++

int main()
{
  int a;
  int count=0;
  cin >> a;
  int b=100;
  if(a==100)
  {
  cout << "0" << endl;
  return 0;
  }
  while(b>=a)
  {
    count++;
    b=b*1.01;
  }
	cout << count << endl;
}


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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double targ = scan.nextDouble();
    double first = 100.0;
    double rate = 1.01;
    int goal = Math.ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
    System.out.println(goal);
  }
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to int
    int goal = Math.ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
                        ^
1 error
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  int x;
  cin >> x;
  
  long long sum=100
  int i=1;
  for(i=1;sum<x;i++){
    sum*=1.01;  
  }
  cout << i-1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'int'
   10 |   int i=1;
      |   ^~~
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=1;sum<x;i++){
      |       ^
a.cc:14:11: error: 'i' was not declared in this scope
   14 |   cout << i-1 << endl;
      |           ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
    int X;

    cin >> X;

    int en = 100;
    int count = 0;

    for (int i = 1; i < 1000000000000000000; ++i)
    {

        en = en * 0.01;

        if (en == X)
        {
            break;
        }
    }

    cout << i << endl;
}

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


#include <stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |     scanf_s("%lld", &x);
      |     ^~~~~~~
      |     scanf
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected primary-expression before ')' token
    9 |         for(int i=0;i+n+(n*1%);i++)
      |                              ^
Language: C++

#include <vector>
#include <string>
#include <cstring>
#include <queue>
#define ll long long
using namespace std;
int main(){
    long long i=100;
    long long x;cin>>x;
    int count=0;
    long long n;
    while(true){
        n=i/100;
        i+=n;
        count++;
        if(i>=x)break;
    }
    cout<<count<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'cin' was not declared in this scope
    9 |     long long x;cin>>x;
      |                 ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <queue>
  +++ |+#include <iostream>
    5 | #define ll long long
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<count<<endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:18: error: 'endl' was not declared in this scope
   18 |     cout<<count<<endl;
      |                  ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include <queue>
  +++ |+#include <ostream>
    5 | #define ll long long
Language: C

#include<stdio.h>
int main(void){
  int X, i;
  scanf("%d", &X);
  while(1){
    int i=100;
    for(i<=X){
    	i=i*1.01;
      	i++;
    }
    printf("%d", i);
  }
  return 0;
}
      

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected ';' before ')' token
    7 |     for(i<=X){
      |             ^
      |             ;
main.c:7:13: error: expected expression before ')' token
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double targ = scan.nextDouble();
    double first = 100.0;
    double rate = 1.01;
    int goal = ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
    System.out.println(goal);
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    int goal = ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
               ^
  symbol:   method ceil(double)
  location: class Main
1 error
Language: C++

#include <iostream>
#include <string>

using std::cout;
using std::cin;
using std::endl;
using std::string;




int main(){
	int i,t,x;
	cin >> x;
	t=0;
	while(true){
		t++;
		i=(int)(i*1.01)
		if (x<=i){
			cout << t;
			return 0;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:32: error: expected ';' before 'if'
   18 |                 i=(int)(i*1.01)
      |                                ^
      |                                ;
   19 |                 if (x<=i){
      |                 ~~
Language: C++

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

double ri() {
    double n;
    cin >> n;
    return n;
}


int main()
{
    int k,b;
    double d,a;

    d = ri();
    a = 100;
    int count =0;

    while (a < d) {
        a = a * 1.01;
        a = floor(a);
        count++;
    }



        cout << count;
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:13: error: 'floor' was not declared in this scope
   24 |         a = floor(a);
      |             ^~~~~
Language: Java

import java.util.Scanner;
import
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double targ = scan.nextDouble();
    double first = 100.0;
    double rate = 1.01;
    int goal = ceil(Math.log(targ*(rate-1)/first+1)/Math.log(rate));
    System.out.println(goal);
  }
}

Compiler output:
Main.java:2: error: <identifier> expected
import
      ^
1 error
Language: C++

#include <iostream>
#include <math>
 
using namespace std;
 
int main() {
  double x, a=0;
  int y = 1;
  cin>>x;
  if(x <=100){
    cout<<"0";
    return;
  }else {
  while(a <= x){
    a = 100 * (pow(1.01,y))
    if(a >= x){
      cout<<y;
      return;
    }
    y++;
  	}
  }
}


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


int main()
{
  int a;
  int count=0;
  cin >> a;
  int b=100;
  if(a==100)
  {
  cout << "0" << endl;
  return 0;
  }
  while(b>=a)
  {
    count++;
    b=b*1.01;
  }
	cout << count <<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
 
int main() {
  ll X; cin>>X;
  ll r = 100;
  ll ans=0;
  while(r<X){
    r = r*1.01;
    ans++:
  }
  cout<<ans<<endl;
}

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

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

int main() {
  int x;
  cin >> x;
  
  int k = 100;
  int counter = 1;
  for(int i=0; i<x; j++){
    k = k*1.01;
    if(k >= x){
      cout << counter << endl;
      break;
    }
    courter++;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'j' was not declared in this scope
   10 |   for(int i=0; i<x; j++){
      |                     ^
a.cc:16:5: error: 'courter' was not declared in this scope; did you mean 'counter'?
   16 |     courter++;
      |     ^~~~~~~
      |     counter
Language: C++

#include <iostream>
using namespace std;

int main(){
  float x;
  cin>>x;
  int i=0;
  float a=100;
  while(a<x){
    x=floor(x*1.01);
    i+=1;
  }
  cout << i<<endl;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
int sum_ex(int);
int input(){
    int N;
    cin >> N;
    return N; 
}
vector<int> input(int N){
    vector<int> vec(N);
    for(auto& v : vec)
        cin >> v;
    return vec;
}

void Cont(){
    mp::cpp_int X;//101~10^18
    cin >> X;
    mp::cpp_int yokin = 100;
    int year = 0;
    while(X > yokin){
        yokin = mp::*(yokin,1.01);
      //  cout << yokin << "\n";
        year++;
    }
    cout << year << "\n";
}

int main()
{
	std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    std::cout << std::fixed << std::setprecision(15);
    Cont();
}

Compiler output:
a.cc:3:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    3 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(){
  int x money y;
  scanf("%d",x);
  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:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'money'
    3 |   int x money y;
      |         ^~~~~
main.c:3:9: error: unknown type name 'money'
main.c:4:14: error: 'x' undeclared (first use in this function)
    4 |   scanf("%d",x);
      |              ^
main.c:4:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:12: error: lvalue required as left operand of assignment
    5 |   for(y=1;1=1;y++){
      |            ^
main.c:6:5: error: 'money' undeclared (first use in this function)
    6 |     money = money*1.01;
      |     ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int X;
  cin >> X;
  int A = 100;
  float N = log((float)X/100) / log(1.01);
  int a = (int) N;
  if ((N - a) > 0) {
    a++;
  }
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'log' was not declared in this scope; did you mean 'long'?
    8 |   float N = log((float)X/100) / log(1.01);
      |             ^~~
      |             long
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double interest = 100.0;
        int year = 0;
        while (interest <= n){
            interest = interest * 1.01;
            floor(interest);
            year += 1;
            if (interest == n){
                break;
            }
        }

        System.out.println(year);
    }
}

        

        





Compiler output:
Main.java:10: error: cannot find symbol
            floor(interest);
            ^
  symbol:   method floor(double)
  location: class Main
1 error
Language: C++

#include<stdio.h>

int main(void) {

	int x, nowMoney = 100, tempMoney = 100;
	int ans = 0;

	scanf_s("%d",&x);

	while (nowMoney < x) {
		nowMoney += (tempMoney / 100);
		tempMoney = nowMoney;
		ans++;
	}
	printf("%d\n",ans);

	return 0;
}

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<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
	__int64 a;scanf("%I64d",&a);
	__int64 sum=100; __int64 ant=0;
	while(sum<a){
		sum=sum+sum/100;
		ant++;
	}
	printf("%I64d",ant);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
    5 |         __int64 a;scanf("%I64d",&a);
      |         ^~~~~~~
      |         __ynf64
a.cc:5:34: error: 'a' was not declared in this scope
    5 |         __int64 a;scanf("%I64d",&a);
      |                                  ^
a.cc:6:16: error: expected ';' before 'sum'
    6 |         __int64 sum=100; __int64 ant=0;
      |                ^~~~
      |                ;
a.cc:6:33: error: expected ';' before 'ant'
    6 |         __int64 sum=100; __int64 ant=0;
      |                                 ^~~~
      |                                 ;
a.cc:7:15: error: 'sum' was not declared in this scope
    7 |         while(sum<a){
      |               ^~~
a.cc:9:17: error: 'ant' was not declared in this scope; did you mean 'int'?
    9 |                 ant++;
      |                 ^~~
      |                 int
a.cc:11:24: error: 'ant' was not declared in this scope; did you mean 'int'?
   11 |         printf("%I64d",ant);
      |                        ^~~
      |                        int
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'while'
    9 |   while (X>M){
      |   ^~~~~
Language: C

#include<iostream>
#include<string>
#include <cstdlib>
#include <algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<vector>
#include<queue>
#include <assert.h>
#include<map>
#include<set>
#include<bitset>
#include <iomanip>
#include<stack>
#include <unordered_map>
#include<cmath>
using namespace std;
#pragma comment(linker, "/STACK:1024000000,1024000000")
// #define pi acos(-1)
// #include<bits/stdc++.h>
typedef long long ll;
#define INF 0x7f7f7f7f //2139062143
#define INF1 0x3f3f3f3f //1061109567
#define INF2 2147483647
#define llINF 9223372036854775807
#define pi 3.14159265358979323846264338327950254
#define pb push_back
#define ll long long
#define debug cout << "debug\n";
#define STDIN freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);//************************************
#define Quick ios::sync_with_stdio(false);cin.tie(NULL);
#define scai(x) scanf("%d", &x)
#define sca2i(x, y) scanf("%d %d", &x, &y)
#define scaf(x) scanf("%lf", &x)
#define sca2f(x, y) scanf("%lf %lf", &x, &y)
#define For(m,n) for (int i = m;  i < n; i++)
#define PII pair<int,int>
#define PLL pair<long, long>
#define ft first
#define sd second
#define pb push_back


const int maxn=333333,mod=1000000009;
#define lson o<<1,l,mid
#define rson o<<1|1,mid+1,r
#define FOR(i,a,b) for(int i=(a);i<=(b);i++)
#define ROF(i,a,b) for(int i=(a);i>=(b);i--)
#define MEM(x,v) memset(x,v,sizeof(x))

inline int read(){
    char ch=getchar();int x=0,f=0;
    while(ch<'0' || ch>'9') f|=ch=='-',ch=getchar();
    while(ch>='0' && ch<='9') x=x*10+ch-'0',ch=getchar();
    return f?-x:x;}
 

double qmi(double m, int k)
{
    double res = 1;
    double t = m;
    while (k)
    {
        if (k&1) res = res * t;
        t = t * t;
        k >>= 1;
    }
    return res;
}
 int main()
 {
     //STDIN

     ll n;
     cin >> n;
    //  cout << n << endl;
    ll sum = 100;
     for (int i = 1; i <= 5000; i++)
     {
        //  cout << i << " " <<(ll)100*qmi(1.01,i) << endl;
        sum *=1.01;
         if (sum >= n)
         {
             cout << i << endl;
             return 0;
         }
     }
     
 }

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: Java

public class Main {
	public static void main(String[] args) {
		FastScanner sc = new FastScanner();
		int a = Integer.parseInt(sc.next());
		int sum = 100;
		int count = 0;
		while(a > sum) {
			sum *= 1.01;
			count++;
		}
		System.out.print(count);
	}
}

class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
}


Compiler output:
Main.java:16: error: cannot find symbol
    private final InputStream in = System.in;
                  ^
  symbol:   class InputStream
  location: class FastScanner
Main.java:27: error: cannot find symbol
            } catch (IOException e) {
                     ^
  symbol:   class IOException
  location: class FastScanner
Main.java:40: error: cannot find symbol
        if (!hasNext()) throw new NoSuchElementException();
                                  ^
  symbol:   class NoSuchElementException
  location: class FastScanner
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
int sum_ex(int);
int input(){
    int N;
    cin >> N;
    return N; 
}
vector<int> input(int N){
    vector<int> vec(N);
    for(auto& v : vec)
        cin >> v;
    return vec;
}

void Cont(){
    mp::cpp_int X;//101~10^18
    cin >> X;
    mp::cpp_int yokin = 100;
    int year = 0;
    while(X > yokin){
        yokin = yokin * 1.01;
      //  cout << yokin << "\n";
        year++;
    }
    cout << year << "\n";
}

int main()
{
	std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    std::cout << std::fixed << std::setprecision(15);
    Cont();
}

Compiler output:
a.cc:3:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    3 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int a=100;
  int x;
  cin>>x;
  int year=0;
  while(true) {
    if(a>=x) {
      break;
    }
    a+=a/100
    year++;
  }
  cout<<year<<endl;
  return 0;
}


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

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

int main(){
    long long int X;
    cin >> X;

    int count = 0;
    long long int total = 100;
    
    for(int i=0;;i++) {
        count += 1;
        total = (total*101)/100;
        if(total>=X){
            break;
        }
    }

    cout << count << endl;
}

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

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <map>
 
using namespace std;
int main() {
  int x,s=100;
  cin>>x;
  for(int i=0;i++){
      if(s>=x){
        cout<<i<<endl;
      }
    else{
      s+=s*(0.01)
      i++
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before ')' token
   11 |   for(int i=0;i++){
      |                  ^
      |                  ;
a.cc:16:18: error: expected ';' before 'i'
   16 |       s+=s*(0.01)
      |                  ^
      |                  ;
   17 |       i++
      |       ~
Language: Java

import java.util.Scanner;

public class B {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long X = sc.nextLong();
		long money = 100;
		int count = 0;
		while(true){
			money += money * 0.01;
			//System.out.println(money);
			count++;
			if(money >= X){
				System.out.println(count);
				return;
			}
		}
	}

}

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

	double x;
	cin >> x;

	int cut = 0;
	double sum = 100;
	while(sum < x) {
		sum *= (double)1.01;
		//sum = round(sum);
		cut++;
	cout << sum << endl;

	}

	cout << cut << endl;

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> x;
      |         ^~~
a.cc:6:9: error: expected unqualified-id before 'while'
    6 |         while(sum < x) {
      |         ^~~~~
a.cc:14:9: error: 'cout' does not name a type
   14 |         cout << cut << endl;
      |         ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected primary-expression before ';' token
    9 |         for(int i=0;i+100+100*1%;i++)
      |                                 ^
Language: C++

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

int main(){
  long long int N,M,K=100;
  string S;
  
  cin>>N ;
  long longint cnt=0;
  while(K<N){
    cnt++;
    K*=1.01;
  }
  
  cout<<cnt<<endl;
  
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected initializer before 'cnt'
    9 |   long longint cnt=0;
      |                ^~~
a.cc:11:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |     cnt++;
      |     ^~~
      |     int
a.cc:15:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |   cout<<cnt<<endl;
      |         ^~~
      |         int
Language: C

#include<stdio.h>
int main()
{
    int x;
  	int	i = 1;
  	int money = 100;
	scanf("%d", &x);
  	
	double rate;
  	while(1){
      	rate = money * 0.01;
    	money += rate;
      	if(k <= money){
        	break;	
       	}
      	i++;
    }

  	puts(i);
 
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:12: error: 'k' undeclared (first use in this function)
   13 |         if(k <= money){
      |            ^
main.c:13:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:14: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   19 |         puts(i);
      |              ^
      |              |
      |              int
In file included from main.c:1:
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
int sum_ex(int);
int input(){
    int N;
    cin >> N;
    return N; 
}
vector<int> input(int N){
    vector<int> vec(N);
    for(auto& v : vec)
        cin >> v;
    return vec;
}

void Cont(){
    mp::cpp_int X;//101~10^18
    cin >> X;
    mp::cpp_int yokin = 100;
    int year = 0;
    while(X > yokin){
        yokin *= 1.01;
      //  cout << yokin << "\n";
        year++;
    }
    cout << year << "\n";
}

int main()
{
	std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    std::cout << std::fixed << std::setprecision(15);
    Cont();
}

Compiler output:
a.cc:3:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    3 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

int main(void){
  long long s=100LL;
  long long x;
  int ans=0;
  while(s<x){
    ans++;
	s = s*1.01;
  }
  cout << ans << endl;
  return 0;
    
 }

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

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

int main() {
  int x;
  cin >> x;
  int a = 100;
  for (int i = 0; i++) {
    a*= 1.01

    if (a >= x) {
      cout << i << endl;
      break; 
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before ')' token
    8 |   for (int i = 0; i++) {
      |                      ^
      |                      ;
a.cc:9:13: error: expected ';' before 'if'
    9 |     a*= 1.01
      |             ^
      |             ;
   10 | 
   11 |     if (a >= x) {
      |     ~~
Language: C++

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

int main() {
  int a=100;
  int x;
  cin>>x;
  int year=0;
  while(a<x) {
    a=a+a/100
    year++;
  }
  cout<<year<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'year'
   10 |     a=a+a/100
      |              ^
      |              ;
   11 |     year++;
      |     ~~~~
Language: C++

#include <iostream>
#include <cfenv>
#include <cmath>
using namespace std;
int main(void)
{
	double X, Y;
	
	Y=100;
	cin >> X;
	
	for(int i=1;;i++)
	{
		Y += ceil(Y%100.0);
		if(X<=Y)
		{
			cout << i << endl;
			return 0;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   14 |                 Y += ceil(Y%100.0);
      |                           ~^~~~~~
      |                           | |
      |                           | double
      |                           double
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
int sum_ex(int);
int input(){
    int N;
    cin >> N;
    return N; 
}
vector<int> input(int N){
    vector<int> vec(N);
    for(auto& v : vec)
        cin >> v;
    return vec;
}

vector<int> input_ex(int N){
    vector<int> vec(N);
    for(auto& v : vec){
        int rawdata = 0;
        cin >> rawdata;
        while(!(rawdata%2)){
            v++;
            rawdata/=2;
        }
    }
    return vec;
}

void Cont(){
    mp::cpp_int x  X = input();//101~10^18
    mp::cpp_int x  yokin = 100;
    int year = 0;
    while(X > yokin){
        yokin *= 1.01;
      //  cout << yokin << "\n";
        year++;
    }
    cout << year << "\n";
}

int main()
{
	std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    std::cout << std::fixed << std::setprecision(15);
    Cont();
}

Compiler output:
a.cc:3:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    3 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int interest = 100;
        int year = 0;
        while (interest <= n)[
            interest = interest * 1.01;
            year += 1;
            if (interest == n){
                break;
            }
        ]

        System.out.println(year);
    }
}


Compiler output:
Main.java:8: error: illegal start of expression
        while (interest <= n)[
                             ^
Main.java:14: error: illegal start of expression
        ]
        ^
2 errors
Language: C++

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


int main() {
    int N,M=100,cnt=0;
    cin >> N;

    while(true){
        int i=M/100;
        m+=i;
        cnt++;
        if(M>=N)break;
    }
    cout << cnt << endl;

}




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

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


int main() {
    int N,M=100,cnt=0;
    cin >> N;

    while(true){
        int i=M/100;
        m+=i
        cnt++;
        if(M>=N)break;
    }
    cout << cnt << endl;

}




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

#include <iostream>

using namespace std;

int main(){
    int x ;
    int m = 100;
    int y = 0;
    cin >> x;


    for (y=1;m <= x;y++){
        m = m * 1.01
    }
    cout << y << endl;

    return 0;
}

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

#include <iostream>
#include <cfenv>
#include <cmath>
using namespace std;
int main(void)
{
	double X, Y;
	
	Y=100;
	cin >> X;
	
	for(int i=1;;i++)
	{
		Y += ceil(Y%100);
		if(X<=Y)
		{
			cout << i << endl;
			return 0;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |                 Y += ceil(Y%100);
      |                           ~^~~~
      |                           | |
      |                           | int
      |                           double
Language: C++

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


int main() {
    int N,M=100,cnt=0;
    cin >> N;

    while(true){
        int i=M/100
        m+=i
        cnt++;
        if(M>=N)break;
    }
    cout << cnt << endl;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ',' or ';' before 'm'
   11 |         m+=i
      |         ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before ')' token
    9 |   for ( 1 ) {
      |          ^~
      |          ;
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
a.cc:16:4: error: expected ';' before '}' token
   16 |   }
      |    ^
      |    ;
   17 | 
   18 | }
      | ~   
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
a.cc:16:4: error: expected ')' before '}' token
   16 |   }
      |    ^
      |    )
   17 | 
   18 | }
      | ~   
a.cc:9:7: note: to match this '('
    9 |   for ( 1 ) {
      |       ^
a.cc:18:1: error: expected primary-expression before '}' token
   18 | }
      | ^
Language: C

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

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

	int ans = 100;
	int  count =0;
	while(ans<=X){
	count += 1
	ans = ans *1.01;
}

printf("%d",count);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected ';' before 'ans'
   12 |         count += 1
      |                   ^
      |                   ;
   13 |         ans = ans *1.01;
      |         ~~~
Language: Java

import java.util.*;
public class ATcoderyen {

	public static void main(String[] args) 
	{
		// TODO Auto-generated method stub
		Scanner in=new Scanner(System.in);
        int a=in.nextInt();
        long ans=100,ctr=0;
        while(ans<a)
        {
        	ans=ans+(long)(0.01*ans);
        	ctr++;
        }
        System.out.println(ctr);
	}

}


Compiler output:
Main.java:2: error: class ATcoderyen is public, should be declared in a file named ATcoderyen.java
public class ATcoderyen {
       ^
1 error