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

main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'r' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:43: error: invalid operands to binary % (have 'int' and 'double')
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
      |                                           ^
main.c:1:72: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
      |                                                                        ^~~~~~
main.c:1:72: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:72: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:72: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:89: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
      |                                                                                         ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
main.c:1:89: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | main(n,r){for(scanf("%d",&n),r=1e5;n--;r=r%1e3?(r/1e3+1)*1e3:r)r+=r/20;printf("%d\n",r);exit(0);}
      |                                                                                         ^~~~
main.c:1:89: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

#include<cstdio>
int main(){
    int n;
    scanf("%d",&n);
    int a=100000;

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

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

#include<stdio.h>

int main(){
	int　n,syakkin;

	scanf("%d",&n);
	syakkin=(int)100000*(1+0.05*n)+9999;
	syakkin=(syakkin/10000)*10000;

	printf("%d",syakkin);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: stray '\343' in program
    4 |         int<U+3000>n,syakkin;
      |            ^~~~~~~~
Language: C

#include<stdio.h>

int main(){
	int n,syakkin;

	scanf("%d",&n);
	syakkin=100000;
	for(i=0;i<n;i++){
		syakkin=syakkin*1.05+999;
		
		syakkin=(syakkin/1000)*1000;

	}
	printf("%d\n",syakkin);

	return 0;
}

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

#include <iostream>
#include <cstring>
using namespace std;
int n,sg[55];
void mex()
{
    bool vis[55];
    memset(sg,0,sizeof(sg));
    for(int i = 2; i <= 50; i++)
    {
        memset(vis,false,sizeof(vis));
        for(int j = 0; j <= i-2; j++)
            vis[ sg[j] ^ sg[i-j-2] ] = true;
        for(int j = 0; j <= 55; j++)
            if(!vis[j])
            {
                sg[i] = j;
                break;
            }
    }
}
int main()
{
    mex();
    while(cin >> n)
    {
        int a,s = 0;
        for(int i = 0; i < n; i++)
        {
            cin >> a;
            s ^= sg[a];
        }
        if(s)
            cout << "Yes\n";
        else
            cout << "No\n";
    }
    return 0;
}

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

#include<stdio.h>

int main{
	int n;
	int i;
	int ans;
	int a = 100000;
	scanf("%d", &n);
	for(i = n; i >= 1; i--){
		ab *= 1.05;
		if(ab % 1000 > 0){
			ans = ab / 1000 + 1 * 1000;
		}else{
			ans = ab;
		}
	}
	printf("%d\n", ans);
	return 0;
}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before '}' token
    9 |                 d*=1.05
      |                        ^
      |                        ;
   10 |         }
      |         ~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ',' or ';' before 'int'
    6 |         int n,i;
      |         ^~~
main.c:8:21: error: 'n' undeclared (first use in this function)
    8 |         scanf("%d",&n);
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'i' undeclared (first use in this function)
    9 |         for(i=0;i<n;i++){
      |             ^
Language: C

include<stdio.h>
int main(){
  int a,y,n,money=10000;
  scanf("%d",&n);
  for(a=0;a<n;a++){
    money=money+money/100*5;
  }
  y=money%1000;
  money=money/1000;
  if(y>=500){
    money=money+1;
  }
  money=money*10000;
  printf("%d\n",money);
  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(){
  int a,y,n,money=10000;
  scanf("%d",&n);
  for(a=0;a<n;a++){
    money=money+money/100*5;
  }
  y=money%1000;
  money=money/1000;
  if(y>=5){
    money=money+1;
  }
  money=money*10000;
  printf("%d\n",money);
  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()
{
  int n,i;
  unsinged long int debt_price;
  scanf("%d",&n);
  debt_price = 100000;
  for(i=0; i<n; i++){
       debt_price *= 1.05;
       debt_price = debt_price/1000 * 1000 +1000
       }
  printf("%lu\n",debt_price);
  return 0;
}    

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'unsinged' undeclared (first use in this function)
    5 |   unsinged long int debt_price;
      |   ^~~~~~~~
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:11: error: expected ';' before 'long'
    5 |   unsinged long int debt_price;
      |           ^~~~~
      |           ;
main.c:7:3: error: 'debt_price' undeclared (first use in this function)
    7 |   debt_price = 100000;
      |   ^~~~~~~~~~
main.c:10:49: error: expected ';' before '}' token
   10 |        debt_price = debt_price/1000 * 1000 +1000
      |                                                 ^
      |                                                 ;
   11 |        }
      |        ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:8: error: 'debt' undeclared (first use in this function)
   11 |        debt price =(debt_price/1000+1)*1000;
      |        ^~~~
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:12: error: expected ';' before 'price'
   11 |        debt price =(debt_price/1000+1)*1000;
      |            ^~~~~~
      |            ;
Language: C

#include <stdio.h>

int main( void ) {
	int n, debt = 100000;

	for ( scanf( "%d", &n ); n--; debt = ( (int)( debt * 1.05 - 1 ) / 1000 + 1 ) * 1000; ) ;

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:92: error: expected ')' before ';' token
    6 |         for ( scanf( "%d", &n ); n--; debt = ( (int)( debt * 1.05 - 1 ) / 1000 + 1 ) * 1000; ) ;
      |             ~                                                                              ^
      |                                                                                            )
Language: C

#include <stdio.h>
#include <iostream>

using namespace std;

void keisan(int *n){
	int kari1,kari2;

	kari1 = *n * 1.05;
	if((kari1 % 1000) > 0) {
		kari2 = kari1 / 1000;
		*n = kari2 * 1000 + 1000;
	} else {
		*n = kari1;
	}
}

int main() {
	int syakkin = 100000;
	int a;

	cin >> a;

	for (int i = 0; i < a; i++){
		keisan(&syakkin);
	}

	cout << syakkin << endl;

	return 0;

}

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

#include <stdio.h>

int main(void){
int n;
scanf("%d",&n);
int coin=100000;
for(int m=0;m<n;m++){
coin+=coin*0.05;
coin+=5;
coin/=10;
coin*=10;
coin+=50;
coin/=100:
coin*=100:
coin+=500;
coin/=1000;
coin*=1000;
}
printf("%d\n",coin);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:10: error: expected ';' before ':' token
   13 | coin/=100:
      |          ^
      |          ;
Language: C

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

int main(void)
{
  int n,i,tmp,sur;
  tmp=100000;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    tmp=tmp*1.05;
    sur=tmp%1000;
    if(a!=0)
      tmp+=1000-sur;
  }
  printf("%d\n",tmp);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:8: error: 'a' undeclared (first use in this function)
   13 |     if(a!=0)
      |        ^
main.c:13:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
  double i,n,answer,v;
  int r;
  while(scanf("%lf",&n)==1){
    answer=100000;
    for(i=0;i<n;++i){
      answer+=100000*0.05;
    }
    v= answer/10000;
    
    answer=floor(v);
    
    if(v-answer>=0.1){
      ++answer;
    }  
    
    r=answer*10000;
    
    
    printf("%d",r);
  
  }
  exit 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:7: error: expected ';' before numeric constant
   26 |   exit 0;
      |       ^~
      |       ;
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,ans=100000;
cin>>n;
while(int i=0;i<n;i++){
ans=ans*1.05;
if(ans%1000){
ans=(ans\1000)*1000+1000;
}
cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc:9:9: error: stray '\' in program
    9 | ans=(ans\1000)*1000+1000;
      |         ^
a.cc: In function 'int main()':
a.cc:6:14: error: expected ')' before ';' token
    6 | while(int i=0;i<n;i++){
      |      ~       ^
      |              )
a.cc:6:15: error: 'i' was not declared in this scope
    6 | while(int i=0;i<n;i++){
      |               ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,ans=100000;
cin>>n;
while(int i=0;i<n;i++){
ans=ans*1.05;
if(ans%1000)ans=(ans\1000)*1000+1000;
}
cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc:8:21: error: stray '\' in program
    8 | if(ans%1000)ans=(ans\1000)*1000+1000;
      |                     ^
a.cc: In function 'int main()':
a.cc:6:14: error: expected ')' before ';' token
    6 | while(int i=0;i<n;i++){
      |      ~       ^
      |              )
a.cc:6:15: error: 'i' was not declared in this scope
    6 | while(int i=0;i<n;i++){
      |               ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,ans=100000;
cin>>n;
for(int i=0;i<n;i++){
ans=ans*1.05;
if(ans%1000)ans=(ans\1000)*1000+1000;
}
cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc:8:21: error: stray '\' in program
    8 | if(ans%1000)ans=(ans\1000)*1000+1000;
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: expected ')' before numeric constant
    8 | if(ans%1000)ans=(ans\1000)*1000+1000;
      |                 ~   ^~~~~
      |                     )
Language: C++

#include<iostream>
#include<string>
#include<cmath>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include<algorithm>
#include<complex>
using namespace std ;
typedef vector<int> vi ;
typedef vector<vi> vvi ;
typedef vector<string> vs ;
typedef pair<int, int> pii; 
typedef long long ll ;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()

int main(void){
  int n ;
  cin >> n;
  int m = 100000;
  repp(i,n){
    m *= 1.05;
    if((int)m % 1000 != 0)
      m = m - (int) m % 1000 + 1000;
  }
  cout << m << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:8: error: 'i' was not declared in this scope
   25 |   repp(i,n){
      |        ^
a.cc:25:3: error: 'repp' was not declared in this scope; did you mean 'rep'?
   25 |   repp(i,n){
      |   ^~~~
      |   rep
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n, t = 100000;
	cin >> n;
	for( int i = 0; i < n; ++i){
		t = 1.05 * t;
		t = (t/1000)*1000 + ((t % 1000 != 0) ? 1000 : 0);
	}
	cout << t << "\n";
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected '}' at end of input
   12 |         return 0;
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespase std;

int main () {
    int n, i;
    double a = 100000;
    cin >> n;
    for(i=0;i<n;i++) {
        a *= 1.05;
        while(a%1000!=0) {
            a += 1;
        }
    }
    cout << a << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin >> n;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:16: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |         while(a%1000!=0) {
      |               ~^~~~~
      |               | |
      |               | int
      |               double
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout << a << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout << a << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main () {
    int n, i;
    double a = 100000;
    cin >> n;
    for(i=0;i<n;i++) {
        a *= 1.05;
        while(a%1000!=0) {
            a += 1;
        }
    }
    cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |         while(a%1000!=0) {
      |               ~^~~~~
      |               | |
      |               | int
      |               double
Language: C++

#include <iostream>
#include <algorithm>
int main()
{
  const int BASE = 100000;
  int n, debt = BASE;
  std::cin >> n;
  while (n--) {
    debt = (loan * 1.05 + 999) / 1000;
    debt *= 1000;
  }
  std::cout << debt << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'loan' was not declared in this scope
    9 |     debt = (loan * 1.05 + 999) / 1000;
      |             ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    unsigned long long debt = 100000;
    int n;
    
    for (int i = 0; i < n; ++i) {
        debt *= 1.05;
        const int under
        debt -= (debt % 2000) - 2000;
    }
    cout << debt << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected initializer before 'debt'
   13 |         debt -= (debt % 2000) - 2000;
      |         ^~~~
Language: C++

#include <cstdio>

using namespace std;

in main() {
 int n = 0;
 double N = 0;
 int M = 100;
 int L = 100;
 scanf("%d", &n);
 for (int i = 0; i < n; i++) {
  N = L;
  N = M;
  N *= 1.05;
  N -= M;
  L += N;

  while (N> 1){
    N -= 1;
  }

  if (N > 0) {
    L += 1;
   }
}

L *= 1000;
printf("%d", L);

return 0;
}

Compiler output:
a.cc:5:1: error: 'in' does not name a type; did you mean 'int'?
    5 | in main() {
      | ^~
      | int
Language: C++

import java.math.BigDecimal;
class Main {
public void main(int week) {

		BigDecimal shakkin = new BigDecimal(100000);
		BigDecimal taxper = new BigDecimal(0.05);
		BigDecimal rishi;
		int a = 0;

		for (int i = 0; i <= week; i++) {
			// 5%の利子を計算する
			rishi = shakkin.multiply(taxper);
			// 5%の利子を元金に足す
			shakkin = shakkin.add(rishi);
			// 1000円未満を切り上げる
			a = shakkin.setScale(-3, BigDecimal.ROUND_UP).intValue();
		}
		System.out.println(a);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.math.BigDecimal;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:7: error: expected ':' before 'void'
    3 | public void main(int week) {
      |       ^~~~~
      |       :
a.cc:20:2: error: expected ';' after class definition
   20 | }
      |  ^
      |  ;
a.cc: In member function 'void Main::main(int)':
a.cc:5:17: error: 'BigDecimal' was not declared in this scope
    5 |                 BigDecimal shakkin = new BigDecimal(100000);
      |                 ^~~~~~~~~~
a.cc:6:28: error: expected ';' before 'taxper'
    6 |                 BigDecimal taxper = new BigDecimal(0.05);
      |                            ^~~~~~
a.cc:7:28: error: expected ';' before 'rishi'
    7 |                 BigDecimal rishi;
      |                            ^~~~~
a.cc:12:25: error: 'rishi' was not declared in this scope
   12 |                         rishi = shakkin.multiply(taxper);
      |                         ^~~~~
a.cc:12:33: error: 'shakkin' was not declared in this scope
   12 |                         rishi = shakkin.multiply(taxper);
      |                                 ^~~~~~~
a.cc:12:50: error: 'taxper' was not declared in this scope
   12 |                         rishi = shakkin.multiply(taxper);
      |                                                  ^~~~~~
a.cc:18:17: error: 'System' was not declared in this scope
   18 |                 System.out.println(a);
      |                 ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n,ans;
	ans = 100000
	cin >> n;
	for (int i=0;i<n;i++) {
		ans = ans * 1.05;
		if (ans%1000!=0)ans=ans + ans%1000
	}
	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'cin'
    7 |         ans = 100000
      |                     ^
      |                     ;
    8 |         cin >> n;
      |         ~~~          
a.cc:11:51: error: expected ';' before '}' token
   11 |                 if (ans%1000!=0)ans=ans + ans%1000
      |                                                   ^
      |                                                   ;
   12 |         }
      |         ~
Language: C++

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n,ans;
	ans = 100000;
	cin >> n;
	for (int i=0;i<n;i++) {
		ans = ans * 1.05;
		if (ans%1000!=0)ans=ans + ans%1000
	}
	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:51: error: expected ';' before '}' token
   11 |                 if (ans%1000!=0)ans=ans + ans%1000
      |                                                   ^
      |                                                   ;
   12 |         }
      |         ~
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

#include <iostream>
using namespace std;
??
int main() {
????????????int n,x;
      x = 100000;
????????????cin >> n;
????????????for (int i=0;i<n;i++) {
????????????????????????x = 1.05*x;
????????????????????????if (x%1000!=0) {
????????????????????????????????????x = x + (1000-x%1000);
????????????????????????}
????????????}
????????????cout << x;
????????????return 0;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

#include <iostream>

int main(){
        int n;
        while(std::cin >> n){
                double result=100;
                while(n--){
                        result*=1.05;
                        if(result%1000!=0)result+=1000-result%1000;
                }

                result*=1000;
                std::cout << (int)result << std::endl;
        }

        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |                         if(result%1000!=0)result+=1000-result%1000;
      |                            ~~~~~~^~~~~
      |                            |      |
      |                            double int
a.cc:9:62: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |                         if(result%1000!=0)result+=1000-result%1000;
      |                                                        ~~~~~~^~~~~
      |                                                        |      |
      |                                                        double int
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'scanf' was not declared in this scope
    3 |     scanf("%d",&n);
      |     ^~~~~
a.cc:14:5: error: 'printf' was not declared in this scope
   14 |     printf("%d\n", i);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void) {
Language: C++

a=1e5;main(N){scanf("%d",&N);while(N--)a*=1.05,a+=(a%1000)?1e3-a%1000:0;a=!printf("%d\n",a);}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a=1e5;main(N){scanf("%d",&N);while(N--)a*=1.05,a+=(a%1000)?1e3-a%1000:0;a=!printf("%d\n",a);}
      | ^
a.cc:1:11: error: expected constructor, destructor, or type conversion before '(' token
    1 | a=1e5;main(N){scanf("%d",&N);while(N--)a*=1.05,a+=(a%1000)?1e3-a%1000:0;a=!printf("%d\n",a);}
      |           ^
Language: C++

#include<iostream>
 
int main(){
int n,a,i
std::cin>>n;
 for(a=100000,i=0;i<n;++i){
      a=a+a/20;
        if(a%1000=0){
        a=a+1000-a%1000
        }
        ++a
        }
        std::cout<<a<<std::endl;
        }
        return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected initializer before 'std'
    5 | std::cin>>n;
      | ^~~
a.cc:6:15: error: 'i' was not declared in this scope
    6 |  for(a=100000,i=0;i<n;++i){
      |               ^
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |         if(a%1000=0){
      |            ~^~~~~
a.cc:9:24: error: expected ';' before '}' token
    9 |         a=a+1000-a%1000
      |                        ^
      |                        ;
   10 |         }
      |         ~               
a.cc:11:12: error: expected ';' before '}' token
   11 |         ++a
      |            ^
      |            ;
   12 |         }
      |         ~   
a.cc: At global scope:
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
Language: C++

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



int main(void){
	

	unsigned long int n, sum = 100000;
	long double Ceil;
	cin >> n;

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

		sum /= 1000;
		Ceil = ceil(sum*1.05);
		sum=Ceil*1000;
	}		
	cout << unsigned long int(sum) << endl;


	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: expected primary-expression before 'unsigned'
   20 |         cout << unsigned long int(sum) << endl;
      |                 ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
	int n; cin >> n;
	int ans = 100000;
	int tmp;
	for (int i=0; i<n; i++) {
		ans *= 1.05;
		tmp = ans / 1000 * 1000;
		if (tmp != ans) ans = tmp + 1000;
	}
	cout << ans << endl;
	return 0;

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

a=100000
gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;}
puts a

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a=100000
      | ^
a.cc:3:1: error: 'puts' does not name a type
    3 | puts a
      | ^~~~
Language: C++

a=100000;gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;};puts a

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a=100000;gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;};puts a
      | ^
a.cc:1:10: error: 'gets' does not name a type
    1 | a=100000;gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;};puts a
      |          ^~~~
a.cc:1:71: error: 'puts' does not name a type
    1 | a=100000;gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;};puts a
      |                                                                       ^~~~
Language: C++

a=100000;gets.to_i.times{a=((a*1.05/1000).ceil)*1000;};puts a;

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a=100000;gets.to_i.times{a=((a*1.05/1000).ceil)*1000;};puts a;
      | ^
a.cc:1:10: error: 'gets' does not name a type
    1 | a=100000;gets.to_i.times{a=((a*1.05/1000).ceil)*1000;};puts a;
      |          ^~~~
a.cc:1:56: error: 'puts' does not name a type
    1 | a=100000;gets.to_i.times{a=((a*1.05/1000).ceil)*1000;};puts a;
      |                                                        ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	double a=100000;
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		a*=1.05;
		if(a%1000==0)
			a-=1000;
		a/=1000;
		a*=1000;
		a+=1000;
	}
	cout<<a<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |                 if(a%1000==0)
      |                    ~^~~~~
      |                    | |
      |                    | int
      |                    double
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int n;
	while (cin >> n)
	{
		while (n--)
		{
			money *= 1.05;
		}
		if (money % 10000 != 0)
		{
			money -= (money % 10000);
			money += 10000;
		}
		cout << money << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'money' was not declared in this scope
   11 |                         money *= 1.05;
      |                         ^~~~~
a.cc:13:21: error: 'money' was not declared in this scope
   13 |                 if (money % 10000 != 0)
      |                     ^~~~~
a.cc:18:25: error: 'money' was not declared in this scope
   18 |                 cout << money << endl;
      |                         ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	double monthlyPayment;
	double balance;
	double interestRate;
	int month = 1;

	cout.setf(ios::fixed);	// These lines force currency format in output to 2 decimal pts
	cout.setf(ios::showpoint);
	cout.precision(2);

	cout << "Enter the current balance of your loan: $";
	cin >> balance;
	cout << "Enter the interest rate (compounded monthly) : ";
	cin >> interestRate;
	cout << "Enter the desired monthly payment : $";
	cin >> monthlyPayment;
	
	while (interestRate >= 1)
	{ 
		interestRate = interestRate / 100; 
	}

	balance = balance * (1 + interestRate / 12) - monthlyPayment;
		
        // this is where the program stops. 

	cout << "After month 1 your balance is $" << balance << endl;

	while (balance > 0)
	{
		balance = balance * (1 + interestRate / 12) - monthlyPayment;
		
		month = month++;

		cout << "After month " << month << ", your balance is : $" << balance << endl;
	}

	cout << "You have paid off the loan at this point. Congratulations!" << endl;


	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:45:18: error: expected '}' at end of input
   45 |         return 0;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>


#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



int dy[] = { 0, 0, 1, -1, 0 };
int dx[] = { 1, -1, 0, 0, 0 };

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = { -2 };

void input(void) {
	CI n;
	return;
}


int main(void) {
	input();
	long long double money = 100000;
	
	for (int i = 0; i < n; i++) {
		money *= 1.05;
		if ((int)money % 1000 > 0) {
			money = money - ((int)(money) % 1000) + 1000 - (money - (double)(int)money);
		}
		
	}
	
	CO money E
	

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:64:14: error: 'long long' specified with 'double'
   64 |         long long double money = 100000;
      |              ^~~~
Language: C++

#include<iostream>
#include<math.h>
#include<stdio.h>
#include<windows.h>
using namespace std;
int main() {
    int n;
    double dbt;
    dbt = 100000;
    cin >> n;
    for (; n > 0; n--) {
        dbt = dbt * 1.05;
        dbt = dbt / 1000;
        dbt = ceil(dbt);
        dbt = dbt * 1000;
    }
    cout << dbt << endl;
    return 0;
}

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

#include<stdio.h>
int main(void)
{
	int n
	float p
	scanf("%d",&n);
	p=1.05;
	for(i=0;i<n;i++){
		w=100000*p;
		if(1000%w>0){
			w=w-(1000%w)+1000;
		}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'float'
    5 |         float p
      |         ^~~~~
a.cc:7:9: error: 'p' was not declared in this scope
    7 |         p=1.05;
      |         ^
a.cc:8:13: error: 'i' was not declared in this scope
    8 |         for(i=0;i<n;i++){
      |             ^
a.cc:8:19: error: 'n' was not declared in this scope
    8 |         for(i=0;i<n;i++){
      |                   ^
a.cc:9:17: error: 'w' was not declared in this scope
    9 |                 w=100000*p;
      |                 ^
a.cc:12:18: error: expected '}' at end of input
   12 |                 }
      |                  ^
a.cc:8:25: note: to match this '{'
    8 |         for(i=0;i<n;i++){
      |                         ^
a.cc:12:18: error: expected '}' at end of input
   12 |                 }
      |                  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

int main(){
  int >> n;
  cin >> n;
  price = 100000;
  for(int i = 0; i < n; i++){
    price *= 1.05;
  }
  if(price % 1000 !== 0) 
    price = price -(price % 1000) + 1000;

  cout << price << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected unqualified-id before '>>' token
    7 |   int >> n;
      |       ^~
a.cc:8:10: error: 'n' was not declared in this scope
    8 |   cin >> n;
      |          ^
a.cc:9:3: error: 'price' was not declared in this scope
    9 |   price = 100000;
      |   ^~~~~
a.cc:13:21: error: expected primary-expression before '=' token
   13 |   if(price % 1000 !== 0)
      |                     ^
Language: C++

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

void test();
int  interest(int debt, float interest_rate, int n);

int main(void)
{
	test();
	return 0;
}


void test()
{
	int debt,n;
	double money;
	float interest_rate;
	debt = 100000;
	interest_rate = 1.05;
	cin >> n;

	debt = interest(debt, interest_rate, n);

	money = (double) debt / 1000;// 1000?????\???????°???°?????\??????

	money = ceil(money) * 1000;// ?°???°?????\?????????????????????????????????

	debt = money;

	cout << debt << endl;
}

int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
{

	if (n == 1)
		return debt * interest_rate;
	else
		return interest(debt, interest_rate, n - 1) * interest_rate;
}

Compiler output:
a.cc:35:54: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   35 | int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
a.cc:35:50: error: expected initializer before '?' token
   35 | int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
      |                                                  ^
Language: C++

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

void test3()???
int interest(int debt, double interest_rate,int n);


int main(void)
{
	test();
	return 0;
}

void test()
{
	int debt,n;
	debt = 100000;
	cin >> n;

	debt = interest(debt, 1.05, n) ;

	if (debt % 1000 > 0)
	{
		debt = debt - (int)debt % 1000 + 1000;
	}
	
	cout << debt << endl;
}

int interest(int debt, double interest_rate,int n)
{

	if (n == 0)
		return debt * interest_rate;
	else
		return ceil(interest(debt, interest_rate, n - 1) * interest_rate);
}

Compiler output:
a.cc:5:13: error: expected initializer before '?' token
    5 | void test3()???
      |             ^
a.cc: In function 'int main()':
a.cc:11:9: error: 'test' was not declared in this scope
   11 |         test();
      |         ^~~~
a.cc: In function 'void test()':
a.cc:21:16: error: 'interest' was not declared in this scope
   21 |         debt = interest(debt, 1.05, n) ;
      |                ^~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using lli = ll int;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main()
{
  int n, sum=100000;
  int i, j, k;
  int sum, tot, ans, num;
  
  cin >> n;
  for(i=0; i<n; i++){
    sum += sum*(i+1)*0.05;
    sum = (sum/1000+1)*1000;
  }
  cout << sum << endl
    return 0;
}

Compiler output:
a.cc:11:13: error: two or more data types in declaration of 'type name'
   11 | using lli = ll int;
      |             ^~
a.cc: In function 'int main()':
a.cc:26:7: error: redeclaration of 'int sum'
   26 |   int sum, tot, ans, num;
      |       ^~~
a.cc:24:10: note: 'int sum' previously declared here
   24 |   int n, sum=100000;
      |          ^~~
a.cc:33:22: error: expected ';' before 'return'
   33 |   cout << sum << endl
      |                      ^
      |                      ;
   34 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using lli = ll int;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main()
{
  int n, sum=100000;
  int i, j, k;
  int tot, ans, num;
  
  cin >> n;
  for(i=0; i<n; i++){
    sum += sum*(i+1)*0.05;
    sum = (sum/1000+1)*1000;
  }
  cout << sum << endl
    return 0;
}

Compiler output:
a.cc:11:13: error: two or more data types in declaration of 'type name'
   11 | using lli = ll int;
      |             ^~
a.cc: In function 'int main()':
a.cc:33:22: error: expected ';' before 'return'
   33 |   cout << sum << endl
      |                      ^
      |                      ;
   34 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using lli = ll int;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main()
{
  int n, sum=100000;
  int i, j, k;
  int tot, ans, num;
  
  cin >> n;
  for(i=0; i<n; i++){
    sum += sum*(i+1)*0.05;
    sum = (sum/1000+1)*1000;
  }
  cout << sum << endl;
    return 0;
}

Compiler output:
a.cc:11:13: error: two or more data types in declaration of 'type name'
   11 | using lli = ll int;
      |             ^~
Language: C++

#include <iostream>

int main(){
  int n;
  int debt = 100000;
  
  std::cin >> n;
  for(int i=0; i<n; i++){
    debt = round((double)debt * 1.05);
    int under = debt % 1000;
    if(under==0)
    else{
      debt = debt - under + 1000;
    }
  }
  std::cout << debt << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'round' was not declared in this scope
    9 |     debt = round((double)debt * 1.05);
      |            ^~~~~
a.cc:12:5: error: expected primary-expression before 'else'
   12 |     else{
      |     ^~~~
Language: C++

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

int main(){
  int n;
  int debt = 100000;
  
  std::cin >> n;
  for(int i=0; i<n; i++){
    debt = round((double)debt * 1.05);
    int under = debt % 1000;
    if(under==0)
    else{
      debt = debt - under + 1000;
    }
  }
  std::cout << debt << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected primary-expression before 'else'
   13 |     else{
      |     ^~~~
Language: C++

#include<iostream>
//#include<algorithm>
//#include<cmath>
//#include<string>
//#include<cctype>
//#include <vector>
using namespace std;
int main(){
	int a=100,n;
	cin >> n;
	while (n--) a = ceil(a*1.05);
	cout << a * 1000 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'ceil' was not declared in this scope
   11 |         while (n--) a = ceil(a*1.05);
      |                         ^~~~
Language: C++

import sys
import math as m
n=int(input())
out=100000
for i in range(n):
	out=m.ceil(out*1.05/1000)*1000
print(out)

#for i in sys.stdin:
#	a,b=map(int,i.split())
#	print(gcd(a,b),lcm(a,b))

Compiler output:
a.cc:9:2: error: invalid preprocessing directive #for
    9 | #for i in sys.stdin:
      |  ^~~
a.cc:10:9: error: invalid preprocessing directive #a
   10 | #       a,b=map(int,i.split())
      |         ^
a.cc:11:9: error: invalid preprocessing directive #print
   11 | #       print(gcd(a,b),lcm(a,b))
      |         ^~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++




#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

using namespace std;
int main()
{
	long double a = 100000;
	int s;
	cin >> s;
	for (int i = 0; i < s; i++) {
		a *= 1.05;
	}
	if (a % 1000 == 0) {
		
	}
	else { a = a - (a % 1000); }
	cout << a; return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:15: error: invalid operands of types 'long double' and 'int' to binary 'operator%'
   35 |         if (a % 1000 == 0) {
      |             ~ ^ ~~~~
      |             |   |
      |             |   int
      |             long double
a.cc:38:27: error: invalid operands of types 'long double' and 'int' to binary 'operator%'
   38 |         else { a = a - (a % 1000); }
      |                         ~ ^ ~~~~
      |                         |   |
      |                         |   int
      |                         long double
Language: C++

#include <iostream>

using namespace std;

int main()
{
	int n;
	double money=100;
	cin >> n;
	for (size_t i = 0; i < n; i++)
	{
		money = money*1.05;
		money = ceil(money);
	}
	cout << money * 1000 << endl;
	return 0;
}

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

#include<iostream>

int week(int money){
	money = money + money * 0.05;
	money = money + 1000 - ( money % 1000 );
	return money;
}

int main(void){
	int n;
	int money = 100000;
	cin >> n;
	for(int i = 0;i < n;i++){
		money = week(money);
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |         cin >> n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<iostream>

using namedspace std;

int week(int money){
	money = money + money * 0.05;
	money = money + 1000 - ( money % 1000 );
	return money;
}

int main(void){
	int n;
	int money = 100000;
	cin >> n;
	for(int i = 0;i < n;i++){
		money = week(money);
	}
	
	return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namedspace'
    3 | using namedspace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |         cin >> n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<iostream>

using namedspace std;

int week(int money){
	money = money + money * 0.05;
	money = money + 1000 - ( money % 1000 );
	return money;
}

int main(void){
	int n;
	int money = 100000;
	cin >> n;
	for(int i = 0;i < n;i++){
		money = week(money);
	}

	cout << money << endl;
	
	return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namedspace'
    3 | using namedspace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |         cin >> n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:19:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |         cout << money << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |         cout << money << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

int main(){
 long long int Debt = 100000;
 int n;

 cin >> n;

 for (int i=0; i<n; i++) Debt = Debt * 1.05;
 if(Debt % 10000 > 0) Debt = Debt + 10000;

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin >> n;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~