Language: C++

#include <bits/stdc++.h>
 
#define EPS 1e-9
#define INF 1070000000LL
#define MOD 1000000007LL
#define all(x) (x).begin(),(x).end()
#define fir first
#define foreach(it,X) for(auto it=(X).begin();it!=(X).end();it++)
#define ite iterator
#define mp make_pair
#define mt make_tuple
#define rep(i,m,n) for(int i=m;i<(n);i++)
#define rep1(i,m,n) for(int i=m;i<=(n);++i)
#define pb push_back
#define sec second
#define sz(x) ((int)(x).size())
inline void normal(ll &a) { a %= mod; (a < 0) && (a += mod); }
inline ll modAdd(ll a, ll b) { a %= mod, b %= mod; normal(a), normal(b); return (a + b) % mod; }
inline ll modMul(ll a, ll b) { a %= mod, b %= mod; normal(a), normal(b); return (a * b) % mod; }
inline ll modSub(ll a, ll b) { a %= mod, b %= mod; normal(a), normal(b); a -= b; normal(a); return a; }
inline ll modPow(ll b, ll p) { ll r = 1; while (p) { if (p & 1) r = modMul(r, b); b = modMul(b, b); p >>= 1; } return r; }
 
using namespace std;
 
typedef istringstream iss;
typedef long long ll;
typedef pair<int,int> pi;
typedef stringstream sst;
typedef vector<int> vi;
typedef vector<ll>vii;
vector<int>a;
 
 
 
int main(){
	cin.tie(0);
	ios_base::sync_with_stdio(0);
ll n;
cin>>n;
ll ans=modPow(10,n);
ans=modSub(ans,modMul(2LL,modPow(9,n)));
ans=modAdd(ans,modPow(8,n));
cout<<ans<<'\n';
	

}



Compiler output:
a.cc:17:13: error: variable or field 'normal' declared void
   17 | inline void normal(ll &a) { a %= mod; (a < 0) && (a += mod); }
      |             ^~~~~~
a.cc:17:20: error: 'll' was not declared in this scope; did you mean 'all'?
   17 | inline void normal(ll &a) { a %= mod; (a < 0) && (a += mod); }
      |                    ^~
      |                    all
a.cc:17:24: error: 'a' was not declared in this scope
   17 | inline void normal(ll &a) { a %= mod; (a < 0) && (a += mod); }
      |                        ^
a.cc:18:8: error: 'll' does not name a type; did you mean 'all'?
   18 | inline ll modAdd(ll a, ll b) { a %= mod, b %= mod; normal(a), normal(b); return (a + b) % mod; }
      |        ^~
      |        all
a.cc:19:8: error: 'll' does not name a type; did you mean 'all'?
   19 | inline ll modMul(ll a, ll b) { a %= mod, b %= mod; normal(a), normal(b); return (a * b) % mod; }
      |        ^~
      |        all
a.cc:20:8: error: 'll' does not name a type; did you mean 'all'?
   20 | inline ll modSub(ll a, ll b) { a %= mod, b %= mod; normal(a), normal(b); a -= b; normal(a); return a; }
      |        ^~
      |        all
a.cc:21:8: error: 'll' does not name a type; did you mean 'all'?
   21 | inline ll modPow(ll b, ll p) { ll r = 1; while (p) { if (p & 1) r = modMul(r, b); b = modMul(b, b); p >>= 1; } return r; }
      |        ^~
      |        all
a.cc: In function 'int main()':
a.cc:40:8: error: 'modPow' was not declared in this scope
   40 | ll ans=modPow(10,n);
      |        ^~~~~~
a.cc:41:16: error: 'modMul' was not declared in this scope; did you mean 'modfl'?
   41 | ans=modSub(ans,modMul(2LL,modPow(9,n)));
      |                ^~~~~~
      |                modfl
a.cc:41:5: error: 'modSub' was not declared in this scope
   41 | ans=modSub(ans,modMul(2LL,modPow(9,n)));
      |     ^~~~~~
a.cc:42:5: error: 'modAdd' was not declared in this scope
   42 | ans=modAdd(ans,modPow(8,n));
      |     ^~~~~~