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

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

#define rep(i,n) for(int i=0;i<(n);++i)
#define loop for(;;)
#define trace(var) cerr<<">>> "<<#var<<" = "<<var<<endl;
#define all(v) begin(v),end(v)
#define pb push_back
#define inf (1e9)
#define eps (1e-9)

typedef long long Integer;
typedef vector<int> vi;

vi lsi(vi xs) {
  vvi bins;
  vi bots;
  for (int x: xs) {
    auto it = lower_bound(begin(bots), end(bots), x);
    if (it == end(bots)) {
      bins.push_back({x});
      bots.push_back(x);
    } else {
      bins[it - begin(bots)].push_back(x);
      *it = x;
    }
  }
  int n = bots.size();
  vi ret(n);
  int x = inf;
  for (--n; n>=0; --n) {
    reverse(begin(bins[n]), end(bins[n]));
    x = *(lower_bound(begin(bins[n]), end(bins[n]), x) - 1);
    ret[n] = x;
  }
  return ret;
}

int solve(int n, Integer s) {
  vi xs(10);
  vi ys(n);
  rep (i, 10) xs[i] = i;
  set<vi> aa;
  do {
    Integer t = 0;
    rep (i, n) {
      t += xs[i] * (i+1);
      ys[i] = xs[i];
    }
    if (t == s) {
      aa.insert(ys);
    }
  } while (next_permutation(all(xs)));
  return aa.size();
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  cout.setf(ios::fixed);
  cout.precision(10);
  random_device dev;
  mt19937 rand(dev());

  int n; Integer s;
  while (cin >> n >> s) {
    cout << solve(n, s) << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'vi lsi(vi)':
a.cc:16:3: error: 'vvi' was not declared in this scope; did you mean 'vi'?
   16 |   vvi bins;
      |   ^~~
      |   vi
a.cc:21:7: error: 'bins' was not declared in this scope
   21 |       bins.push_back({x});
      |       ^~~~
a.cc:24:7: error: 'bins' was not declared in this scope
   24 |       bins[it - begin(bots)].push_back(x);
      |       ^~~~
a.cc:32:19: error: 'bins' was not declared in this scope
   32 |     reverse(begin(bins[n]), end(bins[n]));
      |                   ^~~~
Language: C++

include<iostream>
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
using namespace std;

int sum;
int n,s;

void func(int i,int j,bool check[10]){
  if(j<0)return;
  if(i==n && j==0)sum++;
  for(int k=0;k<10;k++){
    if(check[k]){
      check[k]=false;
      func(i+1,j-k*(i+1),check);
      check[k]=true;
    }
  }
}

int main(){
  while(cin>>n>>s){
    bool ch[10];
    rep(i,10)ch[i]=true;
    sum=0;
    func(0,s,ch);
    cout<<sum<<endl;
  }
  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:22:9: error: 'cin' was not declared in this scope
   22 |   while(cin>>n>>s){
      |         ^~~
a.cc:27:5: error: 'cout' was not declared in this scope
   27 |     cout<<sum<<endl;
      |     ^~~~
a.cc:27:16: error: 'endl' was not declared in this scope
   27 |     cout<<sum<<endl;
      |                ^~~~
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
 
using namespace std;
 
#define rep(i,n) for(int i=0; i<(n); i++)
#define repc(i,s,e) for(int i=(s); i<(e); i++)
#define pb(n) push_back((n))
#define mp(n,m) make_pair((n),(m))
#define all(r) r.begin(),r.end()
#define fi first
#define se second
 
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<ll> vl;
typedef vector<vl> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
 
 
const int INF = 10000000;
const int MOD = 1e9 + 7;
 

int main(){
	int n, s, ans;
	while(cin>>n>>s){
		if(n == 0 && s == 0) break;
		vector<int> v(10, 0);
		rep(i, n) v[i] = i;
		set<vector<int> > st;
		ans = 0;
		do{
			vi u(v.begin(), v.begin() + n);
			if(st.conunt(u)) continue;
			st.insert(u);
			int sum = 0;
			for(int i =0; i < n; i++){
				sum += v[i] * (i + 1);
			}
			if(sum == s) ans++;
		}while(next_permutation(all(v));
		cout<<ans<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:31: error: 'class std::set<std::vector<int> >' has no member named 'conunt'; did you mean 'count'?
   50 |                         if(st.conunt(u)) continue;
      |                               ^~~~~~
      |                               count
a.cc:57:48: error: expected ')' before ';' token
   57 |                 }while(next_permutation(all(v));
      |                       ~                        ^
      |                                                )
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
 
using namespace std;
 
#define rep(i,n) for(int i=0; i<(n); i++)
#define repc(i,s,e) for(int i=(s); i<(e); i++)
#define pb(n) push_back((n))
#define mp(n,m) make_pair((n),(m))
#define all(r) r.begin(),r.end()
#define fi first
#define se second
 
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<ll> vl;
typedef vector<vl> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
 
 
const int INF = 10000000;
const int MOD = 1e9 + 7;
 

int main(){
	int n, s, ans;
	while(cin>>n>>s){
		if(n == 0 && s == 0) break;
		vector<int> v(10, 0);
		rep(i, n) v[i] = i;
		set<vector<int> > st;
		ans = 0;
		do{
			vi u(v.begin(), v.begin() + n);
			if(st.count(u)) continue;
			st.insert(u);
			int sum = 0;
			for(int i =0; i < n; i++){
				sum += v[i] * (i + 1);
			}
			if(sum == s) ans++;
		}while(next_permutation(all(v));
		cout<<ans<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:57:48: error: expected ')' before ';' token
   57 |                 }while(next_permutation(all(v));
      |                       ~                        ^
      |                                                )
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<time.h>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double EPS=1e-10;
const int inf=1e8;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
using namespace std;
int main(){
	int n,s;
	while(cin>>n>>s){
		vi d(10);
		int co=0;
		rep(i,10)d[i]=i;
		do{
			do{
				int sum=0;
				rep(i,n)sum+=(i+1)*d[i];
				if(sum==s){
					co++;
				}
			}while(next_permutation(d.begin(),d.begin+n));
		}while(next_combination(d.begin(),d.begin()+n,d.end()));
		cout<<co<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:66: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
   38 |                         }while(next_permutation(d.begin(),d.begin+n));
      |                                                           ~~~~~~~^~
      |                                                             |     |
      |                                                             |     int
      |                                                             <unresolved overloaded function type>
a.cc:39:24: error: 'next_combination' was not declared in this scope
   39 |                 }while(next_combination(d.begin(),d.begin()+n,d.end()));
      |                        ^~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int rec() {
	if (choose_size == N) {
		int sum = 0;
		for (int i = 0; i < N; i++) {
			sum += (i + 1) * choose[i];
		}
		return ans == sum;
	}

	int cnt = 0;
	for (int i = 0; i < rest_size; i++) {
		choose[choose_size++] = rest[i];
		for (int j = i; j < rest_size-1; j++) {
			rest[j] = rest[j + 1];
		}
		rest_size--;
		
		cnt += rec();

		rest_size++;
		for (int j = rest_size-1; j > i; j--) {
			rest[j] = rest[j-1];
		}
		rest[i] = choose[--choose_size];
	}
	return cnt;
}

void q70() {
	int n, s;
	for (; cin >> n >> s;) {
		N = n;
		ans = s;
		choose_size = 0;
		for (int i = 0; i < MAX_N; i++) {
			rest[i] = i;
		}
		rest_size = 10;
		cout << rec() << endl;;
	}
}

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

Compiler output:
a.cc: In function 'int rec()':
a.cc:8:13: error: 'choose_size' was not declared in this scope
    8 |         if (choose_size == N) {
      |             ^~~~~~~~~~~
a.cc:8:28: error: 'N' was not declared in this scope
    8 |         if (choose_size == N) {
      |                            ^
a.cc:11:42: error: 'choose' was not declared in this scope
   11 |                         sum += (i + 1) * choose[i];
      |                                          ^~~~~~
a.cc:13:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |                 return ans == sum;
      |                        ^~~
      |                        abs
a.cc:17:29: error: 'rest_size' was not declared in this scope
   17 |         for (int i = 0; i < rest_size; i++) {
      |                             ^~~~~~~~~
a.cc:18:17: error: 'choose' was not declared in this scope
   18 |                 choose[choose_size++] = rest[i];
      |                 ^~~~~~
a.cc:18:24: error: 'choose_size' was not declared in this scope
   18 |                 choose[choose_size++] = rest[i];
      |                        ^~~~~~~~~~~
a.cc:18:41: error: 'rest' was not declared in this scope
   18 |                 choose[choose_size++] = rest[i];
      |                                         ^~~~
a.cc: In function 'void q70()':
a.cc:38:17: error: 'N' was not declared in this scope
   38 |                 N = n;
      |                 ^
a.cc:39:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   39 |                 ans = s;
      |                 ^~~
      |                 abs
a.cc:40:17: error: 'choose_size' was not declared in this scope
   40 |                 choose_size = 0;
      |                 ^~~~~~~~~~~
a.cc:41:37: error: 'MAX_N' was not declared in this scope
   41 |                 for (int i = 0; i < MAX_N; i++) {
      |                                     ^~~~~
a.cc:42:25: error: 'rest' was not declared in this scope
   42 |                         rest[i] = i;
      |                         ^~~~
a.cc:44:17: error: 'rest_size' was not declared in this scope
   44 |                 rest_size = 10;
      |                 ^~~~~~~~~
Language: C++

#include <iostream>
#include<cstdlib>
using namespace std;
int table[10+1][331];
bool memo[10];
int n;

void rec(int depth, int sum) {
	table[depth][sum]++;
	for (int i = 0; i <= 9; i++) {
		if (memo[i]) continue;
		memo[i] = true;
		rec(depth + 1, sum + i * (depth+1));
		memo[i] = false;
	}
}

void q70() {
	memset(table, 0, sizeof(table));
	memset(memo, 0, sizeof(memo));
	rec(0, 0);
	int n, s;
	for (; cin >> n >> s;) {
		if (n > 10 || s > 330) {
			cout << "0" << endl;
			continue;
		}
		cout << table[n][s] << endl;
	}
}

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

Compiler output:
a.cc: In function 'void q70()':
a.cc:19:9: error: 'memset' was not declared in this scope
   19 |         memset(table, 0, sizeof(table));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdlib>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include <iostream>
#include <vector>
#include <string>
using namespace std;

int num[10];
long  fact[10],dp[10][331];//??????331??\?????????????????¨????????????dp[10][1000]??¨?????§???????????????

int main(){
	for(int i = 0; i < 10; i++){
		num[i] = i;
	}

	do{
		int t = 0;
		for(int i = 0; i < 10; i++){
			t += num[i]*(i+1);
			dp[i][t]++;
		}
	}while(next_permutation(num,num+10));

	fact[0] = 1;
	for(int i = 1; i < 10; i++){
		fact[i] = fact[i-1]*i;
	}

	int n,s;
	while(cin>>n>>s){
		if(n > 10 || s > 330){
			cout<<0<<endl;
			continue;
		}
		if(n == 0){
			if(s == 0) cout<<1<<endl;
			else cout<<0<<endl;
			continue;
		}
		cout<<dp[n-1][s]/fact[10-n]<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: 'next_permutation' was not declared in this scope
   20 |         }while(next_permutation(num,num+10));
      |                ^~~~~~~~~~~~~~~~
Language: C++


#include <iostream>

using namespace std;

typedef struct { int val[10]; } numType;

int func(int n, int s, numType set) {
	int sum = 0;
	int new_n;
	if (n <= 0) return 0;
	if (n == 1) {
		if (s >= 9) return 0;
		return (set.val[s] != 1) ? 0 : 1;
	}
	for (int k = 9; k >= 0; k--) {
		if (set.val[k] == 0) continue;
		new_n = s - (n * k);
		if (new_n < 0) continue;
		set.val[k] = 0;
		sum += func(n - 1, new_n, set);
		set.val[k] = 1;
	}
	return sum;
}

int main(int argc, char* argv[])
{
	int n, s;
	numType set;

	memset(&set, 0, sizeof(set));

	while (1) {
		cin >> n >> s;
		for (int i = 0; i < 10 ; i++) set.val[i] = 1;
		cout << func(n, s, set) << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:32:9: error: 'memset' was not declared in this scope
   32 |         memset(&set, 0, sizeof(set));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 |
Language: C++

#include <memory>
#include <iostream>

using namespace std;

typedef struct { int val[10]; } numType;

int func(int n, int s, numType set) {
	int sum = 0;
	int new_n;
	if (n <= 0) return 0;
	if (n == 1) {
		if (s >= 9) return 0;
		return (set.val[s] != 1) ? 0 : 1;
	}
	for (int k = 9; k >= 0; k--) {
		if (set.val[k] == 0) continue;
		new_n = s - (n * k);
		if (new_n < 0) continue;
		set.val[k] = 0;
		sum += func(n - 1, new_n, set);
		set.val[k] = 1;
	}
	return sum;
}

int main(int argc, char* argv[])
{
	int n, s;
	numType set;

	memset(&set, 0, sizeof(set));

	while (1) {
		cin >> n >> s;
		for (int i = 0; i < 10 ; i++) set.val[i] = 1;
		cout << func(n, s, set) << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:32:9: error: 'memset' was not declared in this scope
   32 |         memset(&set, 0, sizeof(set));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 |
Language: C++


class Memo {
	int flag;
	Memo(int n) :flag{ n } {}
public:
	Memo() :flag{ 0 } {}
	class Iterator {
		const int flag;
		int n;
	public:
		Iterator(int aflag, int an) :flag{ aflag }, n{ an } {}
		int operator*() const {
			return n;
		}
		Iterator operator++() {
			while (((1 << ++n) | flag) == flag && n < 10);
			return *this;
		}
		bool operator!=(const Iterator other) const {
			return n != other.n;
		}
	};
	Memo use(int u) {
		return Memo(flag | (1 << u));
	}
	Iterator begin() const {
		return ++Iterator(flag, -1);
	}
	Iterator end() const {
		return Iterator(flag, 10);
	}
};
int f(int n, int s, Memo memo = Memo()) {
	if (n == 0 && s == 0) return 1;
	if (s <= 0) return 0;
	if (n == 0) return 0;
	int sum = 0;
	for (const auto &unuse : memo) {
		sum += f(n - 1, s - unuse * n, memo.use(unuse));
	}
	return sum;
}
int main() {
	int n, s;
	while (std::cin >> n >> s) {
		std::cout << f(n, s) << std::endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:21: error: 'cin' is not a member of 'std'
   45 |         while (std::cin >> n >> s) {
      |                     ^~~
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:46:22: error: 'cout' is not a member of 'std'
   46 |                 std::cout << f(n, s) << std::endl;
      |                      ^~~~
a.cc:46:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:46:46: error: 'endl' is not a member of 'std'
   46 |                 std::cout << f(n, s) << std::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>
#include <algorithm>

using namespace std;

int main() {
    int N, S;
    while(cin >> N >> S) {
        int pats[10];
        for(int i = 0; i < 10; ++i) pats[i] = i<N ? 1 : 0;
        reverse(pats, pats+10);

        int ans = 0;
        do {
            int list[N], *pt = list;
            for(int i = 0; i < 10; ++i)
                if(pats[i]) *pt++ = i;

            do {
                int sum = 0;
                for(int i = 0; i < N; ++i)
                    sum += list[i]*(i+1);
                if(sum == S) ++ans;
            } while(next_permutation(list, list+N));
        } while(next_permutation(pats, pats+10));
        cout << ans << endl;
    }
    return 0;
}
#include <iostream>
#include <algorithm>

using namespace std;

int main() {
    int N, S;
    while(cin >> N >> S) {
        int pats[10];
        for(int i = 0; i < 10; ++i) pats[i] = i<N ? 1 : 0;
        reverse(pats, pats+10);

        int ans = 0;
        do {
            int list[N], *pt = list;
            for(int i = 0; i < 10; ++i)
                if(pats[i]) *pt++ = i;

            do {
                int sum = 0;
                for(int i = 0; i < N; ++i)
                    sum += list[i]*(i+1);
                if(sum == S) ++ans;
            } while(next_permutation(list, list+N));
        } while(next_permutation(pats, pats+10));
        cout << ans << endl;
    }
    return 0;
}

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

#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    for(;;){
        int n, s;
        if(!(cin >> n >> s))
            return 0;

        vector<int> num(10);
        for(int i=0; i<10; ++i)
            num[i] = i;

        int ret = 0;
        do{
            int a = 0;
            for(int i=0; i<n; ++i)
                a += num[i] * (i+1);
            if(a == s)
                ++ ret;
        }while(next_permutation(num.begin(), num.end()));

        for(int i=0; i<10-n; ++i)
            ret /= (i+1);
        cout << ret << endl;
    }
}#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int solve(int x, int n, int s, bitset<10>& check){
    if(x == n){
        if(s == 0)
            return 1;
        else
            return 0;
    }

    int ret = 0;
    for(int i=0; i<10; ++i){
        if(check[i])
            continue;
        check[i] = true;
        ret += solve(x+1, n, s-i*(x+1), check);
        check[i] = false;
    }
    return ret;
}

int main()
{
    for(;;){
        int n, s;
        if(!(cin >> n >> s))
            return 0;

        bitset<10> check;
        cout << solve(0, n, s, check) << endl;
    }
}

Compiler output:
a.cc:43:2: error: stray '#' in program
   43 | }#include <iostream>
      |  ^
a.cc:43:3: error: 'include' does not name a type
   43 | }#include <iostream>
      |   ^~~~~~~
a.cc:80:5: error: redefinition of 'int main()'
   80 | int main()
      |     ^~~~
a.cc:19:5: note: 'int main()' previously defined here
   19 | int main()
      |     ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>

using namespace std;

int n,s;
int cnt=0;

int vvv[10];
int size;


map<int,int> dp[11][1<<10];

map<int,int> dfs(int d,int si){
	if(dp[d][si].size()!=0){
		return dp[d][si];
	}
	map<int,int> ret;
	if(d==n)
		return ret;
	for(int i = 0; i < 10; i++){
		if((si>>i)&1==1){
			map<int,int> &ss = dfs(d+1,(si&~(1<<i)));
			if(ss.size()==0){
				ret[((d+1)*i)]++;
			}
			else{
				for(map<int,int>::iterator it = ss.begin(); it!=ss.end(); it++){
					ret[(it->first)+(d+1)*i]+=it->second;
				}
			}
		}
	}
	dp[d][si]=ret;
	return dp[d][si];
}


bool used[10];
void dfs2(int d,int sum){
	if(d==n){
		if(sum==s)
			cnt++;
		return;
	}
	for(int i = 0; i < 10; i++){
		if(!used[i]){
			used[i]=true;
			dfs2(d+1,sum+(d+1)*i);
			used[i]=false;
		}
	}
}

int main(){

	while(cin>>n>>s){
		fill(used,used+10,false);
		size=0;
		cnt=0;
		//dfs2(0,0);
		//cout<<cnt<<endl;
		map<int,int> &m = dfs(0,(1<<10)-1);
		cout<<m[s]<<endl;
		for(int i = 0; i < 11; i++){
			for(int j = 0; j < (1<<10); j++){
				dp[i][j].clear();
			}
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'std::map<int, int> dfs(int, int)':
a.cc:26:47: error: cannot bind non-const lvalue reference of type 'std::map<int, int>&' to an rvalue of type 'std::map<int, int>'
   26 |                         map<int,int> &ss = dfs(d+1,(si&~(1<<i)));
      |                                            ~~~^~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:62:17: error: reference to 'size' is ambiguous
   62 |                 size=0;
      |                 ^~~~
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:272:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:262:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  262 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
a.cc:12:5: note:                 'int size'
   12 | int size;
      |     ^~~~
a.cc:66:38: error: cannot bind non-const lvalue reference of type 'std::map<int, int>&' to an rvalue of type 'std::map<int, int>'
   66 |                 map<int,int> &m = dfs(0,(1<<10)-1);
      |                                   ~~~^~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
  int n,s;
  int a[10],ans;

  while(cin >> n >> s){
    ans = 0;
    int comb = (1 << n) - 1;
    while(comb < (1<<10)){
      int cnt = 0;
      for(int i=0;i<10;i++){
	if(comb >> i & 1){
	  a[cnt++] = i;
	}
      }
      do{
	int sum = 0;
	for(int i=0;i<n;i++){
	  sum += a[i] * (i+1);
	}
	if(sum == s)ans++;
      }while(next_permutation(a,a+n));
      
      int x = comb & -comb, y = comb + x;
      comb = ( (comb & ~y) / x >> 1 | y);
    }
    cout << ans << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: 'next_permutation' was not declared in this scope
   25 |       }while(next_permutation(a,a+n));
      |              ^~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
#include <string.h>

#define SIZE (500);

int dp[11][1 << 10][SIZE];

int main(void)
{
	int n;
	int s;
	
		memset(dp, 0, sizeof(dp));
		dp[0][0][0] = 1;
		for (int i = 0; i < 10; i++){
			for (int j = 0; j < (1 << 10); j++){
				for (int k = 0; k < SIZE; k++){
					for (int l = 0; l < 10; l++){
						if (((j >> l) & 1) == 0){
							dp[i + 1][j | (1 << l)][k + ((i + 1) * l)] += dp[i][j][k];
						}
					}
				}
			}
		}
	while (1){	
		scanf("%d%d", &n, &s);
		int ans = 0;
		for (int i = 0; i < (1 << 10); i++){
			ans += dp[n][i][s];
		}
		
		printf("%d\n", ans);
	}
	
	return (0);
}

Compiler output:
a.cc:4:19: error: expected ']' before ';' token
    4 | #define SIZE (500);
      |                   ^
a.cc:6:21: note: in expansion of macro 'SIZE'
    6 | int dp[11][1 << 10][SIZE];
      |                     ^~~~
a.cc:6:25: error: expected unqualified-id before ']' token
    6 | int dp[11][1 << 10][SIZE];
      |                         ^
a.cc: In function 'int main()':
a.cc:13:24: error: 'dp' was not declared in this scope
   13 |                 memset(dp, 0, sizeof(dp));
      |                        ^~
a.cc:17:57: error: expected primary-expression before ';' token
   17 |                                 for (int k = 0; k < SIZE; k++){
      |                                                         ^
a.cc:17:57: error: expected ')' before ';' token
   17 |                                 for (int k = 0; k < SIZE; k++){
      |                                     ~                   ^
a.cc:17:59: error: 'k' was not declared in this scope
   17 |                                 for (int k = 0; k < SIZE; k++){
      |                                                           ^
Language: C++

#include<iostream>
int a[11][999];
void r(int n,int u,int s,int d){
a[n][s]++;
for(int i=10;i-->0;)
if(!(u>>i&1))r(n+1,u^1<<i,s+d*i,d+1);
}
main(){
r(0,0,0,1);
for(int n,s;cin>>n>>s;)cout<<a[n][s]<<endl;
}

Compiler output:
a.cc:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    8 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 | for(int n,s;cin>>n>>s;)cout<<a[n][s]<<endl;
      |             ^~~
      |             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:24: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | for(int n,s;cin>>n>>s;)cout<<a[n][s]<<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:10:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | for(int n,s;cin>>n>>s;)cout<<a[n][s]<<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 <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int m[10][1024][350];
int search(int n, int s, int p){
  if(n == 1){
    if(s > 9) return 0;
    if((p & (1 << s)) == 0) return 1;
    else return 0;
  }
  //  if(m[n-1][p][s] != -1) return m[n-1][p][s];
  int r = 0;
  for(int j = min(s/n,9); j >= 0; j--){
    if((p & (1 << j)) == 0) {
      r += search(n-1, s - n * j, (p | i << j));
    }
  }
  //  m[n-1][p][s] = r;
  return r;
}
int main()
{
  int n,s;
  memset(m,-1,sizeof(m));
  while(cin >> n >> s){
    cout << search(n,s,0) << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int search(int, int, int)':
a.cc:16:40: error: 'i' was not declared in this scope
   16 |       r += search(n-1, s - n * j, (p | i << j));
      |                                        ^
Language: C++

#include <iostream>
#define MAX_N 10
#define MAX_S 1000
using namespace std;

int ans[MAX_N+1][MAX_S];
int used[10];

void calc(int n, int depth, int sum){
	if (n+1 == depth) {
		ans[n][sum]++;
		return;
	}
	for (int i = 0; i < 10; i++) {
		if (used[i] == 0) {
			used[i] = 1;
			calc(n,depth+1,i*depth+sum);
			used[i] = 0;
		}
	}
}


int main(){
	int n, s;
	memset(ans, 0, sizeof(ans));
	// calc any answers for n, s in advance.
	for (int i = 0; i < 10; i++) {
		memset(used, 0, sizeof(used));
		calc(i+1, 1, 0);
	}
	while (cin >> n >> s) {
		cout << ans[n][s] << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'memset' was not declared in this scope
   26 |         memset(ans, 0, sizeof(ans));
      |         ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #define MAX_N 10
Language: C++

#include<iostream>
#include<cstdlib>
using namespace std;
int dp[11][1<<10][331];
int dpset(int n, int data, int sum);
int main(){
	int n,m;
	memset(dp,-1,sizeof(dp));
	while(cin>>n>>m){
		if(m>330){cout<<"0"<<endl;}
		else{cout<<dpset(n,0,m)<<endl;}
	}
	return 0;
}
int dpset(int n, int data, int sum){
	int ans = 0;
	if(dp[n][data][sum]>=0){return dp[n][data][sum];}
	if(sum<0){return 0;}
	if(n == 1){
		if(!(data&(1<<sum))){ans = 1;}
	}
	else{
		for(int i=0; i<10; i++){
			if(!(data&(1<<i))){
				ans+=dpset(n-1,data|(1<<i),sum-i*n);
			}
		}
	}
	dp[n][data][sum] = ans;
	return ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'memset' was not declared in this scope
    8 |         memset(dp,-1,sizeof(dp));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdlib>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int dp[20][1000];
void Init(){
  //int maxx=0;
  for(int i=0;i<=10;i++)for(int j=0;j<1000;j++)dp[i][j]=0;
  for(int i=0;i<=9;i++){
    dp[0][i]++;	
    for(int j=0;j<=9;j++){
      if(i == j)continue;
      dp[1][i+j*2]++;
      for(int k=0;k<=9;k++){
	if(k==i||k==j)continue;
	dp[2][i+j*2+k*3]++;
	for(int l=0;l<=9;l++){
	  if(l==i||l==j||l==k)continue;
	  dp[3][i+j*2+k*3+l*4]++;
	  for(int m=0;m<=9;m++){
	    if(m==i||m==j||m==k||m==l)continue;
	    dp[4][i+j*2+k*3+l*4+m*5]++;
	    for(int n=0;n<=9;n++){
	      if(n==i||n==j||n==k||n==l||n==m)continue;
	      dp[5][i+j*2+k*3+l*4+m*5+n*6]++;
	      for(int o=0;o<=9;o++){
		if(o==i||o==j||o==k||o==l||o==m||o==n)continue;
		dp[6][i+j*2+k*3+l*4+m*5+n*6+o*7]++;
		for(int p=0;p<=9;p++){
		  if(p==i||p==j||p==k||p==l||p==m||p==n||p==o)continue;
		  dp[7][i+j*2+k*3+l*4+m*5+n*6+o*7+p*8]++;
		  for(int q=0;q<=9;q++){
		    if(q==i||q==j||q==k||q==l||q==m||q==n||q==o||q==p)continue;
		    dp[8][i+j*2+k*3+l*4+m*5+n*6+o*7+p*8+q*9]++;
		    maxx = max(maxx,i+j*2+k*3+l*4+m*5+n*6+o*7+p*8+q*9);
		  }
		}
	      }
	    }
	  }
	}
      }
    }
  }
  // cout << maxx << endl;
}

int main(){
  int n,s;
  Init();
    while(cin >> n >> s){
      cout << dp[n-1][s] << endl;
    }
  return 0;
}

Compiler output:
a.cc: In function 'void Init()':
a.cc:36:21: error: 'maxx' was not declared in this scope
   36 |                     maxx = max(maxx,i+j*2+k*3+l*4+m*5+n*6+o*7+p*8+q*9);
      |                     ^~~~
Language: C++

#include <iostream>
#include <bitset>

int main()
{
	const int N = 10;
	const int B = 1 << N;
	const int SMAX = 330;	// 10*9 + 9*8 + ... + 2*1 + 1*0 = 90+72+56+42+30+20+12+6+2+0 = 330
	int table[N + 1][SMAX + 1] = {0};
	
	int (*bitTable)[SMAX + 1] = new int[B][SMAX + 1];
	
	
	int emax[N + 1] = {0};
	for (int i = 1; i <= N; ++i) {
		emax[i] = emax[i - 1] + 9 * i - i * (i - 1) / 2;
	}
	
	bitTable[0][0] = 1;
	
	for (int i = 0; i < B; ++i) {
		std::bitset<N> bs(i);
		int nbc = bs.count() + 1;
		
		for (int j = 0; j < N; ++j) {
			if (bs.test(j) == false) {
				std::bitset<N> nextBit = bs;
				nextBit.set(j);
				
				int d = j * nbc;
				
				for (int k = 0; k <= emax[nbc]; ++k) {
					bitTable[nextBit.to_ulong()][k + d] += bitTable[i][k];
				}
			}
		}
	}
	
	for (int i = 0; i < B; ++i) {
		std::bitset<N> bs(i);
		int n = bs.count();
		for (int s = 0; s <= emax[n]; ++s) {
			table[n][s] += bitTable[bs.to_ulong()][s];
		}
	}
	
	delete [] bitTable;
	
	int n, s;
	while (std::cin >> n >> s) {
		if (n <= 0 || n > N || s > SMAX || s < 0) {
			std::cout << 0 << std::endl;ac
			continue;
		}
		std::cout << table[n][s] << std::endl;
	}
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:52:53: error: 'ac' was not declared in this scope
   52 |                         std::cout << 0 << std::endl;ac
      |                                                     ^~
Language: C++

#include <stdio.h>
#include <math.h>
int a[10],i,n,s;
int summing(int n,int s){
    int ans=0,i,max=0,min=0,m;
    if(n==1){if(s<10 && a[s]==1)return 1; else return 0;}
    else{
        for(i=0,m=n;m>0 && i<10;i++){if(a[i]==1){min+=m*i;m--;}}
        for(i=9,m=n;m>0 && i>=0;i--){if(a[i]==1){max+=m*i;m--;}}
        if(s<min || max<s)return 0;
        //for(i=0;i<10;i++){printf("%d",a[i]);}
        for(i=0;i<10;i++){
            if(a[i]==1 && n*i<=s){
                /*if(n==2){
                    m=s-i*2;
                    if(m>=0 && m<10 && i!=m && a[m]==1)ans++;
                }*/
                else{
                    a[i]=0;
                    ans+=summing(n-1,s-n*i);
                    a[i]=1;
                }
            }
        }
        //printf("%d,%d\n",n,ans);
        return ans;
    }
}
int main(void){
    for(i=0;i<10;i++)a[i]=1;
    while(scanf("%d %d",&n,&s)!=EOF){printf("%d\n",summing(n,s));}
    return 0;
}

Compiler output:
a.cc: In function 'int summing(int, int)':
a.cc:18:17: error: expected '}' before 'else'
   18 |                 else{
      |                 ^~~~
a.cc:13:34: note: to match this '{'
   13 |             if(a[i]==1 && n*i<=s){
      |                                  ^
a.cc: At global scope:
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

import sys
d0=[0]*1024
d1=[[0 for i in range(286)]for j in range(1024)]
B=[1,2,4,8,16,32,64,128,256,512]

def init():
  global d
  for i in range(1024):
    binary=format(i,'b')
    n0=binary.count('1')
    d0[i]=n0
    if n0==1:
      d1[i][B.index(i)]=1
    else:
      for j in range(len(binary)):
        dp=n0*j
        if binary[-j-1]=='1':
          i2=i-B[j]
          for k in range(286-dp):
            d1[i][k+dp]+=d1[i2][k]
  return
  
def f0070(n,s):
  x=sum([d1[i][s] for i in range(1024) if d0[i]==n])
  return x

init()
for a in sys.stdin:
  n,s=map(int,a.split())
  print f0070(n,s)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <vector>
using namespace std;
typedef vector <int> vi;
typedef vector <vi> vvi;
#define REP(i,n) for(i=0;i<n;i++)
int K=1024,N=331,B[]={1,2,4,8,16,32,64,128,256,512},C[1024]={0};
vvi D(K,vi(N));
int init(){
	int i,tmp,tmp2,n,dp,i2,j,k;
	REP(i,K){
		REP(j,N)D[i][j]=0;
		tmp=i,tmp2=0,n=0;
		while(tmp){
			n+=tmp&1;
			tmp2++;
			tmp/=2;
		}
		C[i]=n;
		if(n==1)D[i][find(B,B+10,i)-B]=1;
		else{
			tmp=i;
			REP(j,tmp2){
				if(tmp&1){
					dp=n*j,i2=i-B[j];
					REP(k,N-dp)D[i][k+dp]+=D[i2][k];
				}
				tmp/=2;
			}
		}
	}
	return 0;
}
int main(){
	init();
	int n,s,i,x;
	while(1){
		cin>>n>>s;
		if(cin.eof())break;
		x=0;
		if(s<N)
			REP(i,K)if(C[i]==n)x+=D[i][s];
		cout<<x<<endl;
	}
}

Compiler output:
a.cc: In function 'int init()':
a.cc:20:34: error: no matching function for call to 'find(int [10], int*, int&)'
   20 |                 if(n==1)D[i][find(B,B+10,i)-B]=1;
      |                              ~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:20:34: note:   mismatched types 'std::istreambuf_iterator<_CharT>' and 'int*'
   20 |                 if(n==1)D[i][find(B,B+10,i)-B]=1;
      |                              ~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#define REP(i,n) for(i=0;i<n;i++)
const int K=1024,N=331;
int B[]={1,2,4,8,16,32,64,128,256,512},C[K]={0},D[K][N]={0};
int init(){
	int i,tmp,tmp2,n,dp,i2,j,k;
	REP(i,K){
		REP(j,N)D[i][j]=0;
		tmp=i,tmp2=0,n=0;
		while(tmp){
			n+=tmp&1;
			tmp2++;
			tmp/=2;
		}
		C[i]=n;
		if(n==1)D[i][std::find(B,B+10,i)-B]=1;
		else{
			tmp=i;
			REP(j,tmp2){
				if(tmp&1){
					dp=n*j,i2=i-B[j];
					REP(k,N-dp)D[i][k+dp]+=D[i2][k];
				}
				tmp/=2;
			}
		}
	}
	return 0;
}
int main(){
	init();
	int n,s,i,x;
	while(1){
		std::cin>>n>>s;
		if(std::cin.eof())break;
		x=0;
		if(s<N)
			REP(i,K)if(C[i]==n)x+=D[i][s];
		std::cout<<x<<'\n';
	}
}

Compiler output:
a.cc: In function 'int init()':
a.cc:16:39: error: no matching function for call to 'find(int [10], int*, int&)'
   16 |                 if(n==1)D[i][std::find(B,B+10,i)-B]=1;
      |                              ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:16:39: note:   mismatched types 'std::istreambuf_iterator<_CharT>' and 'int*'
   16 |                 if(n==1)D[i][std::find(B,B+10,i)-B]=1;
      |                              ~~~~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <map>
#include <set>
#include <cstring>
#include <vector>
#include <algorithm>

using namespace std;

int memo[10][10];
int N, S;

int dfs(int cnt, int sum) {
  int ret = 0;
  if(sum > S) return 0;
  
  if(cnt == N+1) {
    return sum == S;
  }
  
  for(int i=0; i<10; i++) {
    if(used[i]) continue;
    used[i] = 1;
    ret += dfs(cnt + 1, sum + i*cnt);
    used[i] = 0;
  }
  
  return ret;
}

int main() {
  
  while(cin >> N >> S) {
    fill(used, used+10, 0);
    cout << dfs(1, 0) << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int dfs(int, int)':
a.cc:23:8: error: 'used' was not declared in this scope
   23 |     if(used[i]) continue;
      |        ^~~~
a.cc:24:5: error: 'used' was not declared in this scope
   24 |     used[i] = 1;
      |     ^~~~
a.cc: In function 'int main()':
a.cc:35:10: error: 'used' was not declared in this scope
   35 |     fill(used, used+10, 0);
      |          ^~~~
Language: Java

s=gets.to_i
for i in 1..s
    gets.chomp
    num=[]
    8.times do
        num<<gets.chomp.split(//).map(&:to_i)
    end
    x=gets.to_i-1
    y=gets.to_i-1
    
    check=[x,y]
    until check.empty?
        y=check.pop
        x=check.pop
        
        (-3).upto(3) do |t|
            if (x+t)<8 && 0<=(x+t) && num[y][x+t]==1
                check<<(x+t).to_i
                check<<y.to_i
                num[y][x+t]=0
            end
            if (y+t)<8 && 0<=(y+t) && num[y+t][x]==1
                check<<x.to_i
                check<<(y+t).to_i
                num[y+t][x]=0
            end
        end
    end
    puts "Data #{i}:"
    8.times{ |t| puts num[t].join}
end

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
s=gets.to_i
^
1 error
Language: Java

import java.util.*;
public class AOJ0071 {
	public static char[][] map = new char[8][8];
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int max_roop = sc.nextInt();
		int playcount =1;
		while(max_roop>=playcount){ 
			for(int i = 0;i < 8;i++){
				String tmp = sc.next();
				for(int j = 0;j < 8;j++){
					map[i][j] = tmp.charAt(j);
				}
			}
			int m = sc.nextInt();
			m--;
			int n = sc.nextInt();
			n--;
			dfs(n,m);
			System.out.println("Data "+playcount+":");
			for(int i = 0; i <8;i++){
				for(int j= 0;j < 8;j++){
					System.out.print(map[i][j]);
				}
				System.out.println();
			}
			playcount++;
		}
	}
	public static void dfs(int x,int y){
		map[x][y]='0';
		for(int dx = -3;dx <=3;dx++){
			for(int dy = -3; dy <= 3 ; dy++){
				if(dx == 0 || dy ==0){
					int nx = x + dx;
					int ny = y + dy;
					if(0<=nx&&nx<8&&0<=ny&&ny<8&&map[nx][ny]=='1')dfs(nx,ny);
				}
			}
		}
		return;
	}
}

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

#include <stdio.h>
#include <stdlib.h>

typedef struct Bomb{
	int map[8][8];
} BOMB;

Input(BOMB *);
void explode(BOMB *);

int x_cnt, y_cnt;

int main()
{
	int input_times, input_cnt;
	BOMB Bomb[50];
	int x, y;
	
	scanf("%d", &input_times);
	for(input_cnt = 0; input_cnt < input_times; input_cnt++){
		Input(&Bomb[input_cnt]);
		scanf("%d\n%d", &x, &y);
		Bomb[input_cnt].map[x - 1][y - 1] = 2;
		explode(&Bomb[input_cnt]);
	}
	
	for(input_cnt = 0; input_cnt < input_times; input_cnt++){
		printf("Data %d:\n", input_cnt + 1);
		for(y_cnt = 0; y_cnt < 8; y_cnt++){
			for(x_cnt = 0; x_cnt < 8; x_cnt++)
				printf("%d", Bomb[input_cnt].map[x_cnt][y_cnt]);
			printf("\n");
		}
	}
	
	return 0;
}

Input(BOMB *bomb)
{
	char dump;
	dump = getchar();
	for(y_cnt = 0; y_cnt < 8; y_cnt++){
		dump = getchar();
		for(x_cnt = 0; x_cnt < 8; x_cnt++)
			bomb->map[x_cnt][y_cnt] = getchar() - 48;
	}
}

void explode(BOMB* bomb_map)
{
	int explode_cnt;
	for(y_cnt = 0; y_cnt < 8; y_cnt++)
		for(x_cnt = 0; x_cnt < 8; x_cnt++)
			/*Find exploded bomb and process*/
			if(bomb_map->map[x_cnt][y_cnt] == 2){
				bomb_map->map[x_cnt][y_cnt] = 0;
				*Left*/
				explode_cnt = 1;
				while((x_cnt - explode_cnt) >= 0 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt - explode_cnt][y_cnt]) == 1)
				        (bomb_map->map[x_cnt - explode_cnt][y_cnt]) = 2;
				    explode_cnt++;
				}
				/*Right*/
				explode_cnt = 1;
				while((x_cnt + explode_cnt) <= 7 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt + explode_cnt][y_cnt]) == 1)
				        (bomb_map->map[x_cnt + explode_cnt][y_cnt]) = 2;
				    explode_cnt++;
				}
				/*Down*/
				explode_cnt = 1;
				while((y_cnt - explode_cnt) >= 0 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt][y_cnt - explode_cnt]) == 1)
				        (bomb_map->map[x_cnt][y_cnt - explode_cnt]) = 2;
				    explode_cnt++;
				}
				/*Up*/
				explode_cnt = 1;
				while((y_cnt + explode_cnt) <= 7 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt][y_cnt + explode_cnt]) == 1)
				        (bomb_map->map[x_cnt][y_cnt + explode_cnt]) = 2;
				    explode_cnt++;
				}
				explode(bomb_map);
			}
}

Compiler output:
main.c:8:1: warning: data definition has no type or storage class
    8 | Input(BOMB *);
      | ^~~~~
main.c:8:1: error: type defaults to 'int' in declaration of 'Input' [-Wimplicit-int]
main.c:39:1: error: return type defaults to 'int' [-Wimplicit-int]
   39 | Input(BOMB *bomb)
      | ^~~~~
main.c: In function 'explode':
main.c:58:34: error: 'Left' undeclared (first use in this function)
   58 |                                 *Left*/
      |                                  ^~~~
main.c:58:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:58:39: error: expected expression before '/' token
   58 |                                 *Left*/
      |                                       ^
Language: C

#include <stdio.h>
#include <stdlib.h>

typedef struct Bomb{
	int map[8][8];
} BOMB;

void Input(BOMB *);
void Output(BOMB);
void explode(BOMB *);

int x_cnt, y_cnt;

int main()
{
	int input_times, input_cnt;
	BOMB Bomb[50];
	int x, y;
	
	scanf("%d", &input_times);
	for(input_cnt = 0; input_cnt < input_times; input_cnt++){
		Input(&Bomb[input_cnt]);
		
		scanf("%d\n%d", &x, &y);
		Bomb[input_cnt].map[x - 1][y - 1] = 2;
		
		explode(&Bomb[input_cnt]);
	}
	
	for(input_cnt = 0; input_cnt < input_times; input_cnt++){
		printf("Data %d:\n", input_cnt + 1);
		
	}
	
	return 0;
}

void Input(BOMB *bomb)
{
	char dump;
	dump = getchar();
	for(y_cnt = 0; y_cnt < 8; y_cnt++){
		dump = getchar();
		for(x_cnt = 0; x_cnt < 8; x_cnt++)
			bomb->map[x_cnt][y_cnt] = getchar() - 48;
	}
}

void Output(BOMB)
{
	for(y_cnt = 0; y_cnt < 8; y_cnt++){
		for(x_cnt = 0; x_cnt < 8; x_cnt++)
			printf("%d", Bomb[input_cnt].map[x_cnt][y_cnt]);
		printf("\n");
	}
}

void explode(BOMB* bomb_map)
{
	int explode_cnt;
	for(y_cnt = 0; y_cnt < 8; y_cnt++)
		for(x_cnt = 0; x_cnt < 8; x_cnt++)
			/*Find exploded bomb and process*/
			if(bomb_map->map[x_cnt][y_cnt] == 2){
				bomb_map->map[x_cnt][y_cnt] = 0;
				/*Left*/
				explode_cnt = 1;
				while((x_cnt - explode_cnt) >= 0 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt - explode_cnt][y_cnt]) == 1)
				        (bomb_map->map[x_cnt - explode_cnt][y_cnt]) = 2;
				    explode_cnt++;
				}
				/*Right*/
				explode_cnt = 1;
				while((x_cnt + explode_cnt) <= 7 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt + explode_cnt][y_cnt]) == 1)
				        (bomb_map->map[x_cnt + explode_cnt][y_cnt]) = 2;
				    explode_cnt++;
				}
				/*Down*/
				explode_cnt = 1;
				while((y_cnt - explode_cnt) >= 0 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt][y_cnt - explode_cnt]) == 1)
				        (bomb_map->map[x_cnt][y_cnt - explode_cnt]) = 2;
				    explode_cnt++;
				}
				/*Up*/
				explode_cnt = 1;
				while((y_cnt + explode_cnt) <= 7 && explode_cnt <= 3){
				    if((bomb_map->map[x_cnt][y_cnt + explode_cnt]) == 1)
				        (bomb_map->map[x_cnt][y_cnt + explode_cnt]) = 2;
				    explode_cnt++;
				}
				explode(bomb_map);
			}
}

Compiler output:
main.c: In function 'Output':
main.c:53:38: error: 'Bomb' undeclared (first use in this function)
   53 |                         printf("%d", Bomb[input_cnt].map[x_cnt][y_cnt]);
      |                                      ^~~~
main.c:53:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:53:43: error: 'input_cnt' undeclared (first use in this function)
   53 |                         printf("%d", Bomb[input_cnt].map[x_cnt][y_cnt]);
      |                                           ^~~~~~~~~