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

#include <bits/stdc++.h>
//#include <atcoder/all>

using namespace std;
//using namespace atcoder;
using usize = ::std::size_t;
using u64 = ::std::int_least64_t;
//using u64 = long long;
static constexpr u64 Inf = ::std::numeric_limits<u64>::max() / 2;


int main(int argc, char *argv[])
{
    
    
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    
    function<u64 (u64)> f = [&](u64 v) {
        if(v <= 9) return 0LL;
        int low_digit = v % 10;
        int high_digit = (v / 10) % 10;
        u64 total = 0LL;
        if (low_digit + high_digit >= 10) {
            total = (u64) (v/100) * 100 + low_digit + high_digit;
        } else {
            total = (u64) (v/100) * 10 + low_digit + high_digit;
        }
        return f(total) + 1LL;
    };
    function<u64 (u64, u64)> g = [&](u64 d, u64 v) {
        if(v == 1) return 0LL;
        if(v == 2) return f((u64) 11LL * d);
        u64 low_digit = d * (v - 1) % 9;
        low_digit = low_digit ? low_digit : 9;
        return g(d, (u64) v - 1) + f((u64)d * 10 + (u64) low_digit);
    };
    
    
    int M;
    cin >> M;
    vector<u64> d(M), c(M);
    
    for (int i = 0; i < M; i++) {
        cin >> d[i] >> c[i];
    }
    u64 cnt = (u64) M - 1;
    u64 reduced_num = 0;
    for (int i = 0; i < M; i++) {
        if(d[i]) cnt += g(d[i], c[i]);
        else cnt += c[i] - 1LL;
        u64 reduced = c[i];
        reduced %= 9;
        reduced = (reduced == 0) ? 9 :reduced;
        
        if (d[i] != 0 && d[i]*reduced % 9 == 0) {
            reduced_num += 9;
        } else {
            reduced_num += (d[i] * reduced % 9);
        }
    }
    cnt += f(reduced_num);
    
    /*u64 base = (u64) pow(10, 17);
    base--;
    base /= 9;
    cout << f(base * 8) << endl;
    cout << g(8, 17) << endl;*/
    
    cout << cnt << endl;
    
    return 0;
    
}


Compiler output:
a.cc: In lambda function:
a.cc:34:28: error: inconsistent types 'long long int' and 'long int' deduced for lambda return type
   34 |         if(v == 2) return f((u64) 11LL * d);
      |                           ~^~~~~~~~~~~~~~~~
a.cc:37:34: error: inconsistent types 'long long int' and 'long int' deduced for lambda return type
   37 |         return g(d, (u64) v - 1) + f((u64)d * 10 + (u64) low_digit);
      |                ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
//#include <atcoder/all>

using namespace std;
//using namespace atcoder;
using usize = ::std::size_t;
using u64 = ::std::int_least64_t;
//using u64 = long long;
static constexpr u64 Inf = ::std::numeric_limits<u64>::max() / 2;


int main(int argc, char *argv[])
{
    
    
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    
    function<u64 (u64)> f = [&](u64 v) {
        if(v <= 9) return 0LL;
        int low_digit = v % 10;
        int high_digit = (v / 10) % 10;
        u64 total = 0LL;
        if (low_digit + high_digit >= 10) {
            total = (u64) (v/100) * 100 + low_digit + high_digit;
        } else {
            total = (u64) (v/100) * 10 + low_digit + high_digit;
        }
        return f(total) + 1LL;
    };
    function<u64 (u64, u64)> g = [&](u64 d, u64 v) {
        if(v == 1) return 0LL;
        if(v == 2) return f((u64)d*11);
        u64 low_digit = d * (v - 1) % 9;
        low_digit = low_digit ? low_digit : 9;
        return g(d, (u64) v - 1) + f((u64)d * 10 + low_digit);
    };
    
    
    int M;
    cin >> M;
    vector<u64> d(M), c(M);
    
    for (int i = 0; i < M; i++) {
        cin >> d[i] >> c[i];
    }
    u64 cnt = (u64) M - 1;
    u64 reduced_num = 0;
    for (int i = 0; i < M; i++) {
        if(d[i]) cnt += g(d[i], c[i]);
        else cnt += c[i] - 1LL;
        u64 reduced = c[i];
        reduced %= 9;
        reduced = (reduced == 0) ? 9 :reduced;
        
        if (d[i] != 0 && d[i]*reduced % 9 == 0) {
            reduced_num += 9;
        } else {
            reduced_num += (d[i] * reduced % 9);
        }
    }
    cnt += f(reduced_num);
    
    /*u64 base = (u64) pow(10, 17);
    base--;
    base /= 9;
    cout << f(base * 8) << endl;
    cout << g(8, 17) << endl;*/
    
    cout << cnt << endl;
    
    return 0;
    
}


Compiler output:
a.cc: In lambda function:
a.cc:34:28: error: inconsistent types 'long long int' and 'long int' deduced for lambda return type
   34 |         if(v == 2) return f((u64)d*11);
      |                           ~^~~~~~~~~~~
a.cc:37:34: error: inconsistent types 'long long int' and 'long int' deduced for lambda return type
   37 |         return g(d, (u64) v - 1) + f((u64)d * 10 + low_digit);
      |                ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
//#include <atcoder/all>

using namespace std;
//using namespace atcoder;
using usize = ::std::size_t;
using u64 = ::std::int_least64_t;
//using u64 = long long;
static constexpr u64 Inf = ::std::numeric_limits<u64>::max() / 2;


int main(int argc, char *argv[])
{
    
    
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    
    function<u64 (u64)> f = [&](u64 v) {
        if(v <= 9) return 0LL;
        int low_digit = v % 10;
        int high_digit = (v / 10) % 10;
        u64 total = 0LL;
        if (low_digit + high_digit >= 10) {
            total = (u64) (v/100) * 100 + low_digit + high_digit;
        } else {
            total = (u64) (v/100) * 10 + low_digit + high_digit;
        }
        return f(total) + 1LL;
    };
    function<u64 (u64, u64)> g = [&](u64 d, u64 v) {
        if(v == 1) return 0LL;
        if(v == 2) return f(d*11);
        u64 low_digit = d * (v - 1) % 9;
        low_digit = low_digit ? low_digit : 9;
        return g(d, v - 1) + f(d * 10 + low_digit);
    };
    
    
    int M;
    cin >> M;
    vector<u64> d(M), c(M);
    
    for (int i = 0; i < M; i++) {
        cin >> d[i] >> c[i];
    }
    u64 cnt = (u64) M - 1;
    u64 reduced_num = 0;
    for (int i = 0; i < M; i++) {
        if(d[i]) cnt += g(d[i], c[i]);
        else cnt += c[i] - 1LL;
        u64 reduced = c[i];
        reduced %= 9;
        reduced = (reduced == 0) ? 9 :reduced;
        
        if (d[i] != 0 && d[i]*reduced % 9 == 0) {
            reduced_num += 9;
        } else {
            reduced_num += (d[i] * reduced % 9);
        }
    }
    cnt += f(reduced_num);
    
    /*u64 base = (u64) pow(10, 17);
    base--;
    base /= 9;
    cout << f(base * 8) << endl;
    cout << g(8, 17) << endl;*/
    
    cout << cnt << endl;
    
    return 0;
    
}


Compiler output:
a.cc: In lambda function:
a.cc:34:28: error: inconsistent types 'long long int' and 'long int' deduced for lambda return type
   34 |         if(v == 2) return f(d*11);
      |                           ~^~~~~~
a.cc:37:28: error: inconsistent types 'long long int' and 'long int' deduced for lambda return type
   37 |         return g(d, v - 1) + f(d * 10 + low_digit);
      |                ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <atcoder/all>

using namespace std;
using namespace atcoder;
using usize = ::std::size_t;
using u64 = ::std::int_least64_t;
//using u64 = long long;
static constexpr u64 Inf = ::std::numeric_limits<u64>::max() / 2;


int main(int argc, char *argv[])
{
    
    
    cin.tie(0) ;
    ios::sync_with_stdio(false) ;
    
    int M;
    cin >> M;
    vector<int> d(M), c(M);
    for (int i = 0; i < M; i++) {
        cin >> d[i] >> c[i];
    }
    u64 cnt = (u64) M - 1;
    int reduced_num = 0;
    for (int i = 0; i < M; i++) {
        if(c[i] > 1) cnt += (u64) floor((double) d[i] / 5) + c[i];
        if (d[i] != 0 && d[i]*c[i] % 9 == 0) {
            reduced_num += 9;
        } else {
            reduced_num += (d[i] * c[i] % 9);
        }
    }
    while (reduced_num >= 10) {
        int low_digit = reduced_num % 10;
        int high_digit = (reduced_num/10) % 10;
        int total_digit;
        if (low_digit + high_digit >= 10) {
            cnt++;
        }
        total_digit = low_digit + high_digit;
        total_digit %= 9;
        reduced_num = (reduced_num / 100) * 10 + total_digit;
        cnt++;
    }
    cnt--;
    
    cout << cnt << endl;
    
    return 0;
    
}


Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define fi first
#define se second
long long mo = 1000000007;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> Pii;
typedef pair<ll,ll> Pll;
typedef pair<ll,Pll> PlP;
template<class T, class S> void cmin(T &a, const S &b) { if (a > b)a = b; }
template<class T, class S> void cmax(T &a, const S &b) { if (a < b)a = b; }
template<class A>void PR(A a,ll n){rep(i,n){if(i)cout<<' ';cout<<a[i];}cout << "\n";}
ld PI=3.14159265358979323846;
 
int main(){
    ll M;
    cin >> M;
    vector<ll> c(M), d(M);
    rep(i,M){
        cin >> d[i] >> c[i];
    }
    ll ans = 0;
    ll sum = 0;
    ll sum_b = 0;
    rep(i,M){
        ll tmp = d[i]*c[i];// + r;
        sum += c[i];
        sum_b += tmp;
        //r = tmp % 10;
    }
    while(sum_b >= 10){
        ll r = sum_b % 10;
        sum_b /= 10;
        ans += sum_b;
        sum_b += r;
    }
    cout << ans+sum-1 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:40:31: error: expected '}' at end of input
   40 |     cout << ans+sum-1 << endl;
      |                               ^
a.cc:18:11: note: to match this '{'
   18 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main() {
    int M;
    cin >> M;

    long long d,c;
    long long sum = 0, digit_count = 0, answer;

    for (int i = 0; i < M; i++) {
        cin >> d >> c;
        sum += d*c;
        digit_count += c;
    }

    carry_count = sum / 9;
    answer = digit_count - 1 + carry_count;

    cout << answer << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'carry_count' was not declared in this scope
   18 |     carry_count = sum / 9;
      |     ^~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main() {
    int M;
    cin >> M;

    long long d,c;
    long long sum = 0, digit_count = 0, carry_count = 0 answer;

    for (int i = 0; i < M; i++) {
        cin >> d >> c;
        sum += d*c;
        digit_count += c;
    }

    while (sum >= 10) {
        sum /= 10;
        carry_count++;
    }

    answer = digit_count - 1 + carry_count;

    cout << answer << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:57: error: expected ',' or ';' before 'answer'
   10 |     long long sum = 0, digit_count = 0, carry_count = 0 answer;
      |                                                         ^~~~~~
a.cc:23:5: error: 'answer' was not declared in this scope
   23 |     answer = digit_count - 1 + carry_count;
      |     ^~~~~~
Language: C++

#include <iostream>

using namespace std;

const int MAX = 200000;

int main() {
  int M; cin >> M;
  int d[MAX];
  long long c[MAX];
  for (int i = 0; i < M; i++) cin >> d[i] >> c[i];

  long long D = 0;
  long long S = 0;
  for (int i = 0; i < M; i++) {
    S += d[i] * c[i];
    D += c[i];
  }

  long long ans = (D - 1) + (S - 1) / 9;

  cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:22:23: error: expected '}' at end of input
   22 |   cout << ans << endl;
      |                       ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

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

int main(){
  int n; cin >> n;
  ll sum = 0;
  ll digit = 0;
  for(int i = 0; i < n; i++){
    ll a, b; cin >> a >> b;
    digit += b;
    sum += a * b;
  }
  cout << digit - 1 + (sum - 1) / 9 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll sum = 0;
      |   ^~
a.cc:7:5: error: expected ';' before 'digit'
    7 |   ll digit = 0;
      |     ^~~~~~
      |     ;
a.cc:9:7: error: expected ';' before 'a'
    9 |     ll a, b; cin >> a >> b;
      |       ^~
      |       ;
a.cc:9:21: error: 'a' was not declared in this scope
    9 |     ll a, b; cin >> a >> b;
      |                     ^
a.cc:9:26: error: 'b' was not declared in this scope
    9 |     ll a, b; cin >> a >> b;
      |                          ^
a.cc:10:5: error: 'digit' was not declared in this scope
   10 |     digit += b;
      |     ^~~~~
a.cc:11:5: error: 'sum' was not declared in this scope
   11 |     sum += a * b;
      |     ^~~
a.cc:13:11: error: 'digit' was not declared in this scope
   13 |   cout << digit - 1 + (sum - 1) / 9 << endl;
      |           ^~~~~
a.cc:13:24: error: 'sum' was not declared in this scope
   13 |   cout << digit - 1 + (sum - 1) / 9 << endl;
      |                        ^~~
a.cc:13:45: error: expected '}' at end of input
   13 |   cout << digit - 1 + (sum - 1) / 9 << endl;
      |                                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define perl(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define pb push_back
#define ins insert
#define all(x) (x).begin(),(x).end()
using ll=long long;
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9+10;
const ll INF=4e18;
const ll dy[8]={1,0,-1,0,1,1,-1,-1};
const ll dx[8]={0,-1,0,1,1,-1,1,-1};
using Graph = vector<vector<int>>;
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
struct edge{ll to, cost;};
typedef pair<ll,ll> P;
struct graph{
  ll V;
  vector<vector<edge> > G;
  vector<ll> d;

  graph(ll n){
    init(n);
  }

  void init(ll n){
    V = n;
    G.resize(V);
    d.resize(V);
    rep(i,V){
      d[i] = INF;
    }
  }

  void add_edge(ll s, ll t, ll cost){
    edge e;
    e.to = t, e.cost = cost;
    G[s].push_back(e);
  }

  void dijkstra(ll s){
    rep(i,V){
      d[i] = INF/10;
    }
    d[s] = 0;
    priority_queue<P,vector<P>, greater<P> > que;
    que.push(P(0,s));
    while(!que.empty()){
      P p = que.top(); que.pop();
      ll v = p.second;
      if(d[v]<p.first) continue;
      for(auto e : G[v]){
        if(d[e.to]>d[v]+e.cost){
          d[e.to] = d[v]+e.cost;
          que.push(P(d[e.to],e.to));
        }
      }
    }
  }
};
int main() {
 ll n; cin>>n;
  ll k = 0;
  ll wa = 0;
  ll ans = 0 
  rep(i,n){
    ll a,b; cin>>a>>b;
    wa += a*b;
    k += b;
  }
  while(wa){
    wa/=10;
    k+=wa;}
  cout << k-1 << endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                  ^~~
a.cc:82:3: note: in expansion of macro 'rep'
   82 |   rep(i,n){
      |   ^~~
a.cc:82:7: error: 'i' was not declared in this scope
   82 |   rep(i,n){
      |       ^
a.cc:3:29: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define perl(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define pb push_back
#define ins insert
#define all(x) (x).begin(),(x).end()
using ll=long long;
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9+10;
const ll INF=4e18;
const ll dy[8]={1,0,-1,0,1,1,-1,-1};
const ll dx[8]={0,-1,0,1,1,-1,1,-1};
using Graph = vector<vector<int>>;
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
struct edge{ll to, cost;};
typedef pair<ll,ll> P;
struct graph{
  ll V;
  vector<vector<edge> > G;
  vector<ll> d;

  graph(ll n){
    init(n);
  }

  void init(ll n){
    V = n;
    G.resize(V);
    d.resize(V);
    rep(i,V){
      d[i] = INF;
    }
  }

  void add_edge(ll s, ll t, ll cost){
    edge e;
    e.to = t, e.cost = cost;
    G[s].push_back(e);
  }

  void dijkstra(ll s){
    rep(i,V){
      d[i] = INF/10;
    }
    d[s] = 0;
    priority_queue<P,vector<P>, greater<P> > que;
    que.push(P(0,s));
    while(!que.empty()){
      P p = que.top(); que.pop();
      ll v = p.second;
      if(d[v]<p.first) continue;
      for(auto e : G[v]){
        if(d[e.to]>d[v]+e.cost){
          d[e.to] = d[v]+e.cost;
          que.push(P(d[e.to],e.to));
        }
      }
    }
  }
};
int main() {
 ll n; cin>>n;
  ll k = 0;
  ll wa = 0;
  ll ans = 0 
  rep(i,n){
    ll a,b; cin>>a>>b;
    wa += a*b;
    k += b;
  }
  cout << k-1 + wa/10 << endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                  ^~~
a.cc:82:3: note: in expansion of macro 'rep'
   82 |   rep(i,n){
      |   ^~~
a.cc:82:7: error: 'i' was not declared in this scope
   82 |   rep(i,n){
      |       ^
a.cc:3:29: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define perl(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define pb push_back
#define ins insert
#define all(x) (x).begin(),(x).end()
using ll=long long;
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9+10;
const ll INF=4e18;
const ll dy[8]={1,0,-1,0,1,1,-1,-1};
const ll dx[8]={0,-1,0,1,1,-1,1,-1};
using Graph = vector<vector<int>>;
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
struct edge{ll to, cost;};
typedef pair<ll,ll> P;
struct graph{
  ll V;
  vector<vector<edge> > G;
  vector<ll> d;

  graph(ll n){
    init(n);
  }

  void init(ll n){
    V = n;
    G.resize(V);
    d.resize(V);
    rep(i,V){
      d[i] = INF;
    }
  }

  void add_edge(ll s, ll t, ll cost){
    edge e;
    e.to = t, e.cost = cost;
    G[s].push_back(e);
  }

  void dijkstra(ll s){
    rep(i,V){
      d[i] = INF/10;
    }
    d[s] = 0;
    priority_queue<P,vector<P>, greater<P> > que;
    que.push(P(0,s));
    while(!que.empty()){
      P p = que.top(); que.pop();
      ll v = p.second;
      if(d[v]<p.first) continue;
      for(auto e : G[v]){
        if(d[e.to]>d[v]+e.cost){
          d[e.to] = d[v]+e.cost;
          que.push(P(d[e.to],e.to));
        }
      }
    }
  }
};
int main() {
  ll n; cin>>n;
  ll k=0;
  ll wa=0;
  ll ans = 0 
  rep(i,n){
    ll a,b; cin>>a>>b;
    wa += a*b;
    k += b;
  }
  cout << k-1 + wa/10 << endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                  ^~~
a.cc:82:3: note: in expansion of macro 'rep'
   82 |   rep(i,n){
      |   ^~~
a.cc:82:7: error: 'i' was not declared in this scope
   82 |   rep(i,n){
      |       ^
a.cc:3:29: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                             ^
Language: Java

import java.util.*;
import java.io.*;

public class DD2020 {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();
        PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));
        int m = sc.nextInt();
        long sum = 0;
        long total = 0;
        for (int i = 0; i < m; i++) {
            long d = sc.nextLong();
            long c = sc.nextLong();
            sum = sum + d * c;
            total += c;
        }
        long ret = (long) (total - 1 + Math.ceil((double) sum / 9)) - 1;
        out.println(ret);
        out.close();
    }


    //-----------MyScanner class for faster input----------
    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }


    }

}

Compiler output:
Main.java:4: error: class DD2020 is public, should be declared in a file named DD2020.java
public class DD2020 {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for (int i = 1; i < (int)(n); i++)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define debug(var) do{cout << #var << " : "; view(var);}while(0)
template<class T> bool chmin(T &a, T b) {if(a>b) {a=b;return 1;}return 0;}
template<class T> bool chmax(T &a, T b) {if(a<b) {a=b;return 1;}return 0;}
using namespace std;
template<class T> void view(T e) {cout << e << endl;}
template<class T> void view(const vector<T> &v) {for(const auto &e : v){cout << e << " ";} cout << endl;}
template<class T> void view(const vector<vector<T>> &vv) {for(const auto &v : vv){view(v);}}
using vint = vector<int>;
using vvint = vector<vector<int>>;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
using P = pair<int,int>;
const int inf = 1e9;
const ll inf_l = 1e18;
const int MAX = 1e5;

int main() {
    int m; cin >> m;
    ll n = 0, sum = 0;
    rep(i,m) {
        int d;
        ll c;
        cin >> d >> c;
        n += c;
        sum += d * c;
    }
    ll ans = (d-1) + (sum-1)/9;
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:15: error: 'd' was not declared in this scope
   33 |     ll ans = (d-1) + (sum-1)/9;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> P;
typedef long long ll;
typedef long double ld;
const int inf=1e9+7;
const ll longinf=1LL<<60;
#define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i )
#define rep(i,n) REP(i,0,n)
#define F first
#define S second

const int mx=200010;
const ll mod=1e9+7;


int main(){
  ll m;
  cin >> m;
  ll k=0, d=0;
  
  ll ans = 0;
  rep(i,m){
    ll a,b; cin >> a >> b;
    k += b;
    ans += (a*b)/9;
    d += (a*b)%9;
  }
  
  ll ans = (d-1)/9 + k-1;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:6: error: redeclaration of 'll ans'
   30 |   ll ans = (d-1)/9 + k-1;
      |      ^~~
a.cc:22:6: note: 'll ans' previously declared here
   22 |   ll ans = 0;
      |      ^~~
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF= 1e9+5;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>>vvi;
const ll MOD=1000000007LL;
int main(){
  int m;
  cin>>m;
  vi d(m),c(m);
  rep(i,m)cin>>d[i]>>c[i];
  int num=0;
  int sum=0;
  rep(i,m){
    num+=d[i];
    sum+=d[i]*c[i]
  }
  cout<<num-1+sum/10<<endl;
}
    
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: expected ';' before '}' token
   21 |     sum+=d[i]*c[i]
      |                   ^
      |                   ;
   22 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> pp;
const int INF = 1e9;
const int MOD = 1000000007;

 
int main() {
  int m;
  cin >> m;
  ll now = 0;
  ll nine_count =　0;
  ll d = 0;
  rep(i,m){
    int a,b;
    cin >> a >> b;
    d += b;
    ten_count += (a * b)/9;
    now += (a * b) % 9;
  }
  ten_count += now/9;
  
  cout << ten_count + d - 1 << endl;  

  return 0;
}




Compiler output:
a.cc:14:18: error: extended character 　 is not valid in an identifier
   14 |   ll nine_count =　0;
      |                  ^
a.cc: In function 'int main()':
a.cc:14:18: error: '\U000030000' was not declared in this scope
   14 |   ll nine_count =　0;
      |                  ^~~
a.cc:20:5: error: 'ten_count' was not declared in this scope; did you mean 'nine_count'?
   20 |     ten_count += (a * b)/9;
      |     ^~~~~~~~~
      |     nine_count
a.cc:23:3: error: 'ten_count' was not declared in this scope; did you mean 'nine_count'?
   23 |   ten_count += now/9;
      |   ^~~~~~~~~
      |   nine_count
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <stack>
#include <set>
#include <queue>
#include <iomanip>

using namespace std;

long long mod = 1000000007;

long long pow(long long x, long long k)
{
    if (k == 0)
    {
        return 1LL;
    }
    long long temp = pow(x, k / 2);
    if (k % 2 == 1)
    {
        return (((temp * temp) % mod) * x) % mod;
    }
    else
    {
        return (temp * temp) % mod;
    }
}

long long modular_inverse(long long x)
{
    return pow(x, mod - 2);
}

long long binomial(long long n, long long k)
{
    long long rez = 1;
    for (int i = n - k + 1; i <= n; i++)
    {
        rez *= i;
        rez %= mod;
    }
    long long temp = 1;
    for (int i = 1; i <= k; i++)
    {
        temp *= i;
        temp %= mod;
    }
    rez *= modular_inverse(temp);
    rez %= mod;
    return rez;
}

int main()
{
    long long m;
    cin >> m;
    long long d = 0, s = 0;
    for (int i = 0; i < m; i++)
    {
        long long x, y;
        cin >> x >> y;
        d += y;
        s += x * y;
    }
    cout << (d - 1) + (int)(ceil((s - 9) / 9)) << '\n';
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:67:29: error: 'ceil' was not declared in this scope
   67 |     cout << (d - 1) + (int)(ceil((s - 9) / 9)) << '\n';
      |                             ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <algorithm>
#define rep(i, n) for(i = 0; i < (n); i++)
#define chmax(x, y) x = max(x, y)
#define MOD 1000000007
#define INF 1 << 30

using namespace std;
typedef long long ll;
typedef pair<int, int> pp;

int main(void) {
	int i;
	ll a, k, ans = 0;
	cin >> num;
	queue<int> que;
	rep(i, num) {
		cin >> a >> k;
		while (k > 0) {
			if (k & 1)
				que.push(a);
			k >>= 1;
			ans += k;
			a <<= 1;
			if (a >= 10) {
				ans += k;
				a = a % 10 + 1;
			}
		}
	}
	a = que.front();
	que.pop();
	ans += que.size();
	while (!que.empty()) {
		a += que.front();
		que.pop();
		if (a >= 10) {
			ans++;
			a = a % 10 + 1;
		}
	}
	cout << ans << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: 'num' was not declared in this scope; did you mean 'enum'?
   18 |         cin >> num;
      |                ^~~
      |                enum
Language: C++

# Your code here!

m = gets.to_i
cnt = 0
digit = 0
m.times{
    line = gets.split(' ')
    d = line[0]
    c = line[1]
    d = d.to_i
  	c = c.to_i
    cnt += c*d
    digit += c
}

cnt /= 10
puts(digit - 1+ cnt)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #Your
    1 | # Your code here!
      |   ^~~~
a.cc:3:1: error: 'm' does not name a type
    3 | m = gets.to_i
      | ^
a.cc:16:1: error: 'cnt' does not name a type; did you mean 'int'?
   16 | cnt /= 10
      | ^~~
      | int
Language: C++

¥¥#include<bits/stdc++.h>
using namespace std;
using Int = long long;

int main(){
    Int M ; cin >> M;
    vector<Int>d(M), c(M);
    for(int i = 0; i < M; ++i)
        cin >> d[i] >> c[i];
    Int ans = accumulate(c.begin(),c.end(),0LL) - 1;
    Int sum = 0;
    for(int i = 0; i < M; ++i) sum += c[i] * d[i];
    ans += sum /10;
    sum /= 10;
    while(true){
        string s = to_string(sum);
        if(s.size() <= 1) break;
        ans += s.size() - 1;
        for(auto c : s)
            sum += c - '0';
        ans += sum/10;
        sum /= 10;
    }
    cout << ans << endl;
}



Compiler output:
a.cc:1:1: error: extended character ¥ is not valid in an identifier
    1 | ¥¥#include<bits/stdc++.h>
      | ^
a.cc:1:1: error: extended character ¥ is not valid in an identifier
a.cc:1:3: error: stray '#' in program
    1 | ¥¥#include<bits/stdc++.h>
      |   ^
a.cc:1:1: error: '\U000000a5\U000000a5' does not name a type
    1 | ¥¥#include<bits/stdc++.h>
      | ^~
a.cc: In function 'int main()':
a.cc:6:13: error: 'cin' was not declared in this scope
    6 |     Int M ; cin >> M;
      |             ^~~
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<Int>d(M), c(M);
      |     ^~~~~~
a.cc:7:15: error: expected primary-expression before '>' token
    7 |     vector<Int>d(M), c(M);
      |               ^
a.cc:7:16: error: 'd' was not declared in this scope
    7 |     vector<Int>d(M), c(M);
      |                ^
a.cc:7:22: error: 'c' was not declared in this scope
    7 |     vector<Int>d(M), c(M);
      |                      ^
a.cc:10:15: error: 'accumulate' was not declared in this scope
   10 |     Int ans = accumulate(c.begin(),c.end(),0LL) - 1;
      |               ^~~~~~~~~~
a.cc:16:9: error: 'string' was not declared in this scope
   16 |         string s = to_string(sum);
      |         ^~~~~~
a.cc:17:12: error: 's' was not declared in this scope
   17 |         if(s.size() <= 1) break;
      |            ^
a.cc:18:16: error: 's' was not declared in this scope
   18 |         ans += s.size() - 1;
      |                ^
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout << ans << endl;
      |     ^~~~
a.cc:24:20: error: 'endl' was not declared in this scope
   24 |     cout << ans << endl;
      |                    ^~~~
Language: C++

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

int main(){
    Int M ; cin >> M;
    vector<Int>d(M), c(M);
    for(int i = 0; i < M; ++i)
        cin >> d[i] >> c[i];
    Int ans = accumulate(c.begin(),c.end(),0LL) - 1;
    Int sum = 0;
    for(int i = 0; i < M; ++i) sum += c[i] * d[i];
    ans += sum /10;
    sum /= 10;
    while(true){
        string s = to_string(sum);
        if(s.size() <= 1) break;å
        for(auto c : s)
            sum += c - '0';
        ans += sum/10;
        sum /= 10;
    }
    cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:33: error: '\U000000e5' was not declared in this scope
   17 |         if(s.size() <= 1) break;å
      |                                 ^
Language: C++

#include<iostream>
#define int long long
int32_t main()
{
  int M;
  cin>>M;
  int order=0,sum=0;
  for(int i=0;i<M;i++)
  {
    cin>>d>>c;
    order+=c;
    sum+=(d*c);
  }
  cout<<(order-1)+((sum-1)/9)<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>M;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:10: error: 'd' was not declared in this scope
   10 |     cin>>d>>c;
      |          ^
a.cc:10:13: error: 'c' was not declared in this scope
   10 |     cin>>d>>c;
      |             ^
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout<<(order-1)+((sum-1)/9)<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout<<(order-1)+((sum-1)/9)<<endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define VSORT(v) sort(v.begin(), v.end())
#define VRSORT(v) sort(v.rbegin(), v.rend())
#define ll long long
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
typedef pair<int, P> PP;
typedef pair<ll, LP> LPP;
//typedef vector<unsigned int>vec;
typedef vector<ll>vec;
typedef vector<vec> mat;
typedef vector<vector<int>> Graph;

const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
const int INF = 1000000000;
const ll LINF = 1000000000000000000;//1e18
const ll  MOD = 1000000007;
//const ll MOD = 998244353;
const double PI = acos(-1.0);
const double EPS = 1e-10;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline void add(T &a, T b){a = ((a+b) % MOD + MOD) % MOD;};


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int M;
    cin >> M;
    ll sum = 0;
    ll C = 0;
    ll ans = 0;

    REP(i,M){
        ll d, c;
        cin >> d >> c;
        sum += d * c;
        C += c;
    }
    ans += C - 1;
    ans += (sum - 1) / 9
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:25: error: expected ';' before 'cout'
   46 |     ans += (sum - 1) / 9
      |                         ^
      |                         ;
   47 |     cout << ans << endl;
      |     ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long ans=0;
  int m;cin>>m;
  deque<int> dq;
  for(int i=0;i<m;i++){
    int a,b;cin>>a>>b;
    ans+=b-1+(a*b-1)/9;
    dq.push_back((a*b-1)%9+1);
  }
  while(dq.size()>1){
    int a,b;
    a=dq.back();dq.pop_back();
    b=dq.back();dq.pop_back();
    if(a+b>9) dq.push_back(1);
    if(a) dq.push_back((a+b)%10);
    else dq.push_back(0)
    ans++;
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:25: error: expected ';' before 'ans'
   18 |     else dq.push_back(0)
      |                         ^
      |                         ;
   19 |     ans++;
      |     ~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long ans=0;
  int m;cin>>m;
  deque<int> dq;
  for(int i=0;i<m;i++){
    int a,b;cin>>a>>b;
    for(int j=0;j<b;j++) dq.push_back(a);
  }
  while(dq.size()>1){
    int a,b;
    a=dq_back();dq.pop_back();
    b=dq_back();dq.pop_back();
    if(a+b>9) dp.push_back(1);
    dp.push_back((a+b)%10);
    ans++;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'dq_back' was not declared in this scope
   13 |     a=dq_back();dq.pop_back();
      |       ^~~~~~~
a.cc:15:15: error: 'dp' was not declared in this scope; did you mean 'dq'?
   15 |     if(a+b>9) dp.push_back(1);
      |               ^~
      |               dq
a.cc:16:5: error: 'dp' was not declared in this scope; did you mean 'dq'?
   16 |     dp.push_back((a+b)%10);
      |     ^~
      |     dq
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int M;
  cin >> M;
  vector<int> d(M);
  vector<int> c(M);
  for(int i = 0; i < M; i++){
    cin >> d.at(i) >> c.at(i);
  }
  int sum1 = 0, sum2 = 0;
  for(int i = 0; i < M; i++){
    sum1 += d.at(i)*c.at(i);
    sum2 += c.at(i);
  }
  if(sum1 % 9 == 0) sum1 = sum1 / 9 - 1;
  else sum1 = sum1 / 9
  cout << sum1 + sum2 - 1 << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: expected ';' before 'cout'
   17 |   else sum1 = sum1 / 9
      |                       ^
      |                       ;
   18 |   cout << sum1 + sum2 - 1 << endl;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int M;
  cin >> M;
  vector<int> d(M);
  vector<int> c(M);
  for(int i = 0; i < M; i++){
    cin >> d.at(i) >> c.at(i);
  }
  int sum1 = 0, sum2 = 0;
  for(int i = 0; i < M; i++){
    sum1 += d.at(i)*c.at(i);
    sum2 += c.at(i);
  }
  if(sum1 % 9 == 0) sum1 = sum1 / 9 - 1;
  else sum1 = sum1 / 9
  cout << sum1 + sum2 - 1 << endl; 

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: expected ';' before 'cout'
   17 |   else sum1 = sum1 / 9
      |                       ^
      |                       ;
   18 |   cout << sum1 + sum2 - 1 << endl;
      |   ~~~~                 
a.cc:18:35: error: expected '}' at end of input
   18 |   cout << sum1 + sum2 - 1 << endl;
      |                                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

//#pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC optimize("-O3")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define int long long
#define F first
#define S second
#define pb push_back
#define bit __builtin_popcount
#define sz(x) (int)x.size()
#define all(x) x.begin(), x.end()
#define mkp make_pair
#define ffs fflush(stdout)

using namespace std;
using namespace __gnu_pbds;

//order_of_key(k) : Number of items strictly smaller than k
//find_by_order(k) : K-th element in a set (counting from 0)

template<typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

typedef long long ll;
typedef long double ld;
typedef vector <int> lnum;
typedef pair <int, int> pii;

const int N = (int)1e5 + 5;
const int MOD = (int)1e9 + 7;
const int inf = (int)1e18;
const int dx[] = {1, -1, 0, 0, 1, -1, 1, -1};
const int dy[] = {0, 0, 1, -1, 1, -1, -1, 1};
const ld eps = 1e9 - 7;
const int pp[] = {29, 31, 53, 67, 71};
const double pi = acos(-1.0);

mt19937 gen(chrono::system_clock::now().time_since_epoch().count());

int f[15][N];
int cnt1[15];
int cnt[15];
int y[15][N];

signed main() {
  ios_base :: sync_with_stdio(false);
  cin.tie(0); cout.tie(0);
  for (int d = 1; d <= 9; ++d) {
    f[d][0] = d;
    f[d][1] = d + d;
    int cur = 1;
    int u = d + d;
    cnt[d] = 1;
    int col = 1;
    y[d][col] = 1;
    y[d][col + 1] = 1;
    while (u != d) {
      if (log10(u) < 1) {
        u += d;
        ++col;
        y[d][col + 1] = cnt[d];
      }
      else {
        u = (u % 10) + (u / 10);
      }
      cnt[d]++;
      f[d][cnt[d]] = u;
    }
    cnt1[d] = cnt[d];
  }
  int m;
  cin >> m;
  vector <pii> v(m);
  for (int i = 0; i < m; ++i)++
    cin >> v[i].F >> v[i].S;
  int ret = 0;
  string s;
  for (int i = 0; i < m; ++i) {
    if (v[i].F == 0) {
      ret += v[i].S;
      continue;
    }
    ret += (v[i].S / cnt[v[i].F]) * cnt1[v[i].F];
    ret += y[v[i].F][v[i].S % cnt[v[i].F]];
    s += ('0' + v[i].F);
  }
  while (sz(s) > 1) {
    ++ret;
    int x = s[sz(s) - 1];
    int z = s[sz(s) - 2];
    x -= '0', z -= '0';
    s.pop_back();
    s.pop_back();
    x += z;
    if (log10(x) < 1)
      s += x + '0';
    else {
      s += (x % 10) + '0';
      s += (x / 10 + x % 10) + '0';
    }
  }
  cout << ret;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:76:30: error: no match for 'operator++' (operand type is 'std::istream' {aka 'std::basic_istream<char>'})
   76 |   for (int i = 0; i < m; ++i)++
      |                              ^~
   77 |     cin >> v[i].F >> v[i].S;
      |     ~~~
Language: C++

m = gets.to_i
sum = 0
digits = 0
m.times do
    d, c = gets.split.map(&:to_i)
    sum += d*c
    digits += c
end
puts digits-1 + (sum+8)/9-1 



Compiler output:
a.cc:1:1: error: 'm' does not name a type
    1 | m = gets.to_i
      | ^
Language: C

#inlcude<stdio.h>

int main(){
  long int sum=0;
  long int digit=0;
  int m,s,d;
  scanf("%d",&d);
  while(scanf("%ld %ld\n",&s,&d)==2){
    sum+=s;
    d+=s*d;}
  printf("%ld\n",d-1+(s-1)/9);

  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d",&d);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude<stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d",&d);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |   printf("%ld\n",d-1+(s-1)/9);
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
#define _LIBCPP_DEBUG 0

using namespace std;
#define ll long long
#define rep(i,n) for (int i = 0; i < n; i++)
#define MOD (1000000007)
#define vi vector<int>
#define vl vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int gcd(int a, int b) {
    if (b == 0) return a;
    else return gcd(b, a % b);
}

const ll INF = 1LL << 60;

const int dh[4] = {1,0,-1,0};
const int dw[4] = {0,1,0,-1};

int main(){
  int m; cin >> m;
  ll ans = 0LL, sum = 0LL;
  rep(i, m){
    ll d,c; cin >> d >> c;
    ans += c;
    sum += d*c;
  }
  ll k = (sum-1)%9 + 1;
  //ans += sum/10 - 1;
  ans += (sum-k)/9 - 1
  std::cout << ans << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:23: error: expected ';' before 'std'
   41 |   ans += (sum-k)/9 - 1
      |                       ^
      |                       ;
   42 |   std::cout << ans << '\n';
      |   ~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
#define _LIBCPP_DEBUG 0

using namespace std;
#define ll long long
#define rep(i,n) for (int i = 0; i < n; i++)
#define MOD (1000000007)
#define vi vector<int>
#define vl vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int gcd(int a, int b) {
    if (b == 0) return a;
    else return gcd(b, a % b);
}

const ll INF = 1LL << 60;

const int dh[4] = {1,0,-1,0};
const int dw[4] = {0,1,0,-1};

int main(){
  int m; cin >> m;
  ll ans = 0LL, sum = 0LL;
  rep(i, m){
    ll d,c; cin >> d >> c;
    ans += c;
    sum += d*c;
  }
  ll k = (x-1)%9 + 1;
  //ans += sum/10 - 1;
  ans += (sum-k)/9 - 1
  std::cout << ans << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:11: error: 'x' was not declared in this scope
   39 |   ll k = (x-1)%9 + 1;
      |           ^
a.cc:41:23: error: expected ';' before 'std'
   41 |   ans += (sum-k)/9 - 1
      |                       ^
      |                       ;
   42 |   std::cout << ans << '\n';
      |   ~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
#define _LIBCPP_DEBUG 0

using namespace std;
#define ll long long
#define rep(i,n) for (int i = 0; i < n; i++)
#define MOD (1000000007)
#define vi vector<int>
#define vl vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int gcd(int a, int b) {
    if (b == 0) return a;
    else return gcd(b, a % b);
}

const ll INF = 1LL << 60;

const int dh[4] = {1,0,-1,0};
const int dw[4] = {0,1,0,-1};

int main(){
  int m; cin >> m;
  ll ans = 0LL, sum = 0LL;
  rep(i, m){
    ll d,c; cin >> d >> c;
    ans += c;
    sum += d*c;
  }
  ll k = (x-1)%9 + 1;
  //ans += sum/10 - 1;
  ans += (x-k)/9 - 1
  std::cout << ans << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:11: error: 'x' was not declared in this scope
   39 |   ll k = (x-1)%9 + 1;
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define MAX(a,b) a=a>b?a:b
#define MIN(a,b) a=a>b?a:b
#define REP(i,x,n) for(int i=x;i<n;i++)
#define REPR(i,x,n) for(int i=n-1;i>=x;i--)
#define F first
#define S second
using namespace std;
typedef long long ll;
const ll MOD =1e9 + 7;



int main(){
	int n;
	cin>>n;
    llll x,y;
    ll c=0;
    int a=0;

    rep(i,n){
        cin>>x>>y;
        c+=y;
        c+=(x*y+a)/10;
        a=(x*y+a)%10;
    }
    cout<<c-1<<endl;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'llll' was not declared in this scope
   19 |     llll x,y;
      |     ^~~~
a.cc:24:14: error: 'x' was not declared in this scope
   24 |         cin>>x>>y;
      |              ^
a.cc:24:17: error: 'y' was not declared in this scope
   24 |         cin>>x>>y;
      |                 ^