Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i = 0; i < (n); i++)

int main(){
   int N,K,ans = 0;
   cin >> N >> K;
   for (int i = K; i <= N; i++){
       ans += i * (N - i + 1) + 1;
       ans %= 10000007;
   }
   cout << ans << endl;
}

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 | using namespace std;
      | ^
a.cc:2:1: error: extended character   is not valid in an identifier
a.cc:3:1: error: extended character   is not valid in an identifier
    3 | using ll = long long;
      | ^
a.cc:3:1: error: extended character   is not valid in an identifier
a.cc:3:11: error: extended character   is not valid in an identifier
    3 | using ll = long long;
      |           ^
a.cc:3:11: error: extended character   is not valid in an identifier
a.cc:4:2: error: extended character   is not valid in an identifier
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |  ^
a.cc:4:2: error: invalid preprocessing directive #define\U000000a0rep
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |  ^~~~~~~~~~
a.cc:4:17: error: extended character   is not valid in an identifier
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |                 ^
a.cc:4:22: error: extended character   is not valid in an identifier
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |                      ^
a.cc:4:22: error: extended character   is not valid in an identifier
a.cc:4:29: error: extended character   is not valid in an identifier
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |                             ^
a.cc:4:32: error: extended character   is not valid in an identifier
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |                                ^
a.cc:4:32: error: extended character   is not valid in an identifier
a.cc:4:36: error: extended character   is not valid in an identifier
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |                                    ^
a.cc:4:41: error: extended character   is not valid in an identifier
    4 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |                                         ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 | int main(){
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |    int N,K,ans = 0;
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:7:12: error: extended character   is not valid in an identifier
    7 |    int N,K,ans = 0;
      |            ^
a.cc:7:17: error: extended character   is not valid in an identifier
    7 |    int N,K,ans = 0;
      |                 ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |    cin >> N >> K;
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:10: error: extended character   is not valid in an identifier
    8 |    cin >> N >> K;
      |          ^
a.cc:8:10: error: extended character   is not valid in an identifier
a.cc:8:15: error: extended character   is not valid in an identifier
    8 |    cin >> N >> K;
      |               ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |    for (int i = K; i <= N; i++){
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:9:9: error: extended character   is not valid in an identifier
    9 |    for (int i = K; i <= N; i++){
      |         ^
a.cc:9:9: error: extended character   is not valid in an identifier
a.cc:9:16: error: extended character   is not valid in an identifier
    9 |    for (int i = K; i <= N; i++){
      |                ^
a.cc:9:19: error: extended character   is not valid in an identifier
    9 |    for (int i = K; i <= N; i++){
      |                   ^
a.cc:9:19: error: extended character   is not valid in an identifier
a.cc:9:24: error: extended character   is not valid in an identifier
    9 |    for (int i = K; i <= N; i++){
      |                        ^
a.cc:9:27: error: extended character   is not valid in an identifier
    9 |    for (int i = K; i <= N; i++){
      |                           ^
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:14: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      |              ^
a.cc:10:14: error: extended character   is not valid in an identifier
a.cc:10:18: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      |                  ^
a.cc:10:20: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      |                    ^
a.cc:10:23: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      |                       ^
a.cc:10:23: error: extended character   is not valid in an identifier
a.cc:10:27: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      |                           ^
a.cc:10:30: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      |                              ^
a.cc:10:32: error: extended character   is not valid in an identifier
   10 |        ans += i * (N - i + 1) + 1;
      |                                ^
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |        ans %= 10000007;
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:14: error: extended character   is not valid in an identifier
   11 |        ans %= 10000007;
      |              ^
a.cc:12:1: error: extended character   is not valid in an identifier
   12 |    }
      | ^
a.cc:12:1: error: extended character   is not valid in an identifier
a.cc:12:1: error: extended character   is not valid in an identifier
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |    cout << ans << endl;
      | ^
a.cc:13:1: error: extended character   is not valid in an identifier
a.cc:13:1: error: extended character   is not valid in an identifier
a.cc:13:1: error: extended character   is not valid in an identifier
a.cc:13:11: error: extended character   is not valid in an identifier
   13 |    cout << ans << endl;
      |           ^
a.cc:13:11: error: extended character   is not valid in an identifier
a.cc:13:18: error: extended character   is not valid in an identifier
   13 |    cout << ans << endl;
      |                  ^
a.cc:2:1: error: 'using\U000000a0namespace\U000000a0std' does not name a type
    2 | using namespace std;
      | ^~~~~~~~~~~~~~~~~~~
a.cc:3:1: error: 'using\U000000a0ll\U000000a0' does not name a type
    3 | using ll = long long;
      | ^~~~~~~~~
a.cc:6:1: error: ISO C++ forbids declaration of 'int\U000000a0main' with no type [-fpermissive]
    6 | int main(){
      | ^~~~~~~~
a.cc: In function 'int int\U000000a0main()':
a.cc:7:1: error: '\U000000a0\U000000a0\U000000a0int\U000000a0N' was not declared in this scope
    7 |    int N,K,ans = 0;
      | ^~~~~~~~
a.cc:7:10: error: 'K' was not declared in this scope
    7 |    int N,K,ans = 0;
      |          ^
a.cc:7:12: error: 'ans\U000000a0' was not declared in this scope
    7 |    int N,K,ans = 0;
      |            ^~~~
a.cc:7:17: error: '\U000000a00' was not declared in this scope
    7 |    int N,K,ans = 0;
      |                 ^~
a.cc:8:1: error: '\U000000a0\U000000a0\U000000a0cin\U000000a0' was not declared in this scope
    8 |    cin >> N >> K;
      | ^~~~~~~
a.cc:8:10: error: '\U000000a0N\U000000a0' was not declared in this scope
    8 |    cin >> N >> K;
      |          ^~~
a.cc:8:15: error: '\U000000a0K' was not declared in this scope
    8 |    cin >> N >> K;
      |               ^~
a.cc:9:9: error: 'int\U000000a0i\U000000a0' was not declared in this scope
    9 |    for (int i = K; i <= N; i++){
      |         ^~~~~~
a.cc:9:19: error: '\U000000a0i\U000000a0' was not declared in this scope
    9 |    for (int i = K; i <= N; i++){
      |                   ^~~
a.cc:9:24: error: '\U000000a0N' was not declared in this scope
    9 |    for (int i = K; i <= N; i++){
      |                        ^~
a.cc:9:27: error: '\U000000a0i' was not declared in this scope
    9 |    for (int i = K; i <= N; i++){
      |                           ^~
a.cc:13:1: error: '\U000000a0\U000000a0\U000000a0cout\U000000a0' was not declared in this scope
   13 |    cout << ans << endl;
      | ^~~~~~~~
a.cc:13:11: error: '\U000000a0ans