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

///**Bismillahir Rahmanir Rahim.**

#include <bits/stdc++.h>
#define clr(a, v)             memset(a, v, sizeof a)
#define all(v)                v.begin(), v.end()
#define ast(v)                sort(v.begin(),v.end())
#define dst(v)                sort(v.begin(),v.end(), greater <int> ())
#define fast ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ass(tmp, v)           tmp.assign(v.begin(), v.end())
#define rep(i, l, r)          for (int i = l; i < r; i++)
#define rep2(i, l, r)         for (int i = l-1; i >= r; i--)
#define sf(n)                 scanf("%d", &n)
#define sff(n, m)             scanf("%d %d",&n,&m)
#define sfl(n)                scanf("%lld", &n)
#define sfu(n)                scanf("%llu", &n)
#define sffl(n, m)            scanf("%lld %lld",&n,&m)
#define sfff(n, m, o)         scanf("%d %d %d",&n,&m, &o)
#define pf(n)                 printf("%d", n)
#define sp                    printf(" ")
#define nl                    printf("\n")
#define prln(n)               printf("%d\n", n)
#define pfl(n)                printf("%lld", n)
#define pfu(n)                printf("%llu", n)
#define pb                    push_back
#define pii                   pair<int,int>
#define mp                    make_pair
#define S                     second
#define F                     first
#define PI                    3.1415926

struct greaters
{
    bool operator()(const long& a, const long& b) const
    {
        return a > b;
    }
};

//-----------------------------------***********************----------------------------------------------//


typedef long long int ll;
typedef unsigned long long int ull;
using namespace std;
const int N = 200050;
const int mod = 1e9+7;


int main()
{
    //freopen("test.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);

    fast;
    int tcase = 1, cas = 0;
    while(tcase--)
    {
        int m, d;
        cin >> m >> d;

        int cnt = 0;
        for(int i = 22; i <= m; i++)
        {
            int x = j;
            int a = x%10;
            x /= 10;
            int b = x%10;
            if(a >= 2 and b >= 2 and (a*b) <= m)
                cnt++;
        }
    }
    cout << cnt;

    ///printf("Case %d: %lld\n", ++cas, ans);
}
return 0;

}

//-----------------------------------***********************----------------------------------------------//



Compiler output:
a.cc: In function 'int main()':
a.cc:64:21: error: 'j' was not declared in this scope
   64 |             int x = j;
      |                     ^
a.cc:72:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
   72 |     cout << cnt;
      |             ^~~
      |             int
a.cc: At global scope:
a.cc:76:1: error: expected unqualified-id before 'return'
   76 | return 0;
      | ^~~~~~
a.cc:78:1: error: expected declaration before '}' token
   78 | }
      | ^
Language: Java

import java.util.*;
import java.util.ArrayList;

public class Main{
	public static void main(String args[]){

		// 宣言
		int mod = 1_000_000_007;
		ArrayList<Integer> A = new ArrayList<>();
		ArrayList<Integer> B = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		int num = 0;
		// 値取得
		int N = sc.nextInt();
		long K = sc.nextInt();
		int Ble = K * N;
		// System.out.println(N);
		for(int i=0;i<N;i++){
			A.add(sc.nextInt());
			// System.out.println(A.get(i));
		}

		// リストB作成
		int index = 0;
		int cnt=0;
		while(cnt<Ble){

			B.add(A.get(index));
			if(index == N - 1){
				index = 0;
			}else{
				index++;
			}
			// System.out.println(B.get(cnt));
			cnt++;
		}
		// 転倒数を求める(自分より右にある小さい数字を足していく)
		int ans = 0;
		for(int k = 0;k<N;k++){
			for(int l = 0;l<N;l++){
              if(A.get(k) > A.get(l)){
                    if(k < l){
                        ans = (ans + K * (K+1) /2) % mod;
                    }else if(l < k){
                        ans = (ans + K * (K-1) /2) % mod;
                    }
				}
			}
		}
		System.out.println(ans);
        sc.close();
	}
}

Compiler output:
Main.java:16: error: incompatible types: possible lossy conversion from long to int
		int Ble = K * N;
		            ^
Main.java:43: error: incompatible types: possible lossy conversion from long to int
                        ans = (ans + K * (K+1) /2) % mod;
                                                   ^
Main.java:45: error: incompatible types: possible lossy conversion from long to int
                        ans = (ans + K * (K-1) /2) % mod;
                                                   ^
3 errors
Language: C++

#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
#include <array>
#include <algorithm>
#include <utility>
#include <numeric>
#include <deque>
#include <stack>
#include <queue>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <cmath>
#include <limits>

#define for0(i, n)    for (int i = 0  ; i <  (n); ++i)
#define for1n(i, n)   for (int i = 1  ; i <= (n); ++i)
#define for1(i, n)    for (int i = 1  ; i <  (n); ++i)
#define forn(i, n)    for (int i = 0  ; i <= (n); ++i)
#define forx(i, n, x) for (int i = (x); i <  (n); ++i)

#define mod 1000000007LL

using namespace std;

typedef long long ll;
typedef priority_queue<ll> pq;
typedef priority_queue<ll,vector<ll> ,greater<ll>> pql;
typedef stack<ll> stk;
typedef queue<ll> qu;


int main(void){
    int N;
    ll K;
    cin >> N >> K;
    int a[2000]={};

    for0(i, N){
        cin >> a[i];
    }

    pair<ll, ll> p[2000];

    for0(i, N){
        p[i].first=0;           // all
        p[i].second=0;          // after
    }

    for0(i, N){
        for0(j, N){
            if (a[i] > a[j]) {
                ++p[i].first;
                if (i < j) {
                    ++p[i].second;
                }
            }
        }
        p[i].first%=mod;
        p[i].second%=mod;
    }

    ll result = 0;

    for0(i, N){
        result = (((p[i].first  * ((K-1) *K % mod) (+ p[i].second * 2*K %mod))
                   / 2) % mod + result) % mod;
    }

    cout << result;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:69:52: error: expression cannot be used as a function
   69 |         result = (((p[i].first  * ((K-1) *K % mod) (+ p[i].second * 2*K %mod))
      |                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include"bits/stdc++.h"
using namespace std;
#define ll long long
#define rep(i,n) for(ll i=0;i<(ll)n;++i)
#define rrep(i,n) for(ll i=n-1;i>=0;--i)
#define pp pair<ll,ll>
#define ppp pair<ll,pp>
#define pb push_back
#define ALL(v) v.begin(),v.end()
#define fi first
#define se second
const ll mod=1e9+9,INF=1e16;
vector<ll>node[200010];
int ans[200010];
void dfs(int pos=1,int from=0,int val=0){
    ans[pos]+=val;
    rep(i,node[pos].size()){
        if(node[pos][i]!=from)dfs(node[pos][i],pos,ans[pos]);
    }
}
ll m,d,ans;
int main(){
    cin>>m>>d;
	for(int i=1;i<=m;++i){
		for(int j=1;j<=d;++j){
			if(j%10<2||j/10<2)continue;
			if((j%10)*(j/10)==i){++ans;
			//cout<<j<<" "<<i<<endl;
			}
		}
	}
	cout<<ans<<endl;
}
}

Compiler output:
a.cc:21:8: error: conflicting declaration 'long long int ans'
   21 | ll m,d,ans;
      |        ^~~
a.cc:14:5: note: previous declaration as 'int ans [200010]'
   14 | int ans[200010];
      |     ^~~
a.cc: In function 'int main()':
a.cc:27:48: error: lvalue required as increment operand
   27 |                         if((j%10)*(j/10)==i){++ans;
      |                                                ^~~
a.cc: At global scope:
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <numeric>
#include <random>
#include <algorithm>
#include <functional>
 
using namespace std;
typedef long long ll;
 
const int INF = (1 << 30) - 1;
const ll INFLL= (1LL << 61) - 1;
const int MOD = 1000000007;
#define ALL(a) (a).begin(),(a).end()
#define rALL(a) (a).rbegin(),(a).rend()
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
 
int main(){
  int M,D;
  cin>>M>>D;
  int ans=0;
  for(i,1,D+1){
    for(j,1,D+1){
      int d1=j/10;
      int d2=j%10;
      if(d1>1 && d2>1 && d1*d2==i){
        ans++;
      }
    }
  }
 cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:7: error: 'i' was not declared in this scope
   29 |   for(i,1,D+1){
      |       ^
a.cc:39:1: error: expected primary-expression before '}' token
   39 | }
      | ^
a.cc:38:18: error: expected ')' before '}' token
   38 |  cout<<ans<<endl;
      |                  ^
      |                  )
   39 | }
      | ~                 
a.cc:29:6: note: to match this '('
   29 |   for(i,1,D+1){
      |      ^
a.cc:39:1: error: expected primary-expression before '}' token
   39 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
typedef int64_t ll;

int main()
{
	int N;
	ll K;
	cin >> N >> K;
	const ll mod = 1000000007;
	vector<ll> A(2001);
	vector<ll> Acnt(2001, 0);
	for(int i = 0; i < N; i++) cin >> A[i];
	ll cnt = 0;
	ll ans = 0;
	for(int i = 0; i < N; i++) Acnt[A[i]]++;
	for(int i = 0; i < N-1; i++) {
		for(int j = i+1; j < N; j++) {
			if(A[i] > A[j]) cnt++;
		}
	}
	ans += (cnt*K) % mod;
	if(K == 1) {
		cout << ans << endl;
		return 0;
	}
	//
	for(int i = 1; i <= 2000; i++) {
		if(Acnt[i] > 0) {
			ll a = 0;
			for(int j = 1; j < i; j++) {
				a += Acnt[j];
			}
			//ans += (((Acnt[i]*a*(K-1))+Acnt[i]*a)*(K/2)) % mod;
			//if(K == 2) ans += Acnt[i]*a % mod;
			if(K % 2 == 1) ans += (((Acnt[i]*a*(K-1))+Acnt[i]*a)*((K-1)/2)) % mod;
			else if(K % 2 == 0) {
              ans += (Acnt[i]*a*(K-1)) % mod;
              ans += ((Acnt[i]*a*(K-2)+Acnt[i]*a)*((K-2)/2)) % mod;
			ans %= mod;
		}
	}
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:2: error: expected '}' at end of input
   48 | }
      |  ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C

#include<stdio.h>
int main()
{
	int m,d,d1,d2,prod=0,i,j;
	void scanf("%d %d",&m,&d);
	for(i=4;i<=m;i++)
	{
		for(j=22;j<=d;j++)
		{
			d1=j%10;
			d2=j/10;
			if(d1*d2==i)
			prod++;
		}
	}
	printf("%d",prod);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:20: error: expected declaration specifiers or '...' before string constant
    5 |         void scanf("%d %d",&m,&d);
      |                    ^~~~~~~
main.c:5:28: error: expected declaration specifiers or '...' before '&' token
    5 |         void scanf("%d %d",&m,&d);
      |                            ^
main.c:5:31: error: expected declaration specifiers or '...' before '&' token
    5 |         void scanf("%d %d",&m,&d);
      |                               ^
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0,tmp=0,compare1=0,test=0,compare2=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int j=1;j=<month;j++){
for(int i=1;i<10;i++){
	tmp=j/i;
  	test=j%i;
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && tmp<10 && test==0){
    count=count+1;
    }
    if(compare2<day && tmp<10 && test==0){
    count=count+1;
    }
  	if(compare1==compare2)
      count=count-1;
    }}
printf("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '<' token
    6 | for(int j=1;j=<month;j++){
      |               ^
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0,tmp=0,compare1=0,test=0,compare2=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int j=1;j=<month;j++){
for(int i=1;i<10;i++){
	tmp=month/i;
  	test=month%i;
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && tmp<10 && test==0){
    count=count+1;
    }
    if(compare2<day && tmp<10 && test==0){
    count=count+1;
    }
  	if(compare1==compare2)
      count=count-1;
    }}
printf("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '<' token
    6 | for(int j=1;j=<month;j++){
      |               ^
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0,tmp=0,compare1=0,test=0,compare2=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int i=1;i<10;i++){
	tmp=month/i;
  	test=month%i;
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && compare1!=compare2&& tmp<10 && test=0){
    count=count+1;
    }
    if(compare2<day && tmp<10 && test=0){
    count=count+1;
    }
    }
printf("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:11:63: error: lvalue required as left operand of assignment
   11 |         if(compare1<day && compare1!=compare2&& tmp<10 && test=0){
      |                                                               ^
main.c:14:38: error: lvalue required as left operand of assignment
   14 |     if(compare2<day && tmp<10 && test=0){
      |                                      ^
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0,tmp=0,compare1=0,test=0,compare2=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int i=1;i<10;i++){
	tmp=month/i;
  	test=month%i;
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && compare1!=compare2&& tmp<10&&test=0){
    count=count+1;
    }
    if(compare2<day && tmp<10&&test=0){
    count=count+1;
    }
    }
printf("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:11:61: error: lvalue required as left operand of assignment
   11 |         if(compare1<day && compare1!=compare2&& tmp<10&&test=0){
      |                                                             ^
main.c:14:36: error: lvalue required as left operand of assignment
   14 |     if(compare2<day && tmp<10&&test=0){
      |                                    ^
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0,tmp=0,compare1=0,test=0,compare2=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int i=1;i<10;i++){
	tmp=month/i;
  	test=month%i
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && compare1!=compare2&& tmp<10&&test=0){
    count=count+1;
    }
    if(compare2<day && tmp<10&&test=0){
    count=count+1;
    }
    }
printf("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected ';' before 'compare1'
    8 |         test=month%i
      |                     ^
      |                     ;
    9 |         compare1=tmp*10+i;
      |         ~~~~~~~~     
main.c:11:61: error: lvalue required as left operand of assignment
   11 |         if(compare1<day && compare1!=compare2&& tmp<10&&test=0){
      |                                                             ^
main.c:14:36: error: lvalue required as left operand of assignment
   14 |     if(compare2<day && tmp<10&&test=0){
      |                                    ^
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0,tmp=0,compare1,compare2=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int i;i<10;i++){
	tmp=month/i;
  
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && compare1!=compare2&& tmp<10){
    count=count+1;
    }
    if(compare2<day && tmp<10){
    count=count+1;
    }
    }
print("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:18:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 | print("%d",count);
      | ^~~~~
      | printf
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0,tmp=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int i;i<10;i++){
	tmp=month/i;
  
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && compare1!=compare2&& tmp<10){
    count=count+1;
    }
    if(compare2<day && tmp<10){
    count=count+1;
    }
    }
print("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'compare1' undeclared (first use in this function)
    9 |         compare1=tmp*10+i;
      |         ^~~~~~~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:5: error: 'compare2' undeclared (first use in this function)
   10 |     compare2=i*10+tmp;
      |     ^~~~~~~~
main.c:18:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 | print("%d",count);
      | ^~~~~
      | printf
Language: C

#include	<stdio.h>
int main(){
int month=0,day=0,count=0;
scanf("%d",&month);//tuki
scanf("%d",&day);//hiniti
for(int i;i<10;i++){
	tmp=month/i;
  
  	compare1=tmp*10+i;
    compare2=i*10+tmp;
  	if(compare1<day && compare1!=compare2&& tmp<10){
    count=count+1;
    }
    if(compare2<day && tmp<10){
    count=count+1;
    }
    }
print("%d",count);
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'tmp' undeclared (first use in this function)
    7 |         tmp=month/i;
      |         ^~~
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:9: error: 'compare1' undeclared (first use in this function)
    9 |         compare1=tmp*10+i;
      |         ^~~~~~~~
main.c:10:5: error: 'compare2' undeclared (first use in this function)
   10 |     compare2=i*10+tmp;
      |     ^~~~~~~~
main.c:18:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 | print("%d",count);
      | ^~~~~
      | printf
Language: C++

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

int main(){
  int m,d,ans = 0;cin >> m >> d;
  int a,b;
  for(int i=1;i<=m;i++){// i=月
    for(int j=1;j<=d;j++){
      a = j%10;
      b = j/10;
      if(a >= 2 && b >= 2 && a*b == i){ans += 1;
    }
  }
  cout << ans << endl;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char D[100];
    int M;
    int count = 0;
    cin >> M >> D;

    for(int i = 0; i < M; i++)
    {
        for(int j = 0; j < D; j++)
        {
            if(D[0] * D[1] == M)
            {
                count++;
            }
        }
    }

    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         for(int j = 0; j < D; j++)
      |                        ~~^~~
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
#include <cmath>
#include <queue>
#include <stack>
#include <string>
#include <map>

#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;

using namespace std;


int inputValue(){
    int a;
    cin >> a;
    return a;
};

void inputArray(int * p, int a){
    rep(i, a){
        cin >> p[i];
    }
};

void inputVector(vector<int> * p, int a){
    rep(i, a){
        int input;
        cin >> input;
        p -> push_back(input);
    }
}

template <typename T>
void output(T a, int precision) {
    if(precision > 0){
        cout << setprecision(precision)  << a << "\n";
    }
    else{
        cout << a << "\n";
    }
}

int main(int argc, const char * argv[]) {
    
    // source code
  int n = inputValue();
  int k = inputValue();
  int a[n];
  int init[n];
  int dist[n];
  ll answer;
  ll div = 10*10*10*10*10*10*10*10*10 + 9;
  inputArray(a,n);
  map<int,int> mapdict{};
  rep(i,n)
  {
    if(mapdict.count(i) == 0)
    {
      mapdict.emplace(i,1);
    }
    else
    {
      mapdict(i)++;
    }
  }
  rep(i,n)
  {
	repd(j,0,i)
    {
      if(a[i]<a[j])
      {
        init[i]++;
      }
    }
    for (const auto& [key, value] : mapdict){
      if(key < a[i])break;
      dist[i] += value;
    }
  }
  rep(i,n)
  {
    answer += init[i] + dist[i] * (k - 1);
    if(answer >= div)
    {
      answer = answer%div;
    }
  }
  
  
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:70:14: error: no match for call to '(std::map<int, int>) (int&)'
   70 |       mapdict(i)++;
      |       ~~~~~~~^~~
Language: C++

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

int main() {
  int D,M,A,B;
  cin >> D;
  cin >> M;
  A = B % 10;
  B = D / 10;
  int i = 1;
  int n = 0;
  while (i <= M * D){
    if (M == A * B){
      n = n+1;
    }
    i=i+1
  }
      cout << n << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: expected ';' before '}' token
   16 |     i=i+1
      |          ^
      |          ;
   17 |   }
      |   ~
Language: C++


#define REP(i,n) for(int i=0;i<n;i++)
#define FOR(i,n,m) for(int i=n;i<m;i++)

using namespace std;

int main(){
  int m,n;cin >> m >> n;
  int ans = 0;
  FOR(i,1,m+1){
   FOR(j,1,n+1){
     int d1=j/10;int d2=j%10;
     if(i==(d1*d2) && (d1>1) && (d2>1) ) ans++;
   }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'cin' was not declared in this scope
    8 |   int m,n;cin >> m >> n;
      |           ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << ans << endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

include <iostream>
using namespace std;

int main() {
	int M, D;
	cin >> M;
	cin >> D;
	int days = 0;
		for(int i = 4; i <= M; i++) {
			for(int j = 22; j <= D; j++) {
				if(j%10 * j/10 == M) {
					days++;
					if((j%10 != j/10) && (j%10) * 10 + j/10 <= D) days++;
					break;
				}
			}
		}
	cout << days;
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> M;
      |         ^~~
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << days;
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;

	int main() {
		int M, D:
      	cin >> M;
      	cin >> D;
		int days = 0;
		for(int i = 4; i <= M; i++) {
			for(int j = 22; j <= D; j++) {
				if(j%10 * j/10 == M) {
					days++;
					if((j%10 != j/10) && (j%10) * 10 + j/10 <= D) days++;
					break;
				}
			}
		}
		cout << days;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: found ':' in nested-name-specifier, expected '::'
    5 |                 int M, D:
      |                         ^
      |                         ::
a.cc:5:24: error: 'D' has not been declared
    5 |                 int M, D:
      |                        ^
a.cc:6:13: error: qualified-id in declaration before '>>' token
    6 |         cin >> M;
      |             ^~
a.cc:7:16: error: 'D' was not declared in this scope
    7 |         cin >> D;
      |                ^
a.cc: At global scope:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: Java

import java.util.*;
class main{
  public static void main (String [] args){
    Scanner stdIn = new Scanner(System.in);
    int M = stdIn.nextInt();
    int D = stdIn.nextInt();
    int d1; int d10;
    int count;
    for(int i=1;i<=M;i++){
      for(int j=1;j<=D;j++){
        d1=j%10; d10=j/10;
        if(d1>=2&&d10>=2) 
          if(d1*d10==i) count++;
      }
    }
    System.out.println(count);
    
  }
  
  
  
  
}

Compiler output:
Main.java:13: error: variable count might not have been initialized
          if(d1*d10==i) count++;
                        ^
Main.java:16: error: variable count might not have been initialized
    System.out.println(count);
                       ^
2 errors
Language: Java

import java.util.*;
public class Soln {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int M = sc.nextInt(), D = sc.nextInt();
		int days = 0;
		for(int i = 4; i <= M; i++) {
			for(int j = 22; j <= D; j++) {
				if(j%10 * j/10 == M) {
					days++;
					if((j%10 != j/10) && (j%10) * 10 + j/10 <= D) days++;
					break;
				}
			}
		}
		System.out.println(days);
	}
}

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

import java.util.*;
public class Soln {
	static int nBurgersPossible(int buns, int center) {
		if(buns >= center*2) return center;
		return buns/2;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int M = sc.nextInt(), D = sc.nextInt();
		int days = 0;
		for(int i = 4; i <= M; i++) {
			for(int j = 22; j <= D; j++) {
				if(j%10 * j/10 == M) {
					days++;
					if((j%10) * 10 + j/10 <= D) days++;
					break;
				}
			}
		}
		System.out.println(days);
	}
}

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

import java.util.*;
class main{
  public static void main (string [] args){
    Scanner stdIn = new Scanner(System.in);
    int M = stdIn.nextInt();
    int D = stdIn.nextInt();
    int d1; int d10;
    int count;
    for(int i=1;i<=M;i++){
      for(int j=1;j<=D;j++){
        d1=j%10; d10=j/10;
        if(d1>=2&&d10>=2) 
          if(d1*d10==i) count++;
      }
    }
    System.out.println(count);
    
  }
  
  
  
  
}

Compiler output:
Main.java:3: error: cannot find symbol
  public static void main (string [] args){
                           ^
  symbol:   class string
  location: class main
1 error
Language: C++

import java.util.*;
class main{
  public static void main (string [] args){
    Scanner stdIn = new Scanner(System.in);
    int M = stdIn.nextInt();
    int D = stdIn.nextInt();
    int d1; int d10;
    int count;
    for(int i=1;i<=M;i++){
      for(int j=1;j<=D;j++){
        d1=j%10; d10=j/10;
        if(d1>=2&&d10>=2) 
          if(d1*d10==i) count++;
      }
    }
    System.out.println(count);
    
  }
  
  
  
  
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:9: error: expected ':' before 'static'
    3 |   public static void main (string [] args){
      |         ^~~~~~~
      |         :
a.cc:3:28: error: 'string' has not been declared
    3 |   public static void main (string [] args){
      |                            ^~~~~~
a.cc:3:38: error: expected ',' or '...' before 'args'
    3 |   public static void main (string [] args){
      |                                      ^~~~
a.cc:3:17: error: return type specification for constructor invalid
    3 |   public static void main (string [] args){
      |                 ^~~~
a.cc:3:10: error: constructor cannot be static member function
    3 |   public static void main (string [] args){
      |          ^~~~~~
a.cc:23:2: error: expected ';' after class definition
   23 | }
      |  ^
      |  ;
a.cc: In constructor 'main::main(int*)':
a.cc:4:5: error: 'Scanner' was not declared in this scope
    4 |     Scanner stdIn = new Scanner(System.in);
      |     ^~~~~~~
a.cc:5:13: error: 'stdIn' was not declared in this scope; did you mean 'std'?
    5 |     int M = stdIn.nextInt();
      |             ^~~~~
      |             std
a.cc:16:5: error: 'System' was not declared in this scope
   16 |     System.out.println(count);
      |     ^~~~~~
Language: C++

int main()
{
  int M, D, i, count;
  scanf("&d &d", &M, &D);
  int d10 = D / 10;
  int d1 = D - d10;
  
  for(i = 0; i < M; i++)
  {
    if(d1 * d10 == M)
      count++;
  }
  
  printf("%d\n", count);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("&d &d", &M, &D);
      |   ^~~~~
a.cc:14:3: error: 'printf' was not declared in this scope
   14 |   printf("%d\n", count);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

#include <iostream>
int main(){
int m;
ind d;
int count = 0;
cin >> m;
cin >> d;
int d_temp = 22;
while(d_temp <= d ){
	int a = d_temp% 10;
  	int b = d_temp/10;
 for(int i = 4; i <= m; i++){
   if(a*b == m){
   count++;}
 }
}
  cout << count;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'ind' was not declared in this scope; did you mean 'int'?
    4 | ind d;
      | ^~~
      | int
a.cc:6:1: 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:7:8: error: 'd' was not declared in this scope
    7 | cin >> d;
      |        ^
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout << count;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

int main()
{
  int M, D, i, count = 0;
  scanf("%d %d", &M, &D);
  int d10 = D / 10;
  int d1 = D - d10;
  
  for(i = 0; i < M; i++)
  {
    if(d1 * d10 == M)
      count++;
  }
  
  printf("%d\n", count);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d %d", &M, &D);
      |   ^~~~~
a.cc:14:3: error: 'printf' was not declared in this scope
   14 |   printf("%d\n", count);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <sstream>
using namespace std;

#define MAX 100

int main()
{
    int M, D, sqrtm;
    long long int count;
    cin >> M >> D;
    count =0;
    if(M <= 3){
        cout << 0 << endl;
    }else{
        for(int m=4; m<=M; m++){
            sqrtm = sqrt(m);
            1f(m==100){
                sqrtm = 9;
            }
            for(int i=2; i<=sqrtm; i++){
                //cout << i << ":" ;
                if(m%i==0){
                    if(10*(m/i)+i<=D){
                        //cout<< "pattern1 " << 10*(m/i)+i << " ";
                        count++;
                    }if((i!=(m/i))&&(10*i+(m/i)<=D)){
                        //cout <<"pattern2 " << 10*i + (m/i) << " ";
                        count++;
                    }
                }
            }
        }
        cout <<count<< endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: unable to find numeric literal operator 'operator""f'
   21 |             1f(m==100){
      |             ^~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
    int m,d;
    cinm>>m>>d;
  
    int sol = 0;

    for(int i = 22 ; i <= d ; i++)
    {
      int d0 = i%10;
      int d1 = i/10;

      if(d0 >=2 && d1 >=2 && d1*d2 <= m)
      sol++;
    }

    cout<<sol<<endl;
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cinm' was not declared in this scope
    8 |     cinm>>m>>d;
      |     ^~~~
a.cc:17:33: error: 'd2' was not declared in this scope; did you mean 'd1'?
   17 |       if(d0 >=2 && d1 >=2 && d1*d2 <= m)
      |                                 ^~
      |                                 d1
Language: C++

int main()
{
  int M = 0, D = 0, i, count = 0;
  scanf("%d %d", &M, &D);
  int d10 = D / 10;
  int d1 = D - d10;
  
  for(i = 0; i < M; i++)
  {
    if(d1 * d10 == M)
      count++;
  }
  
  printf("%d\n", count);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d %d", &M, &D);
      |   ^~~~~
a.cc:14:3: error: 'printf' was not declared in this scope
   14 |   printf("%d\n", count);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

int main(void)
{
  int M, D, i, count;
  scanf_s("%d %d", &M, &D);
  int d10 = D / 10;
  int d1 = D - d10;
  
  for(i = 0; i < M; i++)
  {
    if(d1 * d10 == M)
      count++;
  }
  
  printf_s("%d\n", count);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf_s' was not declared in this scope
    4 |   scanf_s("%d %d", &M, &D);
      |   ^~~~~~~
a.cc:14:3: error: 'printf_s' was not declared in this scope
   14 |   printf_s("%d\n", count);
      |   ^~~~~~~~
Language: C++

#include"stdc++.h"
using namespace std;

int main()
{
	int m = 0, d = 0;
	cin >> m >> d;
	int d1, d2;
	int ans = 0;
	for (int i = 1; i <= m; i++)
	{
		for (int n = 1; n <= d; n++)
		{
			d1 = n / 10;
			d2 = n % 10;
			if ((d1 >= 2) && (d2 >= 2) && (i == d1 * d2))
			{
				ans += 1;
			}
		}
	}
	cout << ans << endl;
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
cin>>n>>m;
  for(int i=1;i<=n;i++)
    for(int j=1;j<=m;j++)
    {
      int a=j%10;
      int b=j/10;
      if(a>=2&&b>=2&&a*b==j)
        cnt++;
    }
  cout<<cnt<<endl;
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 | cin>>n>>m;
      |      ^
      |      yn
a.cc:5:9: error: 'm' was not declared in this scope; did you mean 'tm'?
    5 | cin>>n>>m;
      |         ^
      |         tm
a.cc:12:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |         cnt++;
      |         ^~~
      |         int
a.cc:14:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   14 |   cout<<cnt<<endl;
      |         ^~~
      |         int
Language: C++

#include<bits/stdc++.h>
using namespace std;
int taka(int m,int d){
  if(m<4||d<22) return 0;
  int i=22, prod, count = 0;
  while(i<=D){
    if(i%10 >=2){
      prod = (i/10)*(i%10);
      if(prod<=m) count++;
    }
    ++i;
  }
  return count;
}
int main(){
  int m,d,ans;
  cin>>m>>d;
  ans = taka(m,d);
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int taka(int, int)':
a.cc:6:12: error: 'D' was not declared in this scope
    6 |   while(i<=D){
      |            ^
Language: C++

const Main = (input) {
  const [m, d] = input.split(" ").map(n => Number(n));
  let count = 0;
  for (let i = 1; i <= m; i++) {
    for (let p = 2; p <= (d / 10); p++) {
      if (Number.isInteger(i / p)
          && i / p < 10
          && i / p >= 2
          && (i / p) + (p * 10) <= d ) {
        count++;
      }
    }
  }
  console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

Compiler output:
a.cc:1:7: error: 'Main' does not name a type
    1 | const Main = (input) {
      |       ^~~~
a.cc:16:5: error: expected constructor, destructor, or type conversion before '(' token
   16 | Main(require("fs").readFileSync("/dev/stdin", "utf8"));
      |     ^
Language: C++

#include<stdio.h>
#include<iostream>
using namespace std;

int main()
{
  	int m,d;
    cin>>m>>d;
    int ans=0;
    for(int i=1;i<=m;i++)
    {
        for(int j=10;j<=min(d,99);j++)
        {
            int d1=j%10;
            int t=floor(j/10.0);
            int d2=t%10;
            if(d1>=2&&d2>=2&&d1*d2==i)
            {
                ans++;
                //printf("%d %d %d\n",d2,d1,i);
            }
        }
    }
    printf("%d\n",ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 'floor' was not declared in this scope
   15 |             int t=floor(j/10.0);
      |                   ^~~~~
Language: C++

int main(void)
{
  int M, D, i, count;
  scanf("%d %d", &M, &D);
  int d10 = D / 10;
  int d1 = D - d10;
  
  for(i = 0; i < M; i++)
  {
    if(d1 * d10 == M)
      count++;
  }
  
  printf("%d\n", count);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d %d", &M, &D);
      |   ^~~~~
a.cc:14:3: error: 'printf' was not declared in this scope
   14 |   printf("%d\n", count);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
Language: C++

#include//0-1 knapsack
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mk make_pair
#define REP(i,a,b) for(int i=a; i<=b; i++)

int main()
{
    int m, d;
    cin >> m >> d;
    int ans = 0;
    REP(i,1,m)
    {
        REP(j,22,d)
        {
            int a = j%10, b = j/10;
            if (a >= 2 && b >= 2 && a*b == i)
            {
                //cout << m << " " << a << b << endl;
                ans += 1;
            }
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc:1:23: error: #include expects "FILENAME" or <FILENAME>
    1 | #include//0-1 knapsack
      |                       ^
Language: C++

int main()
{
  int M, D, i, count;
  scanf("%d %d", &M, &D);
  int d10 = D / 10;
  int d1 = D - d10;
  
  for(i = 0; i < M; i++)
  {
    if(d1 * d10 == M)
      count++;
  }
  
  printf("%d\n", count);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d %d", &M, &D);
      |   ^~~~~
a.cc:14:3: error: 'printf' was not declared in this scope
   14 |   printf("%d\n", count);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C

#include <iostream>
using namespace std;
int	A(), main();

int main()
{
	A();
    return 0;
}

int A() {
	int M, D;
	cin >> M >> D;
	
	int count = 0;

	for (int im = 1; im <= M; im++) {
		for (int id = 1; id <= D; id++) {
			int d10, d1;
			d10 = id / 10;
			d1 = id % 10;

			if (d10 <= 1 || d1 <= 1) continue;
			if (d10 * d1 == im) {
				//cout << im << "/" << id << " is SEKINOHI" << endl;
				count++;
			}
		}
	}

	cout << count++ << endl;

	return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

    #include<stdio.h>
    int main(int M, int D)
    {
    	int i,j;
    	int d1=0,d10=0;	
    	int count=0;
    	for(i=1;i<M;i++){
    		for(j=1;j<D;j++){
    			d1=j%10;
    			d10=j/10;
    			if(d1>=2&&d10>=2&&d1*d10=i)count++;
    		}
    	}
		return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:11:49: error: lvalue required as left operand of assignment
   11 |                         if(d1>=2&&d10>=2&&d1*d10=i)count++;
      |                                                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d,e;
   


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: expected '}' at end of input
    4 |   int a,b,c,d,e;
      |                 ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <iostream>
using namespace std;
int	A(), main();

int main()
{
	A();
}

int A() {
	int M, D;
	cin >> M >> D;
	
	int count = 0;

	for (int im = 1; im <= M; im++) {
		for (int id = 1; id <= D; id++) {
			int d10, d1;
			d10 = id / 10;
			d1 = id % 10;

			if (d10 <= 1 || d1 <= 1) continue;
			if (d10 * d1 == im) {
				//cout << im << "/" << id << " is SEKINOHI" << endl;
				count++;
			}
		}
	}

	cout << count++ << endl;

	return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        int m = stdIn.nextInt();
        int d = stdIn.nextInt();
        int count = 0;
        
        
        for(int i = 1; i <= m; i++){
            for(int j = 10; j <= d; j++){
                int k = j % 10;
                int h = j / 10;
                if(i == k * h && k != 1 && h != 1){
                    count++;
                }
            }
        }
        
        System.out.println(count);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C

#include<stdio.h>
int main(int M, int D)
{
	int i,j;
	int d1=0,d10=0;	
	int count=0;
	for(i=1;i<M;i++){
		for(j=1;j<D;j++){
			d1=j%10;
			d10=j/10;
			if(d1>=2&&d10>=2&&d1*d10=i)count++;
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:11:49: error: lvalue required as left operand of assignment
   11 |                         if(d1>=2&&d10>=2&&d1*d10=i)count++;
      |                                                 ^
Language: C

// 第一回日本最強プログラマー学生選手権-予選-c.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include <iostream>
using namespace std;
int	A();

int main()
{
	A();
}

int A() {
	int M, D;
	cin >> M >> D;
	
	int count = 0;

	for (int im = 1; im <= M; im++) {
		for (int id = 1; id <= D; id++) {
			int d10, d1;
			d10 = id / 10;
			d1 = id % 10;

			if (d10 <= 1 || d1 <= 1) continue;
			if (d10 * d1 == im) {
				//cout << im << "/" << id << " is SEKINOHI" << endl;
				count++;
			}
		}
	}

	cout << count++ << endl;

	return 0;
}


Compiler output:
main.c:4:10: fatal error: iostream: No such file or directory
    4 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main()
{
  int M,D,a,b;
  cin >>M;
  cin >>D;
  A[110]={0};
  if(D<20) cout<<0<<endl;
  else if(D>=20){
    for(int i=20;i<=D;i++){
      a=i/10;
      b=i%10;
      A[a*b]+=1;
    }
    int ans=0;
    for(int i=4;i<=M;i++) ans+=a[i];
    cout<<ans<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'A' was not declared in this scope
    9 |   A[110]={0};
      |   ^
a.cc:18:33: error: invalid types 'int[int]' for array subscript
   18 |     for(int i=4;i<=M;i++) ans+=a[i];
      |                                 ^
Language: C++

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

int main(){
  int M,D,count;
  cin >> M >> D;
  for(int i=1;i<M+1;i++){
    for(int j=1;j<D+1;j++){
      if(D >= 22){
        if((D/10) * (D%19) == M){
          count++;
        }
      }
    }
  }
  cout << count << endl;
}
        

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

// #include <stdio.h>
// #include <string.h>
//#include <iostream>
#include <utility>
#include <cstdio>
#include <stack>
#include <queue>
#include <algorithm>
#include <map>
#include <string>
#include <set>

using namespace std;
typedef pair<int, int> XY;// Pair型変数の宣言
    
int main()
{
  	int Nmax = 100000;
    char String[Nmax];
    int N;
    int i,j,k;
    int len;   // 文字列の長さ
    int flag=0;
    int t[Nmax];
    int x[Nmax];
    int y[Nmax];
    int M,D;
    int count = 0;
    int d1,d10;
    int d,m;
 /*   
    // int型スタック
    stack<int> stack;   
    stack.push(777);
    stack.push(778);
    stack.push(779);
  
	int tmpsl = stack.top();  // LAST要素の参照
 // 	int tpmsf = stack.back(); // FIRST要素の参照
 //	printf("%d %d \n",tmpsl,tmpsf);
    stack.pop();// LAST要素の削除（取出しではない）
 // 	if( stack.empty() == true) printf("empty stack\n");
     
    // int型キュー
    queue<int> que;
  	que.push(999);
  	que.push(998);   
  	que.push(997);    
  	int tmpqs = que.front(); // FIRST要素の参照
  	int tmpqe = que.back();  // LAST要素の参照
 //	printf("%d %d \n",tmpqs,tmpqe);
  	que.pop();  // FIRST要素の削除（取出しではない）
  //	if( que.empty() == true) printf("empty que\n");
    
    // ２次元座標を扱うキュー
    queue<XY> xyque; // ２次元座標型変数のキュー
  	XY p; 
  	xyque.pop();	// FIRST要素の削除。キューが空のときは削除が予約されて次のPOPが即削除される
  	xyque.push( XY(5,5) );
    xyque.push( XY(5,5) );
   	p = xyque.front();  // FIRST要素からのコピー
 // 	printf("%d %d\n", p.first, p.second);
  	
    
  que.back();
  //  sort(&(que.front()), &(que.back()));
        
 */   
      
    // 入力読込
    // 文字列
 //   scanf("%s", String);   
    
    // 数列
    scanf("%d %d", &M,&D);
//    for(i=1;i<=N;i++){
//        scanf("%d %d %d",&t[i],&x[i],&y[i]);
//    }
    
    // 文字列の長さをチェック
    // 文字列は配列の0からlen-1に格納されてる
//    len = strlen( String );
//  	printf("%d\n",len);
    
    for(m=1;m<=M;m++){
        for(d=1;d<=D;d++){
            d1 = d%10;
            d10 = d/10;
            if((m == d1*d10) && (d1>=2) && (d10 >=2)  count++;
        }
    }
    
    
    // 結果出力
    printf("%d",count);
/*    
    if(flag == -1)
        printf("NO \n");
    else
        printf("YES \n");
  */      
  
  return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:89:53: error: expected ';' before 'count'
   89 |             if((m == d1*d10) && (d1>=2) && (d10 >=2)  count++;
      |                                                     ^ ~~~~~
      |                                                     ;
a.cc:90:9: error: expected primary-expression before '}' token
   90 |         }
      |         ^
a.cc:89:63: error: expected ')' before '}' token
   89 |             if((m == d1*d10) && (d1>=2) && (d10 >=2)  count++;
      |               ~                                               ^
      |                                                               )
   90 |         }
      |         ~                                                      
a.cc:90:9: error: expected primary-expression before '}' token
   90 |         }
      |         ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define rep(X,N) for(int X = 0; X < (N); X++)
#define pback push_back
#define mpair make_pair
#define MODN 1000000007
#define ceilint(A, B) ((A) + (B - 1)) / (B)
#define ALL(v) (v).begin(), (v).end()

using namespace std;

int main(){

    int m,d;

    int ans = 0;

    for(int i = 1; i <= m; i++){
        for(int j = 1; j <= d; j++){
            int d1 = j / 10;
            int d2 = j % 10;

            if(d1 >= 2 && d2 => 2 && m == d1 * d2) ans++;
        }
    }

    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:31: error: expected primary-expression before '>' token
   23 |             if(d1 >= 2 && d2 => 2 && m == d1 * d2) ans++;
      |                               ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define E "\n"

using namespace std;
const long long MOD = (long long)1e9 + 7;

int m, d;

int main()
{
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	cin >> m >> d;
	int cnt = 0;
	for (int i = 22; i <= d; i++) {
		if (i % 10 >= 2 && i / 10 >= 2) {
			for (int j = 4; j <= m; j++)
				if ((i % 10)*(i / 10) == j) cnt++;
		}
	}
	cout << cnt << E;
	//system("pause");
	return 0;
}

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