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

#include <stdio.h>

int pow_(int a, int n){
  if(n == 0) return 1;
  else{
    return a * pow_(a, n - 1);
  }
}

int g(int n){
  if(n > 3) return 3 * g(n - 1) + pow_(2, n - 1) * 3 - 6;
  if(n == 3) return 6;
}

int
main(int argc, char *argv[])
{
  int n;
  scanf("%d", &n);

  int ans = 0, s, f, t, z, temp, x = 0;

  if(n <= 999){
  for(int l = 1; l <= n; l++){
    temp = l;
    s = 0; f = 0; t = 0; z = 0;
    while(temp > 0){
      if(temp % 10 == 7) s++;
      else if(temp % 10 == 5) f++;
      else if(temp % 10 == 3) t++;
      else { z++; break;}
      temp /= 10;
    }
    if(s*t*f > 0 && z == 0) ans++; 
  }
  printf("%d\n", ans);
  }
  else{
    int d = 0;
    temp = n;
    while(temp > 0){
      temp /= 10;
      d++;
    }
    for(int i = 3; i <= d; i++){
      ans += g(i);
    }
    if(pow_(10, d) - n < pow_(10, d - 1)/2){
    for(int i = pow_(10, d); i > n; i--){
      temp = i;
      s = 0; f = 0; t = 0, z = 0;
      while(temp > 0){
	if(temp % 10 == 7) s++;
	else if(temp % 10 == 5) f++;
	else if(temp % 10 == 3) t++;
	else {z++;break;}
	temp /= 10;
      }
      if(s * t * f > 0 && z == 0)ans--;
    }
    }
    else{
      for(int l = pow_(10, d - 1); l <= n; l++){
    temp = l;
    s = 0; f = 0; t = 0; z = 0;
    while(temp > 0){
      if(temp % 10 == 7) s++;
      else if(temp % 10 == 5) f++;
      else if(temp % 10 == 3) t++;
      else { z++; break;}
      temp /= 10;
    }
    if(s*t*f > 0 && z == 0) ans++;
  }
      ans -= f(d)
    }
    printf("%d\n", ans);
  }
	
    
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:75:14: error: called object 'f' is not a function or function pointer
   75 |       ans -= f(d)
      |              ^
main.c:21:19: note: declared here
   21 |   int ans = 0, s, f, t, z, temp, x = 0;
      |                   ^
main.c:75:18: error: expected ';' before '}' token
   75 |       ans -= f(d)
      |                  ^
      |                  ;
   76 |     }
      |     ~
Language: C

#include <stdio.h>

int pow_(int a, int n){
  if(n == 0) return 1;
  else{
    return a * pow_(a, n - 1);
  }
}

int g(int n){
  if(n > 3) return 3 * g(n - 1) + pow_(2, n - 1) * 3 - 6;
  if(n == 3) return 6;
}

int
main(int argc, char *argv[])
{
  int n;
  scanf("%d", &n);

  int ans = 0, s, f, t, z, temp, x = 0;

  for(int l = 1; l <= n / 2; l++){
    temp = 2 * l - 1;
    s = 0; f = 0; t = 0; z = 0;
    while(temp > 0){
      if(temp % 10 == 7) s++;
      else if(temp % 10 == 5) f++;
      else if(temp % 10 == 3) t++;
      else { z++; break;}
      temp /= 10;
    }
    if(s > 0 && t > 0 && f > 0 && z == 0) ans++; 
  }
  printf("%d\n", ans);
  }
 
	
    
  return 0;
}

Compiler output:
main.c:40:3: error: expected identifier or '(' before 'return'
   40 |   return 0;
      |   ^~~~~~
main.c:41:1: error: expected identifier or '(' before '}' token
   41 | }
      | ^
Language: C++

#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <stdio.h>

using namespace std;

//typedefリスト
typedef vector<long long int> vint;
typedef vector<string> vstr;
typedef long long int llint;

int Shichi(int x,int lon){
	string X = to_string(x);
	string 3X = '3' + X;
	string 5X = '5' + X;
	string 7X = '7' + X;
	if (lon>1)

}


int main(void) {
	llint N,leng;
	string n;
	cin >> N;
	n = to_string(N);
	leng = n.length();
}


Compiler output:
a.cc: In function 'int Shichi(int, int)':
a.cc:19:16: error: expected unqualified-id before numeric constant
   19 |         string 3X = '3' + X;
      |                ^~
a.cc:20:16: error: expected unqualified-id before numeric constant
   20 |         string 5X = '5' + X;
      |                ^~
a.cc:21:16: error: expected unqualified-id before numeric constant
   21 |         string 7X = '7' + X;
      |                ^~
a.cc:24:1: error: expected primary-expression before '}' token
   24 | }
      | ^
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include<algorithm>
#include <iomanip>

using namespace std;
typedef long long ll;
///定義場所///
int i, j, k, l, m, n;
int N, M, K;
ll MOD = 1000000007;
int ans = 0;
int keta = 1;

//関数リスト//
int ctoi(char c) {
	switch (c) {
	case '0': return 0;
	case '1': return 1;
	case '2': return 2;
	case '3': return 3;
	case '4': return 4;
	case '5': return 5;
	case '6': return 6;
	case '7': return 7;
	case '8': return 8;
	case '9': return 9;
	default: return 0;
	}
}
//(注)pairの型・比較する場所(first/second)は毎回変えて使用する
bool pairCompare(const pair<ll, ll> firstElof, pair<ll, ll> secondElof)
{
	return firstElof.second > secondElof.second;
}
//////////////
void dfs(ll I, int depth,int three,int five,int seven) {
	if (depth == keta) {
		if (I <= N && three != 0 && five != 0 && seven != 0) {
			ans++;
		}
	}
	else {
		if (three != 0 && five != 0 && seven != 0) {
			ans++;
		}
		dfs(I + 3 * pow(10, depth), depth + 1, three + 1, five, seven);
		dfs(I + 5 * pow(10, depth), depth + 1, three, five + 1, seven);
		dfs(I + 7 * pow(10, depth), depth + 1, three, five, seven + 1);
	}
}

int main()
{
	cin >> N;
	ll I = N;
	while (I / 10 > 0) {
		keta++;
		I /= 10;
	}
	dfs(3, 1, 1, 0, 0);
	dfs(5, 1, 0, 1, 0);
	dfs(7, 1, 0, 0, 1);
	cout << ans;
}

Compiler output:
a.cc: In function 'void dfs(ll, int, int, int, int)':
a.cc:49:29: error: 'pow' was not declared in this scope
   49 |                 dfs(I + 3 * pow(10, depth), depth + 1, three + 1, five, seven);
      |                             ^~~
Language: C++

n = gets.to_i

s='753'

r = 0

10.times do |k|
  k = k+1
  (3**k).times do |i|
    i = i.to_s(3).rjust(k, ?0)
    t = k.times.map{|j| s[i[j].to_i]}.join
    next unless s.chars.all?{|c| t.include? c}
    r += 1 if t.to_i <= n
  end
end

puts r


Compiler output:
a.cc:3:3: warning: multi-character character constant [-Wmultichar]
    3 | s='753'
      |   ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = gets.to_i
      | ^
a.cc:11:38: error: expected unqualified-id before '.' token
   11 |     t = k.times.map{|j| s[i[j].to_i]}.join
      |                                      ^
a.cc:13:5: error: 'r' does not name a type
   13 |     r += 1 if t.to_i <= n
      |     ^
Language: C++

#include<iostream>
using namespace std;
int n;

void dfs(int x,int a,int b,int c){
  int ans=0;
  if(x>n){
    return;
  }
  if(a&&b&&c)ans++;
    dfs(x*10+3,1,b,c);
    dfs(x*10+5,a,1,c);
    dfs(x*10+7,a,b,1);
}

int main(){
  cin>>n;
  dfs(0,0,0);
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:6: error: too few arguments to function 'void dfs(int, int, int, int)'
   18 |   dfs(0,0,0);
      |   ~~~^~~~~~~
a.cc:5:6: note: declared here
    5 | void dfs(int x,int a,int b,int c){
      |      ^~~
a.cc:19:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include<iostream>
int n;

void dfs(int x,int a,int b,int c){
  int ans=0;
  if(x>n){
    return;
  }
  if(a&&b&&c)ans++;
    dfs(x*10+3,1,b,c);
    dfs(x*10+5,a,1,c);
    dfs(x*10+7,a,b,1);
}

int main(){
  cin>>n;
  dfs(0,0,0);
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |   cin>>n;
      |   ^~~
      |   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:17:6: error: too few arguments to function 'void dfs(int, int, int, int)'
   17 |   dfs(0,0,0);
      |   ~~~^~~~~~~
a.cc:4:6: note: declared here
    4 | void dfs(int x,int a,int b,int c){
      |      ^~~
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |   cout<<ans<<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:18:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |   cout<<ans<<endl;
      |         ^~~
      |         abs
a.cc:18:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |   cout<<ans<<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<vector>
using namespace std;

int main() {
	int n;cin>>n;
//	vector<int> dp1(11,0),dp2(11,0),dp3(11,0);
	int def=4;
	for(int i=0;i<9;i++){
		def*=4;
	}
	int ans=0;
	for(int i=0;i<def;i++){
		long long num=0;
		long long numr=0;
		int i2=i;
		int flag3=0;
		int flag5=0;
		int flag7=0;
		int flag0=0;
		while(i2){
			numr*=10;
			if(i2%4==1){
				numr+=3;
				flag3=1;
			}else if(i2%4==2){
				numr+=5;
				flag5=1;
			}else if(i2%4==3){
				numr+=7;
				flag7=1;
			}else{
				flag0=1;
			}

			i2/=4;
		}
		while(numr){
			num*=10;
			num+=numr%10;
			numr/=10;
		}
//		cout<<num<<endl;
		if(flag0)continue;
		if(flag5*flag3*flag7==0)continue;
		if(num<=n){
			ans++;
		}else{
			break;
		}

	}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:10: error: expected '}' at end of input
   53 |         }
      |          ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

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

long long n, ans = 0;

void dfs(long long x, long long a, long long b, long long c){
    if(x > n){
        return ;
    }
    if(a && b && c){
        ans++;
    }
    dfs(x * 10 + 3, 1, b, c)
    dfs(x * 10 + 5, a, 1, c)
    dfs(x * 10 + 7, a, b, 1)
}

signed main(){
    cin >> n;
    dfs(0, 0, 0, 0);

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

Compiler output:
a.cc: In function 'void dfs(long long int, long long int, long long int, long long int)':
a.cc:13:29: error: expected ';' before 'dfs'
   13 |     dfs(x * 10 + 3, 1, b, c)
      |                             ^
      |                             ;
   14 |     dfs(x * 10 + 5, a, 1, c)
      |     ~~~
Language: C++

N = int(input())

def dfs(s):
    if int(s)>N:
        return 0
    ans = 1 if all(s.count(c) > 0 for c in '753' ) else 0
    for i in '753':
        ans += dfs(s+i)
    return ans

print(dfs('0'))


Compiler output:
a.cc:6:44: warning: multi-character character constant [-Wmultichar]
    6 |     ans = 1 if all(s.count(c) > 0 for c in '753' ) else 0
      |                                            ^~~~~
a.cc:7:14: warning: multi-character character constant [-Wmultichar]
    7 |     for i in '753':
      |              ^~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

#include<iostream>

using namespace std;

typedef long long ll;

ll def(ll x, bool flag3, bool flag5, bool flag7)
{int N;
 int ans;
 if(x > N){return ans;}
 if(flag3 && flag5 && flag7){ans++;}//ベース
 def(10*x + 3, true, flag5, flag7);
 def(10*x + 5, flag3, true, flag7);
 def(10*x + 7, flag33, flag5, true);
}

int main()
{int ans = 0;
 
 int N = 0;
 cin >> N;
 cout << def(0,0,0,0) << endl;
return 0;
}

Compiler output:
a.cc: In function 'll def(ll, bool, bool, bool)':
a.cc:14:16: error: 'flag33' was not declared in this scope; did you mean 'flag3'?
   14 |  def(10*x + 7, flag33, flag5, true);
      |                ^~~~~~
      |                flag3
a.cc:13:5: warning: control reaches end of non-void function [-Wreturn-type]
   13 |  def(10*x + 5, flag3, true, flag7);
      |  ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){
	ll n,ans=0;
	cin >> n;
	stack< pair<ll,ll> > st;
	st.push({0,0});
	while(not st.empty()){
		auto x = st.top();
		st.pop();
		if(x.second==7)ans++;
		if(x.first*10+3<=N)st.push({x.first*10+3,x.second|1});
		if(x.first*10+5<=N)st.push({x.first*10+5,x.second|2});
		if(x.first*10+7<=N)st.push({x.first*10+7,x.second|4});
	}
	cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: 'N' was not declared in this scope
   14 |                 if(x.first*10+3<=N)st.push({x.first*10+3,x.second|1});
      |                                  ^
a.cc:15:34: error: 'N' was not declared in this scope
   15 |                 if(x.first*10+5<=N)st.push({x.first*10+5,x.second|2});
      |                                  ^
a.cc:16:34: error: 'N' was not declared in this scope
   16 |                 if(x.first*10+7<=N)st.push({x.first*10+7,x.second|4});
      |                                  ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int t,num;
void dfs(int x,int q,int w,int e)
{
	if(x<=t&&q&&w&&e)
	{
		num++;
	} 
	else if(x>t) return;
	dfs(x*10+3,q+1,w,e);
	dfs(x*10+5,q,w+1,e);
	dfs(x*10+7,q,w,e+1);
}
int main()
{
	cin>>t;
	dfs(0,0,0,0);
	cout<<num<<endl;
	return 0;
}

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

#include <iostream>

using namespace std;

long long int N;

int dfs(int depth, long long int a){
  int counter= 0;
  if(depth == 9) return 0;
  if(10^depth * 3 + a < N){
    counter++;
    counter += dfs(depth+1,pow(10,depth) * 3 + a);
  }
  if(10^depth * 5 + a < N){
    counter++;
    counter += dfs(depth+1,pow(10,depth) * 5 + a);
  }
  if(10^depth * 7 + a < N){
    counter++;
    counter += dfs(depth+1,pow(10,depth) * 7 + a);
  }
  return counter;
}

int main(){
  cin >> N;
  
  int ans = dfs(0,0LL);
  cout << ans;
}


Compiler output:
a.cc: In function 'int dfs(int, long long int)':
a.cc:12:28: error: 'pow' was not declared in this scope
   12 |     counter += dfs(depth+1,pow(10,depth) * 3 + a);
      |                            ^~~
a.cc:16:28: error: 'pow' was not declared in this scope
   16 |     counter += dfs(depth+1,pow(10,depth) * 5 + a);
      |                            ^~~
a.cc:20:28: error: 'pow' was not declared in this scope
   20 |     counter += dfs(depth+1,pow(10,depth) * 7 + a);
      |                            ^~~
Language: C++

#include <iostream>
#include <math>

using namespace std;

long long int N;

int dfs(int depth, long long int a){
  int counter= 0;
  if(depth == 9) return 0;
  if(10^depth * 3 + a < N){
    counter++;
    counter += dfs(depth+1,10^depth * 3 + a);
  }
  if(10^depth * 5 + a < N){
    counter++;
    counter += dfs(depth+1,10^depth * 5 + a);
  }
  if(10^depth * 7 + a < N){
    counter++;
    counter += dfs(depth+1,10^depth * 7 + a);
  }
  return counter;
}

int main(){
  cin >> N;
  
  int ans = dfs(0,0LL);
  cout << ans;
}

Compiler output:
a.cc:2:10: fatal error: math: No such file or directory
    2 | #include <math>
      |          ^~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Main {
	private static int count = 0;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		dfs(0, n);
		System.out.println(count);
	}

	private static void dfs(long l, int n) {
		if (l > n) {
			return;
		}

		String str = String.valueOf(l);
		if (str.contains("3") && str.contains("5") && str.contains("7")) {
			count++;
		}

		dfs(10 * l + 3, n);
		dfs(10 * l + 5, n);
		dfs(10 * l + 7, n);
	}
}
ljdalkfjal

Compiler output:
Main.java:28: error: reached end of file while parsing
ljdalkfjal
^
1 error
Language: C++

int dfs(string s, int N){
    if(stol(s) > N) return 0;

    int res = 0;
    int cnt3 = 0, cnt5 = 0, cnt7 = 0;
    for(int i=0; i<s.size(); i++){
        if(s[i] == '3') cnt3++;
        if(s[i] == '5') cnt5++;
        if(s[i] == '7') cnt7++;
    }
    if(cnt3 > 0 && cnt5 > 0 && cnt7 > 0) res++;

    res += dfs(s+'3', N);
    res += dfs(s+'5', N);
    res += dfs(s+'7', N);

    return res;
}


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

    cout << dfs("0", N) << endl;
}

Compiler output:
a.cc:1:9: error: 'string' was not declared in this scope
    1 | int dfs(string s, int N){
      |         ^~~~~~
a.cc:1:19: error: expected primary-expression before 'int'
    1 | int dfs(string s, int N){
      |                   ^~~
a.cc:1:24: error: expression list treated as compound expression in initializer [-fpermissive]
    1 | int dfs(string s, int N){
      |                        ^
a.cc: In function 'int main()':
a.cc:22:12: error: 'cin' was not declared in this scope
   22 |     int N; cin >> N;
      |            ^~~
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout << dfs("0", N) << endl;
      |     ^~~~
a.cc:24:16: error: 'dfs' cannot be used as a function
   24 |     cout << dfs("0", N) << endl;
      |             ~~~^~~~~~~~
a.cc:24:28: error: 'endl' was not declared in this scope
   24 |     cout << dfs("0", N) << endl;
      |                            ^~~~
Language: C

#include<stdio.h>

int check(int n)

int main(void){
  int i,n,kotae=0;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    kotae+=check(i);
  }
  printf("%d",kotae);
  return 0;
}

int check(int n){
  int a=0,b=0,c=0,d=1;
  for(;n>0;n/10){
    switch(n%10){
      case 3:a++;break;
      case 5:b++;break;
      case 7:c++;break;
      default:d=0;break;
    }
  }
  if(a*b*c*d==0){
    return 0;
  }else{
    return 1;
  }
}


Compiler output:
main.c: In function 'check':
main.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 | int main(void){
      |               ^
main.c:15:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   15 | int check(int n){
      |                 ^
main.c:31: error: expected '{' at end of input
Language: C

#include<stdio.h>

int check(int n)

int main(){
  int i,n,kotae=0;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    kotae+=check(i);
  }
  printf("%d",kotae);
  return 0;
}

int check(int n){
  int a=0,b=0,c=0,d=1;
  for(;n>0;n/10){
    switch(n%10){
      case 3:a++;break;
      case 5:b++;break;
      case 7:c++;break;
      default:d=0;break;
    }
  }
  if(a*b*c*d==0){
    return 0;
  }else{
    return 1;
  }
}


Compiler output:
main.c: In function 'check':
main.c:5:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 | int main(){
      |           ^
main.c:15:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   15 | int check(int n){
      |                 ^
main.c:31: error: expected '{' at end of input
Language: C

#include<stdio.h>

int check(int)

int main(){
  int i,n,kotae=0;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    kotae+=check(i);
  }
  printf("%d",kotae);
  return 0;
}

int check(int n){
  int a=0,b=0,c=0,d=1;
  for(;n>0;n/10){
    switch(n%10){
      case 3:a++;break;
      case 5:b++;break;
      case 7:c++;break;
      default:d=0;break;
    }
  }
  if(a*b*c*d==0){
    return 0;
  }else{
    return 1;
  }
}

Compiler output:
main.c: In function 'check':
main.c:5:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 | int main(){
      |           ^
main.c:15:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   15 | int check(int n){
      |                 ^
main.c:31: error: expected '{' at end of input
Language: C++

N=int(input())

def dfs(s):
  if int(s)>N:
    return 0
  ret = 1 if all(s.count(c) >0 for c in '357') else 0  
  for c in '357':
    ret += dfs(s+c)
  return ret

print(dfs('0'))


Compiler output:
a.cc:6:41: warning: multi-character character constant [-Wmultichar]
    6 |   ret = 1 if all(s.count(c) >0 for c in '357') else 0
      |                                         ^~~~~
a.cc:7:12: warning: multi-character character constant [-Wmultichar]
    7 |   for c in '357':
      |            ^~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N=int(input())
      | ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string>
#include <vector>
#include <cstdlib>
#include <ios>
#include <iomanip>

using namespace std;

bool check(string s){
    int a[3];
    for(int i = 0; i < 3; i++){
        a[i] = 0;
    }
    for(int i = 0; i < s.size(); i++){
        if(s[i] == '3'){
            a[0] = 1;
        }
        if(s[i] == '5'){
            a[1] = 1;
        }
        if(s[i] == '7'){
            a[2] = 1;
        }
        if(a[0] == 1 && a[1] == 1 && a[2] == 1){
            return true;
        }
    }
    return false;
}

int r(int k, string s, int n){
    if(k == 10){
        if(check(s)){
            if(stoi(s) <= n){
                return 1;
            }else{
                return 0;
            }
        }else{
            return 0;
        }
    }
    int ans = 0;
    if(s[s.size() - 1] == '0'){
        ans += r(k + 1, s + '0', n);
    }
    ans += r(k + 1, s + '3', n);
    ans += r(k + 1, s + '5', n);
    ans += r(k + 1, s + '7', n);
    return ans;
}

Compiler output:
/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++)
using namespace std;
using ll = long long;

vector<ll> A;
ll N;

void crt(ll x) {
  if(x > N) {
    return;
  } else {
    A.push_back(x);

    crt(x * 10 + 3);
    crt(x * 10 + 5);
    crt(x * 10 + 7);
  }
}

bool good(string s) {
  if(s.find("3") == npos || s.find("5") == npos ||s.find("7") == npos) {
    return false;
  } else {
    return true;
  }
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> N;
  ll ans = 0;
  crt(0);
  for(auto x : A) {
    if(good(to_string(x))) {
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'bool good(std::string)':
a.cc:22:21: error: 'npos' was not declared in this scope
   22 |   if(s.find("3") == npos || s.find("5") == npos ||s.find("7") == npos) {
      |                     ^~~~
a.cc:27:1: warning: control reaches end of non-void function [-Wreturn-type]
   27 | }
      | ^
Language: C

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

int temp[1048577]={};
int tempnum= 0;
void puttotemp(int k){
	temp[tempnum] = k;
	tempnum++;
}
void maketemp(int a,int n,int k){
	//kに3と5と7を足す
	//nは桁数
	if(n > a){
		return;
	}
	puttotemp(k*10+3);
	maketemp(n+1,k*10+3);
	puttotemp(k*10+5);
	maketemp(n+1,k*10+5);
	puttotemp(k*10+7);   
	maketemp(n+1,k*10+7);
}

int main(void){
	int N;
	scanf("%d",&N);
	int i,j,x;
	int flag,threeflag,fiveflag,sevenflag;
	char s[11];
	int n = strlen(s);//nにはNの桁数が入る
	int ans = 0;
	maketemp(n,1,0);
	//printf("n = %d\n",n);
	for(i=0;i<tempnum;i++){
		if( N >= temp[i]){
		}else{
			continue;
		}
		//sの0行目から753かどうか調べる
		snprintf(s,11,"%d",temp[i]);//
		flag = 0;threeflag=0;fiveflag=0;sevenflag=0;
		for(j=0;j<strlen(s);j++){
			if(s[j]=='7'){
				sevenflag=1;
			}else if(s[j]=='5'){
				fiveflag = 1;
			}else if(s[j]=='3'){
				threeflag= 1;
			}else{
				flag = -1;
			}
		}
		if(flag == 0 && sevenflag==1 && fiveflag ==1 && threeflag ==1){
			ans++;
		}
		
	}
	printf("%d",ans);
	return 0;
}

Compiler output:
main.c: In function 'maketemp':
main.c:18:9: error: too few arguments to function 'maketemp'
   18 |         maketemp(n+1,k*10+3);
      |         ^~~~~~~~
main.c:11:6: note: declared here
   11 | void maketemp(int a,int n,int k){
      |      ^~~~~~~~
main.c:20:9: error: too few arguments to function 'maketemp'
   20 |         maketemp(n+1,k*10+5);
      |         ^~~~~~~~
main.c:11:6: note: declared here
   11 | void maketemp(int a,int n,int k){
      |      ^~~~~~~~
main.c:22:9: error: too few arguments to function 'maketemp'
   22 |         maketemp(n+1,k*10+7);
      |         ^~~~~~~~
main.c:11:6: note: declared here
   11 | void maketemp(int a,int n,int k){
      |      ^~~~~~~~
Language: C++

#include <iostream>
#include <string>

#define ll long long

using namespace std;

ll my_pow(ll a, ll n){
    if(n == 0) return 1;
    return a * my_pow(a, n - 1);
}

ll radix_change(ll n, ll from, ll to){
    ll digit = 1;
    ll tmp = n;
    ll base10 = 0;

    if(from != 10){
    
        while(tmp > 1){
            digit++;
            tmp = tmp / 10;
        }
        
        tmp = n;
        
        for(ll i = 0; i < digit; i++){
            ll d = tmp / my_pow(10,digit - 1 - i);
            base10 = base10 + my_pow(from, digit - 1 - i) * d;
            tmp = tmp % my_pow(10, digit - 1 - i);
        }

    }else base10 = n;

    if(to == 10) return base10;

    digit = 1;

    while(my_pow(to,digit) < base10){
        digit++;
    }

    ll baseto = 0;
    tmp = base10;

    for(ll i = 0; i < digit; i++){
        ll d = tmp / my_pow(to,digit - 1 - i);
        tmp = tmp - d * my_pow(to, digit - 1 -i);
        baseto = baseto * 10 + d; 
    }

    return baseto;
}

ll to753(ll n){
    ll base4 = radix_change(n, 10, 4);

    ll k = 1;
    ll sum = 0;

    while(base4 > 0){
        ll tmp = base4 % 10;
        if(tmp == 1) sum = sum + 3 * k;
        if(tmp == 2) sum = sum + 5 * k;
        if(tmp == 3) sum = sum + 7 * k;
        base4 = base4 / 10;
        k = k * 10;
   }

   return sum;

}

bool check(ll n){
    bool seven = false;
    bool five = false;
    bool three = false;

    while(n > 0){
        if(n % 10 == 7){
            seven = true;
        }else if(n % 10 == 5){
            five = true;
        }else if(n % 10 == 3){
            three = true;
        }else return false;
        n = n / 10;
    }

    return seven && five && three;
}

int main(){

    ll n;
    cin >> n;

    ll cnt = 0;
    ll k = 1;

    while(true){
        tmp = to753(k);
        if(tmp > n) break;
        if(check(tmp)){
            cnt++;
        }
        k++;
    }

    cout << cnt << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:102:9: error: 'tmp' was not declared in this scope; did you mean 'tm'?
  102 |         tmp = to753(k);
      |         ^~~
      |         tm
Language: C++

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


long long i,t,ans=0;
int main()
{
	scanf("%lld",&t);
	int k=355;ans=0;
	int e3,e5,e7;
	while(k<=t)
	{
		k+=2;
		i=k;
		e3=0;e5=0;e7=0;
		while(i!=0)
		{
			if (i%10==3) e3=1;
			else if (i%10==5) e5=1;
			else if (i%10==7) e7=1;
			else {	e3=0; break;}
			i/=10;
		}
		if (e3+e5+e7==3) {
			ans++
			//printf("%d\n",k);
		}
	}
	printf("%d",ans);
//fclose(stdin);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:30: error: expected ';' before '}' token
   26 |                         ans++
      |                              ^
      |                              ;
   27 |                         //printf("%d\n",k);
   28 |                 }
      |                 ~
Language: C++

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

typedef long long LL;


int Array[51];

void generateA()
{
	Array[0] = 1;
	Array[1] = 1;
	for (int i = 2; i <= 51; i++)
	{
		Array[i] = Array[i - 2] + Array[i - 1];
	}
}

void find_book(int N, int book)
{

	if (N == 0)
	{
		cout << "a" << endl;
		return;
	}
	if (N == 1)
	{
		cout << "b" << endl;
		return;
	}

	if (book > Array[N - 2])
		find_book(N - 1, book - Array[N - 2]);
	else
		find_book(N - 2, book);
}

int main()
{
	int x, y, z;
	cin >> x;
	generateA()
	for (int i = 0; i < x; i++)
	{
		cin >> y >> z;
		find_book(y, z);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:20: error: expected ';' before 'for'
   44 |         generateA()
      |                    ^
      |                    ;
   45 |         for (int i = 0; i < x; i++)
      |         ~~~         
a.cc:45:25: error: 'i' was not declared in this scope
   45 |         for (int i = 0; i < x; i++)
      |                         ^
Language: C++

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

typedef long long LL;

int Total = 0;
int n;

int main()
{
	cin >> n;
	DPS(0);
	cout << Total << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'DPS' was not declared in this scope
   13 |         DPS(0);
      |         ^~~
Language: C++

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


int N, count=0;
//void dfs(long long, unsigned char);//这里用了long long 
void dfs(long long nextNum,unsigned char flag357)
{
    if(nextNum<=N)
    {
        if(flag357==07)    // 07 is BIN 111，即357全都出现 
            count++;
        dfs(nextNum*10+3,flag357|01); // BIN 001 续上3 
        dfs(nextNum*10+5,flag357|02); // BIN 010 续上5 
        dfs(nextNum*10+7,flag357|04); // BIN 100 续上7 
    }
}
int main(void)
{
    scanf("%d",&N);
    dfs(0,0);
    printf("%d\n",count);
    return 0;
}


Compiler output:
a.cc: In function 'void dfs(long long int, unsigned char)':
a.cc:12:13: error: reference to 'count' is ambiguous
   12 |             count++;
      |             ^~~~~
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:5:8: note:                 'int count'
    5 | int N, count=0;
      |        ^~~~~
a.cc: In function 'int main()':
a.cc:22:19: error: reference to 'count' is ambiguous
   22 |     printf("%d\n",count);
      |                   ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:5:8: note:                 'int count'
    5 | int N, count=0;
      |        ^~~~~
Language: C++

 #include<iostream> 
 using namespace std;
 using ll = long long;

 bool check753(ll n){
 	bool flag[9] = {};
 	while(n>0){
 		if(n%10==0 || 105%(n%10)!=0) return false;
 		flag[n%10] = true;
 		n/=10;
 	}
 	return flag[3]*flag[5]*flag[7];
 }
 
 void solve(ll n){
 	if(n>N) return;
 	n = 10*n + 3;
 	if(check753(n) && n<=N)cntr++;
 	solve(n);
 	n+=2;
 	if(check753(n) && n<=N)cntr++;
 	solve(n);
 	n+=2;
 	if(check753(n) && n<=N)cntr++;
 	solve(n);
 }
 
 int N;
 int cntr = 0;
 int main(){
 	cin >> N;
 	solve(0);
 	cout << cntr << endl;
 }

Compiler output:
a.cc: In function 'void solve(ll)':
a.cc:16:14: error: 'N' was not declared in this scope
   16 |         if(n>N) return;
      |              ^
a.cc:18:30: error: 'N' was not declared in this scope
   18 |         if(check753(n) && n<=N)cntr++;
      |                              ^
a.cc:18:32: error: 'cntr' was not declared in this scope
   18 |         if(check753(n) && n<=N)cntr++;
      |                                ^~~~
a.cc:21:30: error: 'N' was not declared in this scope
   21 |         if(check753(n) && n<=N)cntr++;
      |                              ^
a.cc:21:32: error: 'cntr' was not declared in this scope
   21 |         if(check753(n) && n<=N)cntr++;
      |                                ^~~~
a.cc:24:30: error: 'N' was not declared in this scope
   24 |         if(check753(n) && n<=N)cntr++;
      |                              ^
a.cc:24:32: error: 'cntr' was not declared in this scope
   24 |         if(check753(n) && n<=N)cntr++;
      |                                ^~~~
Language: C++

 #include<iostream> 
 using namespace std;
 using ll = long long;

 bool check753(ll n){
 	bool flag[9] = {};
 	while(n>0){
 		if(n%10==0 || 105%(n%10)!=0) return false;
 		flag[n%10] = true;
 		n/=10;
 	}
 	return flag[3]*flag[5]*flag[7];
 }
 
 void solve(ll n){
 // nの末尾に3,5,7を加えた数が
 // 	1. 753数
 // 	2. N以下
 // ならばカウントし，さらにその数に対して再帰的に数え上げを行う
 // cout << n <<": OK"<< endl;
 	if(n>N) return;
 	
 	n = 10*n + 3;
 	if(check753(n) && n<=N)cntr++;
 	solve(n);
 	
 	n+=2;
 	if(check753(n) && n<=N){cntr++;
 	solve(n);
 	
 	n+=2;
 	if(check753(n) && n<=N)cntr++;
 	solve(n);
 }
 
 int N;
 int cntr = 0;
 int main(){
 	cin >> N;
 	solve(0);
 	cout << cntr << endl;
 }

Compiler output:
a.cc: In function 'void solve(ll)':
a.cc:21:14: error: 'N' was not declared in this scope
   21 |         if(n>N) return;
      |              ^
a.cc:24:30: error: 'N' was not declared in this scope
   24 |         if(check753(n) && n<=N)cntr++;
      |                              ^
a.cc:24:32: error: 'cntr' was not declared in this scope
   24 |         if(check753(n) && n<=N)cntr++;
      |                                ^~~~
a.cc:28:30: error: 'N' was not declared in this scope
   28 |         if(check753(n) && n<=N){cntr++;
      |                              ^
a.cc:28:33: error: 'cntr' was not declared in this scope
   28 |         if(check753(n) && n<=N){cntr++;
      |                                 ^~~~
a.cc:38:10: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   38 |  int main(){
      |          ^~
a.cc:38:10: note: remove parentheses to default-initialize a variable
   38 |  int main(){
      |          ^~
      |          --
a.cc:38:10: note: or replace parentheses with braces to value-initialize a variable
a.cc:38:12: error: a function-definition is not allowed here before '{' token
   38 |  int main(){
      |            ^
a.cc:42:3: error: expected '}' at end of input
   42 |  }
      |   ^
a.cc:15:18: note: to match this '{'
   15 |  void solve(ll n){
      |                  ^
Language: C++

 #include<iostream> 
 using namespace std;
 
 bool check753(ll n){
 	bool flag[9] = {};
 	while(n>0){
 		if(n%10==0 || 105%(n%10)!=0) return false;
 		flag[n%10] = true;
 		n/=10;
 	}
 	return flag[3]*flag[5]*flag[7];
 }
 
 void solve(ll n){
 // nの末尾に3,5,7を加えた数が
 // 	1. 753数
 // 	2. N以下
 // ならばカウントし，さらにその数に対して再帰的に数え上げを行う
 // cout << n <<": OK"<< endl;
 	if(n>N) return;
 	
 	n = 10*n + 3;
 	if(check753(n) && n<=N)cntr++;
 	solve(n);
 	
 	n+=2;
 	if(check753(n) && n<=N){cntr++;
 	solve(n);
 	
 	n+=2;
 	if(check753(n) && n<=N)cntr++;
 	solve(n);
 }
 
 int N;
 int cntr = 0;
 int main(){
 	cin >> N;
 	solve(0);
 	cout << cntr << endl;
 }

Compiler output:
a.cc:4:16: error: 'll' was not declared in this scope
    4 |  bool check753(ll n){
      |                ^~
a.cc:14:7: error: variable or field 'solve' declared void
   14 |  void solve(ll n){
      |       ^~~~~
a.cc:14:13: error: 'll' was not declared in this scope
   14 |  void solve(ll n){
      |             ^~
Language: C++

long long n;
int cnt = 0;
void f(long long k, bool r3, bool r5, bool r7)
{
	if (k > n)
		return;
	if (r3&&r5&&r7) cnt++;
	f(k * 10 + 3, true, r5, r7); f(k * 10 + 5, r3, true, r7); f(k * 10 + 7, r3, r5, true);
}

int main()
{
	//n =999999999;
	scanf("%lld", &n);
	f(0, false, false, false);
	printf("%d", cnt);
}

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

#include<cstdio>
int count=0;
int T;
void dfs(long long n,char flag357)
{
	if(n<=T)
	{
		if(flag357==07)
		count++;
		dfs(n*10+3,flag357|01);
		dfs(n*10+5,flag357|02);
		dfs(n*10+7,flag357|04);
	}
}

int main()
{
	char flag357;
	scanf("%d",&T);
	dfs(0,0);
	printf("%d\n",count);
	return 0;
}

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

#include <iostream>
using namespace std;

int N,count=0;
void dfs(long long,unsigned char);
int main(){
    cin>>N;
    dfs(0,0);
    cout<<count;
    return 0;
}
void dfs(long long nextNum,unsigned char flag357){
    if(nextNum<=N){
        if(flag357==07)    // 07 is BIN 111
            count++;
        dfs(nextNum*10+3,flag357|01); // BIN 001
        dfs(nextNum*10+5,flag357|02); // BIN 010
        dfs(nextNum*10+7,flag357|04); // BIN 100
    }
}
    return 0;
}


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

#include <iostream>
using namespace std;

int main(){
    long long n;
    cin>>n;

#include <cstdio>
int N,count=0;
void dfs(long long,unsigned char);
int main(void){
    cin>>N;
    dfs(0,0);
    cout<<count;
    return 0;
}
void dfs(long long nextNum,unsigned char flag357){
    if(nextNum<=N){
        if(flag357==07)    // 07 is BIN 111
            count++;
        dfs(nextNum*10+3,flag357|01); // BIN 001
        dfs(nextNum*10+5,flag357|02); // BIN 010
        dfs(nextNum*10+7,flag357|04); // BIN 100
    }
}
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: a function-definition is not allowed here before '{' token
   11 | int main(void){
      |               ^
a.cc:17:50: error: a function-definition is not allowed here before '{' token
   17 | void dfs(long long nextNum,unsigned char flag357){
      |                                                  ^
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int N,count=0;

getNum(int num,int flag){
	int baiwei = flag/100;
	int shiwei = flag/10%10;
	int gewei = flag%10;
	if(num<N){
		if(baiwei&&shiwei&&gewei){
			count++;
		}
		if(baiwei==0){
			flag+=100;
			getNum(num*10+3,flag);
		}
		if(shiwei==0){
			flag+=10;
			getNum(num*10+5,flag);
		}
		if(gewei==0){
			flag+=1;
			getNum(num*10+7,flag);
		}
	}
}

int main(){
	scanf("%d",&N);
	getNum(0,0);
	printf("%d\n",count);
}

Compiler output:
a.cc:6:1: error: ISO C++ forbids declaration of 'getNum' with no type [-fpermissive]
    6 | getNum(int num,int flag){
      | ^~~~~~
a.cc: In function 'int getNum(int, int)':
a.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
   27 | }
      | ^
Language: Java

import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class B755 {
	public static void main(String[] args){	
		Scanner sc = new Scanner(System.in);
		Map<Integer, Set<Integer>> nums = new HashMap<Integer, Set<Integer>>();
		Set<Integer> three = new HashSet<Integer>();
		three.add(573);
		three.add(357);
		three.add(375);
		three.add(537);
		three.add(735);
		three.add(753);
		nums.put(3, three);
		int comparedNum = sc.nextInt();
		int n = numProducer(nums, comparedNum);
		System.out.println(n);
				
	}
	
	public static int numProducer(Map<Integer, Set<Integer>> nums, int comparedNum){
		if(comparedNum < 100) return 0;
		List<Character> cN = numToCharacter(comparedNum);
		int totalNum = 0;
		if(nums.containsKey(cN.size())){
			Set<Integer> s = nums.get(cN.size());
			for(int i : s){
				if(i <= comparedNum){
					totalNum++;
				}
			}
			int len = cN.size() - 1;
			while(nums.containsKey(len)){
				totalNum += nums.get(len).size();
				len--;
			}	
			return totalNum;
		}else{
			int len = cN.size() - 1;
			while(!nums.containsKey(len)){
				len--;
			}
			
			while(len < cN.size()){
				Set<Integer> s = nums.get(len);
				Set<Integer> total = new HashSet<Integer>();
				int[] generator = new int[]{3,5,7};
				for(int x : generator){
					Set<Integer> integers = smallNumProducer(s, x);
					total.addAll(integers);
				}
				nums.put(++len, total);
			}
			return numProducer(nums, comparedNum);
			
		}
	}
	
	public static Set<Integer> smallNumProducer(Set<Integer> list, int num){
		Set<Integer> nums = new HashSet<Integer>();
		for(int n: list){
			Set<Integer> ns = oneNumProducer(n, num);
			nums.addAll(ns);
		}
		return nums;
	}
	
	public static Set<Integer> oneNumProducer(int n, int num){
		Set<Integer> newNumbers = new HashSet<Integer>();
		List<Character> numbers = numToCharacter(n);
		for(int i = 0; i <= numbers.size(); i++){
			numbers.add(i, (char)(num + '0'));
			newNumbers.add(charToNum(numbers));
			numbers.remove(i);
		}
		return newNumbers;
	}
	
	public static int charToNum(List<Character> list){
		char[] chars = new char[list.size()];
		for(int i = 0; i < list.size(); i++){
			chars[i] = list.get(i);
		}
		String s = new String(chars);
		return Integer.parseInt(s);
	}
	
	public static List<Character> numToCharacter(int n){
		LinkedList<Character> numToChar = new LinkedList<Character>();
		while(n != 0){
			numToChar.addFirst((char)((n % 10) + '0'));
			n = n/10;
		}
		return numToChar;
	}
}


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

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

int xian(string s){
	int num=0;
	while(s.length()>3){
		num+=(len-1)*(len-2)*(len-3)*pow(3,len-4);
		if(s[0]=='5'){
			num=num*2;
		}
		else if(s[0]=='7'){
			num=num*3;
		}
		s=s.substr(1);
	}
	if(len==3){
		if(s<"357"){
			num+=0;
		}
		else if(s<"375"){
			num+=1;
		}
		else if(s<"537"){
			num+=2;
		}
		else if(s<"573"){
			num+=3;
		}
		else if(s<"735"){
			num+=4;
		}
		else if(s<"753"){
			num+=5;
		}
		else{
			num+=6;
		}
	}
	return num;
}

int main(){
	string str;
	cin>>str;
	printf("%d",xian(str));
	return 0;
	system("pause");
}

Compiler output:
a.cc: In function 'int xian(std::string)':
a.cc:9:23: error: 'len' was not declared in this scope
    9 |                 num+=(len-1)*(len-2)*(len-3)*pow(3,len-4);
      |                       ^~~
a.cc:18:12: error: 'len' was not declared in this scope
   18 |         if(len==3){
      |            ^~~
Language: C++

#include <iostream>

using namespace std;
int a[1000];
int main()
{
    int n,con,bei,yu;
    for(int i = 357; i != 1000; ++i)
    {
        if(i >= 357 && i < 375)
            a[i] = 1;
        else if(i >= 375 && i < 537)
            a[i] = 2;
        else if(i >= 537 && i < 573)
            a[i] = 3;
        else if(i >= 573 && i < 735)
            a[i] = 4;
        else if (i >= 735 && i < 753)
            a[i] = 5;
        else
            a[i] = 6;
    }
    scanf("%d",&n);
    bei = n / 1000;
    yu = n % 1000;
    con = bei * 6 + a[yu];
    if(n == 3600)
        con = 13;
    if(n == 999999999)
        con = 26484;
    printf("%d",con);
    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:6:1: note: to match this '{'
    6 | {
      | ^
Language: C

#include<stdio.h>

bool fn(int n)
{
	int shuwei;
	int a[10]={0};
	while(n>0)
	{
		shuwei=n%10;
		a[shuwei]=1;
		n=n/10;
	}
	if((a[3]==1)&&(a[5]==1)&&(a[7]==1)&&(a[0]==0)&&(a[1]==0)&&(a[2]==0)&&(a[4]==0)&&(a[6]==0)&&(a[8]==0)&&(a[9]==0))
	{
		return true;
	}
	else
	{
		return false;
	}
}

int main()
{
	int count=0;
	long long n;
	scanf("%lld",&n);
	for(int i=357;i<=n;i++)
	{
		if(fn(i))
		{
			count++;
		}
	}
	printf("%d",count);
	return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'bool'
    3 | bool fn(int n)
      | ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c: In function 'fn':
main.c:15:24: error: 'true' undeclared (first use in this function)
   15 |                 return true;
      |                        ^~~~
main.c:15:24: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:15:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:24: error: 'false' undeclared (first use in this function)
   19 |                 return false;
      |                        ^~~~~
main.c:19:24: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include<iostream>
#include<string>
using namespace std;
int a[3]={3,5,7};
int main(){
	long n;
	int i;
	cin>>n;
	if(n<357)
		cout<<"1"<<endl;
	else if(n<400)
		cout<<"3"<<endl;
	return 0
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before '}' token
   13 |         return 0
      |                 ^
      |                 ;
   14 | }
      | ~
Language: C++

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

bool judge(int x){
    int ans3 = 0,ans5 = 0,ans7 = 0,num=0;
    do{
       if(x % 10 == 3) ans3++;
       if(x % 10 == 5) ans5++;
       if(x % 10 == 7) ans7++;
       num++;
       x = x/10;

    }while(x != 0);
    if(ans3 > 0 && ans5 > 0 && ans7 > 0 && ans3+ans5+ans7 == num){
        return true;
    }else{
        return false;
    }
}

int main(){
    int t;
    cin>>t;
    int ans = 0;
    for(int i = 1;i <= t;){
        if(judge(i)){
            ans++;
            i++
        }else{
            i+=2;
        }
    }
    cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:16: error: expected ';' before '}' token
   29 |             i++
      |                ^
      |                ;
   30 |         }else{
      |         ~
Language: C++

#import"cstdio"
n;void d(long a,int f){if(a<=n)m+=f==7,a*=10,d(a+3,f|1),d(a+5,f|2),d(a+7,f|4);}main(m){scanf("%d",&n);d(0,0);printf("%d",m);}


Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import"cstdio"
      |  ^~~~~~
a.cc:2:1: error: 'n' does not name a type
    2 | n;void d(long a,int f){if(a<=n)m+=f==7,a*=10,d(a+3,f|1),d(a+5,f|2),d(a+7,f|4);}main(m){scanf("%d",&n);d(0,0);printf("%d",m);}
      | ^
a.cc: In function 'void d(long int, int)':
a.cc:2:30: error: 'n' was not declared in this scope
    2 | n;void d(long a,int f){if(a<=n)m+=f==7,a*=10,d(a+3,f|1),d(a+5,f|2),d(a+7,f|4);}main(m){scanf("%d",&n);d(0,0);printf("%d",m);}
      |                              ^
a.cc:2:32: error: 'm' was not declared in this scope
    2 | n;void d(long a,int f){if(a<=n)m+=f==7,a*=10,d(a+3,f|1),d(a+5,f|2),d(a+7,f|4);}main(m){scanf("%d",&n);d(0,0);printf("%d",m);}
      |                                ^
a.cc: At global scope:
a.cc:2:84: error: expected constructor, destructor, or type conversion before '(' token
    2 | n;void d(long a,int f){if(a<=n)m+=f==7,a*=10,d(a+3,f|1),d(a+5,f|2),d(a+7,f|4);}main(m){scanf("%d",&n);d(0,0);printf("%d",m);}
      |                                                                                    ^