Language: C++

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <valarray>
#include <vector>
using namespace std;
using namespace atcoder;

using ll = long long;
using ld = long double;
using mint = modint;
const int INF = 1e9;
const double EPS = 1e-9;
const int MOD = 1000000007;

struct combination
{
  vector<mint> fact, ifact;
  combination(int n) : fact(n + 1), ifact(n + 1)
  {
    assert(n < MOD);
    fact[0] = 1;
    for (int i = 1; i <= n; ++i)
      fact[i] = fact[i - 1] * i;
    ifact[n] = fact[n].inv();
    for (int i = n; i >= 1; --i)
      ifact[i - 1] = ifact[i] * i;
  }
  mint operator()(int n, int k)
  {
    if (k < 0 || k > n)
      return 0;
    return fact[n] * ifact[k] * ifact[n - k];
  }
};

int main()
{
  long long N;
  scanf("%lld", &N);
  modint::set_mod(MOD);

  if (N == 1)
  {
    cout << 0 << endl;
    return 0;
  }
  mint sum = 1;
  mint zero = 1;
  mint nine = 1;
  mint t = 1;
  for (int i = 0; i < N; ++i)
  {
    sum *= 10;
    t *= 8;
    zero *= 9;
    nine *= 9;
  }
  cout << (sum - zero - nine + t).val() << endl;

  return 0;
}


Compiler output:
a.cc:32:17: error: 'atcoder' is not a namespace-name
   32 | using namespace atcoder;
      |                 ^~~~~~~
a.cc:36:14: error: 'modint' does not name a type; did you mean 'mode_t'?
   36 | using mint = modint;
      |              ^~~~~~
      |              mode_t
a.cc:43:10: error: 'mint' was not declared in this scope; did you mean 'uint'?
   43 |   vector<mint> fact, ifact;
      |          ^~~~
      |          uint
a.cc:43:14: error: template argument 1 is invalid
   43 |   vector<mint> fact, ifact;
      |              ^
a.cc:43:14: error: template argument 2 is invalid
a.cc:54:3: error: 'mint' does not name a type; did you mean 'uint'?
   54 |   mint operator()(int n, int k)
      |   ^~~~
      |   uint
a.cc: In constructor 'combination::combination(int)':
a.cc:47:9: error: invalid types 'int[int]' for array subscript
   47 |     fact[0] = 1;
      |         ^
a.cc:49:11: error: invalid types 'int[int]' for array subscript
   49 |       fact[i] = fact[i - 1] * i;
      |           ^
a.cc:49:21: error: invalid types 'int[int]' for array subscript
   49 |       fact[i] = fact[i - 1] * i;
      |                     ^
a.cc:50:10: error: invalid types 'int[int]' for array subscript
   50 |     ifact[n] = fact[n].inv();
      |          ^
a.cc:50:20: error: invalid types 'int[int]' for array subscript
   50 |     ifact[n] = fact[n].inv();
      |                    ^
a.cc:52:12: error: invalid types 'int[int]' for array subscript
   52 |       ifact[i - 1] = ifact[i] * i;
      |            ^
a.cc:52:27: error: invalid types 'int[int]' for array subscript
   52 |       ifact[i - 1] = ifact[i] * i;
      |                           ^
a.cc: In function 'int main()':
a.cc:66:3: error: 'modint' has not been declared
   66 |   modint::set_mod(MOD);
      |   ^~~~~~
a.cc:73:3: error: 'mint' was not declared in this scope; did you mean 'uint'?
   73 |   mint sum = 1;
      |   ^~~~
      |   uint
a.cc:74:7: error: expected ';' before 'zero'
   74 |   mint zero = 1;
      |       ^~~~~
      |       ;
a.cc:75:7: error: expected ';' before 'nine'
   75 |   mint nine = 1;
      |       ^~~~~
      |       ;
a.cc:76:7: error: expected ';' before 't'
   76 |   mint t = 1;
      |       ^~
      |       ;
a.cc:79:5: error: 'sum' was not declared in this scope
   79 |     sum *= 10;
      |     ^~~
a.cc:80:5: error: 't' was not declared in this scope
   80 |     t *= 8;
      |     ^
a.cc:81:5: error: 'zero' was not declared in this scope; did you mean 'bzero'?
   81 |     zero *= 9;
      |     ^~~~
      |     bzero
a.cc:82:5: error: 'nine' was not declared in this scope
   82 |     nine *= 9;
      |     ^~~~
a.cc:84:12: error: 'sum' was not declared in this scope
   84 |   cout << (sum - zero - nine + t).val() << endl;
      |            ^~~
a.cc:84:18: error: 'zero' was not declared in this scope; did you mean 'bzero'?
   84 |   cout << (sum - zero - nine + t).val() << endl;
      |                  ^~~~
      |                  bzero
a.cc:84:25: error: 'nine' was not declared in this scope
   84 |   cout << (sum - zero - nine + t).val() << endl;
      |                         ^~~~
a.cc:84:32: error: 't' was not declared in this scope
   84 |   cout << (sum - zero - nine + t).val() << endl;
      |                                ^