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:28:52: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
a.cc:35:54: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   35 | int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
a.cc: In function 'void test()':
a.cc:28:36: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                    ^
a.cc:28:37: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                     ^
a.cc:28:38: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                      ^
a.cc:28:39: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                       ^
a.cc:28:40: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                        ^
a.cc:28:41: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                         ^
a.cc:28:42: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                          ^
a.cc:28:43: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                           ^
a.cc:28:44: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                            ^
a.cc:28:45: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                             ^
a.cc:28:46: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                              ^
a.cc:28:47: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                               ^
a.cc:28:48: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                                ^
a.cc:28:49: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                                 ^
a.cc:28:50: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                                  ^
a.cc:28:51: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                                   ^
a.cc:28:52: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                                    ^
a.cc:28:53: error: expected primary-expression before '?' token
   28 |         money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????
      |                                                     ^
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc:30:21: error: expected ':' before ';' token
   30 |         debt = money;
      |                     ^
      |                     :
a.cc:30:21: error: expected primary-expression before ';' token
a.cc: At global scope:
a.cc:35:50: error: expected initializer before '?' token
   35 | int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
      |                                                  ^