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

/* 十 聖イシドールスよ、迷えるプログラマを導き給え！ 十 */
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <cmath>
#include <deque>
#include <queue>

#define rep(i, n) for(int i = 0; i < n; i++)
 
//const long long INF = 1LL << 60;
const int INF = 1e9;
const ll MOD = 1000000007;
using ll = long long;

int main()
{
	int N = 0;
	std::cin >> N;

	ll all = 1;
	ll not_0 = 1;
	ll nand_0_9 = 1;

	for(int i = 0; i < N; i++)
	{
		all *= 10;
		all %= MOD;

		not_0 *= 9;
		not_0 %= MOD;

		nand_0_9 *= 8;
		nand_0_9 %= MOD;
	}
	//std::cout << all << "|" << not_0 << "|" << nand_0_9 << std::endl;
	ll ans = all - (not_0 * 2 % MOD) + nand_0_9;
	ans %= MOD;

	std::cout << ans;

	return 0;
}

Compiler output:
a.cc:15:7: error: 'll' does not name a type
   15 | const ll MOD = 1000000007;
      |       ^~
a.cc: In function 'int main()':
a.cc:30:24: error: 'MOD' was not declared in this scope
   30 |                 all %= MOD;
      |                        ^~~
a.cc:39:37: error: 'MOD' was not declared in this scope
   39 |         ll ans = all - (not_0 * 2 % MOD) + nand_0_9;
      |                                     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long N,num;
  cin >> N;
  if(N>=3){
    num = N * (N-1) * 2 * powl(10,(N-2));
  }else if(N==2){
    num = 2;
  }else{
    num = 0;
  }
  num = num % powl(10,9)+7);
  cout << long(num) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'long int' and 'long double' to binary 'operator%'
   14 |   num = num % powl(10,9)+7);
      |         ~~~ ^ ~~~~~~~~~~
      |         |         |
      |         long int  long double
Language: C++

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

int pow(long long x, long long n) {
    long long ret = 1;
    while (n > 0) {
        if (n & 1) ret *= x;  
        x *= x;
        n >>= 1;  
    }
    return ret;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:38: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   17 |     cout << (pow(10, n) + pow(8, n)) % 1000000007 - 2*pow(9, n) % 1000000007 << endl;
      |             ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
      |                         |              |
      |                         |              int
      |                         __gnu_cxx::__promote<double>::__type {aka double}
a.cc:17:65: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   17 |     cout << (pow(10, n) + pow(8, n)) % 1000000007 - 2*pow(9, n) % 1000000007 << endl;
      |                                                     ~~~~~~~~~~~ ^ ~~~~~~~~~~
      |                                                      |            |
      |                                                      |            int
      |                                                      __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

long long pow(long long x, long long n) {
    long long ret = 1;
    while (n > 0) {
        if (n & 1) ret *= x;  
        x *= x;
        n >>= 1;  
    }
    return ret;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:38: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   17 |     cout << (pow(10, n) + pow(8, n)) % 1000000007 - 2*pow(9, n) % 1000000007 << endl;
      |             ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
      |                         |              |
      |                         |              int
      |                         __gnu_cxx::__promote<double>::__type {aka double}
a.cc:17:65: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   17 |     cout << (pow(10, n) + pow(8, n)) % 1000000007 - 2*pow(9, n) % 1000000007 << endl;
      |                                                     ~~~~~~~~~~~ ^ ~~~~~~~~~~
      |                                                      |            |
      |                                                      |            int
      |                                                      __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int64_t i,N,sum=1,sun=1,s=1;
  cin>>N;
  for(i=0;i<N;i++){
    sum*=10;
    sum%=1000000000+7;
  }
  for(i=0;i<N;i++){
    sun*=8;
    sun%=1000000000+7;
  } 
  for(i=0;i<N;i++){
    s*=9;
    s%=1000000000+7;
  }
    
  if(N==1){
    cout<<0;
  }else if(sum+sun-s-s=>0){
  cout<<sum+sun-s-s<<endl;
  }else if(sum+sun-s-s<0){
    cout<<sum+sun-s-s+1000000000+7<<endl;
  }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:24: error: expected primary-expression before '>' token
   21 |   }else if(sum+sun-s-s=>0){
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long N,num;
  cin >> N;
  if(N>=3){
    num = long(N * (N-1) * 2 * powl(long double(10),(N-2)));
  }else if(N==2){
    num = 2;
  }else{
    num = 0;
  }
  num = num % long(powl(long double(10),long double(9))+7);
  cout << num << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before 'long'
    8 |     num = long(N * (N-1) * 2 * powl(long double(10),(N-2)));
      |           ^~~~
a.cc:14:15: error: expected primary-expression before 'long'
   14 |   num = num % long(powl(long double(10),long double(9))+7);
      |               ^~~~
Language: C

#include<stdio.h>
#include<math.h>

int main(void){
    unsigned int N;
    unsigned long a=1,b=1,c=1,mod=((long)(pow(10.0,9.0))+7);
    scanf("%u",&N);
    for(int i=0;i<N;i++){
        a=a*2%mod+((a*2%mod)*2%mod)*2%mod;
        b=(((b*2%mod)*2%mod)*2%mod+b)%mod;
        c=((c*2%mod)*2%mod)*2%mod;
    }

    unsigned long ans=(a-b*2%mod+c)%mod;
    if(N==1)ans=0

    printf("%lu",ans);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:18: error: expected ';' before 'printf'
   15 |     if(N==1)ans=0
      |                  ^
      |                  ;
   16 | 
   17 |     printf("%lu",ans);
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{long long i,j,sum,x,y,m,n,t,q,b,l;
 cin>>n;
 x=n;m=10;y=1;
 while(x>0)
 {if(x%2==1)y=(y*m)%MAX;
  m=(m*m)%MAX;
 x=x/2;}
 x=n;m=8;t=1;
 while(x>0)
 {if(x%2==1)t=(t*m)%MAX;
  m=(m*m)%MAX;
 x=x/2;}
 y=y-t;
 if(y<0)y=y+max;
 cout<<y;
       return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'MAX' was not declared in this scope
    8 |  {if(x%2==1)y=(y*m)%MAX;
      |                     ^~~
a.cc:9:11: error: 'MAX' was not declared in this scope
    9 |   m=(m*m)%MAX;
      |           ^~~
a.cc:13:21: error: 'MAX' was not declared in this scope
   13 |  {if(x%2==1)t=(t*m)%MAX;
      |                     ^~~
a.cc:14:11: error: 'MAX' was not declared in this scope
   14 |   m=(m*m)%MAX;
      |           ^~~
a.cc:17:12: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator+'
   17 |  if(y<0)y=y+max;
      |           ~^~~~
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
#define M 1000000007;
using namespace std;

ll power(ll x, ll y, ll p)  
{  
    int res = 1;     // Initialize result  
  
    x = x % p; // Update x if it is more than or  
                // equal to p 
   
    if (x == 0) return 0; // In case x is divisible by p; 
  
    while (y > 0)  
    {  
        // If y is odd, multiply x with result  
        if (y & 1)  
            res = (res*x) % p;  
  
        // y must be even now  
        y = y>>1; // y = y/2  
        x = (x*x) % p;  
    }  
    return res;  
}  

void solve(){
    ll n;
    cin >> n;
    if(n == 1){
        cout << 0;
        return;
    }
    ll a1 = power(10,n,M);
    ll a2 = 2*power(9,n,M);
    ll b1 = power(8,n,M);
    ll ans = a1 +b1 - a2;
    ans %= M;
    cout << ans;

    

}


int main(){
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
    ll q;
    q=1;
    // cin>>q;
    while(q--) solve();


    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:3:21: error: expected ')' before ';' token
    3 | #define M 1000000007;
      |                     ^
a.cc:35:24: note: in expansion of macro 'M'
   35 |     ll a1 = power(10,n,M);
      |                        ^
a.cc:35:18: note: to match this '('
   35 |     ll a1 = power(10,n,M);
      |                  ^
a.cc:35:25: error: expected primary-expression before ')' token
   35 |     ll a1 = power(10,n,M);
      |                         ^
a.cc:3:21: error: expected ')' before ';' token
    3 | #define M 1000000007;
      |                     ^
a.cc:36:25: note: in expansion of macro 'M'
   36 |     ll a2 = 2*power(9,n,M);
      |                         ^
a.cc:36:20: note: to match this '('
   36 |     ll a2 = 2*power(9,n,M);
      |                    ^
a.cc:36:26: error: expected primary-expression before ')' token
   36 |     ll a2 = 2*power(9,n,M);
      |                          ^
a.cc:3:21: error: expected ')' before ';' token
    3 | #define M 1000000007;
      |                     ^
a.cc:37:23: note: in expansion of macro 'M'
   37 |     ll b1 = power(8,n,M);
      |                       ^
a.cc:37:18: note: to match this '('
   37 |     ll b1 = power(8,n,M);
      |                  ^
a.cc:37:24: error: expected primary-expression before ')' token
   37 |     ll b1 = power(8,n,M);
      |                        ^
Language: C++

#include <bits/stdc++.h>
#define f first
#define s second
#define fore(i,a,b) for(int i = (a), ThxMK = (b); i < ThxMK; ++i)
#define pb push_back
#define all(s) begin(s), end(s)
#define lb(c, x) distance((c).begin(), lower_bound(all(c), (x)))
#define ub(c, x) distance((c).begin(), upper_bound(all(c), (x)))
#define _ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define sz(s) int(s.size())
#define ENDL '\n'
#define vv(type, name, h, ...) vector<vector<type>> name(h, vector<type>(__VA_ARGS__))
#define vvv(type, name, h, w, ...) vector<vector<vector<type>>> name(h, vector<vector<type>>(w, vector<type>(__VA_ARGS__)))
using namespace std;
typedef long double ld;
typedef long long lli;
typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<lli> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef vector<ii> vii;

#define deb(x) cout << #x": " << (x) << endl;

const int N = 105;
const lli INF = 1e18;
const lli MOD = 1e9+7;


// ---- コーディングはここから！ ('-')7

void solve(){
	int n; cin>>n;
	vv(int,dp,n,5,-1);
	auto f=[&](auto f, int u, int mask)->int{
		if(u==n)return mask==3;
		if(dp[u][mask]!=-1)return dp[u][mask];
		if(mask==3)return dp[u][mask]=(10*f(f,u+1,mask))%MOD;
		lli res = (8*f(f,u+1,mask))%MOD;
		if(mask%2==0 and )res = (res+f(f,u+1,mask+1))%MOD;
		if(mask<2)res = (res+f(f,u+1,mask+2))%MOD;
		return dp[u][mask]=res;
	};
	cout<<f(f,0,0)<<ENDL;
}

int main(){_
//	int t; cin>>t; while(t--)

	solve();
}


Compiler output:
a.cc: In lambda function:
a.cc:41:34: error: expected primary-expression before ')' token
   41 |                 if(mask%2==0 and )res = (res+f(f,u+1,mask+1))%MOD;
      |                                  ^
Language: C++

/**-------------------------
|--------From A.R.A--------|
-------------------------**/

#include <bits/stdc++.h>

#define ll            long long int
#define pb            push_back
#define ull           unsigned long long int
#define endl          "\n"
#define sz(c)         (c).size()
#define sall(c)       sort((c).begin(),(c).end())
#define rsall(c)      sort((c).rbegin(),(c).rend())
#define rev(c)        reverse((c).begin(),(c).end())
#define FOR(i,n)      for(ll i=0;i<n;i++)
#define max3(a,b,c)   max(max(a,b),c)
#define min3(a,b,c)   min(min(a,b),c)
#define input(a,i,n)  for(ll i=0;i<n;i++){      cin>>a[i];}
#define output(a,i,n) for(ll i=0;i<n;i++){cout<<a[i]<<" ";}
#define mod 1000000007
using namespace std;
int64_t R=1;
void solution(){
    ll n;
    cin>>n;
    cout<<(pow(2,n)-2)%1000000007<<endl;
}
int main()
{
    FOR(i,R){solution();}
    return 0;
}


Compiler output:
a.cc: In function 'void solution()':
a.cc:26:23: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   26 |     cout<<(pow(2,n)-2)%1000000007<<endl;
      |           ~~~~~~~~~~~~^~~~~~~~~~~
      |                    |   |
      |                    |   int
      |                    __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long n,a=10,b=8,c;
  cin >> n;
  for(long long i=0;i<n-1;i++){
    a *= 10;
    b *= 8;
  }
  a = a % 1000000007;
  b = b % 1000000007;
  c = a - b - 1
  cout << c <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before 'cout'
   12 |   c = a - b - 1
      |                ^
      |                ;
   13 |   cout << c <<endl;
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long n,a=10,b=8,c;
  cin >> n;
  for(long long i=0;i<n-1;i++){
    a *= 10;
    b *= 8;
  }
  a = a % 1000000007
  b = b % 1000000007
  c = (a - b - 1) % 1000000007;
  cout << c <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before 'b'
   10 |   a = a % 1000000007
      |                     ^
      |                     ;
   11 |   b = b % 1000000007
      |   ~
Language: C++

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

int main(){
  int n;
  long long nine = 1, ten = 1;
  cin >> n;
  
  long long x = 0;
  
  for(int i=0; n-1>i; i++){
    nine = 1;
    ten = 1;
    for(int j=0; i>j; j++){
      nine *= 9;
    }
    for(int j=0; k-i>j; j++){
      ten *= 9;
    }
    x += (i+1)*(nine + ten);
  }
  x *= 2;
  cout << x%100000007;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: 'k' was not declared in this scope
   17 |     for(int j=0; k-i>j; j++){
      |                  ^
Language: C++

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

int main(){
  int n
  long long nine = 1, ten = 1;
  cin >> n;
  
  long long x = 0;
  
  for(int i=0; n-1>i; i++){
    nine = 1;
    ten = 1;
    for(int j=0; i>j; j++){
      nine *= 9;
    }
    for(int j=0; k-i>j; j++){
      ten *= 9;
    }
    x += (i+1)*(nine + ten);
  }
  x *= 2;
  cout << x%100000007;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'long'
    6 |   long long nine = 1, ten = 1;
      |   ^~~~
a.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |   cin >> n;
      |          ^
      |          yn
a.cc:12:5: error: 'nine' was not declared in this scope; did you mean 'nice'?
   12 |     nine = 1;
      |     ^~~~
      |     nice
a.cc:13:5: error: 'ten' was not declared in this scope; did you mean 'tan'?
   13 |     ten = 1;
      |     ^~~
      |     tan
a.cc:17:18: error: 'k' was not declared in this scope
   17 |     for(int j=0; k-i>j; j++){
      |                  ^
Language: C

//C - Ubiquity
//Hiia
#include <stdio.h>
#include <stdlib.h>//rannsuu, zettaichi(absolute)
#include <time.h>
//srand((unsigned int) time(0));
#include <math.h>//koudona keisann
#include <string.h>//hairetsu
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
typedef long long ll;
//#define N 998244353
#define M 1000000007
#define pi 3.1415926535897932384626433832

int gcd(int m,int n){if((0==m)||(0==n))return 0;while(m!=n)if(m>n)m=m-n;else n=n-m;return m;}
int lcm(int m,int n){if((0==m)||(0==n))return 0;return(m*n/gcd(m, n));}
int fact(int x){if(x==1) return(x);else return(x*fact(x-1));}//Kaijou x!
int ruijou(int base,int exponent){int i,answer=1;i=exponent;while(i!=0){answer=answer*base;--i;}return answer;}//ruijou base^exponent

long long int llgcd(long long int m,long long int n){if((0==m)||(0==n))return 0;while(m!=n)if(m>n)m=m-n;else n=n-m;return m;}
long long int lllcm(long long int m,long long int n){if((0==m)||(0==n))return 0;return(m*n/llgcd(m, n));}
long long int llfact(long long int x){if(x==1) return(x);else return(x*llfact(x-1));}//Kaijou
int llruijou(long long int base,long long int exponent){long long int i,answer=1;i=exponent;while(i!=0){answer=(answer*base+M)%M;--i;}return answer;}//ruijou base^exponent

int main()
{
  ll n;
  scanf("%lld", &n);

  printf("%lld\n", ((llruijou(10,n) - 2*llruijou(9,n) + llruijou(8,n) +M)%M );

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:31:78: error: expected ')' before ';' token
   31 |   printf("%lld\n", ((llruijou(10,n) - 2*llruijou(9,n) + llruijou(8,n) +M)%M );
      |         ~                                                                    ^
      |                                                                              )
main.c:33:12: error: expected ';' before '}' token
   33 |   return 0;
      |            ^
      |            ;
   34 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 int fact( int n) 
{ 
    int res = 1, i; 
    for (i = 2; i <= n; i++) 
        res *= i; 
    return res; 
} 

void(int n)
{
  int res =0;
  	 res =fact(n)/fact(n-2);
  	cout<<res<<endl;
}
 int main(){
int n; cin>>n;
   npr(n);
 }
   


Compiler output:
a.cc:11:6: error: expected unqualified-id before 'int'
   11 | void(int n)
      |      ^~~
a.cc:11:6: error: expected ')' before 'int'
   11 | void(int n)
      |     ~^~~
      |      )
a.cc: In function 'int main()':
a.cc:19:4: error: 'npr' was not declared in this scope
   19 |    npr(n);
      |    ^~~
Language: C++

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

long long compME(long b, long e, long m)
{
    long long ans = 1;

    while (e > 0) {
       if ((e & 1) == 1) ans = (ans * b) % m;
       e >>= 1;
       b = (b * b) % m;
    }

    return ans;
}

int main(){
  int n;
  cin >> n;
  if (n < 2){
    cout << 0;
    return 0;
  }
  //if (n == 2){
   // cout << 2;
  //  return 0;
  //}
  long mod = 10e9+7;
  long long me;
  //me = compME((long)10, (long)n-2, mod)*((n*(n-1)/2)%mod)*2;
  me = compME((long)10, (long)n, mod)+mod*2 - compME((long)9, (long)n, mod)*2 + compME((long)8, (long)n, mod);
  cout << me%mod;

Compiler output:
a.cc: In function 'int main()':
a.cc:32:18: error: expected '}' at end of input
   32 |   cout << me%mod;
      |                  ^
a.cc:17:11: note: to match this '{'
   17 | int main(){
      |           ^
Language: C++

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

int main(){
  int n
  ll nine, ten;
  cin >> n;
  
  ll x = 0;
  
  for(int i=0; n-1>i; i++){
    nine = 0;
    ten = 0;
    for(int j=0; i>j; j++){
      nine *= 9;
    }
    for(int j=0; k-i>j; j++){
      ten *= 9;
    }
    x += (i+1)*(nine + ten);
  }
  x *= 2;
  cout << x%100000007;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'll'
    7 |   ll nine, ten;
      |   ^~
a.cc:8:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |   cin >> n;
      |          ^
      |          yn
a.cc:13:5: error: 'nine' was not declared in this scope; did you mean 'nice'?
   13 |     nine = 0;
      |     ^~~~
      |     nice
a.cc:14:5: error: 'ten' was not declared in this scope; did you mean 'tan'?
   14 |     ten = 0;
      |     ^~~
      |     tan
a.cc:18:18: error: 'k' was not declared in this scope
   18 |     for(int j=0; k-i>j; j++){
      |                  ^
Language: C++

#include<bits/sdtc++.h>
using namespace std;
 int fact( int n) 
{ 
    int res = 1, i; 
    for (i = 2; i <= n; i++) 
        res *= i; 
    return res; 
} 

void(int n)
{
  int res =0;
  	 res =fact(n)/fact(n-2);
  	cout<<res<<endl;
}
 int main(){
int n; cin>>n;
   npr(n);
 }
   

Compiler output:
a.cc:1:9: fatal error: bits/sdtc++.h: No such file or directory
    1 | #include<bits/sdtc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  unsigned long long n,a=10,b=8;
  cin >> n;
  for(long long i=0;i<n-1;i++){
    a *= 10;
    b *= 8;
  }
  c = (a - b - 1)/1000000007;
  cout << c <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'c' was not declared in this scope
   10 |   c = (a - b - 1)/1000000007;
      |   ^
Language: C++

#include<iostream>
#include <cmath>

using namespace std;
int main() {
	long long int N;
	cin >> N;
	N = (N * 2 * pow(10.0, N - 2.0)) % (pow(10.0, 9.0)+7);
	cout << N << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |         N = (N * 2 * pow(10.0, N - 2.0)) % (pow(10.0, 9.0)+7);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
      |                    |                                      |
      |                    double                                 double
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

int main(){
  ll N;
  cin >> N;
  ll A = (10e+8)+7;
  ll B= 1; ll C=1;ll D=1;
  for(int i = 0; i < N; i++){
    B = (B*10)%A;
    C = (C*8)%A;
    D = (D*9)%A;
  }
  
  ll x = (B+C)%A;
  ll y = (2*D)%A;
  ll z = x-y

  cout <<z%A << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: expected ',' or ';' before 'cout'
   22 |   cout <<z%A << endl;
      |   ^~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int N,sum;
  int a,b,c;
  a=9;
  b=64;
  c=10;
  sum=0;
  scanf("%d",&N);
  for(int k=2;k<=N;k++)
  {
    
    sum=sum+%(9*c-17*a+b);
      b=8*b;
    a=a*9;
    c=c*10;
    sum=sum%(1000000007);
  }
  printf("%d",sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:13: error: expected expression before '%' token
   15 |     sum=sum+%(9*c-17*a+b);
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n;
  cin>>n;
  int i=1;
  long long ans,nine=1,eight=1,ten=1;
  
  
  while(i<=n){
    ten*=10;
    nine*=9;
    eight*=8;
    
    ten=ten%1000000007;
    nine=nine%1000000007;
    eight=eight%1000000007;
    
    i++;
  }
  
  ten=(ten%1000000007-2*nine%1000000007)%1000000007
  ans=ten+eight%1000000007;
  ans=ans%1000000007
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:52: error: expected ';' before 'ans'
   23 |   ten=(ten%1000000007-2*nine%1000000007)%1000000007
      |                                                    ^
      |                                                    ;
   24 |   ans=ten+eight%1000000007;
      |   ~~~                                               
a.cc:25:21: error: expected ';' before 'cout'
   25 |   ans=ans%1000000007
      |                     ^
      |                     ;
   26 |   cout<<ans<<endl;
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
#define ll unsigned long long int
using namespace std;
int main()
{
	ll n,i,a=1,b=1,c=1,ans=0,mod=1e9+7;
	cin>>n;
	for(i=1;i<=n;i++)
	{
	  a=((a*10)+mod)%mod;
	  b=((b*9)+mod)%mod;
	  c=((c*8)+mod)%mod; 	
	}
	ans=(a+c-b-b+5*mod)%mod;
	ans=max(ans,0);
	cout<<ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: no matching function for call to 'max(long long unsigned int&, int)'
   15 |         ans=max(ans,0);
      |             ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:15:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long unsigned int' and 'int')
   15 |         ans=max(ans,0);
      |             ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:15:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long unsigned int'
   15 |         ans=max(ans,0);
      |             ~~~^~~~~~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
 
int main () {
  long long N;
  long long MOD;
  
  MOD = (long long)powl(10, 9) + 7;
  
  cin >> N;
  
  cout << ((long long)powl(10, N) % MOD - ((long long)powl(9, N) % MOD + (long long)powl(9, N) % MOD - (long long)powl(8, N) % MOD)) MOD << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:133: error: expected ';' before 'MOD'
   13 |   cout << ((long long)powl(10, N) % MOD - ((long long)powl(9, N) % MOD + (long long)powl(9, N) % MOD - (long long)powl(8, N) % MOD)) MOD << endl;
      |                                                                                                                                     ^~~~
      |                                                                                                                                     ;
Language: C++

/*

// Sample code to perform I/O:

#include <iostream>

using namespace std;

int main() {
	int num;
	cin >> num;										// Reading input from STDIN
	cout << "Input number is " << num << endl;		// Writing output to STDOUT
	return 0;
}

*/

// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail

// Write your code here
#include <bits/stdc++.h>

using namespace std;
long long power(long long x, 
                         long long y, long long p) 
{ 
    unsigned long long res = 1; // Initialize result 
  
    x = x % p; // Update x if it is more than or 
    // equal to p 
  
    while (y > 0) { 
        // If y is odd, multiply x with result 
        if (y & 1) 
            res = (res * x) % p; 
  
        // y must be even now 
        y = y >> 1; // y = y/2 
        x = (x * x) % p; 
    } 
    return res; 
}

int main()
{
	long long n;
	cin>>n;
	if(n == 1)
		cout<<0<<endl;
	else if(n == 2)
		cout<<2<<endl;
	else
	{
		long long mod=1000000007;
		long long ans=power(10,n,mod)-(2*power(9,n,mod))%mod+power(8,n,mod))%mod;
		if(ans>0)
			cout<<ans<<endl;
		else
			cout<<(ans+mod)%mod<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:84: error: expected ',' or ';' before ')' token
   55 |                 long long ans=power(10,n,mod)-(2*power(9,n,mod))%mod+power(8,n,mod))%mod;
      |                                                                                    ^
Language: C

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

typedef long long int ll;
typedef long double ld;
const ll m=1e9+7;
#define pb push_back

#define all(n) n.begin(),n.end()
long long binpow(ll a, ll b) {
    a %= m;
    ll res = 1;
    while (b > 0) {
        if (b & 1)
            res = res * a % m;
        a = a * a % m;
        b >>= 1;
    }
    return res;
}
ll mod(ll a)
{
	if(a<m)return a;
	else return a%m;
}
void solve()
{
				
	
ll n;
	cin>>n;
	if(n==1)
	{
		cout<<0;
		return;
	}
	if(n==2)
	{
		cout<<2;
		return;
	}

		ll p=(mod(binpow(10,n)));
		ll q=mod(binpow(9,n)-binpow(8,n)+m);
		ll r=mod(binpow(8,n));
		
		ll x=mod(p-2*q-r+m);
	
		cout<<x;
	
}

int main()
{
	
solve();
		
	
	
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>
#include <bits/stdc++.h>
#include<vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <math.h>
#include <iomanip>
using namespace std;
using ll = long long;

int main(){
  long long int n;
  long long int sum;
  cin >> n;
  sum = pow(10,n)-2*pow(9,n)+pow(8,n);
  cout << sum % (pow(10,9)+7) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   18 |   cout << sum % (pow(10,9)+7) << endl;
      |           ~~~ ^ ~~~~~~~~~~~~~
      |           |               |
      |           long long int   __gnu_cxx::__promote<double>::__type {aka double}
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int N,sum;
  int a,b,c;
  a=9;
  b=64;
  c=10
  sum=0;
  scanf("%d",&N);
  for(int k=2;k<=N;k++)
  {
    
    sum+=9*c-17*a+b;
      b=8*b;
    a=a*9;
    c=c*10;
    sum=sum%(1000000007);
  }
  printf("%d",sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:7: error: expected ';' before 'sum'
    9 |   c=10
      |       ^
      |       ;
   10 |   sum=0;
      |   ~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int N,sum;
  int a,b*c;
  a=9;
  b=64;
  c=10
  sum=0;
  scanf("%d",&N);
  for(int k=2;k<=N;k++)
  {
    
    sum+=9*c-17*a+b;
      b=8*b;
    a=a*9;
    c=c*10;
    sum=sum%(1000000007);
  }
  printf("%d",sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    6 |   int a,b*c;
      |          ^
main.c:8:3: error: 'b' undeclared (first use in this function)
    8 |   b=64;
      |   ^
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:3: error: 'c' undeclared (first use in this function)
    9 |   c=10
      |   ^
main.c:9:7: error: expected ';' before 'sum'
    9 |   c=10
      |       ^
      |       ;
   10 |   sum=0;
      |   ~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int N,sum;
  int a,b;
  a=9;
  b=64;
  sum=0;
  scanf("%d",&N);
  for(int k=2;k<=N;k++)
  {
    
    sum+=9e(k-1)-17*a+b;
      b=8*b;
    a=a*9;
    sum=sum%(1000000007);
  }
  printf("%d",sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:10: error: exponent has no digits
   14 |     sum+=9e(k-1)-17*a+b;
      |          ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long n,a,b=8;
  cin >> n;
  for(int i=0;i<n;i++){
    n** ;
    b *= 8;
  }
  a = (n - b)/1000000007;
  cout << a <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before ';' token
    7 |     n** ;
      |         ^
Language: C++

    #include <iostream>
    using namespace std;
     
    #define MOD 1000000007
    int n;
     
    long long fast_pow(int base, int pow) {
      	if (pow==0) return 1;
    	if (pow%2) return (fast_pow(base, pow-1)*base)%MOD;
      	else {
        	long long a = fast_pow(base, pow/2);
          	return (a*a)%MOD;
        }
    }
     
    signed main() {
    	cin.tie(0); cout.sync_with_stdio(0):
    	cin >> n;
      	cout << (2*n*(n-1)%MOD)*fast_pow(10, n-2)%MOD << '\n';
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:17:44: error: expected ';' before ':' token
   17 |         cin.tie(0); cout.sync_with_stdio(0):
      |                                            ^
      |                                            ;
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int N,sum;
  int a,b;
  a=9;
  b=64;
  sum=0;
  scanf("%d",&N);
  for(i=2;i<=N;i++)
  {
    
    sum+=9e(k-1)-17*a+b;
      b=8*b;
    a=a*9;
    sum=sum%(10e9+7);
  }
  printf("%d",sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:7: error: 'i' undeclared (first use in this function)
   11 |   for(i=2;i<=N;i++)
      |       ^
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:10: error: exponent has no digits
   14 |     sum+=9e(k-1)-17*a+b;
      |          ^~
main.c:14:13: error: 'k' undeclared (first use in this function)
   14 |     sum+=9e(k-1)-17*a+b;
      |             ^
main.c:17:12: error: invalid operands to binary % (have 'int' and 'double')
   17 |     sum=sum%(10e9+7);
      |            ^~~~~~~~~
      |                  |
      |                  double
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long n,a,b=8;
  cin >> n;
  for(int i=0;i<n;i++){
    n**;
    b *= 8;
  }
  a = (n - b)/1000000007;
  cout << a <<endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before ';' token
    7 |     n**;
      |        ^
a.cc:11:20: error: expected '}' at end of input
   11 |   cout << a <<endl;
      |                    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

#define MOD 1000000007
int n;

long long fast_pow(int base, int pow) {
  	if (pow==0) return 1;
	if (pow%2) return (fast_pow(base, pow-1)*base)%MOD;
  	else {
    	long long a = fast_pow(base, pow/2);
      	return (a*a)%MOD;
    }
}

signed main() {
	cin.tie(0); cout.sync_with_stdio(0):
	cin >> n;
  	cout << (2*n*(n-1)%MOD)*fast_pow(10, n-2)%MOD << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:44: error: expected ';' before ':' token
   17 |         cin.tie(0); cout.sync_with_stdio(0):
      |                                            ^
      |                                            ;
Language: C++

#include<iostream>
#include<string>
#include <bits/stdc++.h>
#include<vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <math.h>
#include <iomanip>
using namespace std;
using ll = long long;

int main(){
  ll n;
  ll sum;
  cin >> n;
  sum = pow(10,n)-2*pow(9,n)+pow(8,n);
  cout << sum%(pow(10,9)+7) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: invalid operands of types 'll' {aka 'long long int'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   18 |   cout << sum%(pow(10,9)+7) << endl;
      |           ~~~^~~~~~~~~~~~~~
      |           |             |
      |           |             __gnu_cxx::__promote<double>::__type {aka double}
      |           ll {aka long long int}
Language: C++

#include <bits/stdc++.h>

using namespace std;
 
 


//c++ templte for help............................................................................................................................................

typedef long long ll;

template<typename... T>
void print1(T... t){
	((cout<<t<<" "),...);
}

template<typename... T>
void print2(T... t){
		vector<vector<ll>> ans={t...};
		for(ll i=0;i<(ll)ans.size();i++){
			if(i!=0) cout<<"\t\t";
			else cout<<"\t";
			for(ll j=0;j<(ll)ans[i].size();j++){
				cout<<ans[i][j]<<" ";
			}
			if(i!=(ll)ans.size()-1)
			cout<<endl;
		}
}	
#define deb(...) {cout<<" [ "#__VA_ARGS__<<" : "; print1(__VA_ARGS__); cout<<"]"<<endl; }
#define vdeb(...) {cout<<" [ "#__VA_ARGS__<<" : "; print2(__VA_ARGS__); cout<<"]"<<endl;}

// to return everything in string
#define ret(...) {stringstream returnn;returnn<<__VA_ARGS__;return returnn.str();}

stringstream retvec;
template<typename... T>
void returnvector(T... t){
		vector<vector<ll>> ans={t...};
		for(ll i=0;i<(ll)ans.size();i++){
			for(ll j=0;j<(ll)ans[i].size();j++){
				retvec<<ans[i][j];
				if(j!=(ll)ans[i].size()-1)
					retvec<<" ";
			}
			if(i!=(ll)ans.size()-1)
				retvec<<endl;
		}
}
#define vret(...) {returnvector(__VA_ARGS__);return retvec.str();}
	


//for loop
#define fo(i,n) for(int i=0;i<(ll)n;i++)
#define Fo(i,k,n) for(int i=k;i<n;i++)
 
 
//to print vector element 
template<typename T>
void printV(T vec){
	fo(i,vec.size()) cout<<vec[i]<<" "<<flush;
	cout<<endl;
	}
	
 
#define M ll(1e9+7)
const ll INF=ll(1e9+5);
 
//iterate map
template<typename T>
void itR(T map){
	 for(auto itr=map.begin();itr!=map.end();itr++){
				deb(itr->first,itr->second);
			}
	cout<<endl;
}

//c++ template for help...........................................................................................................................................


string solve(){
	ll n;
	cin>>n;
	
	ret(power(10,n)-2*power(9,n)+power(8,n));
}

int main() {
	cout<<setprecision(10);
	ios::sync_with_stdio(0);
	cin.tie(0);

	//ll testCase;
	//cin>>testCase;
	//for(ll tt=0;tt<testCase;tt++){
		string ans1=solve();
		if(ans1!="")
			cout<<ans1<<endl;
	//}
	return 0;
}


Compiler output:
a.cc: In function 'std::string solve()':
a.cc:86:13: error: 'power' was not declared in this scope
   86 |         ret(power(10,n)-2*power(9,n)+power(8,n));
      |             ^~~~~
a.cc:34:49: note: in definition of macro 'ret'
   34 | #define ret(...) {stringstream returnn;returnn<<__VA_ARGS__;return returnn.str();}
      |                                                 ^~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include <bits/stdc++.h>
#include<vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <math.h>
#include <iomanip>
using namespace std;
using ll = long long;

int main(){
  int n;
  ll sum;
  cin >> n;
  sum = pow(10,n)-2*pow(9,n)+pow(8,n);
  cout << sum%(pow(10,9)+7) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: invalid operands of types 'll' {aka 'long long int'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   18 |   cout << sum%(pow(10,9)+7) << endl;
      |           ~~~^~~~~~~~~~~~~~
      |           |             |
      |           |             __gnu_cxx::__promote<double>::__type {aka double}
      |           ll {aka long long int}
Language: C++

#include<iostream>
#include<string>
#include <bits/stdc++.h>
#include<vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <math.h>
#include <iomanip>
using namespace std;
using ll = long long;

int main(){
  int n;
  ll sum;
  cin >> n;
  sum = pow(10,n)-2*pow(p,n)+pow(8,n);
  cout << sum%(pow(10,9)+7) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: 'p' was not declared in this scope
   17 |   sum = pow(10,n)-2*pow(p,n)+pow(8,n);
      |                         ^
a.cc:18:14: error: invalid operands of types 'll' {aka 'long long int'} and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   18 |   cout << sum%(pow(10,9)+7) << endl;
      |           ~~~^~~~~~~~~~~~~~
      |           |             |
      |           |             __gnu_cxx::__promote<double>::__type {aka double}
      |           ll {aka long long int}
Language: C++

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

int main(){
 int n,a;
 cin >> n;

 vector<ll> b(n),c(n);
 b[0]=18;
 b[1]=164;
 c[0]=18;//nが1のときと2のとき場合分け
 
 if(n==1){
   cout << 0 << endl;
   return 0;
 }
 if(n==2){
   cout << 2 << endl;
   return 0;
 }
 
 for(int i=0; i<n-2; i++){
   ll judge1=18*b[i+1]-80*b[i];
   b[i+2]=judge%(1000000000+7);
 }
  for(int i=0; i<n-1; i++){
    ll judge2=9*c[i];
    c[i+1]=judge2%(1000000000+7);
  }
  
  ll con=b[n-1]-c[n-1];
  if(con<0) con += 1000000000+7;
  
  cout << con << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:11: error: 'judge' was not declared in this scope; did you mean 'judge1'?
   27 |    b[i+2]=judge%(1000000000+7);
      |           ^~~~~
      |           judge1
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(i=0;i<n;i++)
#define foreach(c,itr) for(__typeof(c)::iterator itr=c.begin();itr!=c.end();itr++)
typedef long long ll;
typedef long double ld;
int i,j;
const ll mod=1000000000+7;

int main(){
	ios::sync_with_stdio(false);
    cin.tie();

    int n;
    cin>>n;
    cout<<abs(pow(10,n)%mod-pow(8,n)*2%mod)%mod;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const ll' {aka 'const long long int'} to binary 'operator%'
   16 |     cout<<abs(pow(10,n)%mod-pow(8,n)*2%mod)%mod;
      |               ~~~~~~~~~^~~~
      |                  |      |
      |                  |      const ll {aka const long long int}
      |                  __gnu_cxx::__promote<double>::__type {aka double}
a.cc:16:39: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const ll' {aka 'const long long int'} to binary 'operator%'
   16 |     cout<<abs(pow(10,n)%mod-pow(8,n)*2%mod)%mod;
      |                             ~~~~~~~~~~^~~~
      |                                     |  |
      |                                     |  const ll {aka const long long int}
      |                                     __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
 
int main () {
  long long N;
  int MOD;
  
  MOD = (int)powl(10, 9) + 7;
  
  cin >> N;
  
  cout << (long long)powl(10, N) % MOD - ((long long)powl(9, N) % MOD) + (long long)powl(9, N) % MOD - (long long)powl(8, N) % MOD) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:131: error: expected ';' before ')' token
   13 |   cout << (long long)powl(10, N) % MOD - ((long long)powl(9, N) % MOD) + (long long)powl(9, N) % MOD - (long long)powl(8, N) % MOD) << endl;
      |                                                                                                                                   ^
      |                                                                                                                                   ;
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <cmath>

using namespace std;

int main()
{
  int n;
  cin >> n;
  const int d = 10e9 + 7;
  int s = 0;
  int a = 1, b = 1, c = 1;
  for (int i = 0; i < n; i++)
  {
    a *= 10;
    a %= d;
    b *= 10;
    b %= d;
    c *= 8;
    c %= d;
  }
  int x = a-2*b+c;
  x = (x + d) % d;
  cout << d << encl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: warning: overflow in conversion from 'double' to 'int' changes value from '1.0000000007e+10' to '2147483647' [-Woverflow]
   14 |   const int d = 10e9 + 7;
      |                 ~~~~~^~~
a.cc:28:16: error: 'encl' was not declared in this scope
   28 |   cout << d << encl;
      |                ^~~~
Language: C++

#define _GLIBCXX_DEBUG //エラーを出すためのおまじない
#include <bits/stdc++.h>
#include <algorithm>
//#include <cstdlib>  // abs() for integer
#include <cmath>    // abs() for float, and fabs()
#include <math.h>
using namespace std;
#define coYES cout << "YES" << endl
#define coNO cout << "NO" << endl
#define coYes cout << "Yes" << endl
#define coNo cout << "No" << endl
#define coyes cout << "yes" << endl
#define cono cout << "no" << endl
//#define cocount cout << count << endl;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
#define Cinint(n) int n;\
cin >> n;
#define Cinvecint(a, n) vector<int> a(n);\
for (int i = 0; i < (int)(n); i++) {\
  int num;\
  cin >> num;\
  a.at(i) = num;\
}
#define Cinstring(s) string s;\
cin >>s;

  

int main() {
  long long wari = 1000000007;
  long long n;
  cin >> n;
  if (n == 1) {
    cout << 0 << endl;
  }
  else if (n == 2) {
    cout << 2 << endl;
  }
  else { 
    long long now;
    long long n10, n9, n8;
    n10 = 1000;
    n9 = (-2)*9*9*9;
    n8 = 512;
    now = n10 + n9 + n8;
    for (long long i = 4; i <n+1; i++) {
      n10 = (n10 * 10)%wari;
      n9 = (n9 * 9)%wari;
      n8 = (n8 * 8)%wari;
      now = n10 + n9 + n8;
      now = now%wari;
    }
    if (now < 0) {
       cout << now + wari << endl;
    else {
      cout << now << endl;
    }
  }
  //cout << pow(10, 5) - 2*pow(9, 5) + pow(8, 5) << endl;
}
      
      
      
      
    
  
 



Compiler output:
a.cc: In function 'int main()':
a.cc:56:5: error: expected '}' before 'else'
   56 |     else {
      |     ^~~~
a.cc:54:18: note: to match this '{'
   54 |     if (now < 0) {
      |                  ^
Language: C++

#include <bits/stdc++.h>
#define S second
#define F first
#define FASTIO ios_base::sync_with_stdio(false);cin.tie(false);cout.tie(0)
#define pb push_back
#define mp make_pair
using namespace std ;
typedef long long ll ;
typedef pair<int,int> pii ;
const ll mod=1000*1000*1000+7 ;


ll pow(ll a , ll b){
    if(b==0){
        return 1;
    }
    ll x = pow(a,b/2) ;
    x = (x*x)%mod ;
    if(b%2){
        x = (x*a)%mod ;
    }
    return x ;
}

int main(){
    FASTIO;
  	ll n ;
    cin >> n ;
    ll aub= (pow(10ll , n)-pow(8ll , n)+mod)%mod ;
    ll a= (pow(10ll , n)-pow(9ll , n)+mod)%mod ;
    cout << (a+a-aub)%mod ;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:56: error: no matching function for call to 'std::basic_istream<char>::tie(bool)'
    4 | #define FASTIO ios_base::sync_with_stdio(false);cin.tie(false);cout.tie(0)
      |                                                 ~~~~~~~^~~~~~~
a.cc:26:5: note: in expansion of macro 'FASTIO'
   26 |     FASTIO;
      |     ^~~~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:299:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie() const [with _CharT = char; _Traits = std::char_traits<char>]'
  299 |       tie() const
      |       ^~~
/usr/include/c++/14/bits/basic_ios.h:299:7: note:   candidate expects 0 arguments, 1 provided
/usr/include/c++/14/bits/basic_ios.h:311:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie(std::basic_ostream<_CharT, _Traits>*) [with _CharT = char; _Traits = std::char_traits<char>]'
  311 |       tie(basic_ostream<_CharT, _Traits>* __tiestr)
      |       ^~~
/usr/include/c++/14/bits/basic_ios.h:311:43: note:   no known conversion for argument 1 from 'bool' to 'std::basic_ostream<char>*'
  311 |       tie(basic_ostream<_CharT, _Traits>* __tiestr)
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~