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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
# define mod 1000000007
# define INF (1 << 29)
# define MAX_N 1000010
/* ACはうれCすぎてうれD */

int main(void){ 
    int x;
    cin >> x;
    x = x % 100000;
    int flag = 0;
    for(int i=0; i<=10; i++){
        for(int j=0; j<=10; j++){
            for(int k=0; k<=10; k++){
                for(int l=0; l<=10; l++){
                    for(int m=0; m<=10; m++){
                        for(int n=0; n<=10; n++){
                            if(100*i + 101*j + 102*k + 103*l + 104*m + 105*n == x){
                                flag = 1;
                                break;
                            }
                        }
                    }
                }
            }
        }
    }
    if(x < 100) flag = 0;
    cout << flag;
    return 0;

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define out(a) cout<<a<<" "
#define all(a) (a).begin(), (a).end()
#define upper_index(v, a) (int)distance(v.begin(), upper_bound((v).begin(), (v).end(), a))
#define lower_index(v, a) (int)distance(v.begin(), lower_bound((v).begin(), (v).end(), a))
typedef long long ll;
const long long INF = 1e17;
int main() {
  ll N;
  cin>>N;
  vector<bool> a(14000,false);
  int n=20;
  rep(a,n)rep(b,n)rep(c,n)rep(d,n)rep(e,n)rep(f,n) a[100*a+101*b+102*c+103*d+104*e+105*f]=false;
  if (N>=2100){
    cout<<1<<endl;
  }else{
    if (a[N]){
      cout<<1<<endl;
    }else{
      cout<<0<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:53: error: invalid types 'int[int]' for array subscript
   15 |   rep(a,n)rep(b,n)rep(c,n)rep(d,n)rep(e,n)rep(f,n) a[100*a+101*b+102*c+103*d+104*e+105*f]=false;
      |                                                     ^
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
int main() {
  ll N;
  cin>>N;
  vector<bool> a(14000,false);
  int n=20;
  rep(a,n)rep(b,n)rep(c,n)rep(d,n)rep(e,n)rep(f,n) a[100*a+101*b+102*c+103*d+104*e+105*f]=false;
  if (N>=2100){
    cout<<1<<endl;
  }else{
    if (a[N]){
      cout<<1<<endl;
    }else{
      cout<<0<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll N;
      |   ^~
a.cc:6:8: error: 'N' was not declared in this scope
    6 |   cin>>N;
      |        ^
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<bool> a(14000,false);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <math.h>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'bool'
    7 |   vector<bool> a(14000,false);
      |          ^~~~
a.cc:9:7: error: 'a' was not declared in this scope
    9 |   rep(a,n)rep(b,n)rep(c,n)rep(d,n)rep(e,n)rep(f,n) a[100*a+101*b+102*c+103*d+104*e+105*f]=false;
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope; did you mean 'frexp'?
    9 |   rep(a,n)rep(b,n)rep(c,n)rep(d,n)rep(e,n)rep(f,n) a[100*a+101*b+102*c+103*d+104*e+105*f]=false;
      |   ^~~
      |   frexp
Language: C++

#include <iostream>

using namespace std;

int main(){
  int X;
  cin >>> X;
  
  int c = X / 100;
  cout << (c % X == 0) << endl;
  
  return 0;
}

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

#include<iostream>
using namespace std;

int main(){
  int X;
  cin >> X;
  if(X >= 2000) {
    print(1);
    return 0;
  }

  int c[7] = {0};
  int result = 0;

  while(true){
    c[0] += 1;
    int x = 0;

    for(int i=0; i<6; i++){
      if(c[i] == 20){
        c[i+1] += 1;
        c[i] = 0;
      }
      x += (100+i)*c[i];
    }

    if(c[6] == 1){
      break;
    }

    else if (X == x){
      result = 1;
      break;
    }
  }

  cout << result << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 |     print(1);
      |     ^~~~~
      |     printf
Language: C++

#include <bits/stdc++.h> using namespace std; const long int maxN = 1e5 + 1; struct Edge {	 	long long to[6]; }; vector<int> cost = {100, 101, 102, 103, 104, 105}; Edge e[6 * maxN]; vector<bool> visited; bool can = false; void dfs(int u, int x, long long sum) { 	if(u >= maxN) return; 	visited[u] = true; 	for(int i = 0; i < 6; i++) 	{ 		if(!visited[e[u].to[i]]) 		{ 			sum += cost[i]; 			if(x % sum == 0) 			{ 				can = true; 				return; 			} 			dfs(e[u].to[i], x, sum); 		}		 	} } int main() { 	ios_base::sync_with_stdio(false); cin.tie(NULL); 	int x; 	cin >> x; 	int aux = 1; 	visited.resize(maxN, false); 	for(long long i = 0; i < maxN * 6; i++) 	{ 		e[i].to[0] = aux++; 		e[i].to[1] = aux++; 		e[i].to[2] = aux++; 		e[i].to[3] = aux++; 		e[i].to[4] = aux++; 		e[i].to[5] = aux++; 	} 	dfs(0, x, 0); 	if(can) 		printf("1\n"); 	else 		printf("0\n"); 	return 0; }

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> using namespace std; const long int maxN = 1e5 + 1; struct Edge {              long long to[6]; }; vector<int> cost = {100, 101, 102, 103, 104, 105}; Edge e[6 * maxN]; vector<bool> visited; bool can = false; void dfs(int u, int x, long long sum) {        if(u >= maxN) return;   visited[u] = true;      for(int i = 0; i < 6; i++)      {               if(!visited[e[u].to[i]])                {                       sum += cost[i];                         if(x % sum == 0)                        {                               can = true;                             return;                         }                       dfs(e[u].to[i], x, sum);                }                       } } int main() {        ios_base::sync_with_stdio(false); cin.tie(NULL);        int x;  cin >> x;       int aux = 1;    visited.resize(maxN, false);    for(long long i = 0; i < maxN * 6; i++)         {               e[i].to[0] = aux++;             e[i].to[1] = aux++;             e[i].to[2] = aux++;             e[i].to[3] = aux++;             e[i].to[4] = aux++;             e[i].to[5] = aux++;     }       dfs(0, x, 0);   if(can)                 printf("1\n");  else            printf("0\n");  return 0; }
      |                          ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int main() {
  const int N = 6;
  const vector<int> v = {100, 101, 102, 103, 104, 105};

  int X;
  cin >> X;

  if (X < 100) {
    cout << 0 << endl;
    return 0;
  }

  vector<bool> dp(X + 1, false);
  dp.at(0) = true;
  rep(i, N) dp.at(v.at(i)) = true;

  for (int i = 200; i <= X; i++) {
    if (any_of(v.begin(), v.end(), [&dp, &i](int y) { return dp.at(i - y); }))
      dp.at(i) = true;
  }

  cout << (dp.at(X) ? 1 : 0) << endl;
  return 0;
}
>

Compiler output:
a.cc:30:1: error: expected unqualified-id before '>' token
   30 | >
      | ^
Language: C++

///                ..:: In The Name Of God ::..
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define endl    '\n'
#define INF 2e9
#define int ll
#define vi          vector<int>
#define de          deque<int>
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()//全範囲指定を簡略化
typedef long long ll;
using namespace std;
//配列の要素数は　sizeof(ar)/sizeof(ar[0]) で求める
int X, A,B;
signed main()
{
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);
    cin >> X;
    A = X/100;
    B = X%100;
    if(B <= A*5){
        cout << 1 << \n;
    }
    else
        cout << 0 << \n;
    
}

Compiler output:
a.cc:26:22: error: stray '\' in program
   26 |         cout << 1 << \n;
      |                      ^
a.cc:29:22: error: stray '\' in program
   29 |         cout << 0 << \n;
      |                      ^
a.cc: In function 'int main()':
a.cc:26:23: error: 'n' was not declared in this scope; did you mean 'yn'?
   26 |         cout << 1 << \n;
      |                       ^
      |                       yn
a.cc:29:23: error: 'n' was not declared in this scope; did you mean 'yn'?
   29 |         cout << 0 << \n;
      |                       ^
      |                       yn
Language: C++

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

int main() {
  int x, resto;
  cin >> x;
  if(x < 100) {
    cout << "0" << endl;
  	return 0;
  }
  else {
  	resto = x % 100;
    x -= 105 * (resto % 5);
    resto = resto % 5;
    x -= 104 * (resto % 4);
    resto = resto % 4;
    x -= 103 * (resto % 3);
    resto = resto % 3;
    x -= 102 * (resto % 2);
    resto = resto % 2;
    x -= 101 * (resto % 1);
    resto = resto % 1;
  }  
  
  if(x == 0) cout << "1" << endl;
  else << cout << "0" << endl;
  
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:8: error: expected primary-expression before '<<' token
   26 |   else << cout << "0" << endl;
      |        ^~
Language: C

include<stdio.h>
 
int main(void) {
 
	int x;
	int a, b, c, d, e, f;
	int tmp;  
	
	scanf("%d", &x);
 
	for (a = 0; a < (x/100) + 1; a++) {
		for (b = 0; b < (x/101) + 1; b++) {
			for (c = 0; c < (x / 102) + 1; c++) {
				for (d = 0; d < (x / 103) + 1; d++) {
					for (e = 0; e < (x / 104) + 1; e++) {
						for (f = 0; f < (x / 105)+1; f++) {
							tmp = 100*a + 101*b + 102*c + 103*d + 104*e + 105*f;
							if (tmp == x) {
								
								printf("1\n");
								printf("%d%d%d%d%d%d\n", a, b, c, d, e, f);
								return 0;
							}
						}
					}
				}
			}
		}
	}
	
	printf("0\n");
 
	return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

clude<stdio.h>
 
int main(void) {
 
	int x;
	int a, b, c, d, e, f;
	int tmp;  
	
	scanf("%d", &x);
 
	for (a = 0; a < (x/100) + 1; a++) {
		for (b = 0; b < (x/101) + 1; b++) {
			for (c = 0; c < (x / 102) + 1; c++) {
				for (d = 0; d < (x / 103) + 1; d++) {
					for (e = 0; e < (x / 104) + 1; e++) {
						for (f = 0; f < (x / 105)+1; f++) {
							tmp = 100*a + 101*b + 102*c + 103*d + 104*e + 105*f;
							if (tmp == x) {
								
								printf("1\n");
								return 0;
							}
						}
					}
				}
			}
		}
	}
	
	printf("0\n");
 
	return 0;
}

Compiler output:
main.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | clude<stdio.h>
      |      ^
Language: C

clude<stdio.h>
 
int main(void) {
 
	int x;
	int a, b, c, d, e, f;
	int tmp;  
	
	scanf("%d", &x);
 
	for (a = 0; a < (x/100) + 1; a++) {
		for (b = 0; b < (x/101) + 1; b++) {
			for (c = 0; c < (x / 102) + 1; c++) {
				for (d = 0; d < (x / 103) + 1; d++) {
					for (e = 0; e < (x / 104) + 1; e++) {
						for (f = 0; f < (x / 105)+1; f++) {
							tmp = 100*a + 101*b + 102*c + 103*d + 104*e + 105*f;
							if (tmp == x) {
								
								printf("1\n");
								
								return 0;
							}
						}
					}
				}
			}
		}
	}
	
	printf("0\n");
 
	return 0;
}

Compiler output:
main.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | clude<stdio.h>
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
#define RALL(A) A.rbegin(),A.rend()
typedef long long ll;
typedef pair<ll,ll> P;
const ll mod=1000000007;
const ll LINF=1LL<<60;
const int INF=1<<30;

int main(){
	ll x;
	cin >> x;
	vector<ll> dp(100000+1,0);
	dp[100] = 1;
	dp[101] = 1;
	dp[102] = 1;
	dp[103] = 1;
	dp[104] = 1;
	dp[105] = 1;
	if(i > 105){
		for(int i = 0; i <= x; i++) {
			for(int j = 0; j <= 5; j++) {
				dp[i] = max(dp[i - j  -100],dp[i]);
			}
		}
	}
	cout << dp[x] << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: 'i' was not declared in this scope
   26 |         if(i > 105){
      |            ^
Language: C++

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

#define ll long long
#define PB push_back
#define PII pair<int, int>
#define MP make_pair
#define all(x) x.begin(), x.end()
#define REP(x, y, z) for(int x = y; x <= z; x++)
#define REPP(x, y, z) for(int x = y; x >= z; x--)
#define F first
#define S second
#define MSET(x, y) memset(x, y, sizeof(x)) 
#define EB emplace_back
#define maxn

//structure

//declaration

//functions

int main(void)
{
	#ifdef DBG
	freopen("in.in", "r", stdin);
	freopen("out.out", "w", stdout);
	#endif

	int arr[6] = {100, 101, 102, 103, 104, 105};

	int dp[1000005];
	MSET(dp,false);

	dp[0] = true;

	REP(i, 0, 5)
	{
		for(int j = 0, arr[i]+j <= 1000000; j++)
			dp[arr[i]+j] |= dp[j];
	}


	int n;
	while(~scanf("%d", &n))
	{
		if(dp[n])
		{
			printf("1\n");
		}
		else
			printf("0\n");
	}

		
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:38: error: expected ';' before '+' token
   39 |                 for(int j = 0, arr[i]+j <= 1000000; j++)
      |                                      ^
      |                                      ;
Language: C++

#include<bits/stdc++.h>
signed main(){
  int n; cin>>n;
  std:cout << (n%100<=n/100*5) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int n; cin>>n;
      |          ^~~
      |          std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:4:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   std:cout << (n%100<=n/100*5) << 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:4:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |   std:cout << (n%100<=n/100*5) << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<algorithm>
#include<iostream>
#include<cstring>
#include<string>
#include<vector>
#include<cstdio>
#include<cmath>
#include<set>
#include<map>
using namespace std;
typedef long long ll;
const int MAXN=1e5+5;
int read()
{
    int s=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
    while(ch>='0'&&ch<='9'){s=s*10+ch-'0';ch=getchar();}
    return s*f;
}
ll arr[7]={100,101,102,103,104,105,207};
ll vis[10000000];
int main()
{
    ll n;
    cin>>n;
    int m=n/100;
    int p=n%100;
    if(m*100<=n&&n<=m*100+5*M)cout<<1<<endl;
    else cout<<0<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:29: error: 'M' was not declared in this scope
   29 |     if(m*100<=n&&n<=m*100+5*M)cout<<1<<endl;
      |                             ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
int main(){
   long long x,a,b,c,d,e;
   cin >>  x;
   a=x/100;
  for(long long i=a; i > 0; i--){
    b=i/1000000;
    if(b>=4){
        c=x-100*i;
        d=(5+2+3+4)*1000000+i-(b*1000000);
        e=(1+2+3+4)*1000000+(i-(b*1000000))*5;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else if(b==3){
        c=x-100*i;
        d=(5+3+4)*1000000+(i-(b*1000000))*2;
        e=(1+2+3)*1000000+(i-(b*1000000))*4;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else if(b==2){
        c=x-100*i;
        d=(5+4)*1000000+(i-(b*1000000))*3;
        e=(1+2)*1000000+(i-(b*1000000))*3;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else if(b==1){
        c=x-100*i;
        d=5*1000000+(i-(b*1000000))*4;
        e=1000000+(i-(b*1000000))*2;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else{
        c=x-100*i;
        d=(i-(b*1000000))*5;
        e=i-(b*1000000);
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
  }

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

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

bool solve(int num,int num1)  
{ 
	string str="12345";
	vector<int>sum;
	in x=5;
	if(num1<5)
	{
		x=num1;
	}
    for (int len = 1; len <= x; len++)  
    {     
        for (int i = 0; i <= x - len; i++)  
        { 
            int j = i + len - 1; 
            int sum1=0;
            for (int k = i; k <= j; k++)  
            {
            	sum1+=(int(str[k])-48);
            }
                 //sum+=int(str[k]);
            sum.push_back(sum1);
        } 
    } 
    
    bool f=false;
    for(int i=0;i<sum.size();i++)
    {
    	if(sum[i]==num)
    	{
    		return (true);
    		f=true;
    		break;
    	}
    }
    if(!f)

	{
		return(false);
	}
} 

int main() {
	int N;
	cin>>N;
	if(N<100)
	{
		cout<<'0'<<endl;
	}
	else
	{
		int res=(N/100);
		//ol chk=solve(tmp);
		int tmp=N-(res*100);
	bool chk=solve(tmp,tmp1);
	if(chk)
	{
		cout<<'1'<<endl;
	}
	else
	{
		cout<<'0'<<endl;
	}
	}
	return 0;
}

Compiler output:
a.cc: In function 'bool solve(int, int)':
a.cc:8:9: error: 'in' was not declared in this scope; did you mean 'yn'?
    8 |         in x=5;
      |         ^~
      |         yn
a.cc:11:17: error: 'x' was not declared in this scope
   11 |                 x=num1;
      |                 ^
a.cc:13:30: error: 'x' was not declared in this scope
   13 |     for (int len = 1; len <= x; len++)
      |                              ^
a.cc: In function 'int main()':
a.cc:57:28: error: 'tmp1' was not declared in this scope; did you mean 'tmp'?
   57 |         bool chk=solve(tmp,tmp1);
      |                            ^~~~
      |                            tmp
a.cc: In function 'bool solve(int, int)':
a.cc:43:1: warning: control reaches end of non-void function [-Wreturn-type]
   43 | }
      | ^
Language: C

#include <stdio.h>

#define ONI	100
#define SA	101
#define CU	102
#define KE	103
#define AME	104
#define PC	105

#define MAX 6

int main()
{
	unsigned long x = 0;
	long h = 0;
	long cal = 0;
	long cal_sub = 0;
	int flag = 0;

	scanf("%d", &x);
	
	h = x / ONI;
	cal = (ONI * h) + (5 * h);
	
	if (cal >= x) {
		cal_sub = (ONI * h) + (5 * (h -1));
		for (i=0; i<MAX; i++) {
			if ((cal_sub + (100 + i)) == x) {
				flag = 1;
				break;
			}
		}
	}
	
	if (falg == 0) {
		printf("0\n");
	} else {
		printf("1\n");
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:27:22: error: 'i' undeclared (first use in this function)
   27 |                 for (i=0; i<MAX; i++) {
      |                      ^
main.c:27:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:35:13: error: 'falg' undeclared (first use in this function); did you mean 'flag'?
   35 |         if (falg == 0) {
      |             ^~~~
      |             flag
Language: C++

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

bool solve(int num,int num1)  
{ 
	string str="12345";
	vector<int>sum;
	in x=5;
	if(num1<5)
	{
		x=num1;
	}
    for (int len = 1; len <= x; len++)  
    {     
        for (int i = 0; i <= x - len; i++)  
        { 
            int j = i + len - 1; 
            int sum1=0;
            for (int k = i; k <= j; k++)  
            {
            	sum1+=(int(str[k])-48);
            }
                 //sum+=int(str[k]);
            sum.push_back(sum1);
        } 
    } 
    bool f=false;
    for(int i=0;i<sum.size();i++)
    {
    	if(sum[i]==num)
    	{
    		return (true);
    		f=true;
    		break;
    	}
    }
    if(!f)

	{
		return(false);
	}
} 

int main() {
	int N;
	cin>>N;
	if(N<100)
	{
		cout<<'0'<<endl;
	}
	else
	{
		int res=(N/100);
		//ol chk=solve(tmp);
		int tmp=N-(res*100);
	bool chk=solve(tmp,tmp1);
	if(chk)
	{
		cout<<'1'<<endl;
	}
	else
	{
		cout<<'0'<<endl;
	}
	}
	return 0;
}

Compiler output:
a.cc: In function 'bool solve(int, int)':
a.cc:8:9: error: 'in' was not declared in this scope; did you mean 'yn'?
    8 |         in x=5;
      |         ^~
      |         yn
a.cc:11:17: error: 'x' was not declared in this scope
   11 |                 x=num1;
      |                 ^
a.cc:13:30: error: 'x' was not declared in this scope
   13 |     for (int len = 1; len <= x; len++)
      |                              ^
a.cc: In function 'int main()':
a.cc:56:28: error: 'tmp1' was not declared in this scope; did you mean 'tmp'?
   56 |         bool chk=solve(tmp,tmp1);
      |                            ^~~~
      |                            tmp
a.cc: In function 'bool solve(int, int)':
a.cc:42:1: warning: control reaches end of non-void function [-Wreturn-type]
   42 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define REP(i, s) for (int i = 0; i < s; ++i)
#define ALL(v) (v).begin(), (v).end()
#define COUT(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define DEBUG
#define int long long
#define INF 1e9
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<class T1, class T2> ostream& operator << (ostream &s, pair<T1,T2> P)
{ return s << '<' << P.first << ", " << P.second << '>'; }
template<class T> ostream& operator << (ostream &s, vector<T> P)
{ for (int i = 0; i < P.size(); ++i) { if (i > 0) { s << " "; } s << P[i]; } return s; }
template<class T> ostream& operator << (ostream &s, vector<vector<T> > P)
{ for (int i = 0; i < P.size(); ++i) { s << endl << P[i]; } return s << endl; }
template<class T> ostream& operator << (ostream &s, set<T> P)
{ EACH(it, P) { s << "<" << *it << "> "; } return s << endl; }
template<class T1, class T2> ostream& operator << (ostream &s, map<T1,T2> P)
{ EACH(it, P) { s << "<" << it->first << "->" << it->second << "> "; } return s << endl; }
template<class T>void show(vector<T>v){for (int i = 0; i < v.size(); i++){cerr<<v[i]<<" ";}cerr<<"\n";}
typedef long long ll;

int func(int num){
    int cnt=0;
    while(num>0){
        num/=10;
        cnt++;
    }
    return cnt;
}

int func2(int num){
    int cnt=0;
    int x=0;
    while(num>0){
        x=num;
        num/=10;
        cnt++;
        
    }
    return x;
}

signed main(){
   int x;
   cin>>x;
   int s=func2(x);
  // cerr<<s<<endl;
  if(x<=99) {
      cout<<0<<endl;
      return 0;
   if(105*s>=x) cout<<1<<endl;
   else cout<<0<<endl;
    return 0;
}

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

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

int ordena( const void *a, const void *b){
    int x= *((int *)a);
    int y= *((int *)b);
    
    if (x>y){
        return -1;
    } else {
        return 1;
    }
}

int main()
{
    int n,soma=0;
    int vet[]={100,101,102,103,104,105};
    
    scanf("%d", &n);
    
    qsort(vet, 6, sizeof(int), ordena);
    
    for (int i=0; i<6; i++){
        soma += vet[i];
        if (soma<=n) {
            if(soma==n){
                printf("1\n");
                break;
            } else {
                continue;
            }
        } else{
            printf("0\n");
            break;
        }
    }

Compiler output:
main.c: In function 'main':
main.c:37:5: error: expected declaration or statement at end of input
   37 |     }
      |     ^
Language: C++

#include<bits/stdc++.h>
#include<vector>
#include<cmath>
#define rep(i,a,b) for(int i=a;i<b;++i)
using namespace std;
#define max 100000
typedef long long ll;
void chmin(int &a,int b){if(a>b) a=b;} //Compare two numbers and return smaller one in reference variety a
int n;

bool dfs(int sum)
{
    if(sum==n) return true;
    if(sum>n) return false;
    if(n-sum<100) return false;
    for (int i=0;i<6;i++)
    {
        if(dfs(sum+100+i))return true;
    }
    return false;
}

int main()
{

    cin>>n;
    if(n<100)
    {
        cout<<0;
        return;
    }
    if(dfs(0))
    {
        cout<<1<<endl;

    }
    else cout<<0<<endl;

        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   30 |         return;
      |         ^~~~~~
Language: C

#include<stdio.h>

int main(void) {

	int x;
	int a, b, c, d, e, f;
	int tmp;  
	
	scanf("%d", &x);

	for (a = 0; a < (x/100); a++) {
		for (b = 0; b < (x/101); b++) {
			for (c = 0; c < (x / 102); c++) {
				for (d = 0; d < (x / 103); d++) {
					for (e = 0; e < (x / 104); e++) {
						for (f = 0; f < (x / 105); f++) {
							tmp = 100*a + 101*b + 102*c + 103*d + 104*e + 105*f;
							if (tmp == x) {
								
								printf("1");
								//printf("%d %d %d %d %d %d\n", a, b, c, d, e, f);
								return 0;
							}
						}
					}
				}
			}
		}
	}
	
	printf("0");

	return 0;

Compiler output:
main.c: In function 'main':
main.c:33:9: error: expected declaration or statement at end of input
   33 |         return 0;
      |         ^~~~~~
Language: C++

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

 int main(){
   int x;
   cin>>x;
   bool a=false;
   if(x%100==0){
     a=true;
   }

   int b=x/100;
   int c=x%100;

  if(c<=5*b  ){
    int d=c/5;
    int f=c%5;
    if(d==b){
      a=true;
    }else{
      int g1=f/4;
      int g2=f%4;
      int sum=b-d;
      if(f<=4*sum){
        if(g1==d){
          a=true;
        }else{
          int h1=g2/3;
          int h2=g2%3;
          sum=b-d-g1;
          if(g2<=3*sum){
            if(h1==g1){
              a=true;
            }else{
              int i1=h2/2;
              int i2=h2%2;
              sum=b-d-g1-h1;
              if(h2<=2*sum){
                if(i1==h1){
                  a=true;
                }else{
                  sum=b-d-g1-h1-i1;
                  if(i2<=sum){
                    a=true;
                  }
                }
                }
              }
            }
          }
        }
      }
    }
  }
   if(a){
     cout<<1<<endl;
   }else{
     cout<<0<<endl;
   }
}

Compiler output:
a.cc:56:4: error: expected unqualified-id before 'if'
   56 |    if(a){
      |    ^~
a.cc:58:5: error: expected unqualified-id before 'else'
   58 |    }else{
      |     ^~~~
a.cc:61:1: error: expected declaration before '}' token
   61 | }
      | ^
Language: C++

#include <iostream>                                                                                                                  
#include <queue>

using namespace std;

void push_node(int v, queue<int>& q) {
  if (v < 100) {
    return;
  }
  q.push(v);

  int x;
  cin >> x;
  if (x < 100) {
    cout << 0 << endl;
    return 0;
  }

  queue<int> q;
  q.push(x);

  while(!q.empty()) {
    auto node = q.front();
    q.pop();
    for (int i = 0; i < 6; ++i) {
      if (node % (100 +i) == 0) {
        cout << 1 << endl;
        return 0;
      }   
    }   
    if (node < 100) {
      continue;
    }   
    for (int i = 0; i < 6; ++i) {
      push_node(node - 100 - i,  q); 
    }   
  }
  cout << 0 <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'void push_node(int, std::queue<int>&)':
a.cc:16:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
   16 |     return 0;
      |            ^
a.cc:19:14: error: declaration of 'std::queue<int> q' shadows a parameter
   19 |   queue<int> q;
      |              ^
a.cc:6:35: note: 'std::queue<int>& q' previously declared here
    6 | void push_node(int v, queue<int>& q) {
      |                       ~~~~~~~~~~~~^
a.cc:28:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   28 |         return 0;
      |                ^
a.cc:39:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   39 |   return 0;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X;
  cin >> X;
  
  int X_last2 = X % 100;
  int N_limit = min(20, floor(X/100));

  int ans = 0;
  if (X_last2 == 0) {
    ans = 1;
  }
  else {
    for (int a = 0; a <= N_limit; a++) {
      for (int b = 0; b <= max(0,N_limit-a); b++) {
        for (int c = 0; c <= max(0,N_limit-a-b); c++) {
          for (int d = 0; d <= max(0,N_limit-a-b-c); d++) {
            for (int e = 0; e <= max(0,N_limit-a-b-c-d); e++) {
              for (int f = 0; f <= max(0,N_limit-a-b-c-d-e); f++) {
                if (X_last2 == a*0 + b*1 + c*2 + d*3 + e*4 + f*5) {
                  ans = 1;
                  break;
                }
              }
            }
          }    
        }
      }    
    }
  }
  
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: no matching function for call to 'min(int, __gnu_cxx::__enable_if<true, double>::__type)'
    9 |   int N_limit = min(20, floor(X/100));
      |                 ~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:9:20: note:   deduced conflicting types for parameter 'const _Tp' ('int' and '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'})
    9 |   int N_limit = min(20, floor(X/100));
      |                 ~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:9:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |   int N_limit = min(20, floor(X/100));
      |                 ~~~^~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int x,rem,que;
	cin >> x;
	if(x%100==0||x%201==0||x%202==0||x%203==0||x%204==0||x%205==0||x%203==0||x%208==0||x%207==0||x%206==0||x%)	cout << "1"  << endl;
	else if(x%101==0||x%303==0||x%304==0||x%305==0||x%306==0||x%307==0||x%308==0||x%309==0)	cout << "1"  << endl;
	else if(x%102==0||x%406==0||x%407==0||x%408==0||x%410==0||x%411==0||x%409==0||x%412==0)	cout << "1"  << endl;
	else if(x%103==0||x%510==0||x%511==0||x%512==0||x%513==0||x%514==0||x%515==0)	cout << "1"  << endl;
	else if(x%104==0)	cout << "1"  << endl;
	else if(x%105==0)	cout << "1"  << endl;
	else if(x%615==0)	cout << "1"  << endl;
	else cout << "0" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:114: error: expected primary-expression before ')' token
    7 |         if(x%100==0||x%201==0||x%202==0||x%203==0||x%204==0||x%205==0||x%203==0||x%208==0||x%207==0||x%206==0||x%)      cout << "1"  << endl;
      |                                                                                                                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int x,rem,que;
	cin >> x;
	if(x%100==0||x%201==0||x%202==0||x%203==0||x%204==0||x%205==0||x%203==0||x%208==0||x%207==0||x%206==0||x%)	cout << "1"  << endl;
	else if(x%101==0||x%303==0||x%304==0||x%305==0||x%306==0||x%307==0||x%308==0||x%309==0)	cout << "1"  << endl;
	else if(x%102==0||x%406==0||x%407==0||x%408==0||x%410==0||x%411==0||x%409==0||x%412==0)	cout << "1"  << endl;
	else if(x%103==0||x%510==0||x%511==0||x%512==0||x%513==0||x%514==0||x%515==0)	cout << "1"  << endl;
	else if(x%104==0)	cout << "1"  << endl;
	else if(x%105==0)	cout << "1"  << endl;
	else if(x%615==0)	cout << "1"  << endl;
	else if()
	else cout << "0" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:114: error: expected primary-expression before ')' token
    7 |         if(x%100==0||x%201==0||x%202==0||x%203==0||x%204==0||x%205==0||x%203==0||x%208==0||x%207==0||x%206==0||x%)      cout << "1"  << endl;
      |                                                                                                                  ^
a.cc:14:17: error: expected primary-expression before ')' token
   14 |         else if()
      |                 ^
a.cc:15:9: error: expected primary-expression before 'else'
   15 |         else cout << "0" << endl;
      |         ^~~~
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int X = sc.nextInt();
        int res = 0;
        int 
        for(int a=0; a<=1000; ++a){
            for(int b=0; b<=1000; ++b){
                for(int c=0; c<=50; ++c){
                    for(int d=0; d<=25; ++d){
                        for(int e=0; e<=20; ++e){
                            int total = a * 100 + b * 103 + c * 102 + d * 104 + e * 105;
                            if(total == X){
                                res=1;
                            }

                        }
                    }
                }
            }
        }
        System.out.println(res);
    }
}


Compiler output:
Main.java:8: error: not a statement
        int 
        ^
Main.java:8: error: ';' expected
        int 
           ^
2 errors
Language: C++

///                ..:: In The Name Of God ::..
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define endl    'n'
#define INF 2e9
#define int ll
#define vi          vector<int>
#define de          deque<int>
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()//全範囲指定を簡略化
typedef long long ll;
using namespace std;
//配列の要素数は　sizeof(ar)/sizeof(ar[0]) で求める
int X, mod;
signed main(){
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(false);
mod = X%100
if(X%100 == 0){
    cout << 1;
}
else if (X/100 <= 2 && mod > 10)
{
    cout << 0;
}
else if (mod/5 < N/100){
    cout << 1;
}
else{
    cout << 0;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected ';' before 'if'
   21 | mod = X%100
      |            ^
      |            ;
   22 | if(X%100 == 0){
      | ~~          
a.cc:25:1: error: 'else' without a previous 'if'
   25 | else if (X/100 <= 2 && mod > 10)
      | ^~~~
a.cc:29:18: error: 'N' was not declared in this scope
   29 | else if (mod/5 < N/100){
      |                  ^
Language: C

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

int main(void) {
  int x, mod, hyaku;
  scanf("%d", &x);
  mod = x % 100;
  hyaku = x / 100;
  int sum = 0;
  while (!(hyaku <= 0 || mod < 10)) {
    mod = mod - 5;
    hyaku--;
  }
  for (int i = 5; i > 0; i--) {
    if (mod == 0 || hyaku == 0) break;
    if (i <= mod) {
      mod -= i;
      hyaku--;
    }

  if (mod == 0) {
    printf("1\n");
  } else {
    printf("0\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C++

#include<iostream>
#include<cmath>


using namespace std;

int main(){
  int N,A,B;

 cin >>N;

 A=floor(N/100);
 B=A*100+A*5;
 
 if(N<100){
 cout<<0;
 }
 else if(N>=2000){ 
  cout<<1;
 }
 else if (N<=B){
  cout<<1;
 }
 else 
 cout <<0;
}
return 0;
}

Compiler output:
a.cc:27:1: error: expected unqualified-id before 'return'
   27 | return 0;
      | ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

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

int main()
{
    int n;
    cin>>n;
    int a[]={100,101,102,103,104,105};
    int flg=0;
    for(int i=0;i<6;i++)
    {
        if(n%a[i]==0)flg=1;
    }
    for(int i=0;i<6;i++)
    {  
       for(int j=0;j<6;j++)
       {  
           if(n%(a[i]+a[j])==0)flg=1;
           
       }
    }
     for(int i=0;i<6;i++)
    {  
       for(int j=0;j<6;j++)
       {  
           
           for(int k=0;k<6;k++)
           {   
               if(sum%(a[i]+a[j]+a[k])==0)
               flg=1;
           }
       }
    }
    
    if(n%615==0 || flg==1)
      cout<<"1";
  else 
    cout<<"0";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:19: error: 'sum' was not declared in this scope
   29 |                if(sum%(a[i]+a[j]+a[k])==0)
      |                   ^~~
Language: C++

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

int main(){
	int X;
  cin>>X;
  int count=X/100;
  int new_X = X%100;
  int ans=0;
  
  int i,j,k,l,m;
  
  if()
  for(i=0;i*5<=new_X;i++){
    new_X = X%100;
    
    new_X -= i*5;
  	if(i<=count){
    	for(j=0;j*4<=new_X;j++){
        	new_X -= j*4;
          if(j+i<=count){
          	for(k=0;k*3<=new_X;k++){
            	new_X -= k*3;
              if(i+j+k<=count){
              	for(l=0;l*2<=new_X;l++){
                	new_X -= l*2;
                  if(i+j+k+l<=count){
                 	for(m=0;m<=new_X;m++){
                    	if(i+j+k+l+m<=count){
                        	if(new_X-m==0){

                            	ans=1;
                            }
                        }
                      
                    }
                  }
                  
                  new_X += l*2;
                }
              }
              new_X+=k*3;
            }
          }
          new_X+=j*4;
        }
    }
    
  }
  if(X/100==0){
  	ans=1;
  }
  cout<<ans;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: expected primary-expression before ')' token
   15 |   if()
      |      ^
Language: C++

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

int main()
{
    string x;
    cin >>x;
  	if(x.length<=2){
    	cout<<0<<endl; 
      	return 0;
    }
    int matubi = stoi(x.substr(x.length()-2,2));
    int sonota = stoi(x.substr(0,x.length()-2));
    if(sonota*5>=matubi){
        cout<<1<<endl;
    }else{
        cout<<0<<endl;   
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |         if(x.length<=2){
      |            ~~^~~~~~
      |                    ()
Language: Java

import java.util.Scanner;

public class C {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int X = sc.nextInt();
        int y = X % 100;
        int max = X / 100 + 1;
        int a = 0;
        int b = 1;
        int c = 2;
        int d = 3;
        int e = 4;
        int f = 5;
        int sum = 0;
        int sum2 = 0;

        if (y == 0) {
            System.out.println(1);
            return;
        }
//        System.out.println("y = " + y);
        for (int i = y; i >= 0; i--) {
            sum = 0;
            sum2 = 0;
            sum = b * i;
            sum2 += i;
            for (int j = y - (b * i); j >= 0; j--) {
                sum += c * j;
                sum2 += j;
                for (int k = y - (b * i + c * j); k >= 0; k--) {
                    sum += d * k;
                    sum2 += k;
                    for (int l = y - (b * i + c * j + d * k); l >= 0; l--) {
                        sum += e * l;
                        sum2 += l;
                        for (int m = y - (b * i + c * j + d * k + e * l); m >= 0; m--) {
                            sum += f * m;
                            sum2 += m;
//                            System.out.println(sum);
//                            System.out.println(sum2);
//                            System.out.println(sum2 * 100 + y);
                            if (sum == y && sum2 * 100 + 15 <= X) {
                                System.out.println(1);
                                return;
                            }

                            sum -= f * m;
                            sum2 -= m;
                        }

                        sum -= e * l;
                        sum2 -= l;
                    }
                    sum -= d * k;
                    sum2 -= k;
                }
                sum -= c * j;
                sum2 -= j;
            }
            sum -= b * i;
            sum2 -= i;
        }

        System.out.println(0);


    }
}


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

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

int main(){
  int x,y;
  cin >> x;
  int n=10;
  y=x%100;
  for(int i=0;i<n;i++){
    for(int j=0;j<n;j++){
      for(int k=0;k<n;k++){
        for(int l=0;l<n;l++){
          for(int m=0;m<n;m++){
            if(y==i+2j+3k+4l+5m){
              if(x/100==i+j+k+l+m){
                cout << 1 << endl;
                return 0;
              }
              else{
                cout << 0 << endl;
                return 0;
              }
            }
          }
        }
      }
    }
  }
}
              

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: fixed-point types not supported in C++
   14 |             if(y==i+2j+3k+4l+5m){
      |                        ^~
a.cc:14:30: error: unable to find numeric literal operator 'operator""m'
   14 |             if(y==i+2j+3k+4l+5m){
      |                              ^~
Language: C++

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

int main() {
  int x;
  cin >> x;
  if (x < 100)
    cout << 0 << endl;
  else {
  unsigned char a, b, c, d, e, f;
  if (x == 100a + 101b + 102c + 103d + 104e + 105f)
    cout << 1 << endl;
  else 
    cout << 0 << endl;
  }
}


Compiler output:
a.cc:11:40: error: exponent has no digits
   11 |   if (x == 100a + 101b + 102c + 103d + 104e + 105f)
      |                                        ^~~~
a.cc: In function 'int main()':
a.cc:11:12: error: unable to find numeric literal operator 'operator""a'
   11 |   if (x == 100a + 101b + 102c + 103d + 104e + 105f)
      |            ^~~~
a.cc:11:19: error: unable to find numeric literal operator 'operator""b'
   11 |   if (x == 100a + 101b + 102c + 103d + 104e + 105f)
      |                   ^~~~
a.cc:11:26: error: unable to find numeric literal operator 'operator""c'
   11 |   if (x == 100a + 101b + 102c + 103d + 104e + 105f)
      |                          ^~~~
a.cc:11:33: error: unable to find numeric literal operator 'operator""d'
   11 |   if (x == 100a + 101b + 102c + 103d + 104e + 105f)
      |                                 ^~~~
a.cc:11:47: error: unable to find numeric literal operator 'operator""f'
   11 |   if (x == 100a + 101b + 102c + 103d + 104e + 105f)
      |                                               ^~~~
Language: C++

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

int main() {
	int X,ans = 0,a = 5;
	int num[6] = {100,101,102,103,104,105};
	cin >> X;
	if(X < 100){cout << 0 << endl; return 0;}
	for(int i = 0;i < 6;i++){
		if(X % num[i] == 0){
			cout << 1 << endl;
			return 0;
		}
	}
	if(X % 615 == 0){cout << 1 << endl; return 0;}
	else{cout << 0 << endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:33: error: expected '}' at end of input
   17 |         else{cout << 0 << endl;}
      |                                 ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <algorithm>
#include <math.h>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>

#define _GLIBCXX_DEBUG
using namespace std;
using vi = vector<int64_t>;
using vvi = vector<vi>;

int main(int argc, const char * argv[]) {
    // fasten cin
    cin.tie(0);
    ios::sync_with_stdio(false);
    // implement
    int64_t x;
    cin >> x;
    vi a(6);
    a.at(0) = 100;
    a.at(1) = 101;
    a.at(2) = 102;
    a.at(3) = 103;
    a.at(4) = 104;
    a.at(5) = 105;
    bool dp[110][10010];
    memset(dp, 0, sizeof(dp));
    dp[0][0] = true;

    for (int i = 0; i < a.size(); ++i) {
      for (int j = 0; j <= x; ++j) {
        dp[i+1][j] |= dp[i][j];
          if (j >= a[i]){
            dp[i+1][j] |= dp[i][j-a[i]];
          }
      }
    }

    if (dp[a.size()][x]) cout << 1 << endl;
    else cout << 0 << endl;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:33:5: error: 'memset' was not declared in this scope
   33 |     memset(dp, 0, sizeof(dp));
      |     ^~~~~~
a.cc:12:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   11 | #include <stack>
  +++ |+#include <cstring>
   12 |
Language: C++

#include <iostream>
using namespace std;

int main ()
{
  long long n;
  cin >> n;
	for(int i = 1;i <=1000000; ++i){
    	if (100 * i <= n && n <= 105 * i) {
        	cout << 1
              return 0;
        }
    }
  cout << 0;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before 'return'
   10 |                 cout << 1
      |                          ^
      |                          ;
   11 |               return 0;
      |               ~~~~~~
Language: C++

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

int main()
{
    int n;
    cin>>n;
    if(n%615==0)
      cout<<n/i;
  else 
    cout<<"0";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'i' was not declared in this scope
    9 |       cout<<n/i;
      |               ^