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

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

int main()
{
int N;
int A[i];         
int k=0;
int main() {
    cin >> N;
    for (int i = 0; i < N; ++i) cin >> A[i];
    for (int i = 0; i < N; ++i){
      if(A[i]=0||A[i]=9)++k;
      }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 | int A[i];
      |       ^
a.cc:9:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    9 | int main() {
      |         ^~
a.cc:9:9: note: remove parentheses to default-initialize a variable
    9 | int main() {
      |         ^~
      |         --
a.cc:9:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:9:12: error: a function-definition is not allowed here before '{' token
    9 | int main() {
      |            ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

//デバッグ用オプション：-fsanitize=undefined,address

//コンパイラ最適化
#pragma GCC optimize("Ofast")

//インクルードなど
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;

// vector set 等
#include <map>
#include <set>
#include <vector>

//マクロ
// forループ
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
// FORAは範囲for文(使いにくかったら消す)
#define REP(i, n) for (ll i = 0; i < ll(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto& i : I)
// xにはvectorなどのコンテナ
#define ALL(x) x.begin(), x.end()
#define SIZE(x) ll(x.size())
//定数
#define INF 1000000000000  // 10^12:∞
#define MOD 1000000007     // 10^9+7:合同式の法
#define MAXR 100000        // 10^5:配列の最大のrange
//略記
#define PB push_back  //挿入
#define MP make_pair  // pairのコンストラクタ
#define F first       // pairの一つ目の要素
#define S second      // pairの二つ目の要素

// 負の数にも対応した % 演算
ll mod(ll x) {
  ll res = x % MOD;
  if (res < 0) x += MOD;
  return res;
}

ll mpow(ll x, ll n) {
  ll res = 1;
  while (n > 0) {
    if (n & 1) res = res * x % MOD;
    x = x * x % MOD;
    n >>= 1;
  }
  return res;

// a^{-1} mod を計算する
ll minv(ll a) { return mpow(a, MOD - 2); }

signed main() {
  //入力の高速化用のコード
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  ll n, ans = 0;

  cin >> n;
  ans = mod(mpow(10, n) - mpow(9, n) - mpow(9, n) + mpow(8, n));

  ans = (ans + MOD) % MOD;
  cout << ans << endl;

  return 0;
}

Compiler output:
a.cc: In function 'll mpow(ll, ll)':
a.cc:58:15: error: a function-definition is not allowed here before '{' token
   58 | ll minv(ll a) { return mpow(a, MOD - 2); }
      |               ^
a.cc:60:12: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   60 | signed main() {
      |            ^~
a.cc:60:12: note: remove parentheses to default-initialize a variable
   60 | signed main() {
      |            ^~
      |            --
a.cc:60:12: note: or replace parentheses with braces to value-initialize a variable
a.cc:60:15: error: a function-definition is not allowed here before '{' token
   60 | signed main() {
      |               ^
a.cc:74:2: error: expected '}' at end of input
   74 | }
      |  ^
a.cc:48:21: note: to match this '{'
   48 | ll mpow(ll x, ll n) {
      |                     ^
Language: C++

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

ll kaijo(ll n){
    if(n == 1){
        return 1;
    }
    return n * kaijo(n - 1);
}

int main()
{
    ll N;
    ll ans = 0;
    int MOD = pow(10,9) + 7;
    cin >> N;
    if(N == 1) ans = 0;
    else if(N == 2) ans = 2;
    else{
        ans = ((kaijo(N) * pow(10,N-2)) % MOD);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:41: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   25 |         ans = ((kaijo(N) * pow(10,N-2)) % MOD);
      |                ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~
      |                          |                |
      |                          |                int
      |                          __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

#define mod 1000000007
using ll=long long;

ll modpow(ll n,ll m=mod-2){
  ll r=1;
  while(m){
    r=r*((m%2)?n:1)%mod,n=n*n%mod,m>>=1;
  }
  return r;
}

int main(){
	
	int n;
	cin >> n;s%mod;

	//これだとオーバーフローする
	ll ans = modpow(10,n)+modpow(8,n)-modpow(9,n)-modpow(9,n);
  
	ans=(ans+mod)%mod;
	cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: 's' was not declared in this scope
   18 |         cin >> n;s%mod;
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
 
int main() {
    ios_base::sync_with_stdio(false), cin.tie(nullptr);
    int n;
    cin >> n;
    int ans = pow(10, n) % mod;
    ans -= 2 * (pow(9, n) % mod);
    ans += pow(8, n) % mod; 
    ans = ans % mod;
    cout << ans << "\n";
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
 
int main() {
    ios_base::sync_with_stdio(false), cin.tie(nullptr);
    int n;
    cin >> n;
    int64_t ans = pow(10, n) % mod;
    ans -= 2 * (pow(9, n) % mod);
    ans += pow(8, n) % mod; 
    ans = ans % mod;
    cout << ans << "\n";
    return 0;
}


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

#include<iostream>
#include<bits/stdc++.h>
typedef long long ll;
typedef unsigned int ui;
#define infin ll(pow(10,9)+7)
using namespace std;
int main()
{
    ll n,ans1=1,ans2=1,ans3=1;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        ans1=(ans1*10)%infin;
        ans2=(ans2*9)%infin;
        ans3=(ans3*8)%infin;
    }
    ans=(ans1-2*ans2+ans3+infin)%infin;
    cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'ans' was not declared in this scope; did you mean 'ans3'?
   17 |     ans=(ans1-2*ans2+ans3+infin)%infin;
      |     ^~~
      |     ans3
Language: C++

#include<iostream>
#include<bits/stdc++.h>
typedef long long ll;
typedef unsigned int ui;
#define infin ll(pow(10,9)+7)
using namespace std;
int main()
{
    ll n,ans=1;
    cin>>n;
    for(int i=0;i<n-2;i++)
    {
        ans=(ans*10)%infin;
    }
    ans=((n*(n-1)%infin)*ans)%infin;
    cout<<ans<<endl;
}
#include<iostream>
#include<bits/stdc++.h>
typedef long long ll;
typedef unsigned int ui;
#define infin ll(pow(10,9)+7)
using namespace std;
int main()
{
    ll n,ans=1;
    cin>>n;
    for(int i=0;i<n-2;i++)
    {
        ans=(ans*8)%infin;
    }
    ans=((n*(n-1)%infin)*ans)%infin;
    cout<<ans<<endl;
}


Compiler output:
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main()
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main()
      |     ^~~~
Language: C++

#pragma GCC optimize("Ofast")
#pragma GCC optimize("-ffloat-store")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization ("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#define NO cout<<"NO"<<endl
#define YES cout<<"YES"<<endl
#define endl "\n"
#define f(i,a,b) for(int i=a;i<b;i++)
#define debug(val) printf("check%d\n",val)
#define all(v) v.begin(),v.end()
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define ll long long
#define mod 1000000007
#define inf  1e18
#define ps(x,y)   fixed<<setprecision(y)<<x
#define clr(val) memset(val,0,sizeof(val))
#define what_is(x) cerr << #x << " is " << x << endl;
#define inp(a,n) for(int i=0;i<n;i++) cin>>a[i];
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
int powm(int x,int n,int m){
    int ret=1;
    R(i,n){
        ret*=x;
        //ret%=m;
        mode(ret,m);
    }
    return ret;
}
const int N = 2e3 + 10;
int main() 
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    cout<<"\nTime Elapsed: " << 1.0*clock() / CLOCKS_PER_SEC << " sec\n";
    #endif
    FIO;
    int n;
    cin >> n;
    cout << mod(powm(10,n,MOD) - 2*(powm(9,n,MOD)-powm(8,n,MOD)) - powm(8,n,MOD),MOD) << endl;
return 0;   
}

Compiler output:
a.cc: In function 'int powm(int, int, int)':
a.cc:27:7: error: 'i' was not declared in this scope
   27 |     R(i,n){
      |       ^
a.cc:27:5: error: 'R' was not declared in this scope
   27 |     R(i,n){
      |     ^
a.cc: In function 'int main()':
a.cc:45:27: error: 'MOD' was not declared in this scope
   45 |     cout << mod(powm(10,n,MOD) - 2*(powm(9,n,MOD)-powm(8,n,MOD)) - powm(8,n,MOD),MOD) << endl;
      |                           ^~~
a.cc:45:16: error: expression cannot be used as a function
   45 |     cout << mod(powm(10,n,MOD) - 2*(powm(9,n,MOD)-powm(8,n,MOD)) - powm(8,n,MOD),MOD) << endl;
      |                ^
Language: C++

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

long long pow_pro(int N);

int main(){
    int N;
    cin >> N;
    long long c1 = 1;
    long long c2 = 2;
    long long c3 = 1;
    long long c;
    for(int i = 0; i < N; i++)c1 = c1 * 10 % MOD;
    for(int i = 0; i < N; i++)c2 = c2 * 9 % MOD;
    for(int i = 0; i < N; i++)c3 = c3 * 8 % MOD;    
    c = c1 - (c2 - c3);
    c %= MOD;
    c = (c + MOD)%MOD

    cout << c << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: expected ';' before 'cout'
   21 |     cout << c << endl;
      |     ^~~~
Language: Java

import java.util.*;
import java.io.*;
 
public class Main{
  Scanner sc = new Scanner(System.in);	
 
  public void run(){
    int n = sc.nextInt();
    long mod = 1_000_000_000 + 7;
    
    long dp[] = new long[4];
    int no09 = 0;
    int have0 = 1;
    int have9 = 2;
    int have09 = 3;
    dp[no09] = 1;
    
    for(int i = 0;i < n;i++){
      long next[] = new long[4];
      next[no09] = (dp[no09] * 8)%mod; 
      next[have0] = (dp[have0] * 8 + dp[no09])%mod;  
      next[have9] = (dp[have0] * 8 + dp[no09])%mod;  
      next[have09] = (dp[have0] + dp[have9])%mod;
      dp = next;
    }
    System.out.println(dp[have09])
  }
  public static void main(String[] args){
    Main m = new Main();
    m.run();
  }
}

Compiler output:
Main.java:26: error: ';' expected
    System.out.println(dp[have09])
                                  ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
ll powmod(ll x,ll y){
ll res=1;
  for(ll i=0;i<y;i++){
     res=res*x%mod;
  }
  return res;
}

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


Compiler output:
a.cc: In function 'll powmod(ll, ll)':
a.cc:7:16: error: 'mod' was not declared in this scope; did you mean 'modf'?
    7 |      res=res*x%mod;
      |                ^~~
      |                modf
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
ll powmod(ll x,ll y){
ll res=1;
  for(ll i=0;i<y;i++){
     res=res*x%mod;
  }
  return res;
}

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

Compiler output:
a.cc: In function 'll powmod(ll, ll)':
a.cc:7:16: error: 'mod' was not declared in this scope; did you mean 'modf'?
    7 |      res=res*x%mod;
      |                ^~~
      |                modf
a.cc: In function 'int main()':
a.cc:15:51: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'int' to binary 'operator%'
   15 | cout<<(pow(10,n)-pow(8,n-2)-pow(9,n-2)+pow(9,n-2))%1000000007<<endl;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                       |            |
      |                                       |            int
      |                                       __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include<bits.stdc++.h>
using namespace std;
const int mod=1e9+7;

int powi(int a, int n)
{
  int ans=1;
  while(n)
  {
    if(n%2)ans*=a;
    a*=a;
    n=n/2;
  }
  return ans;
}

int main()
{
  int n;
  cin>>n;
  
  cout<<powi(10,n)-powi(9,n)-powi(9,n)+powi(8,n)<<endl;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
 
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define endl "\n"
const int N=1e9+7;
#define int long long
#define double long double
mod_expo_iterative(int x, int y, int mod) {
  int ans = 1;
  while(y>0) {
    if(y&1) {
      ans = (ans*x)%mod;
    }
    x = (x*x)%mod;
    y/=2;
  }
  return ans;
}
int32_t main()
{
  #ifndef ONLINE_JUDGE
      freopen("input.txt", "r", stdin);
      freopen("output.txt", "w", stdout);
  #endif
 IOS;
int n;
cin>>n;
int ans=mod_expo_iterative(10,n,N)-2*mod_expo_iterative(9,n,N)+mod_expo_iterative(8,n,N);
ans%=N;
cout<<ans;
 	



  
 




  
return 0;
}


Compiler output:
a.cc:9:1: error: ISO C++ forbids declaration of 'mod_expo_iterative' with no type [-fpermissive]
    9 | mod_expo_iterative(int x, int y, int mod) {
      | ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

long long int mypow(long long int x, long long int y) {
    long long int res = 1;
    long long int mod = pow(10, 9) + 7;
    for (long long int i = 0; i < y; i++) {
        res = res * x % mod;
    }
    return res;
}

int main() {
    long long int N;
    cin >> N;
    
    long long int mod = pow(10, 9) + 7;
    long long int ans = mypow(10, N) - mypow(9, N) - mypow(9, N) + mypow(8, N);
    ans %= mod;
    ans = (ans + mod) % mod;
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'long long int mypow(long long int, long long int)':
a.cc:6:25: error: 'pow' was not declared in this scope
    6 |     long long int mod = pow(10, 9) + 7;
      |                         ^~~
a.cc: In function 'int main()':
a.cc:17:25: error: 'pow' was not declared in this scope
   17 |     long long int mod = pow(10, 9) + 7;
      |                         ^~~
Language: C++

#include <iostream>
using namespace std;

long long int mypow(long long int x, long long int y) {
    long long int res = 1;
    long long int mod = pow(10, 9) + 7;
    for (long long int i = 0; i < y; i++) {
        res = res * x % mod;
    }
    return res;
}

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


Compiler output:
a.cc: In function 'long long int mypow(long long int, long long int)':
a.cc:6:25: error: 'pow' was not declared in this scope
    6 |     long long int mod = pow(10, 9) + 7;
      |                         ^~~
a.cc: In function 'int main()':
a.cc:17:25: error: 'pow' was not declared in this scope
   17 |     long long int mod = pow(10, 9) + 7;
      |                         ^~~
Language: C++

#include <iostream>
using namespace std;

long long int mypow(long long int x, long long int y) {
    long long int res = 1;
    long long int mod = pow(10, 9) + 7;
    for (long long int i = 0; i < y; i++) {
        res = res * x % mod;
    }
    return res;
}

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


Compiler output:
a.cc: In function 'long long int mypow(long long int, long long int)':
a.cc:6:25: error: 'pow' was not declared in this scope
    6 |     long long int mod = pow(10, 9) + 7;
      |                         ^~~
a.cc: In function 'int main()':
a.cc:17:25: error: 'pow' was not declared in this scope
   17 |     long long int mod = pow(10, 9) + 7;
      |                         ^~~
Language: C++



#include <bits/stdc++.h>

#define loop(s, e, i) for (int i = s; i < e; ++i)
#define print(s) cout << s << endl;
#define DIV 1000000007
#define ll long long
using namespace std;

/*
浮動小数点の入力
cout << fixed << setprecision(9) << endl;
*/

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

}


#include <bits/stdc++.h>

#define loop(s, e, i) for (int i = s; i < e; ++i)
#define print(s) cout << s << endl;
#define DIV 1000000007
#define ll long long
using namespace std;

/*
浮動小数点の入力
cout << fixed << setprecision(9) << endl;
*/

ll powmod(ll x, ll n) {
  ll result = 1;
  loop(0, n, i) {
    result *= result;
    result %= 1000000007;
  }
  return result;
}

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

  ll result = powmod(10, N) - powmod(9, N) - powmod(9, N) + powmod(8);
  result %= 1000000007;
  print(result);
}


Compiler output:
a.cc:45:5: error: redefinition of 'int main()'
   45 | int main() {
      |     ^~~~
a.cc:16:5: note: 'int main()' previously defined here
   16 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:49:26: error: 'N' was not declared in this scope
   49 |   ll result = powmod(10, N) - powmod(9, N) - powmod(9, N) + powmod(8);
      |                          ^
a.cc:49:67: error: too few arguments to function 'long long int powmod(long long int, long long int)'
   49 |   ll result = powmod(10, N) - powmod(9, N) - powmod(9, N) + powmod(8);
      |                                                             ~~~~~~^~~
a.cc:36:4: note: declared here
   36 | ll powmod(ll x, ll n) {
      |    ^~~~~~
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
 
 
long long powmod(long long a, long long b) { /* pow(a, b) % m */
  long long x = 1;
  while (b > 0) {
    if (b & 1) { /* fast way of checking if b is odd */
      x = (x * a) % m;
    }
    a = (a * a) % m; /* compute the next power of 2 */
    b >>= 1; /* this is equivalent to b = floor(b / 2) */
  }
  return x;
}
 
 
int main()
{
 
    long long int n,a,b,c,i;
    cin>>n;
    if(n==1|| n==0)  cout<<"0"<<endl;
    if(n==2)  cout<<"2"<<endl;
   if(n!=1 && n!=2 && n!=0) {
 
        a= powmod(10, n);
        b= powmod(9, n);
        c=powmod(8, n);
 
      cout<< (a+c-2*b)% 1000000007;
        }
    return 0;
}


Compiler output:
a.cc: In function 'long long int powmod(long long int, long long int)':
a.cc:10:21: error: 'm' was not declared in this scope
   10 |       x = (x * a) % m;
      |                     ^
a.cc:12:19: error: 'm' was not declared in this scope
   12 |     a = (a * a) % m; /* compute the next power of 2 */
      |                   ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
 
 
long long  powmod(long long a, long long b) {
    long long mod=1000000007;
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
 
 
int main()
{
 
    long long int n,a,b,c,i;
    cin>>n;
    if(n==1|| n==0)  cout<<"0"<<endl;
    if(n==2)  cout<<"2"<<endl;
   if(n!=1 && n!=2 && n!=0) {
 
        a= powmod(10, n);
        b= powmod(9, n);
        c=powmod(8, n);
 
      cout<<((a) mod 1000000007)+(c) mod 1000000007)-(2*b) mod 1000000007) mod 1000000007;
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: expected ')' before 'mod'
   32 |       cout<<((a) mod 1000000007)+(c) mod 1000000007)-(2*b) mod 1000000007) mod 1000000007;
      |             ~   ^~~~
      |                 )
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
 
 
long long  powmod(long long a, long long b) {
    long long mod=1000000007;
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
 
 
int main()
{
 
    long long int n,a,b,c,i;
    cin>>n;
    if(n==1|| n==0)  cout<<"0"<<endl;
    if(n==2)  cout<<"2"<<endl;
   if(n!=1 && n!=2 && n!=0) {
 
        a= powmod(10, n);
        b= powmod(9, n);
        c=powmod(8, n);
 
      cout<<((a) mod 1000000007)+(c) mod 1000000007)-(2*b) mod 1000000007)mod 1000000007;
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: expected ')' before 'mod'
   32 |       cout<<((a) mod 1000000007)+(c) mod 1000000007)-(2*b) mod 1000000007)mod 1000000007;
      |             ~   ^~~~
      |                 )
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
 
 
long long  powmod(long long a, long long b) {
    long long mod=1000000007;
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
 
 
int main()
{
 
    long long int n,a,b,c,i;
    cin>>n;
    if(n==1|| n==0)  cout<<"0"<<endl;
    if(n==2)  cout<<"2"<<endl;
   if(n!=1 && n!=2 && n!=0) {
 
        a= powmod(10, n);
        b= powmod(9, n);
        c=powmod(8, n);
 
      cout<<((a mod1000000007)+(c%1000000007)-((2*b)%1000000007))%1000000007;
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:16: error: expected ')' before 'mod1000000007'
   32 |       cout<<((a mod1000000007)+(c%1000000007)-((2*b)%1000000007))%1000000007;
      |              ~ ^~~~~~~~~~~~~~
      |                )
a.cc:32:77: error: expected ')' before ';' token
   32 |       cout<<((a mod1000000007)+(c%1000000007)-((2*b)%1000000007))%1000000007;
      |             ~                                                               ^
      |                                                                             )
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, s, e) for (int i = s; i < e; i++)
#define endl '\n'
const ll MOD = 1000000007;
ll lpowmod(ll a, ll N)
{
    return ll(pow(a, N)) % MOD;
}

int main()
{
    ll N;
    cin >> N;
    ll res = lpowmod(10, N) - lpowmod(9, N) * 2 + lpowmod(8, N);
    cout << res << endl;
}

Compiler output:
a.cc: In function 'long long int lpowmod(long long int, long long int)':
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define ll long long
      |            ^~~~
a.cc:9:12: note: in expansion of macro 'll'
    9 |     return ll(pow(a, N)) % MOD;
      |            ^~
a.cc:9:11: error: expected ';' before 'long'
    9 |     return ll(pow(a, N)) % MOD;
      |           ^
      |           ;
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define ll long long
      |            ^~~~
a.cc:9:12: note: in expansion of macro 'll'
    9 |     return ll(pow(a, N)) % MOD;
      |            ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i,s,e) for(int i=s;i<e;i++)
#define endl '\n'
const lli MOD= 1000000007;
lli lpowmod(lli a ,lli N){
    return lli(pow(a,N))%MOD;
}



int main(){
    lli N;cin>>N;
    lli res=lpowmod(10,N)-lpowmod(9,N)*2+lpowmod(8,N);
    cout<<res<<endl;
}

Compiler output:
a.cc: In function 'long long int lpowmod(long long int, long long int)':
a.cc:3:13: error: expected primary-expression before 'long'
    3 | #define lli long long int
      |             ^~~~
a.cc:8:12: note: in expansion of macro 'lli'
    8 |     return lli(pow(a,N))%MOD;
      |            ^~~
a.cc:8:11: error: expected ';' before 'long'
    8 |     return lli(pow(a,N))%MOD;
      |           ^
      |           ;
a.cc:3:13: error: expected primary-expression before 'long'
    3 | #define lli long long int
      |             ^~~~
a.cc:8:12: note: in expansion of macro 'lli'
    8 |     return lli(pow(a,N))%MOD;
      |            ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i,s,e) for(int i=s;i<e;i++)
#define endl '\n'
const lli MOD= 1000000007;
lli lpowmod(lli a ,lli N){
    return pow(a,N)%MOD;
}



int main(){
    lli N;cin>>N;
    lli res=lpowmod(10,N)-lpowmod(9,N)*2+lpowmod(8,N);
    cout<<res<<endl;
}

Compiler output:
a.cc: In function 'long long int lpowmod(long long int, long long int)':
a.cc:8:20: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const long long int' to binary 'operator%'
    8 |     return pow(a,N)%MOD;
      |            ~~~~~~~~^~~~
      |               |     |
      |               |     const long long int
      |               __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main() {
  ll n; cin >> n;
  ll ten, nine, eight = 1;
  rep(i,n){
    ten *= 10;
    ten %= mod;
    nine *= 9;
    nine %= mod;
    eight *= 8;
    eight %= mod;
  }

  ll ans;
  ans = ten - nine*2 + eight;
  ans += mod*2;
  ans %= mod;
  cout << ans << endl;
}


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

#include<iostream>
using namespace std;
long long m=1000000000+7;
int main(){
    long long n;
    cin>>n;
    long long a=1,b=1,c=1;
    for(int i=0;i<n;i++){
        a*=10;
        b*=8;
        c*=9;
        if(a>m) a%=m;
        if(b>m) b%=m;
        if(c>m) c%=m;
    }
    long long ans=a-2*c+b;
    if(ans>=m) ans%=m;
    cout<<ans<<endl;
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: expected '}' at end of input
   19 |     return 0;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int x;
  	cin >> x;
  	long long a = (pow(10,x) - (2*(pow(9,x))) + pow(8,x);
	cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:61: error: expected ')' before ';' token
    7 |         long long a = (pow(10,x) - (2*(pow(9,x))) + pow(8,x);
      |                       ~                                     ^
      |                                                             )
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int x;
  	cin >> x;
  	long long a = pow(10,x) - 2*(pow(9,x) + pow(8,x);
	cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:57: error: expected ')' before ';' token
    7 |         long long a = pow(10,x) - 2*(pow(9,x) + pow(8,x);
      |                                     ~                   ^
      |                                                         )
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int x;
  	cin >> x;
  	long long a = pow(10,x) - 2*(pow(9,x) + pow(8,x)
	cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:57: error: expected ')' before 'cout'
    7 |         long long a = pow(10,x) - 2*(pow(9,x) + pow(8,x)
      |                                     ~                   ^
      |                                                         )
    8 |         cout << a << endl;
      |         ~~~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int x;
  	cin >> x;
	cout << (1L * (pow(10,x) - 2*(pow(9,x) + pow(8,x))) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:61: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |         cout << (1L * (pow(10,x) - 2*(pow(9,x) + pow(8,x))) << endl;
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:7:68: error: expected ')' before ';' token
    7 |         cout << (1L * (pow(10,x) - 2*(pow(9,x) + pow(8,x))) << endl;
      |                 ~                                                  ^
      |                                                                    )
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int x;
  	cin >> x;
	cout << 1L * (pow(10,x) - 2*(pow(9,x) + pow(8,x)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:59: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |         cout << 1L * (pow(10,x) - 2*(pow(9,x) + pow(8,x)) << endl;
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:7:66: error: expected ')' before ';' token
    7 |         cout << 1L * (pow(10,x) - 2*(pow(9,x) + pow(8,x)) << endl;
      |                      ~                                           ^
      |                                                                  )
Language: C

#include <stdio.h>

#define mod 1000000007

int main(){
    long long int n,ans,u = 1,x = 1,ab = 1;
    scanf("%lld", &n);
    for(int i = 0; i < n; i++){
        u = (u * 10) % mod;
        x = (x * 9) % mod;
        ab = (ab * 8) % mod;
    }
    ans = (u - ( 2 * x ) % mod - ab) % mod;
    pritnf("%lld\n", ans);
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |     pritnf("%lld\n", ans);
      |     ^~~~~~
      |     printf
Language: C

#include <stdio.h>

#define mod 1000000007

int main(){
    long long int n,ans,u = 1,x = 1,ab = 1;
    scanf("%d", &n);
    for(int i = 0; i < n; i++){
        u = (u * 10) % mod;
        x = (x * 9) % mod;
        ab = (ab * 8) % mod;
    }
    ans = (u - ( 2 * x ) % mod - ab) % mod;
    pritnf("%d\n", ans);
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |     pritnf("%d\n", ans);
      |     ^~~~~~
      |     printf
Language: C++

#include<iostream>
#include<cmath>
#include<numeric>
#include<functional>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<iomanip>
#include<queue>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n;i++)
#define ll long long
#define INF 2147483647
using namespace std;
using Graph=vector<vector<int>>;

ll RepSq(ll a,ll n,ll mod){
  if(n==0){
    return 1;
  }else if(n%2!=0){
    return (a*RepSq(a,n-1,mod))%mod;
  }else{
    ll x=RepSq(a,n/2,mod);
    return (x*x)%mod;
  }
}

int main(){
  ll mod=1000000007;
  cout<<RepSq(9,n,mod)+RepSq(7,n,mod)+2*(mod-RepSq(8,n,mod));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:17: error: 'n' was not declared in this scope; did you mean 'yn'?
   31 |   cout<<RepSq(9,n,mod)+RepSq(7,n,mod)+2*(mod-RepSq(8,n,mod));
      |                 ^
      |                 yn
Language: C++

#include <bits/stdc++.h>

using namespace std;
long long mod=1000000007
long long fastexpo(long long a,long long n,int p) {
    if(n==0)
    return 1LL%p;
    long long u=fastexpo(a,n/2,p);
    u=(u*u)%p;
    if(n%2==1)
    u=(u*a)%p;
    return u;
}

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


Compiler output:
a.cc:5:1: error: expected ',' or ';' before 'long'
    5 | long long fastexpo(long long a,long long n,int p) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:23:20: error: 'fastexpo' was not declared in this scope
   23 |     long long ans1=fastexpo(9,n,mod);
      |                    ^~~~~~~~
Language: C++

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


long long  powmod(long long a, long long b) {
    long long mod=1000000007;
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}


int main()
{

    long long int n,a,b,c,i;
    cin>>n;
    if(n==1|| n==0)  cout<<"0"<<endl;
    if(n==2)  cout<<"2"<<endl;
   if(n!=1 && n!=2 n!=0) {

        a= powmod(10, n);
        b= powmod(9, n);
        c=powmod(8, n);

      cout<<((a%1000000007)+(c%1000000007)-((2*b)%1000000007))%1000000007;
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:19: error: expected ')' before 'n'
   26 |    if(n!=1 && n!=2 n!=0) {
      |      ~            ^~
      |                   )
Language: C++

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


long long  powmod(long long a, long long b) {
    long long mod=1000000007;
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}


int main()
{

    long long int n,a,b,c,i;
    cin>>n;
    if(n==1|| n==0)  cout<<"0"<<endl;
    if(n==2)  cout<<"2"<<endl;
   if(n!=1 && n!=2 n!=0) {

        a= powmod(10, n);
        b= powmod(9, n);
        c=powmod(8, n);

      cout<<((a%1000000007)+(c%1000000007)-((2*b)%1000000007)%1000000007;
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:19: error: expected ')' before 'n'
   26 |    if(n!=1 && n!=2 n!=0) {
      |      ~            ^~
      |                   )
a.cc:32:73: error: expected ')' before ';' token
   32 |       cout<<((a%1000000007)+(c%1000000007)-((2*b)%1000000007)%1000000007;
      |             ~                                                           ^
      |                                                                         )
Language: C++

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


long long  powmod(long long a, long long b) {
    long long mod=1000000007;
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}


int main()
{

    long long int n,a,b,c,i;
    cin>>n;
    if(n==1|| n==0)  cout<<"0"<<endl;
    if(n==2)  cout<<"2"<<endl;
   if(n!=1 && n!=2 n!=0) {

        a= powmod(10, n);
        b= powmod(9, n);
        c=powmod(8, n);

      cout<<(a+c-2*b)%1000000007;
        }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:19: error: expected ')' before 'n'
   26 |    if(n!=1 && n!=2 n!=0) {
      |      ~            ^~
      |                   )
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
using ull=unsigned long long;
const int mod=1e9+7;
const ll N = 4e5+5;


vector<ll>ans,veca,vecb;
vector<int>adj[N];
vector<double>vecd;
vector<pair<int,double>>dp[N];
vector<bool>vis;


void init(int n){
    ans.clear();veca.clear();aka.clear();vis.clear();
    vecb.clear(),vecb.resize(n);veca.resize(n);vis.resize(n);
    for (int i = 0; i <n; i++) {
        vis[i]=0;
    }
    for (int i = 0; i<=n; i++) {
        adj[i].clear();
    }
    for (int i = 0; i <=n; i++) {
        dp[i].clear();
    }
    
}
int power(int a,int n){
    int res=1;
    for (int i = 1; i <= n; i++) {
        int p=(1LL*a*i)%mod;
        res=((res%mod)*(p%mod))%mod;
    }
    return res%mod;
}

void solve(){
    int n;
    cin>>n;
    cout<<power(10,n)-(2LL*(power(9,n)))+power(8,n)<<"\n";
    
}

int main(){
   
   
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int T=1;
    //cin>>T;
    while(T--){
        solve();
    }
        
        
    return 0;
}

Compiler output:
a.cc: In function 'void init(int)':
a.cc:18:30: error: 'aka' was not declared in this scope
   18 |     ans.clear();veca.clear();aka.clear();vis.clear();
      |                              ^~~
Language: C++

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

ll exp(ll a, ll b)
{
    if (b == 0)
        return 1;
    if (b == 1)
        return a;
    ll R = exp(a, b / 2);
    if (b & 1)
    {
        ll p = ((R % mod) * (R % mod)) % mod;
        p = ((a % mod) * p) % mod;
        return p;
    }

    else
        return ((R % mod) * (R % mod)) % mod;
}

int main()
{
    ll int n;
    cin >> n;
    int ans = 0;
    if(n==1||n==0) {cout<< 0; return 0;}
    ans += exp(10, n) % mod;
    ans -= exp(9, n) % mod;
    ans -= exp(9, n) % mod;
    ans += exp(8, n) % mod;
    cout << (ans+mod)%mod;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: two or more data types in declaration of 'n'
   26 |     ll int n;
      |     ^~
a.cc:27:12: error: 'n' was not declared in this scope; did you mean 'yn'?
   27 |     cin >> n;
      |            ^
      |            yn
Language: C++

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

ll exp(ll a, ll b)
{
    if (b == 0)
        return 1;
    if (b == 1)
        return a;
    ll R = exp(a, b / 2);
    if (b & 1)
    {
        ll p = ((R % mod) * (R % mod)) % mod;
        p = ((a % mod) * p) % mod;
        return p;
    }

    else
        return ((R % mod) * (R % mod)) % mod;
}

int main()
{
    int n;
    cin >> n;
    int ans = 0;
    if(n==1||n==0) {cout<< 0; return;}
    ans += exp(10, n) % mod;
    ans -= exp(9, n) % mod;
    ans -= exp(9, n) % mod;
    ans += exp(8, n) % mod;
    cout << (ans+mod)%mod;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:31: error: return-statement with no value, in function returning 'int' [-fpermissive]
   29 |     if(n==1||n==0) {cout<< 0; return;}
      |                               ^~~~~~
Language: C++

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

ll mod = pow(10, 9) + 7;

ll powmod(ll x, ll y) {
    ll res = 1;
    for (ll i = 0; i < y; ++i) {
        res = res * x % mod;
    }
    return res;
}
int main()
{
    ll n; cin >> n;
    ll ans = powmod(10,n);
    ans -= powmod(9, n)) % mod;
    ans -= powmod(9, n)) % mod;
    ans = (ans + powmod(8, n)) % mod;

    ans = (ans + mod) % mod;
    
    cout << ans << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected ';' before ')' token
   20 |     ans -= powmod(9, n)) % mod;
      |                        ^
      |                        ;
a.cc:21:24: error: expected ';' before ')' token
   21 |     ans -= powmod(9, n)) % mod;
      |                        ^
      |                        ;
Language: C++

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

int n;
unsigned long long int a[10];
a[0] = 1;


int main(){
  cin >> n;
  for(int i=1; i<11; i++){
  a[n] = a[n-1] * n;
  }  
cout << a[10] - 2 * a[9] + a[8] << endl;
}

Compiler output:
a.cc:6:1: error: 'a' does not name a type
    6 | a[0] = 1;
      | ^
Language: C++

using namespace std;
typedef long long ll;
int mod=1e9+7;
int q_pos(ll x,int n){
	ll res=1;
	while(n){
		if(n&1) res=(res*x)%mod;//奇数，乘一个底数 
		n>>=1;
   		x=(x*x)%mod; 
  }
  return res;
}
int main()
{ll n; 
 cin>>n;
 cout<<((q_pos(10,n)-(2*q_pos(9,n))+q_pos(8,n))%mod+mod)%mod;
 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: 'cin' was not declared in this scope
   15 |  cin>>n;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:16:2: error: 'cout' was not declared in this scope
   16 |  cout<<((q_pos(10,n)-(2*q_pos(9,n))+q_pos(8,n))%mod+mod)%mod;
      |  ^~~~
a.cc:16:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int mod=1e9+7;
int q_pos(int x,int n)
{ int res=1;
  while(n)
  { if(n&1) res=(res*x)%mod;//奇数，乘一个底数 
   n>>=1;
   x=(x*x)%mod; 
  }
  return res;
}
int main()
{int n; 
 cin>>n;
 cout<<(（q_pos(10,n)-(2*q_pos(9,n))+q_pos(8,n)）%mod+mod)%mod;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: '\U0000ff08q_pos' was not declared in this scope; did you mean 'q_pos'?
   17 |  cout<<(（q_pos(10,n)-(2*q_pos(9,n))+q_pos(8,n)）%mod+mod)%mod;
      |         ^~~~~~~
      |         q_pos
a.cc:17:48: error: expected ')' before '\U0000ff09'
   17 |  cout<<(（q_pos(10,n)-(2*q_pos(9,n))+q_pos(8,n)）%mod+mod)%mod;
      |        ~                                       ^~
      |                                                )
Language: C

#include<stdio.h>

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

int main(void){
  long long n;
  scanf("%lld",&n);
  
  long long a=powmod(10,n)-powmod(9,n)-powmod(9,n)+powmod(8,n);
  a%=1000000007;
  a=(a+1000000007)%1000000007
  printf("%lld\n",a);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:30: error: expected ';' before 'printf'
   17 |   a=(a+1000000007)%1000000007
      |                              ^
      |                              ;
   18 |   printf("%lld\n",a);
      |   ~~~~~~
Language: C

#include<stdio.h>

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

int main(void){
  long long n;
  scanf("%lld",&n);
  
  long long a=powmod(10,n)-powmod(9,n)-powmod(9,n)+powmod(8,n);
  a%=1000000007
  printf("%lld\n",a);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:16: error: expected ';' before 'printf'
   16 |   a%=1000000007
      |                ^
      |                ;
   17 |   printf("%lld\n",a);
      |   ~~~~~~
Language: C++

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

int main() {
  long long N;
  cin >> N;
  long long sum;
  if (N==1) {
    cout << 0 << endl;
  }
  if (N!=1) {
    for (long long i=1;i<N;i++) {
      for (long long j=1;j<N-i;j++) {
        sum=8^(N-i-j)*(i+j)!/(i!j!);
      }
    }
    cout << sum << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: expected ';' before '!' token
   14 |         sum=8^(N-i-j)*(i+j)!/(i!j!);
      |                            ^
      |                            ;
Language: C++

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

#define ll long long
#define ull unsigned long long
#define mod 1e9+7
#define INF 1 << 30
#define MAX (1 << 20)
#define NINF (-(1 << 30))
#define triplet pair<pair<int, int>, int>

ll power(ll base, ll p, ll pr){
    ll ans = 1;

    if(base == 1)
        return 1;

    if(base == 0)
        return 0;

    while(p){
        if(p&1)
            ans = (ans*base)%pr;

        base = (base*base)%pr;
        p >>= 1;
    }

    return ans;
}

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

    int n;

    cin >> n;

    if(n < 2)
    	cout << 0 << endl;

    else {
    	ll ans = ((power(10, n, mod) * n) - ((power(9, n, mod) * n) * 2) % (ll)mod + ((power(8, n, mod) * n)) % (ll)mod) % mod
    	cout << ans << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:122: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
   45 |         ll ans = ((power(10, n, mod) * n) - ((power(9, n, mod) * n) * 2) % (ll)mod + ((power(8, n, mod) * n)) % (ll)mod) % mod
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
Language: C++

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

#define ll long long
#define ull unsigned long long
#define mod 1e9+7
#define INF 1 << 30
#define MAX (1 << 20)
#define NINF (-(1 << 30))
#define triplet pair<pair<int, int>, int>

ll power(ll base, ll p, ll pr){
    ll ans = 1;

    if(base == 1)
        return 1;

    if(base == 0)
        return 0;

    while(p){
        if(p&1)
            ans = (ans*base)%pr;

        base = (base*base)%pr;
        p >>= 1;
    }

    return ans;
}

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

    int n;

    cin >> n;

    if(n < 2)
    	cout << 0 << endl;

    else {
    	cout << (((((power(10, n-2, mod) * n) % mod) * (n - 1)) % mod) * power(2, mod-2, mod)) % mod;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:47: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
   45 |         cout << (((((power(10, n-2, mod) * n) % mod) * (n - 1)) % mod) * power(2, mod-2, mod)) % mod;
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~ ^
      |                                          |
      |                                          long long int
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define N 100005
#define MOD 1000000007
#define dd double
#define vi vector<int>
#define vll vector<ll>
#define forr(i,n) for(ll i=0;i<n;i++)
#define revf(i,n) for(ll i=n-1;i>=0;i--)
#define REP(i,a,b) for(ll i=a;i<b;i++)
#define rep1(i,b) for(ll i=1;i<=b;i++)
#define inp(a,n) for(ll i=0;i<n;i++)cin>>a[i]
#define outp(a,n) for(ll i=0;i<n;i++)cout<<a[i]<<" "
#define outp1(a,n) for(ll i=1;i<n;i++)cout<<a[i]<<" "
#define gcd(a,b) __gcd((a),(b))
#define lcm(a,b) (((a)*(b))/gcd((a),(b)))
#define pb push_back
#define mp make_pair
#define mem(x,n) memset(x,n,sizeof(x))
#define BINSC binary_search
#define BITOUT __builtin_popcount
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);
#define test ll t; cin>>t; while(t--)
#define cn cout<<"\n";
ll p=MOD;
ll power(ll x, ll y) 
{ 
	ll 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; 
} 

int main()
{
     fast
     ll n;
     ll out=0;
     cin>>n;
     if(n==1)
     cout<<0;
     else 
     {
          out=power(10,n)-2*power(9,n);
          out=(out%MOD+power(8,n)%MOD)%MOD;
          out=out+mod;
	     out%=mod;
          cout<<out;
     }
}

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