criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  ll N;
  ll mod=pow(10,9)+7;
  cin>>N;
  cout<<ll((pow(10,N)%mod-2*pow(9,N)%mod+pow(8,N)%mod)%mod);
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected primary-expression before 'long'
   21 | #define ll long long
      |            ^~~~
a.cc:51:9: note: in expansion of macro 'll'
   51 |   cout<<ll((pow(10,N)%mod-2*pow(9,N)%mod+pow(8,N)%mod)%mod);
      |         ^~
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  ll N;
  ll mod=pow(10,9)+7;
  cin>>N;
  cout<<(pow(10,N)%mod-2*pow(9,N)%mod+pow(8,N)%mod)%mod;
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:19: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'long long int' to binary 'operator%'
   51 |   cout<<(pow(10,N)%mod-2*pow(9,N)%mod+pow(8,N)%mod)%mod;
      |          ~~~~~~~~~^~~~
      |             |      |
      |             |      long long int
      |             __gnu_cxx::__promote<double>::__type {aka double}
a.cc:51:34: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'long long int' to binary 'operator%'
   51 |   cout<<(pow(10,N)%mod-2*pow(9,N)%mod+pow(8,N)%mod)%mod;
      |                        ~~~~~~~~~~^~~~
      |                         |         |
      |                         |         long long int
      |                         __gnu_cxx::__promote<double>::__type {aka double}
a.cc:51:47: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'long long int' to binary 'operator%'
   51 |   cout<<(pow(10,N)%mod-2*pow(9,N)%mod+pow(8,N)%mod)%mod;
      |                                       ~~~~~~~~^~~~
      |                                          |     |
      |                                          |     long long int
      |                                          __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

// https://atcoder.jp/contests/abc175/tasks/abc175_c
#include <iostream>
#include <vector>
#include <deque>
#include <tuple>
#include <algorithm>
#include <iterator> // std::back_inserter
#include <climits>
#include <sstream>

using namespace std;

typedef long long ll;

#define m (1000000007L)
int main()
{
    ll n;
    cin >> n;
 
    ll a10N = 1;
    ll a9N = 1;
    ll a8N = 1;
    for (ll i=0; i<n; i++) {
       a10N = (a10N * 10) % m;
       a9N = (a9N * 9) % m;
       a8N = (a8N * 8) % m;
    }
    cout << (z((a10N - ((2 * a9N) % m)) % m + a8N) + m )% m << endl;
//    cout << (((a10N - a9N) % m - a9N) %m + a8N) % m << endl;
//    cout << (((a10N + a8N) % m - a9N) %m - a9N) % m << endl;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:14: error: 'z' was not declared in this scope
   29 |     cout << (z((a10N - ((2 * a9N) % m)) % m + a8N) + m )% m << endl;
      |              ^
Language: C++

#include <iostream>

using namespace std;

const int MOD = 1e9+7;

int pow(int x, int n) {
	long long ret = 1;
  	for (int i = 0; i < n; ++i) {
     	ret = (ret * n) % MOD; 
    }
  	return ret;
}

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  
  	int N;
  	cin >> N;
  
	long long ret = pow(10,N);
  	ret = (ret - power(9,N) + MOD) % MOD;
  	ret = (ret - power(9,N) + MOD) % MOD;
  	ret = (ret + power(8,N) + MOD) % MOD;
  	cout << ret << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:22: error: 'power' was not declared in this scope; did you mean 'pow'?
   22 |         ret = (ret - power(9,N) + MOD) % MOD;
      |                      ^~~~~
      |                      pow
Language: C++

#include <iostream>

using namespace std;

const int MOD = 1e9+7;

int pow(int x, int n) {
	long long ret = 1;
  	for (int i = 0; i < n; ++i) {
     	ret = (ret * n) % MOD; 
    }
  	return ret;
}

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  
  	int N;
  	cin >> N;
  
	long long ret = power(10,N);
  	ret = (ret - power(9,N) + MOD) % MOD;
  	ret = (ret - power(9,N) + MOD) % MOD;
  	ret = (ret + power(8,N) + MOD) % MOD;
  	cout << ret << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: 'power' was not declared in this scope; did you mean 'pow'?
   21 |         long long ret = power(10,N);
      |                         ^~~~~
      |                         pow
Language: C++

#include<iostream>
#include<algorithm>
#include<iomanip>
#include<string>
#include<vector>

typedef unsigned long long ULL;
typedef long long LL;

#define MOD 1000000007
using namespace std;

int main(){
    LL full;
    LL not_1,not_2;
    LL ans;
    int i;
    int N;

    cin >> N;

    full = not_1 = not_2 = 1;
    

    /* 10 18 8
    100 81 64 */
    for(i=0;i<N;i++){
        full *= 10;
        not_1 *= 9;
        not_2 *= 8;
        full %= MOD;
        not_1 %= MOD;
        not_2 %= MOD;
    }
    ans = full - not1 -not1 + not2;
    ans %= MOD;
    ans = (ans + MOD) % MOD;
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:16: error: invalid operands of types 'LL' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator-'
   35 |     ans = full - not1 -not1 + not2;
      |           ~~~~~^~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <queue>
#include <map>
#include <set>

using namespace std;
typedef long long ll;
const ll mod=1000000007
int main()
{
    ll n;
    cin >> n;
    ll cnt = 0;
    ll temp10 = 1, temp9 = 1, temp8 = 1;

    while (cnt < n)
    {
        temp10 *= 10;
        temp10%=mod;
        temp9 *= 9;
        temp9%=mod;
        temp8 *= 8;
        temp8%=mod;
        cnt++;
    }
    cout << (temp10 - temp9 * 2 + temp8 )%mod<< endl;
    return 0;
}

Compiler output:
a.cc:12:1: error: expected ',' or ';' before 'int'
   12 | int main()
      | ^~~
Language: C++

#include<bits/stdc++.h>
using ll = long long int;
 
using namespace std;
 
const ll mod = 1e9 + 7;
ll power(ll n, ll k)
{
  ll res = 1;
  while(k){
    if(k&1){
      res = (res * n) % mod;
      k--;
  }
    else{
      n = (n * n) % mod;
      k /= 2;
    }
    
    return res;
}
  
int main()
{
  ll n; cin >> n;
  ll ans = power(10,n) - 2 * power(9,n) + power(8,n);
  ans %= mod;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'll power(ll, ll)':
a.cc:23:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   23 | int main()
      |         ^~
a.cc:23:9: note: remove parentheses to default-initialize a variable
   23 | int main()
      |         ^~
      |         --
a.cc:23:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:24:1: error: a function-definition is not allowed here before '{' token
   24 | {
      | ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
a.cc:30:2: warning: control reaches end of non-void function [-Wreturn-type]
   30 | }
      |  ^
Language: C++

#include<bits/stdc++.h>
using ll = long long int;

using namespace std;

const ll mod = 1e9 + 7;
ll power(ll n, ll k)
{
  ll res = 1;
  while(k){
    if(k&1){
      res = (res * n) % mod;
      k--;
  }
    else{
      n = (n * n) % mod;
      k /= 2;
    }
    
    return res;
}
  
int main(){
  ll n; cin >> n;
  ll ans = power(10,n) - 2 * power(9,n) + power(8,n);
  ans %= mod;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'll power(ll, ll)':
a.cc:23:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   23 | int main(){
      |         ^~
a.cc:23:9: note: remove parentheses to default-initialize a variable
   23 | int main(){
      |         ^~
      |         --
a.cc:23:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:23:11: error: a function-definition is not allowed here before '{' token
   23 | int main(){
      |           ^
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
a.cc:29:2: warning: control reaches end of non-void function [-Wreturn-type]
   29 | }
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

typdef long long int ll;
const ll mod = 1e9 + 7;

ll power(ll a, ll b) {
  ll res = 1LL;
  while(b) {
    if(b&1)
      res = (res*a)%mod;
    b/=2;
    a = (a*a)%mod;
  }
  return res;
}

int main() {
  long long int n;
  cin >> n;
  
  ll res = power(10LL, n);
  res = (res - power(9LL,n) + mod)%mod;
  res = (res - power(9LL,n) + mod)%mod;
  res = (res + power(8LL, n))%mod;
  
  cout << res << endl;
  return 0;
}


Compiler output:
a.cc:4:1: error: 'typdef' does not name a type; did you mean 'typedef'?
    4 | typdef long long int ll;
      | ^~~~~~
      | typedef
a.cc:5:7: error: 'll' does not name a type
    5 | const ll mod = 1e9 + 7;
      |       ^~
a.cc:7:1: error: 'll' does not name a type
    7 | ll power(ll a, ll b) {
      | ^~
a.cc: In function 'int main()':
a.cc:22:3: error: 'll' was not declared in this scope
   22 |   ll res = power(10LL, n);
      |   ^~
a.cc:23:3: error: 'res' was not declared in this scope
   23 |   res = (res - power(9LL,n) + mod)%mod;
      |   ^~~
a.cc:23:16: error: 'power' was not declared in this scope
   23 |   res = (res - power(9LL,n) + mod)%mod;
      |                ^~~~~
a.cc:23:31: error: 'mod' was not declared in this scope; did you mean 'modf'?
   23 |   res = (res - power(9LL,n) + mod)%mod;
      |                               ^~~
      |                               modf
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll powmod(ll x,ll y);

int main()
{
    int n;
    unsigned long long ans, mod = 1000000007;
    cin >> n;
    ans=powmod(10,n)-2*powmod(9,n)+powmod(8,n);
    ans=(ans+mod)%mod;
    cout << ans;
}

ll powmod(ll x,ll y){
    ll res=1,i;
    for(i=0;i<y;i++){
        res=res*x%mod;
    }
    return res;
}

Compiler output:
a.cc:16:4: error: ambiguating new declaration of 'll powmod(ll, ll)'
   16 | ll powmod(ll x,ll y){
      |    ^~~~~~
a.cc:4:10: note: old declaration 'const ll powmod(ll, ll)'
    4 | const ll powmod(ll x,ll y);
      |          ^~~~~~
a.cc: In function 'll powmod(ll, ll)':
a.cc:19:19: error: 'mod' was not declared in this scope; did you mean 'modf'?
   19 |         res=res*x%mod;
      |                   ^~~
      |                   modf
Language: C++

#include <iostream>
#include <vector>

using namespace std;

const int MOD = 1000000000 + 7;

int answer;

void findPermutation(int n, int used) {
	if (n == 0) {
      	if ((used & (1<<0)) && (used & (1<<9))
            answer = (answer + 1) % MOD;
     	return; 
    }
  
  	for (int i = 0; i < 10; ++i) {
      	findPermutation(n-1, used | (1<<i));
    }
}

int main() {
	answer = 0;
  
  	int N;
  	cin >> N;
  
  	findPermutation(N);
  	return answer;
}


Compiler output:
a.cc: In function 'void findPermutation(int, int)':
a.cc:12:47: error: expected ';' before 'answer'
   12 |         if ((used & (1<<0)) && (used & (1<<9))
      |                                               ^
      |                                               ;
   13 |             answer = (answer + 1) % MOD;
      |             ~~~~~~                             
a.cc:14:9: error: expected primary-expression before 'return'
   14 |         return;
      |         ^~~~~~
a.cc:13:41: error: expected ')' before 'return'
   13 |             answer = (answer + 1) % MOD;
      |                                         ^
      |                                         )
   14 |         return;
      |         ~~~~~~                           
a.cc:12:12: note: to match this '('
   12 |         if ((used & (1<<0)) && (used & (1<<9))
      |            ^
a.cc: In function 'int main()':
a.cc:28:24: error: too few arguments to function 'void findPermutation(int, int)'
   28 |         findPermutation(N);
      |         ~~~~~~~~~~~~~~~^~~
a.cc:10:6: note: declared here
   10 | void findPermutation(int n, int used) {
      |      ^~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
#define ll long long
#define ll ab=1000000009
ll power1(int a,int n){
  ll count=1;
  for(int i=0;i<n;i++)
    count=count*a%ab;
  return count;
}
int main(){
  int n;
  cin>>n;
  if(n==1)
    cout<<0;
  else{
    ll x=power1(10,n)-2*(power1(9,n))-power1(8,n);
    x=x%ab;
    x=(x+ab)%ab;
    cout<<x;
  }
}

Compiler output:
a.cc:4:9: warning: "ll" redefined
    4 | #define ll ab=1000000009
      |         ^~
a.cc:3:9: note: this is the location of the previous definition
    3 | #define ll long long
      |         ^~
a.cc:4:12: error: 'ab' does not name a type
    4 | #define ll ab=1000000009
      |            ^~
a.cc:5:1: note: in expansion of macro 'll'
    5 | ll power1(int a,int n){
      | ^~
a.cc: In function 'int main()':
a.cc:4:12: error: 'ab' was not declared in this scope; did you mean 'abs'?
    4 | #define ll ab=1000000009
      |            ^~
a.cc:17:5: note: in expansion of macro 'll'
   17 |     ll x=power1(10,n)-2*(power1(9,n))-power1(8,n);
      |     ^~
a.cc:18:5: error: 'x' was not declared in this scope
   18 |     x=x%ab;
      |     ^
Language: C++

#include<iostream>
using namespace std;
#define ll long long
#define ll ab=1000000009
ll power1(int a,int n){
  ll count=1;
  for(int i=0;i<n;i++)
    count=count*a%ab;
  return count;
}
int main(){
  int n;
  cin>>n;
  if(n==1)
    cout<<0;
  else{
    ll x=power1(10,n)-2*(power1(9,n))-power1(8,n);
    x=x%10;
    cout<<x;
  }
}

Compiler output:
a.cc:4:9: warning: "ll" redefined
    4 | #define ll ab=1000000009
      |         ^~
a.cc:3:9: note: this is the location of the previous definition
    3 | #define ll long long
      |         ^~
a.cc:4:12: error: 'ab' does not name a type
    4 | #define ll ab=1000000009
      |            ^~
a.cc:5:1: note: in expansion of macro 'll'
    5 | ll power1(int a,int n){
      | ^~
a.cc: In function 'int main()':
a.cc:4:12: error: 'ab' was not declared in this scope; did you mean 'abs'?
    4 | #define ll ab=1000000009
      |            ^~
a.cc:17:5: note: in expansion of macro 'll'
   17 |     ll x=power1(10,n)-2*(power1(9,n))-power1(8,n);
      |     ^~
a.cc:18:5: error: 'x' was not declared in this scope
   18 |     x=x%10;
      |     ^
Language: C++

#include<iostream>
using namespace std;
#define ll long long
const ll ab 1000000009
ll power1(int a,int n){
  ll count=1;
  for(int i=0;i<n;i++)
    count=count*a%ab;
  return count;
}
int main(){
  int n;
  cin>>n;
  if(n==1)
    cout<<0;
  else{
    ll x=power1(10,n)-2*(power1(9,n))-power1(8,n);
    x=x%ab;
    x=(x+ab)%ab;
    cout<<x;
  }
}

Compiler output:
a.cc:4:13: error: expected initializer before numeric constant
    4 | const ll ab 1000000009
      |             ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:17:10: error: 'power1' was not declared in this scope
   17 |     ll x=power1(10,n)-2*(power1(9,n))-power1(8,n);
      |          ^~~~~~
a.cc:18:9: error: 'ab' was not declared in this scope; did you mean 'abs'?
   18 |     x=x%ab;
      |         ^~
      |         abs
Language: C++

#include<iostream>
using namespace std;
long long mod=1e9+7;

long long power(long long a,long long b){
	long long res = 1;
    while (b > 0) {
        if (b & 1)
            res = (res * a)%mod;
        a = (a * a)%mod;
        b >>= 1;
    }
    return res;
}

int main(){
	long long n,ans=1;
  
  	cin>>n;
  
  	ans = (pow(10,n)%mod - 2*pow(9,n)%mod + pow(8,n)%mod + 2*mod)%mod;
  
  	cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'pow' was not declared in this scope
   21 |         ans = (pow(10,n)%mod - 2*pow(9,n)%mod + pow(8,n)%mod + 2*mod)%mod;
      |                ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int M=1e9+7;
long long mod(long long a)
{
  return((a%M+M)%M);
}
long long add(long long x,long long y)
{
  return mod(mod(x)+mod(y));
}
long long multiply(long long x,long long y)
{
  return mod(mod(x)*mod(y));
}
long long subtract(long long x,long long y)
{
  return mod(mod(x)-mod(y));
}

int main()
{
  long long int N;
  cin>>N;
  long long int A=1,B=1,D=1;
  for(long long int i=0;i<N;i++)
  {
    A=multiply(A,10);
    B=multiply(B,9);
    D=multiply(D,8);
  }
  A=add(A,-B);
  A=add(A,-B;
  A=add(A,D);
  cout<<mod(A);


Compiler output:
a.cc: In function 'int main()':
a.cc:33:13: error: expected ')' before ';' token
   33 |   A=add(A,-B;
      |        ~    ^
      |             )
a.cc:35:16: error: expected '}' at end of input
   35 |   cout<<mod(A);
      |                ^
a.cc:22:1: note: to match this '{'
   22 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int M=1e9+7;
long long mod(long long a)
{
  return((a%M+M)%M);
}
long long add(long long x,long long y)
{
  return mod(mod(x)+mod(y));
}
long long multiply(long long x,long long y)
{
  return mod(mod(x)*mod(y));
}
long long subtract(long long x,long long y)
{
  return mod(mod(x)-mod(y));
}

int main()
{
  long long int N;
  cin>>N;
  long long int A=1,B=1,D=1;
  for(long long int i=0;i<N;i++)
  {
    A=multiply(A,10);
    B=multiply(B,9);
    D=multiply(D,8);
  }
  A=add(A,B*-1);
  A=add(A,B*-1;
  A=add(A,D);
  cout<<mod(A);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:15: error: expected ')' before ';' token
   33 |   A=add(A,B*-1;
      |        ~      ^
      |               )
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int M=1e9+7;
long long mod(long long a)
{
  return((a%M+M)%M);
}
long long add(long long x,long long y)
{
  return mod(mod(x)+mod(y));
}
long long multiply(long long x,long long y)
{
  return mod(mod(x)*mod(y));
}
long long subtract(long long x,long long y)
{
  return mod(mod(x)-mod(y));
}

int main()
{
  long long int N;
  cin>>N;
  long long int A=1,B=1,D=1;
  for(long long int i=0;i<N;i++)
  {
    A=multiply(A,10);
    B=multiply(B,9);
    C=multiply(C,8);
  }
  A=subtract(A,B);
  A=subtract(A,B);
  A=add(A,D);
  cout<<mod(A);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:5: error: 'C' was not declared in this scope
   30 |     C=multiply(C,8);
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int M=1e9+7;
long long mod(long long a)
{
  return((a%M+M)%M);
}
long long add(long long x,long long y)
{
  return mod(mod(x)+mod(y));
}
long long multiply(long long x,long long y)
{
  return mod(mod(x)*mod(y));
}
long long subtract(long long x,long long y)
{
  return mod(mod(x)-mod(y));
}

int main()
{
  long long int N;
  cin>>N;
  long long int A,B,D;
  A=mod(10^N));
  B=mod(9^N));
  D=mod(8^N));
  A=subtract(A,B);
  A=subtract(A,B);
  A=add(A,D);
  cout<<mod(A);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:14: error: expected ';' before ')' token
   26 |   A=mod(10^N));
      |              ^
      |              ;
a.cc:27:13: error: expected ';' before ')' token
   27 |   B=mod(9^N));
      |             ^
      |             ;
a.cc:28:13: error: expected ';' before ')' token
   28 |   D=mod(8^N));
      |             ^
      |             ;
Language: C++

using namespace std;
#include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
ll power(ll x, ll p)
{
  ll res=1;
  while(p)
  {
    if(p%2)
     { res=(res%mod*x%mod+mod)%mod;
      p--,res%=mod;}
    else
      x=(x%mod*x%mod+mod)%mod,p/=2;
   }
  return res%mod;
}
int main()
{
  ll n;
  cin>>n;
  if(n==1)
  {
    cout<<0<<endl;
    return 0;
  }
  ll x = (power(10,n)-2*power(9,n)%mod+power(8,n)%mod;
  cout<<(x+mod)%mod<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:54: error: expected ')' before ';' token
   27 |   ll x = (power(10,n)-2*power(9,n)%mod+power(8,n)%mod;
      |          ~                                           ^
Language: Java

import java.util.*;

public class Solution {
    static long mod = 1000000007;
    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n=in.nextInt();
        if(n==1){
            System.out.println(0);
            return ;
        }
        long ans=pow(10,n)-pow(9,n)-pow(9,n)+pow(8,n);
        ans+=mod;
        ans%=mod;
        System.out.println(ans);

    }
    public static long pow(int a,int b){
        long ans=1;
        for(int i=0;i<b;i++){
            ans*=a;
            ans%=mod;
        }
        return ans;
    }

}

Compiler output:
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		long ans=(Math.pow(10,n)+Math.pow(8,n)-Math.pow(9,n)-Math.pow(9,n))%1000000007;
		System.out.println(ans);
	}
		
}


Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from double to long
		long ans=(Math.pow(10,n)+Math.pow(8,n)-Math.pow(9,n)-Math.pow(9,n))%1000000007;
		                                                                   ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;

long long mod(long long a)
{
  return((a%M+M)%M);
}
long long add(long long x,long long y)
{
  return mod(mod(x)+mod(y));
}
long long multiply(long long x,long long y)
{
  return mod(mod(x)*mod(y));
}
long long subtract(long long x,long long y)
{
  return mod(mod(x)-mod(y));
}

int main()
{
  long long int N;
  long long int M=1e9+7;
  cin>>N;
  long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
    cout<<ans;
 
}


Compiler output:
a.cc: In function 'long long int mod(long long int)':
a.cc:6:13: error: 'M' was not declared in this scope
    6 |   return((a%M+M)%M);
      |             ^
a.cc: In function 'int main()':
a.cc:26:32: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'long long int' to binary 'operator%'
   26 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                       ~~~~~~~~~^~
      |                          |      |
      |                          |      long long int
      |                          __gnu_cxx::__promote<double>::__type {aka double}
a.cc:26:45: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'long long int' to binary 'operator%'
   26 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                                     ~~~~~~~~^~
      |                                        |     |
      |                                        |     long long int
      |                                        __gnu_cxx::__promote<double>::__type {aka double}
a.cc:26:58: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'long long int' to binary 'operator%'
   26 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                                                  ~~~~~~~~^~
      |                                                     |     |
      |                                                     |     long long int
      |                                                     __gnu_cxx::__promote<double>::__type {aka double}
a.cc:26:71: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'long long int' to binary 'operator%'
   26 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                                                               ~~~~~~~~^~
      |                                                                  |     |
      |                                                                  |     long long int
      |                                                                  __gnu_cxx::__promote<double>::__type {aka double}
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		long ans=(Math.pow(10,n)+Math.pow(8,n)-Math.pow(9,n)-Math.pow(9,n))%1000000007
		System.out.println(ans);
	}
		
}

Compiler output:
Main.java:6: error: ';' expected
		long ans=(Math.pow(10,n)+Math.pow(8,n)-Math.pow(9,n)-Math.pow(9,n))%1000000007
		                                                                              ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int M=1e9+7;
long long mod(long long a)
{
  return((a%M+M)%M);
}
long long add(long long x,long long y)
{
  return mod(mod(x)+mod(y));
}
long long multiply(long long x,long long y)
{
  return mod(mod(x)*mod(y));
}
long long subtract(long long x,long long y)
{
  return mod(mod(x)-mod(y));
}

int main()
{
  long long int N;
  cin>>N;
  long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
    cout<<ans;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:32: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const int' to binary 'operator%'
   25 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                       ~~~~~~~~~^~
      |                          |      |
      |                          |      const int
      |                          __gnu_cxx::__promote<double>::__type {aka double}
a.cc:25:45: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const int' to binary 'operator%'
   25 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                                     ~~~~~~~~^~
      |                                        |     |
      |                                        |     const int
      |                                        __gnu_cxx::__promote<double>::__type {aka double}
a.cc:25:58: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const int' to binary 'operator%'
   25 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                                                  ~~~~~~~~^~
      |                                                     |     |
      |                                                     |     const int
      |                                                     __gnu_cxx::__promote<double>::__type {aka double}
a.cc:25:71: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const int' to binary 'operator%'
   25 |   long long int ans=((pow(10,N)%M)-(pow(9,N)%M)-(pow(9,N)%M)+(pow(8,N)%M))%M
      |                                                               ~~~~~~~~^~
      |                                                                  |     |
      |                                                                  |     const int
      |                                                                  __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int M=1e9+7;
long long mod(long long a)
{
  return((a%M+M)%M);
}
long long add(long long x,long long y)
{
  return mod(mod(x)+mod(y));
}
long long multiply(long long x,long long y)
{
  return mod(mod(x)*mod(y));
}
long long subtract(long long x,long long y)
{
  return mod(mod(x)-mod(y));
}

int main()
{
  long long int N;
  cin>>N;
  long long int A,B,D;
  A=mod(pow(10,N));
  B=mod(pow(9,N));
  D=mod(pow(8,N));
  A=subtract(A,B);
  A=sutract(A,B);
  A=add(A,C);
  cout<<A;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:5: error: 'sutract' was not declared in this scope; did you mean 'subtract'?
   30 |   A=sutract(A,B);
      |     ^~~~~~~
      |     subtract
a.cc:31:11: error: 'C' was not declared in this scope
   31 |   A=add(A,C);
      |           ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define mod 1000000007

using namespace std;

ll pow(ll base, ll power, ll m=mod){
  ll ans = base%m;
  
  while(power){
    if(power&1){
      ans=(ans*base)%m;
    }
    base=(base*base)%m;
    power>>=1;
  }
  return ans;
}
int main(){
  ll n;
  cin>>n;
  ll ans = pow(10,n)%mod;
  ans -=(2LL * pow(9,n))%mod;
  ans +=(pow(8,n)%mod);
  cout<<ans<<"\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   22 |   ll ans = pow(10,n)%mod;
      |            ~~~~~~~~~^
      |               |
      |               __gnu_cxx::__promote<double>::__type {aka double}
a.cc:23:25: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   23 |   ans -=(2LL * pow(9,n))%mod;
      |         ~~~~~~~~~~~~~~~~^
      |              |
      |              __gnu_cxx::__promote<double>::__type {aka double}
a.cc:24:18: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   24 |   ans +=(pow(8,n)%mod);
      |          ~~~~~~~~^
      |             |
      |             __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define mod 1000000007

using namespace std;

ll pow(ll base, ll power, ll m=mod){
  ll ans = base%m;
  
  while(power){
    if(power&1){
      ans=(ans*base)%m;
    }
    base=(base*base)%m;
    power>>1;
  }
  return ans;
}
int main(){
  ll n;
  cin>>n;
  ll ans = pow(10,n)%mod;
  ans -=(2LL * pow(9,n))%m;
  ans +=(pow(8,n)%m);
  cout<<ans<<"\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   22 |   ll ans = pow(10,n)%mod;
      |            ~~~~~~~~~^
      |               |
      |               __gnu_cxx::__promote<double>::__type {aka double}
a.cc:23:26: error: 'm' was not declared in this scope
   23 |   ans -=(2LL * pow(9,n))%m;
      |                          ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int n;
  	cin >> n;
  	cout << pow(10,n) - pow(9,n) — pow(9,n) + pow(8,n) << endl;
}


Compiler output:
a.cc:7:38: error: extended character — is not valid in an identifier
    7 |         cout << pow(10,n) - pow(9,n) — pow(9,n) + pow(8,n) << endl;
      |                                      ^
a.cc: In function 'int main()':
a.cc:7:37: error: expected ';' before '\U00002014'
    7 |         cout << pow(10,n) - pow(9,n) — pow(9,n) + pow(8,n) << endl;
      |                                     ^~
      |                                     ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long int N;
  cin>>N;
  long long int A,B,D;
  A=pow(10,N)%(pow(10,9)+7);
  B=pow(9,N)%(pow(10,9)+7);
  D=pow(8,N)%(pow(10,9)+7);
  long long int ans;
  B=2*B%(pow(10,9)+7);
  A=A-B;
  A=(A+D)%(pow(10,9)+7);
  cout<<A;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
    8 |   A=pow(10,N)%(pow(10,9)+7);
      |     ~~~~~~~~~^~~~~~~~~~~~~~
      |        |                |
      |        |                __gnu_cxx::__promote<double>::__type {aka double}
      |        __gnu_cxx::__promote<double>::__type {aka double}
a.cc:9:13: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
    9 |   B=pow(9,N)%(pow(10,9)+7);
      |     ~~~~~~~~^~~~~~~~~~~~~~
      |        |               |
      |        |               __gnu_cxx::__promote<double>::__type {aka double}
      |        __gnu_cxx::__promote<double>::__type {aka double}
a.cc:10:13: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   10 |   D=pow(8,N)%(pow(10,9)+7);
      |     ~~~~~~~~^~~~~~~~~~~~~~
      |        |               |
      |        |               __gnu_cxx::__promote<double>::__type {aka double}
      |        __gnu_cxx::__promote<double>::__type {aka double}
a.cc:12:8: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   12 |   B=2*B%(pow(10,9)+7);
      |     ~~~^~~~~~~~~~~~~~
      |      |            |
      |      |            __gnu_cxx::__promote<double>::__type {aka double}
      |      long long int
a.cc:14:10: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   14 |   A=(A+D)%(pow(10,9)+7);
      |     ~~~~~^~~~~~~~~~~~~~
      |       |             |
      |       long long int __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long int N;
  cin>>N;
  long long int A,B,D;
  A=pow(10,N)%(10^9+7);
  B=pow(9,N)%(10^9+7);
  D=pow(8,N)%(10^9+7);
  long long int ans;
  B=2*B%(10^9+7);
  A=A-B;
  A=(A+D)%(10^9+7);
  cout<<A;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
    8 |   A=pow(10,N)%(10^9+7);
      |     ~~~~~~~~~^~~~~~~~~
      |        |         |
      |        |         int
      |        __gnu_cxx::__promote<double>::__type {aka double}
a.cc:9:13: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
    9 |   B=pow(9,N)%(10^9+7);
      |     ~~~~~~~~^~~~~~~~~
      |        |        |
      |        |        int
      |        __gnu_cxx::__promote<double>::__type {aka double}
a.cc:10:13: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   10 |   D=pow(8,N)%(10^9+7);
      |     ~~~~~~~~^~~~~~~~~
      |        |        |
      |        |        int
      |        __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include <bits/stdc++.h>

#define ll long long
#define PB push_back
#define MP make_pair
#define PF push_front
#define all(v) begin(v), end(v)
#define sz(v) (int)(v).size()
#define ft first
#define sc second

#define FOR(i, a, b) for(int i = (a); i <= (b); i++)
#define REP(i, a, b, c) for(int i = (a); i <= (b); i += (c))
#define FORL(i, a, b) for(int i = (a); i < (b); i++)
#define ROF(i, a, b) for(int i = (a); i >= (b); i--)
#define ROFL(i, a, b) for(int i = (a); i > (b); i--)
#define LLFOR(i, a, b) for(ll i = (a); i <= (b); i++)
#define LLFORL(i, a, b) for(ll i = (a); i < (b); i++)
#define LLROF(i, a, b) for(ll i = (a); i >= (b); i--)
#define LLROFL(i, a, b) for(ll i = (a); i > (b); i--)


using namespace std;

typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pi;
typedef pair<ll, ll> pll;
typedef vector<pi> vpi;
typedef vector<pll> vpll;

const int mod = 1e9 + 7;
const double PI = acos(-1);

template<typename T>
ll exp(T x,ll n){
    if(n == 0) return 1;
    if(n == 1) return x;
    if(n%2 == 0) return exp((x*x)%mod,n/2);
    if(n%2 == 1) return (x*exp((x*x)%mod,n/2))%mod;
}

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    ll n;
    cin >> n;

    ll ans1 = ((exp((ll)10, n)%mod) - (exp((ll)9, n)%mod))%mod;
    ll ans2 = ((exp((ll)8, n)%mod) - (exp((ll)9, n)%mod))%mod;
    cout << ((ans1%mod) + (ans%mod))%mod;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:28: error: 'ans' was not declared in this scope; did you mean 'ans2'?
   52 |     cout << ((ans1%mod) + (ans%mod))%mod;
      |                            ^~~
      |                            ans2
a.cc: In function 'long long int exp(T, long long int) [with T = long long int]':
a.cc:41:1: warning: control reaches end of non-void function [-Wreturn-type]
   41 | }
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
typedef vector<ll> vll;

#define PI (2*acos(0.0))
#define eps 1e-9
#define pb push_back
#define endl "\n"
#define watch(x) cout << (#x) << " is " << (x) << endl;
#define show(v) for(int fi = 0; fi < v.size(); fi++) cout << v[fi] << " "; cout << endl;
#define showpair(v) for(int fi = 0; fi < v.size(); fi++) cout << v[fi].first << " " << v[fi].second << endl;
#define ff first
#define ss second
#define fu cout << "lol" << endl;
#define precision(n) cout << fixed << setprecision(n);
#define lb lower_bound
#define up upper_bound
#define vscan for(i = 0;i<n;i++){cin>>in; v.pb(in);}
#define all(a) a.begin(), a.end()
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define mem(a,val) memset(a,val,sizeof(a))
#define loop(i,n) for(i = 0; i < n; i++)
#define TC ull T; cin>>T; while(T--)
#define IN(x) {scanf("%d",&x);}
#define LL(x) {scanf("%lld",&x);}
#define CC(x) {scanf("%c",&x);}
#define pfl(x) printf("%d\n",x)
#define pfll(x) printf("%lld\n",x)
#define newl puts("")
#define space printf(" ")
#define MOD 1000000007
#define speed ios_base::sync_with_stdio(false); cin.tie(NULL);
#define pp pair< ll, pair<ll,ll> >

ll p(ll b, ll p){
    ll ret = 1;
    for(ll i = 0; i < p; i++) ret *= b, ret %= MOD;
    return ret;
}

int main()
{
    ll n; cin>>n;
    ll ans = p(10, n);
    ans -= p(9,n);
    ans = (ans + MOD) % MOD;
    ans -= p(9.n);
    ans = (ans+MOD)%MOD;
    ans += p(8,n);
    ans = (ans+MOD)%MOD;
    cout << (ans + MOD) % MOD << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:14: error: unable to find numeric literal operator 'operator""n'
   55 |     ans -= p(9.n);
      |              ^~~
Language: C++

#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{

  ll n;
  cin>>n;
  ll ans=1;
   ll mod=(ll)(1e9+7);
  ll res1,res2,res3;
  res1=res2=res3=1;
  
  for(int i=1;i<=n;i++)
  {
    res1=(res1*10)%mod;
    res2=(res2*9)%mod;
    res3=(res3*8)%mod;

    
  }
   ans=(res1%mod-2*res2%mod+res3%mod)%mod;
  cout<<ans<<endll;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:14: error: 'endll' was not declared in this scope
   23 |   cout<<ans<<endll;
      |              ^~~~~
Language: C++

#include <bits/stdc++.h>
#define lli long long int
#define li long int
#define ld long double
using namespace std;
const lli mod = 1e9 + 7;
 
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int n;
    cin >> n;
    
    cout << sub(add(power(10, n), power(8, n)), add(power(9, n), power(9, n)));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: 'power' was not declared in this scope
   16 |     cout << sub(add(power(10, n), power(8, n)), add(power(9, n), power(9, n)));
      |                     ^~~~~
a.cc:16:17: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
   16 |     cout << sub(add(power(10, n), power(8, n)), add(power(9, n), power(9, n)));
      |                 ^~~
      |                 std::filesystem::perm_options::add
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:219:7: note: 'std::filesystem::perm_options::add' declared here
  219 |       add       = 0x2,
      |       ^~~
a.cc:16:13: error: 'sub' was not declared in this scope; did you mean 'fsub'?
   16 |     cout << sub(add(power(10, n), power(8, n)), add(power(9, n), power(9, n)));
      |             ^~~
      |             fsub
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>

#define rep(i, n) for(int i=0; i<(n); ++i)
#define max  200001
#define mod 1000000007

//qsort(str, n, sizeof(int), up_comp);
int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;}
int down_comp(const void *a, const void *b){return *(int*)b - *(int*)a;}
int int_sort( const void * a , const void * b ) {return strcmp(( char * )a , ( char * )b );}
int count_digit(int a){int i=0;while(a!=0){a=a/10;i++;}return i;}
int euclid( int a, int b ){int temp;if(a<b){temp=a;a=b;b=temp;}if(b<1)return -1;if(a%b==0) return b;return euclid(b,a%b);}

int main(void){
    
    int n;
    long long int ans=0;
    long long int a=1, b=1, c=1;
    
    scanf("%d", &n);
    
    for (int i=1; i<=n; i++) {
        a=a*10%mod;
        b=b*9%mod;
        c=c*8%mod;
    }
    
    ans=(a-b-b+c)%mod;
    ans=(ans+mod)%mod
    printf("%lld", ans);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:35:5: error: expected ';' before 'printf'
   35 |     printf("%lld", ans);
      |     ^~~~~~
Language: C++

//#pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
//#define int long long
#define rep(i, beg, end) for (int i = (beg); i < (end); i++)
#define rrep(i, beg, end) for (int i = (beg); i >= (end); i--)
#define sp(i) setprecision(i) << fixed
#define fi first
#define se second
typedef long long ll;
typedef pair<int, int> P;
typedef unsigned long long ull;
const int INF = 0x3f3f3f3f;
const int mod = 1e9 + 7;
const int N = 30;
ull p_hash(ull x, ull y) { return (x + y) * (x + y + 1) / 2 + y; } //NxN->N
ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; }

 
int fast_power(int a, int b, int p)
{
    int res = 1;
    while (b)
    {
        if (b & 1)
            res = (ll)res * a % p;
 
        b >>= 1;
        a = (ll)a * a % p;
    }
 
    return res;
}
 
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;
    cin >> n;
    int f1 = fast_power(10, n, mod);
    int f2 = fast_power(9, n, mod);
    int f3 = fast_power(8, n, mod);
    cout << ((f1 - f2 * 2 + f3) % mod + mod）% mod << endl;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:41: error: 'mod\U0000ff09' was not declared in this scope
   44 |     cout << ((f1 - f2 * 2 + f3) % mod + mod）% mod << endl;
      |                                         ^~~~~
a.cc:44:59: error: expected ')' before ';' token
   44 |     cout << ((f1 - f2 * 2 + f3) % mod + mod）% mod << endl;
      |             ~                                             ^
      |                                                           )
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=int64_t;
int main(){
  ll n,a,b,c,p;
  cin>>n;
  p=1000000007;
  a=pow(10,n), b=2*pow(9,n), c=pow(8,n);
  cout<<(a-b+c+p*2)%mod<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'mod' was not declared in this scope; did you mean 'modf'?
    9 |   cout<<(a-b+c+p*2)%mod<<endl;
      |                     ^~~
      |                     modf
Language: C++

#include<iostream>
using namespace std;
int main() {
  int n;
  double a, b, c, mod
  cin >> n;
  mod=1e9+7;
  a=pow(10,n), b=2*pow(9,n), c=pow(8,n);
  cout<<(a-b+c)%mod<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> n;
      |   ^~~
a.cc:7:3: error: 'mod' was not declared in this scope
    7 |   mod=1e9+7;
      |   ^~~
a.cc:8:5: error: 'pow' was not declared in this scope
    8 |   a=pow(10,n), b=2*pow(9,n), c=pow(8,n);
      |     ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for (int i =0;i<(n);++i)
using ll = long long;
using P = pair<int, int>;

int main(){
    int N;
    cin >> N;
    ll ans1=1;
    ll ans2=1;
    ll ans3=1;
    rep (i,N){
        ans1*=10;
        ans2*=9;
        ans3*=8;
        
        if(ans3>(1000000000+7)){
            ans3%=(1000000000+7);
             ans2%=(1000000000+7);
              ans1%=(1000000000+7);
            



        }

    }  

    ll ans=  ans1+ans3-2*ans2;
    ans %=(1000000000+7);
    ans =(ans+1000000000+7)%(1000000000+7)

    cout <<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:43: error: expected ';' before 'cout'
   33 |     ans =(ans+1000000000+7)%(1000000000+7)
      |                                           ^
      |                                           ;
   34 | 
   35 |     cout <<ans;
      |     ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define IOS ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define MOD2 1000000007
#define MOD 1000000009
#define endl "\n"
#define pii pair <int, int>
#define pll pair <ll, ll>
#define vvi vector <vector<int>>
#define F first
#define S second


ll power(ll x, ll y, ll p)  
{  
    ll res = 1;
    x = x % p; 
    if (x == 0) return 0; 
    while (y > 0)  
    {  
         
        if (y & 1)  
            res = (res*x) % p;  
        y = y>>1;  
        x = (x*x) % p;  
    }  
    return res;  
}

int main()
{   
    IOS;
        #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
        #endif
    
    ll n;
    cin >> n;
    if(n == 1) {
        cout << 0;
        return 0;
    }
    ll a = power(10, n, MOD2);
    a -= ((power(9, n, MOD2) * 2ll) % MOD2);
    a += power(8, n, MOD2)  % MOD2;
    if (a < 0) a += mod;

    cout << a;

    
    
    
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:21: error: 'mod' was not declared in this scope; did you mean 'modf'?
   48 |     if (a < 0) a += mod;
      |                     ^~~
      |                     modf