Language: C++

#include <iostream>

using namespace std;
long long n, x, ans;
long long cel(long long n, long long x) {
    if(n % x == 0)
        return 2 * n - x;
    ans = n / x * 2 * x + cel(x, n % x);
    return ans ;
}
int main()
{
    while(cin >> n >> x) {
        ans = n + cel(n - x, x);
        cout << ans << endl;
    }
}


Compiler output:
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |     if(n % x == 0)
      | ^
a.cc:6:3: error: extended character   is not valid in an identifier
    6 |     if(n % x == 0)
      |   ^
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |         return 2 * n - x;
      | ^
a.cc:7:3: error: extended character   is not valid in an identifier
    7 |         return 2 * n - x;
      |   ^
a.cc:7:5: error: extended character   is not valid in an identifier
    7 |         return 2 * n - x;
      |     ^
a.cc:7:7: error: extended character   is not valid in an identifier
    7 |         return 2 * n - x;
      |       ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |     ans = n / x * 2 * x + cel(x, n % x);
      | ^
a.cc:8:3: error: extended character   is not valid in an identifier
    8 |     ans = n / x * 2 * x + cel(x, n % x);
      |   ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |     return ans ;
      | ^
a.cc:9:3: error: extended character   is not valid in an identifier
    9 |     return ans ;
      |   ^
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |     while(cin >> n >> x) {
      | ^
a.cc:13:3: error: extended character   is not valid in an identifier
   13 |     while(cin >> n >> x) {
      |   ^
a.cc:14:1: error: extended character   is not valid in an identifier
   14 |         ans = n + cel(n - x, x);
      | ^
a.cc:14:3: error: extended character   is not valid in an identifier
   14 |         ans = n + cel(n - x, x);
      |   ^
a.cc:14:5: error: extended character   is not valid in an identifier
   14 |         ans = n + cel(n - x, x);
      |     ^
a.cc:14:7: error: extended character   is not valid in an identifier
   14 |         ans = n + cel(n - x, x);
      |       ^
a.cc:15:1: error: extended character   is not valid in an identifier
   15 |         cout << ans << endl;
      | ^
a.cc:15:3: error: extended character   is not valid in an identifier
   15 |         cout << ans << endl;
      |   ^
a.cc:15:5: error: extended character   is not valid in an identifier
   15 |         cout << ans << endl;
      |     ^
a.cc:15:7: error: extended character   is not valid in an identifier
   15 |         cout << ans << endl;
      |       ^
a.cc:16:1: error: extended character   is not valid in an identifier
   16 |     }
      | ^
a.cc:16:3: error: extended character   is not valid in an identifier
   16 |     }
      |   ^
a.cc: In function 'long long int cel(long long int, long long int)':
a.cc:6:1: error: '\U000000a0' was not declared in this scope
    6 |     if(n % x == 0)
      | ^
a.cc:8:2: error: expected ';' before '\U000000a0'
    8 |     ans = n / x * 2 * x + cel(x, n % x);
      |  ^~
      |  ;
a.cc:9:2: error: expected ';' before '\U000000a0'
    9 |     return ans ;
      |  ^~
      |  ;
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: In function 'int main()':
a.cc:13:1: error: '\U000000a0' was not declared in this scope
   13 |     while(cin >> n >> x) {
      | ^