Language: C++

<a href="http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2383">??????</a>
#????????????
???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????

#?§£???
?????????????????£??????????????????????????????????????????
???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
????????????????????°??????????????????????????°???????????????????¢????????????°???????????????????????????????????°????????????????°???????????????????????????????
?????£?????????????????°????????\?????????????????\????????°????????????????????´????????\??????????±????????????????????????????????????°????????¨?????????
<a href="http://judge.u-aizu.ac.jp/onlinejudge/review.jsp?rid=1878070#1">???????????????</a>

#??????
????????????

#?????????
```cpp
#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
using namespace std;
typedef long long ll;
#define all(v) (v).begin(),(v).end()
#define rep(i,n) for(ll i=0;i<(n);i++)

const ll mod = 1000000007;

int main(void){
	ll n; ll t;
	cin >> n >> t;
	vector<ll> d(n);
	rep(i, n) scanf("%lld", &d[i]);

	sort(all(d));
	ll ans = 1;
	//????????\????????´????????¢?????????????????????????¢??????????????????¨??????????????????????????§???????????¢?´¢??¨???lower_bound??¢??°(???????????????"??\???"???????´?????????????????????????????????????)
	//i + 1????????§?????\??£???????????°???????????¨??????????°??????°????????\?????????
	//lower_bound????????£???????????¶????????????????????°???????????????????????¶????????????????????°??????????¨?????¨???????????????¨???(i + 1)??????????????°??????????????°???????????????????????????
	rep(i, n){
		ans = ans * (i + 1 - (ll)(lower_bound(d.begin(), d.begin() + i + 1, d[i] - t) - d.begin())) % mod;
	}

    printf("%lld\n", ans % mod);
    return 0;
}
```]

Compiler output:
a.cc:1:77: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
    1 | <a href="http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2383">??????</a>
a.cc:2:2: error: invalid preprocessing directive #?
    2 | #????????????
      |  ^
a.cc:3:79: error: extended character ¢ is not valid in an identifier
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
      |                                                                               ^
a.cc:3:133: error: extended character ° is not valid in an identifier
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
      |                                                                                                                                     ^
a.cc:3:138: error: extended character ± is not valid in an identifier
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
      |                                                                                                                                          ^
a.cc:3:162: warning: trigraph ??( ignored, use -trigraphs to enable [-Wtrigraphs]
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
a.cc:3:192: error: extended character £ is not valid in an identifier
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
      |                                                                                                                                                                                                ^
a.cc:3:197: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
a.cc:3:234: error: extended character £ is not valid in an identifier
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
      |                                                                                                                                                                                                                                          ^
a.cc:3:239: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
a.cc:3:248: error: extended character § is not valid in an identifier
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
      |                                                                                                                                                                                                                                                        ^
a.cc:3:260: error: extended character ° is not valid in an identifier
    3 | ???????????????????????????N??????????????????????????????????????????????????¢????????????????????????????????????????????´????????°????±?????????????????????????(k??????????????????????????£??????) >= (k-1??????????????????????????£??????) - T??§???????????°???????????????
      |                                                                                                                                                                                                                                                                    ^
a.cc:5:2: error: invalid preprocessing directive #?
    5 | #?§£???
      |  ^
a.cc:5:3: error: extended character § is not valid in an identifier
    5 | #?§£???
      |   ^
a.cc:5:3: error: extended character £ is not valid in an identifier
a.cc:6:18: error: extended character £ is not valid in an identifier
    6 | ?????????????????£??????????????????????????????????????????
      |                  ^
a.cc:7:39: error: extended character § is not valid in an identifier
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                       ^
a.cc:7:54: error: stray '\' in program
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                                      ^
a.cc:7:63: error: extended character ° is not valid in an identifier
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                                               ^
a.cc:7:78: error: extended character § is not valid in an identifier
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                                                              ^
a.cc:7:96: error: extended character § is not valid in an identifier
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                                                                                ^
a.cc:7:105: error: stray '\' in program
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                                                                                         ^
a.cc:7:126: error: extended character ° is not valid in an identifier
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                                                                                                              ^
a.cc:7:159: error: extended character ° is not valid in an identifier
    7 | ???????????????????????????????????¨??§??????????????\????????°??????????????§?????????????????§????????\????????????????????°?????¨??????????????????????????°???????????????
      |                                                                                                                                                               ^
a.cc:8:21: error: extended character ° is not valid in an identifier
    8 | ????????????????????°??????????????????????????°???????????????????¢????????????°???????????????????????????????????°????????????????°???????????????????????????????
      |                     ^
a.cc:8:48: error: extended character ° is not valid in an identifier
    8 | ????????????????????°??????????????????????????°???????????????????¢????????????°???????????????????????????????????°????????????????°???????????????????????????????
      |                                                ^
a.cc:8:68: error: extended character ¢ is not valid in an identifier
    8 | ????????????????????°??????????????????????????°???????????????????¢????????????°???????????????????????????????????°????????????????°???????????????????????????????
      |                                                                    ^
a.cc:8:81: error: extended character ° is not valid in an identifier
    8 | ????????????????????°??????????????????????????°???????????????????¢????????????°???????????????????????????????????°????????????????°???????????????????????????????
      |                                                                                 ^
a.cc:8:117: error: extended character ° is not valid in an identifier
    8 | ????????????????????°??????????????????????????°???????????????????¢????????????°???????????????????????????????????°????????????????°???????????????????????????????
      |                                                                                                                     ^
a.cc:8:134: error: extended character ° is not valid in an identifier
    8 | ????????????????????°??????