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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class P0007 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try{
			int week = Integer.parseInt(br.readLine());
			System.out.println(calcAfterDebt(100000, week));
		}
		catch(Exception e){
			return;
		}
		finally{
			try {
				br.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				return;
			}
		}
	}
	
	private static int calcAfterDebt(int base,int week)
	{
		int result = base;
		for(int i=0;i<week;i++){
			result = (int) (result*1.05);
			if(result % 1000 > 0){
				result = cutThousand(result) + 1000;
			}
		}
		return result;
	}

	private static int cutThousand(int money){
		String str = Integer.toString(money);
		String str2 = str.substring(0, str.length() - 3);
		while(str2.length() < str.length()){
			str2 += "0";
		}
		
		return Integer.parseInt(str2);
	}
}

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

import java.io.*;
import java.util.*;
 
public class Main {
 
    public static void main(String[] args)
            throws java.io.IOException{
        Scanner scan = new Scanner(System.in);
 int sum=100000;

             for(int n=scan.nextInt();n>0;n--){
sum +=5000;
int m= up3(sum);
sum+=(10-m)*100;
}
System.out.println(sum);
}
public static int up3(int n){
return n%1000;

        }


 

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

import java.util.*;
public class a0007 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		long money = 100000;
		
		for(int i=1; i<=n; i++){
			money = (long) (money*1.05);
			if(money % 1000 != 0)
				money = money - money%1000 +1000 ; 
				
		}
		
		System.out.println(money);

	}

}

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

import java.util.Scanner;

public class DebtHell {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner in = new Scanner(System.in);
		int week = in.nextInt();
		int dept = 100000;
		
		for (int i = 0; i < week; i++) {
			// 利子の計算
			dept = (int)(dept * 1.05);
			// 1,000円未満は切り上げ
			if (dept % 1000 != 0) {
				dept = (dept / 1000) * 1000;
				dept += 1000;
			}
		}
		
		System.out.println(dept);
	}

}

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

import java.util.Scanner;
 
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int a = 100;
for (int i = 0; i < n; i++) {
a = Math.ceil(a * 1.05);
}
System.out.println(a * 1000);
}
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
a = Math.ceil(a * 1.05);
             ^
1 error
Language: Java

import java.util.*;
public class Math{
	public static void main(String[] args) { 
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double money = 10;
		for(int i=0;i<n;i++)
			money*=1.05;	
		System.out.println(Math.ceil(money)*10000);
	}
}

Compiler output:
Main.java:2: error: class Math is public, should be declared in a file named Math.java
public class Math{
       ^
Main.java:9: error: cannot find symbol
		System.out.println(Math.ceil(money)*10000);
		                       ^
  symbol:   method ceil(double)
  location: class Math
2 errors
Language: Java

mport java.util.Scanner;

/**
 * Created by Reopard on 2014/05/06.
 */
public class Main {
    public static void main(String args[]){
        int debt = 100000;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++){
            debt += debt*0.05;
            if(debt % 1000 > 0){
                debt -= debt % 1000;
                debt += 1000;
            }
        }
        System.out.println(debt);
    }
}

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

import java.util.Scanner;

/**
 * Created by Reopard on 2014/05/06.
 */
public class DebtHell {
    public static void main(String args[]){
        int debt = 100000;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++){
            debt += debt*0.05;
            if(debt % 1000 > 0){
                debt -= debt % 1000;
                debt += 1000;
            }
        }
        System.out.println(debt);
    }
}

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

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

using namespace std;

int calcDebt(int debt){
	double tmp = debt * 1.05;
	int result = (int) ceil(tmp);
	if(result % 1000 == 0){
		return result;
	}else{
		return (result / 1000 + 1) * 1000;
	}
}

int main(int argc, char *argv[]) {
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d", result);
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int calcDebt(int debt){
^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: <identifier> expected
int main(int argc, char *argv[]) {
                       ^
Main.java:19: error: illegal start of expression
	scanf("%d", &n);
	            ^
5 errors
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;
public class Main{
	private int first;
	DebtHell(int yen){
		first = yen;
	}
	int calculate(int yen){
		BigDecimal bd = new BigDecimal(yen*1.05);
		BigDecimal bd1 = bd.setScale(-4, BigDecimal.ROUND_HALF_UP);
		return bd1.intValue();
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		DebtHell Deb = new DebtHell(100000);
		int n = scan.nextInt();
		int yen = 100000;
		for(int i=0;i<n-2;i++){
			yen =Deb.calculate(yen);
		}
		System.out.println(yen);
		scan.close();
	}
}

Compiler output:
Main.java:5: error: invalid method declaration; return type required
	DebtHell(int yen){
	^
1 error
Language: Java

import java.util.Scanner;
import java.math.BigDecimal;
public class Main{
	private int first;
	Main(int yen){
		first = yen;
	}
	int calculate(int yen){
		BigDecimal bd = new BigDecimal(yen*1.05);
		BigDecimal bd1 = bd.setScale(-4, BigDecimal.ROUND_HALF_UP);
		return bd1.intValue();
	}
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
	 　　　　Main Deb = new Main(100000);
		int n = scan.nextInt();
		int yen = 100000;
		for(int i=0;i<n-2;i++){
			yen =Deb.calculate(yen);
		}
		System.out.println(yen);
		scan.close();
	}
}

Compiler output:
Main.java:15: error: illegal character: '\u3000'
	 ????Main Deb = new Main(100000);
	 ^
Main.java:15: error: illegal character: '\u3000'
	 ????Main Deb = new Main(100000);
	  ^
Main.java:15: error: illegal character: '\u3000'
	 ????Main Deb = new Main(100000);
	   ^
Main.java:15: error: illegal character: '\u3000'
	 ????Main Deb = new Main(100000);
	    ^
4 errors
Language: C

#include<stdio.h>

int main(void){

int r=100000;
int n,a;

scanf("%d",&n);


for(int i = 0; i<n; i++){
 r = r*1.05;

if(r%1000 > 0){
a=r%1000
r=r+1000-a;
}
}
printf("%d\n",r);

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:9: error: expected ';' before 'r'
   15 | a=r%1000
      |         ^
      |         ;
   16 | r=r+1000-a;
      | ~
Language: C

#include <stdio.h>
int main(void)
{
int i,j,n,k=1;	
	
i=100000;
scanf("%d",&n);

if(n==0){
printf("%d\n",i);
return 0;}

do{
	j=i*0.05;
i+=j;
if(i%1000!=0)i=i+1000-(i%1000);
k++;
}while(k<=n);

printf("%d\n",i);
return 

Compiler output:
main.c: In function 'main':
main.c:21:1: error: expected expression at end of input
   21 | return
      | ^~~~~~
main.c:21:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int roundup(double x);

int main(void){
	double debt;
	int debt2;
	double rishi;
	int n;	//年数入力用変数
	int i;	//ループ用変数
	debt = 100000;
	rishi = 1.05;

	scanf("%d", &n);

	for (i = 0; i < n; i++){
		debt = debt*rishi;
	}
	debt2 = roundup(debt / 10000);
	debt2 *= 10000;
	printf("%d\n", debt2);

	return 0;

}

int roundup(double x){
	int y;

	x += 0.9;
	y = (int)x;
	return y
}

Compiler output:
main.c: In function 'roundup':
main.c:32:17: error: expected ';' before '}' token
   32 |         return y
      |                 ^
      |                 ;
   33 | }
      | ~
Language: C

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

int main(void){
	int n = 0;
	double debt = 100;	/*100 thousand yen*/
	int i = 0;
	
	scanf("%d", &n);
	for (i = 0; i < n; i++){
		debt = ceil(debt * 1.05);
	}

	printf("%d", (int) (debt * 1000);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:41: error: expected ')' before ';' token
   14 |         printf("%d", (int) (debt * 1000);
      |               ~                         ^
      |                                         )
main.c:16:18: error: expected ';' before '}' token
   16 |         return 0;
      |                  ^
      |                  ;
   17 | }
      | ~
Language: C

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

int main(){

	int a = 100000;
	int b = 0;
	float c = 0.05;
	int n = 0;

	scanf("%d",&n);

	if (n > 100)
	{
	　　　　n = 100;
	}

	b = a * c;

	
	for (int i = 0; i < n; i++)
	{
		a += b;
	}

	a = int(a / 100) * 100;

	printf("%d\n",a);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |         ^~~~~~~~
main.c:15:11: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |                 ^~~~~~~~
main.c:15:13: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |                         ^~~~~~~~
main.c:15:15: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |                                 ^~~~~~~~
main.c:26:13: error: expected expression before 'int'
   26 |         a = int(a / 100) * 100;
      |             ^~~
Language: C

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

int main(){

	int a = 100000;
	int b = 0;
	float c = 0.05f;
	int n = 0;

	scanf("%d",&n);

	if (n > 100)
	{
	　　　　n = 100;
	}

	b = a * c;

	
	for (int i = 0; i < n; i++)
	{
		a += b;
	}

	a = int(a / 100) * 100;

	printf("%d\n",a);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |         ^~~~~~~~
main.c:15:11: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |                 ^~~~~~~~
main.c:15:13: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |                         ^~~~~~~~
main.c:15:15: error: stray '\343' in program
   15 |         <U+3000><U+3000><U+3000><U+3000>n = 100;
      |                                 ^~~~~~~~
main.c:26:13: error: expected expression before 'int'
   26 |         a = int(a / 100) * 100;
      |             ^~~
Language: C

include<stdio.h>

int main(void)
{
  int n;
  int debt = 100000;
  scanf("%d",&n);
  while ( n-- > 0 ) {
    debt *= 1.05;
    if ( debt % 1000 ) {
      debt /= 1000;
      debt += 1;
      debt *= 1000;
    }
  }
  printf("%d\n", debt);
  return 0;
}
    

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

#include <stdio.h>

int main(void){

int n;
long debt;

scanf("%d", &n);

debt=100000;

for(i=1; i<=n; i++){

debt=debt+debt/20;

if(debt%1000!=0){
debt=debt+(1000-debt%1000);
}

i++;

}  

return 0;
}

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

include <stdio.h>
 
int main(void){
 
int n, i, debt;
 
debt=100000;

 scanf("%d", &n);
 
for(i=0; i<n; i++){
 
debt=debt+(debt/20);
 
if(debt%1000!=0)
debt=debt+(1000-(debt%1000));
 
}

 printf("%d", debt);
 
return 0;
 
}

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

#include<stdio.h>

int main(){
	int i,j;
	int n;
	int debt;
	
	scanf("%d",&n);
	
        
	for(i=0;i<=n;i++){
            if(i==0) debt=100000;
	    else{
                debt+=debt*0.05;
		if(debt%1000!=0){
			debt/=1000;
			debt*=1000;
			debt+=1000;
	    }
	}
	printf("%d\n",debt);
	
	return 0;
}

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

#include<stdio.h>

int main(){
	int i,j;
	int n;
	int debt;
	
	scanf("%d",&n);
	
        
	for(i=0;i<=n;i++){
            if(i==0){
                debt=100000;
	    }else{
                debt+=debt*0.05;
		if(debt%1000!=0){
			debt/=1000;
			debt*=1000;
			debt+=1000;
	    }
	}
	printf("%d\n",debt);
	
	return 0;
}

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

#include<stdio.h>

int main(void) {
	int i,n, j;
	double debt = 100000;
	scanf_s("%d",&n);
	for (i = 0; i < n; i++) {
		debt = debt*1.05;
		j = debt;
		j = j / 1000 + 1;
		debt = j * 1000;
	}
	printf("%lf\n", debt);

	return 0;
}

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

#include<stdio.h>

int main(void) {
	int i,n,j,k;
	double debt = 100000;
	scanf("%d",&n);
	for (i = 0; i < n; i++) {
		debt = debt*1.05;
		j = debt;
		j = j / 1000 + 1;
		debt = j * 1000;
	}
        k=debt
	printf("%d\n", k);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:15: error: expected ';' before 'printf'
   13 |         k=debt
      |               ^
      |               ;
   14 |         printf("%d\n", k);
      |         ~~~~~~
Language: C

#include<stdio.h>

int main(void){
	int i,j;
	double debt;
	scanf("%d",i);
	for(i=0,i<n;i++){

		debt = debt*1.05;
		j = debt;
		if((debt-j)==0.000){
		j = j/1000 ;
		debt = j*1000;
		}
		else{
		j = j/1000 +1;
		debt = j*1000;

		}

	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: 'n' undeclared (first use in this function)
    7 |         for(i=0,i<n;i++){
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:24: error: expected ';' before ')' token
    7 |         for(i=0,i<n;i++){
      |                        ^
      |                        ;
Language: C

#include<stdio.h>

int main(void){
	int i,n;
	int x = 100000;
	scanf("%d"&n);

	for(i=0;i<n;i++){
		x=x*1.05;
		if(x%1000!=0){
			x=(x/1000+1)*1000;
		}
	}
	printf("%d\n",%x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d"&n);
      |               ~~~~^
      |               |
      |               char *
main.c:14:23: error: expected expression before '%' token
   14 |         printf("%d\n",%x);
      |                       ^
Language: C

#include<stdio.h>

int main(void){
	int i,n;
	int x = 100000;
	scanf("%d"&n);

	for(i=0;i<n;i++){
		x=x*1.05;
		if(x%1000!=0){
			x=(x/1000+1)*1000;
		}
	}
	printf("%d\n",x);
	return 0;
}

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

#include <stdio.h>

int main(void)
{
	int n;
	int sum;
	
	scanf("%d", &n);
	
	sum = 100000;
	
	while (n--){
		sum += (sum / 100 * 5);
	}
	
	if (sum % 10000 > 0){
		sum /= 10000;
		sum *= 10000;
		sum += 10000;
	}
	
	printf("%d\n", sum);
	
	return (0);

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

#include <stdio.h>

int main(void){

   int loan=100000;
   double temp=0;
   int i=0;
   int week;
   int check=0;
   
   scanf("%d", &week);
   
   while(week > 0){
   
      temp=loan*1.05;
      loan=temp;
      
      check = temp % 1000;
      if(check!=0){
         temp/=1000;
         temp*=1000;
         temp+=1000;
         loan=temp;
         week--;
         continue;
      }
      
      check = temp % 100;
      if(check!=0){
         temp/=100;
         temp*=100;
         temp+=100;
         loan=temp;
         week--;
         continue;
      }
      
      check = temp % 10;
      if(check!=0){
         temp/=10;
         temp*=10;
         temp+=10;
         loan=temp;
         week--;
         continue;
      }
      
      if( (temp-loan) != 0){
         loan+=1;
      }
      week--;
   }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:20: error: invalid operands to binary % (have 'double' and 'int')
   18 |       check = temp % 1000;
      |                    ^
main.c:28:20: error: invalid operands to binary % (have 'double' and 'int')
   28 |       check = temp % 100;
      |                    ^
main.c:38:20: error: invalid operands to binary % (have 'double' and 'int')
   38 |       check = temp % 10;
      |                    ^
Language: C

#include <stdio.h>

int main(void){

   int loan=100000;
   double temp=0.0;
   int week;
   int check=0;
   
   scanf("%d", &week);
   
   while(week > 0){
   
      temp=loan*1.05;
      loan=(int)temp;
      
      check = temp % 1000;
      if(check!=0){
         temp/=1000;
         temp*=1000;
         temp+=1000;
         loan=temp;
         week--;
         continue;
      }
      
      check = temp % 100;
      if(check!=0){
         temp/=100;
         temp*=100;
         temp+=100;
         loan=temp;
         week--;
         continue;
      }
      
      check = temp % 10;
      if(check!=0){
         temp/=10;
         temp*=10;
         temp+=10;
         loan=temp;
         week--;
         continue;
      }
      
      if( (temp-loan) != 0){
         loan+=1;
      }
      week--;
   }
   printf("%d\n",loan);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:20: error: invalid operands to binary % (have 'double' and 'int')
   17 |       check = temp % 1000;
      |                    ^
main.c:27:20: error: invalid operands to binary % (have 'double' and 'int')
   27 |       check = temp % 100;
      |                    ^
main.c:37:20: error: invalid operands to binary % (have 'double' and 'int')
   37 |       check = temp % 10;
      |                    ^
Language: C

#include <stdio.h>

int main(void){

   int loan=100000;
   double temp=0.0;
   int week;
   int check=0;
   
   scanf("%d", &week);
   
   while(week > 0){
   
      temp=loan*1.05;
      loan=(int)temp;
      
      check = temp % 1000.0;
      if(check!=0){
         temp/=1000;
         temp*=1000;
         temp+=1000;
         loan=temp;
         week--;
         continue;
      }
      
      check = temp % 100.0;
      if(check!=0){
         temp/=100;
         temp*=100;
         temp+=100;
         loan=temp;
         week--;
         continue;
      }
      
      check = temp % 10.0;
      if(check!=0){
         temp/=10;
         temp*=10;
         temp+=10;
         loan=temp;
         week--;
         continue;
      }
      
      if( (temp-loan) != 0){
         loan+=1;
      }
      week--;
   }
   printf("%d\n",loan);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:20: error: invalid operands to binary % (have 'double' and 'double')
   17 |       check = temp % 1000.0;
      |                    ^
main.c:27:20: error: invalid operands to binary % (have 'double' and 'double')
   27 |       check = temp % 100.0;
      |                    ^
main.c:37:20: error: invalid operands to binary % (have 'double' and 'double')
   37 |       check = temp % 10.0;
      |                    ^
Language: C

#include <stdio.h>

int main(void){

   int loan=100000;
   double temp=0.0;
   int week;
   int check=0;
   
   scanf("%d", &week);
   
   while(week > 0){
   
      temp=loan*1.05;
      loan=(int)temp;
      
      check = loan % 1000;
      if(check!=0){
         loan/=1000;
         loan*=1000;
         loan+=1000;
         week--;
         continue;
      }
      
      check = loan % 100.0;
      if(check!=0){
         loan/=100;
         loan*=100;
         loan+=100;
         week--;
         continue;
      }
      
      check = loan % 10.0;
      if(check!=0){
         loan/=10;
         loan*=10;
         loan+=10;
         week--;
         continue;
      }
      
      if( (temp-loan) != 0){
         loan+=1;
      }
      week--;
   }
   printf("%d\n",loan);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:20: error: invalid operands to binary % (have 'int' and 'double')
   26 |       check = loan % 100.0;
      |                    ^
main.c:35:20: error: invalid operands to binary % (have 'int' and 'double')
   35 |       check = loan % 10.0;
      |                    ^
Language: C

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

#define RISI 1.05

int main(void)
{

        unsigned double debt = 100000;
        int i = 0;
        int n = 0;
        unsigned double kiriage = 0;
        int ans=0;

        scanf("%d",&n);

        for(i = 0; i < n; i++)
        {
                debt = debt * RISI;
                printf("%lf\n",debt);
        }

                kiriage = (int)debt / 10000;
                kiriage = kiriage*10000;
                ans = kiriage+10000;

        printf("%d\n",ans);


        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: both 'unsigned' and 'double' in declaration specifiers
    9 |         unsigned double debt = 100000;
      |                  ^~~~~~
main.c:12:18: error: both 'unsigned' and 'double' in declaration specifiers
   12 |         unsigned double kiriage = 0;
      |                  ^~~~~~
Language: C

#include <stdio.h>

int debt_amount(int, int);

int main(){
	int n;
	scanf("%d", &n);
	printf("%d\n", debt_amout(100000, n));
	return 0;
}

int debt_amount(int a, int x){
	if(x >= 1){
		a = a * 1.05;
		if(a%1000 != 0){
			a = (a/1000 + 1)*1000;
		}
	}
}

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

#include<stdio.h>
int main(void){
	
	int money,n,k,num;
	
	money = 100000;
	
	scanf("%d",&n);
	
	for( i=0;i<n;i++ ){
		
		money *= 1.05;
		num = money /100;
		k = money % 100;
		
		if( k > 0 ){
			
			money = (num * 100) + 1000;
			
		}
		
	}
	
	printf("%d\n",money);
	
	return 0;
}

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

#include <stdio.h>

int main()
{
  int n, i;
  double ans = 100000;

  scanf("%d", &n);

  for(i=0; i<n; i++)
    ans = int((ans * 1.05 /1000) * 1000);

  printf("%d\n", ans);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected expression before 'int'
   11 |     ans = int((ans * 1.05 /1000) * 1000);
      |           ^~~
Language: C

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

int main(void)
{
  int n;
  double y;
???scanf(%f,&n);

 printf(pow(100000??? y));
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ???scanf(%f,&n);
      | ^
main.c:8:16: error: expected ':' before ';' token
    8 | ???scanf(%f,&n);
      |                ^
      |                :
main.c:10:20: error: expected expression before '?' token
   10 |  printf(pow(100000??? y));
      |                    ^
main.c:10:9: error: too few arguments to function 'pow'
   10 |  printf(pow(100000??? y));
      |         ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
main.c: At top level:
main.c:13:3: error: expected identifier or '(' before 'return'
   13 |   return 0;
      |   ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

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

int main(void)
{
  int n;
  double y;
  scanf(%f,&n);
printf(pow(100000??? y));
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected expression before '%' token
    8 |   scanf(%f,&n);
      |         ^
main.c:9:19: error: expected expression before '?' token
    9 | printf(pow(100000??? y));
      |                   ^
main.c:9:8: error: too few arguments to function 'pow'
    9 | printf(pow(100000??? y));
      |        ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
main.c: At top level:
main.c:12:3: error: expected identifier or '(' before 'return'
   12 |   return 0;
      |   ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

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

int main(void)
{
  int n;
  double y;
  scanf("%f",&n);
printf(pow(100000??? y));
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:19: error: expected expression before '?' token
    9 | printf(pow(100000??? y));
      |                   ^
main.c:9:8: error: too few arguments to function 'pow'
    9 | printf(pow(100000??? y));
      |        ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
main.c: At top level:
main.c:12:3: error: expected identifier or '(' before 'return'
   12 |   return 0;
      |   ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

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

int main(void)
{
  int n;
  double y;
  scanf("%f",&n);
printf(pow(100000,y));
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: incompatible type for argument 1 of 'printf'
    9 | printf(pow(100000,y));
      |        ^~~~~~~~~~~~~
      |        |
      |        double
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'double'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c: At top level:
main.c:12:3: error: expected identifier or '(' before 'return'
   12 |   return 0;
      |   ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

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

int main(void)
{
  int n;
  double y;
  scanf("%f",&n);
  printf(pow(100000,y));
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:10: error: incompatible type for argument 1 of 'printf'
    9 |   printf(pow(100000,y));
      |          ^~~~~~~~~~~~~
      |          |
      |          double
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'double'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c: At top level:
main.c:12:3: error: expected identifier or '(' before 'return'
   12 |   return 0;
      |   ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

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

int main(void)
{
  int n;
  double y;
  scanf("%f",&n);
  printf("%f",pow(100000,y));
  }

  return 0;
}

Compiler output:
main.c:12:3: error: expected identifier or '(' before 'return'
   12 |   return 0;
      |   ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
Language: C

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

int main(void)
{
  int n,i;
  double x;
  double y;
  scanf("%f",&n);

  //x=ceil(100*pow(1.05,y));
  if(n=1){ x=100*1.05{
  else{
    x=100*1.05
    for(i=1;1<=n;i++){
      x=ceil(x*1.05));     

    }


  }
x=x*1000;

  printf("%f",x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:22: error: expected ';' before '{' token
   12 |   if(n=1){ x=100*1.05{
      |                      ^
      |                      ;
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

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

int main(void)
{
  int n,i;
  double x;
  double y;
  scanf("%f",&n);

  //x=ceil(100*pow(1.05,y));
  if(n=1){ x=100*1.05}
  else{
    x=100*1.05
    for(i=1;1<=n;i++){
      x=ceil(x*1.05));     

    }


x=x*1000;

  printf("%f",x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:22: error: expected ';' before '}' token
   12 |   if(n=1){ x=100*1.05}
      |                      ^
      |                      ;
main.c:14:15: error: expected ';' before 'for'
   14 |     x=100*1.05
      |               ^
      |               ;
   15 |     for(i=1;1<=n;i++){
      |     ~~~
Language: C

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

int main(void)
{
  int n,i;
  double x;
  double y;
  scanf("%f",&n);

  //x=ceil(100*pow(1.05,y));
   if(n=1){ x=100*1.05;}
  else{
    x=100*1.05;
    for(i=1;1<=n;i++){
      x=ceil(x*1.05));     

    }


x=x*1000;

  printf("%f",x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:21: error: expected ';' before ')' token
   16 |       x=ceil(x*1.05));
      |                     ^
      |                     ;
main.c:16:21: error: expected statement before ')' token
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

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

int main(void)
{
  int n,i;
  double x;
  double y;
  scanf("%f",&n);

  //x=ceil(100*pow(1.05,y));
   if(n=1){ x=100*1.05;}
  else{
    x=100*1.05;
    for(i=1;1<=n;i++){
      x=ceil(x*1.05);     

    }


x=x*1000;

  printf("%f",x);

   return 0;
}

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

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

int main(void)
{
  int n,i;
  double x;
  double y;
  scanf("%f",&n);
    x = 100;
    for(i=0;1<=n;i++){
      x=ceil(x*1.05);}     

    }


x=x*1000;

  printf("%f",x);

   return 0;
}

Compiler output:
main.c:17:1: warning: data definition has no type or storage class
   17 | x=x*1000;
      | ^
main.c:17:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:17:3: error: initializer element is not constant
   17 | x=x*1000;
      |   ^
main.c:19:10: error: expected declaration specifiers or '...' before string constant
   19 |   printf("%f",x);
      |          ^~~~
main.c:19:15: error: expected declaration specifiers or '...' before 'x'
   19 |   printf("%f",x);
      |               ^
main.c:21:4: error: expected identifier or '(' before 'return'
   21 |    return 0;
      |    ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

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

int main(void)
{
  int n,i;
  double x=100000;
  scanf("%d",&n);
    for(i=0;i<n;i++){
      x=x*1.05;}     

     if(x%1000 != 0){
       x += 1000 - (x%1000);
  

printf("%d\n",x);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:10: error: invalid operands to binary % (have 'double' and 'int')
   12 |      if(x%1000 != 0){
      |          ^
main.c:13:22: error: invalid operands to binary % (have 'double' and 'int')
   13 |        x += 1000 - (x%1000);
      |                      ^
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

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

int main(void)
{
  int n,i;
  int x=100000;
  scanf("%d",&n);
    for(i=0;i<n;i++){
      x=x*1.05;}     

     if(x%1000 != 0){
       x += 1000 - (x%1000);
  

printf("%d\n",x);

   return 0;
}

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

#include<stdio.h>
int main()
{
	int a,i,j,k;
	j=0;
	a=100000;
	scanf("%d",&i);
	for(;j<=i;j++)
	{
		a=a*1.05;
		k=a %1000;
		a=a-k+1000
	}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: expected ';' before '}' token
   12 |                 a=a-k+1000
      |                           ^
      |                           ;
   13 |         }
      |         ~
Language: C

#include <stdio.h>

int main(void){

  int a=100000;
  int i,n;
  scanf_s("%d",&n);
 
  for(i=0;i<n;i++){
    a=a*1.05;
    if(a%1000!=0)
      a=(a/1000+1)*1000;
  }
  printf("%d\n",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |   scanf_s("%d",&n);
      |   ^~~~~~~
      |   scanf
Language: C

#include<stdio.h>
int main()
{
	int i,n;
	int sum;
	sum = 100000;
	scanf("%d", &n);
	for (i = 0; i < n; i++)
	{
		sum *= 1.05;
	if(sum%1000 != 0)
		{
			sum/=1000;sum += 1; sum*= 1000;
		}
	5}
	printf("%d\n", sum);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:10: error: expected ';' before '}' token
   15 |         5}
      |          ^
      |          ;
Language: C

#include <stdio.h>
#define debt 100000
 
int main(void){

	int a = debt; 
	int i;            

	scanf("%d",&n);
	for(i=0;i<n;i++){
		a *= 1.05;
		if(a%1000!=0)
			a+=1000;
		a=a/1000*1000;
	}
	printf("%.0d\n",a);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: 'n' undeclared (first use in this function)
    9 |         scanf("%d",&n);
      |                     ^
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        cout << i+1 << ":::" << ans << "->";
        ans=(int)(ans+0.999);
        cout << ans << "->";
        ans=(double)ans;
        cout << ans << endl;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}

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

#include <stdio.h>

int main(void)
{
	int n, i, result;
	float dept, inter;
	scanf("%d", &n);
	
	debt = 100000;
	for (i = 0; i < 5; i++){
		
		inter = debt * 0.05;
		
		debt *= debt + inter;
	}
	
	printf("%d\n", debt);
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'debt' undeclared (first use in this function); did you mean 'dept'?
    9 |         debt = 100000;
      |         ^~~~
      |         dept
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
  int a,b,c,d,n,z;
  z=0;
  scanf("%d",&n);
  if(n>50){
  break;
  }
  for(a=0;a<10;a++){
    for(b=0;b<10;b++){
      for(c=0;c<10;c++){
        for(d=0;d<10;d++){
          if(a+b+c+d==n){
            z++;
          }
        }
      }
    }
  }
  printf("%d\n",z);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: break statement not within loop or switch
    7 |   break;
      |   ^~~~~
Language: C

#include<stdio.h>
int main(){
  int a,b,c,d,n,z;
  z=0;
  scanf("%d",&n);
  switch(n){
  case n<=50;
  for(a=0;a<10;a++){
    for(b=0;b<10;b++){
      for(c=0;c<10;c++){
        for(d=0;d<10;d++){
          if(a+b+c+d==n){
            z++;
          }
        }
      }
    }
  }
  break;
  case n>50;
  break;
 }
  printf("%d\n",z);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: expected ':' or '...' before ';' token
    7 |   case n<=50;
      |             ^
main.c:20:12: error: expected ':' or '...' before ';' token
   20 |   case n>50;
      |            ^
main.c:8:8: warning: statement will never be executed [-Wswitch-unreachable]
    8 |   for(a=0;a<10;a++){
      |       ~^~
Language: C

#include<stdio.h>
int main(){
  int a,b,c,d,n,z;
  z=0;
  scanf("%d",&n);
  switch(n){
  case n<=50:
  for(a=0;a<10;a++){
    for(b=0;b<10;b++){
      for(c=0;c<10;c++){
        for(d=0;d<10;d++){
          if(a+b+c+d==n){
            z++;
          }
        }
      }
    }
  }
  break;
  case n>50:
  break;
 }
  printf("%d\n",z);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: case label does not reduce to an integer constant
    7 |   case n<=50:
      |   ^~~~
main.c:20:3: error: case label does not reduce to an integer constant
   20 |   case n>50:
      |   ^~~~
Language: C

#include<stdio.h>
int main(){
  int a,b,c,d,n,z;
  z=0;
  scanf("%d",&n);
  switch(n){
  case n<=50:
  for(a=0;a<10;a++){
    for(b=0;b<10;b++){
      for(c=0;c<10;c++){
        for(d=0;d<10;d++){
          if(a+b+c+d==n){
            z++;
          }
        }
      }
    }
  }
  break;
  default
 }
  printf("%d\n",z);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: case label does not reduce to an integer constant
    7 |   case n<=50:
      |   ^~~~
main.c:20:10: error: expected ':' before '}' token
   20 |   default
      |          ^
      |          :
   21 |  }
      |  ~
Language: C

#include<stdio.h>
int main(){
  int a,b,c,d,n,z;
  z=0;
  scanf("%d",&n);
  switch(n){
  case n<=50:
  for(a=0;a<10;a++){
    for(b=0;b<10;b++){
      for(c=0;c<10;c++){
        for(d=0;d<10;d++){
          if(a+b+c+d==n){
            z++;
          }
        }
      }
    }
  }
  break;
  default;
 }
  printf("%d\n",z);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: case label does not reduce to an integer constant
    7 |   case n<=50:
      |   ^~~~
main.c:20:10: error: expected ':' before ';' token
   20 |   default;
      |          ^
      |          :
Language: C

#include<stdio.h>

int main()
{
	int i,n,x,y;
	int x =100000;
	scanf("%d",&n);
	for(i=1;i<n+1;i++){
		x=x*1.05;
		if(x%1000!=0)
		    x=(x/1000+1)*1000;
	}
	printf("%d\n",x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: redeclaration of 'x' with no linkage
    6 |         int x =100000;
      |             ^
main.c:5:17: note: previous declaration of 'x' with type 'int'
    5 |         int i,n,x,y;
      |                 ^
Language: C

#include <stdio.h>

int main()
{
    int n, i;
    int ans = 100000;

    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        ans *= 1.05;
        ans = ((ans+999)/1000) * 1000
    }

    printf("%d\n", ans);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:38: error: expected ';' before '}' token
   12 |         ans = ((ans+999)/1000) * 1000
      |                                      ^
      |                                      ;
   13 |     }
      |     ~
Language: C

#include <stdio.h>
int main(void) {
	int a,c,i;
	int b;
	scanf_s("%d", &a);
	b = 100000;
	for (i = 0; i < a; i++) {
		b = b * 1.05;
	}
	c = b % 10000;
	if (c!=0) {
		b = b + 10000-c;
	}
	printf("%d", b);
	return 0;
}

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

#include<iostream>
using namespace std;

int main()
{

    int n;
    cin>>n;
    cout<<100000+(5000*n+n*1000)<<endl;

    return 0;
}

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

package main

import "fmt"

var (
	dept    int = 100000
	addDept int = dept / 100 * 5
)

func main() {
	var week, nWeekDept int
	fmt.Scan(&week)

	if week != 0 {
		nWeekDept = dept + addDept*week
	}

	if nWeekDept/addDept%2 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}



Compiler output:
main.c:1:1: error: unknown type name 'package'
    1 | package main
      | ^~~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    3 | import "fmt"
      | ^~~~~~
Language: C

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

int i,j,n;
__int64 ans=100000;

int main(){
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		ans*=1.05;
		if(ans%1000!=0)ans=(ans/1000+1)*1000;
	}
	printf("%lld\n",ans);
	
	return 0;
}

Compiler output:
main.c:6:1: error: unknown type name '__int64'; did you mean '__int64_t'?
    6 | __int64 ans=100000;
      | ^~~~~~~
      | __int64_t
Language: C

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

int i,j,n;
__int64 ans=100000;

int main(){
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		ans*=1.05;
		if(ans%1000!=0)ans-=ans%1000,ans+=1000;
	}
	printf("%lld\n",ans);
	
	return 0;
}

Compiler output:
main.c:6:1: error: unknown type name '__int64'; did you mean '__int64_t'?
    6 | __int64 ans=100000;
      | ^~~~~~~
      | __int64_t
Language: C

#include <stdio.h>

int main(void){
  int n;
  int amount=100000, tmp;
  scanf("%d", &n);

  for(i=0;i<n;i++){
    amount *= 1.05;
    tmp = amount % 1000;
    if(tmp){
      amount = amount - tmp + 1000;
    }
  }
  printf("%d\n", amount);
  return 0;
}

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

#include <stdio.h>

int main(){
  int money=100000;
  int remain;
  int weeks;
  int i;

  scanf("%d", %weeks);
  for(i=0; i<weeks; i++){
    money*=1.05;
    remain=money%1000;
    money+=1000-remain;
  }
  printf("%d", money);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: expected expression before '%' token
    9 |   scanf("%d", %weeks);
      |               ^
Language: C

#include<stdio.h>
main(){
  int n,i,x,xx;
  doble sum=100000;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    sum=sum*1.05;
    x=sum/1000;
    x=x*1000;
    //   y=sum-x;
    if(sum-x > 0){
      x=x+1000;
    }
  sum=x;
  }
  printf("%d\n",x);
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:3: error: unknown type name 'doble'; did you mean 'double'?
    4 |   doble sum=100000;
      |   ^~~~~
      |   double
Language: C

#include <stdio.h>
#define DEBT 100000

int main()
{
  int n, i, mny = DBT, intrst = DEBT * 0.05;

  scanf("%d", &n);
  for (i = 0; i < n; i++){
    mny += intrst;
  }
  if (mny % 10000 > 0) {
    mny = mny - (mny % 10000) + 10000;
  }
  printf("%d\n", mny);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'DBT' undeclared (first use in this function); did you mean 'DEBT'?
    6 |   int n, i, mny = DBT, intrst = DEBT * 0.05;
      |                   ^~~
      |                   DEBT
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
    int a,i,n;
    int x=100000;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        x=x*105/100;
        if(x%1000 != 0){
            x=(x/1000+1)*1000;
        }
    }
    printf("%d",x);
    return 0;

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

#include<iostream>
using namespace std;
#define RENT 100000
int main(){
	int n;
	while(cin>>n){
		int ans;
		ans=RENT;
		for(int i=0;i<n;i++){
			ans=ans*1.05;
			if(ans%1000>0){
				ans=ans+1000-ans%1000;
			}
		}
		
		
		cout<<ans;
	}
}

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