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

#include <stdio.h>

typedef long long ll;

int digits[] = {3, 5, 7};

int check(ll cur) {
    int a, b, c;
    a = b = c = 0;

    while (cur) {
        int t = cur %10;
        cur /= 10;
        if (t == 3) a = 1;
        else if (t == 5) b = 1;
        else if (t == 7) c = 1;
    }

    return a && b && c;
}

int dfs(ll cur, int n) {
    if (cur > n) return 0;
    int ret = check(cur);
    for (int i = 0; i < 3; i ++) ret += dfs(10 * cur, n);
    return ret;
}

int main(){
    int n;
    scanf("%d", &n);
    printf("%d\n", dfs(3, n) + dfs(5, n) + dfs(7, n);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:32:53: error: expected ')' before ';' token
   32 |     printf("%d\n", dfs(3, n) + dfs(5, n) + dfs(7, n);
      |           ~                                         ^
      |                                                     )
main.c:33:14: error: expected ';' before '}' token
   33 |     return 0;
      |              ^
      |              ;
   34 | }
      | ~
Language: C++

#include<iostream>
#include<string>
#include<cstdlib>
#include <vector>
using namespace std;
int pow(int n){
    if(n==0)return 1;
    else return pow(n-1)*10;
}
int getRank(int N){
    if(N==0)return 0;
    else return getRank(N/10)+1;
}
int head(int N, int order){
    return N/pow(order-1);
}
int tail(int N, int order){
    return N % pow(order-1);
}
int get(int rank, int N){
    return (N/pow(rank))%10;
}
vector<vector<vector<vector<int>>>> memo=  vector<vector<vector<vector<int>>>>(10,
 vector<vector<vector<int>>>(2,
 vector<vector<int>>(2,
 vector<int> (2,0))));
//no limit
int solve(int order, int seven, int five, int three){
    if(memo[order][seven][five][three]!=0)return memo[order][seven][five][three];
    if(order==0)return seven&&five&&three?1:0;
    else return memo[order][seven][five][three]=solve( order-1, 1, five, three)
    +solve( order-1, seven, 1, three)
    +solve( order-1, seven, five, 1);
}
//limit
int solve(int order, int N, int seven, int five, int three){
    if(order==0)return seven&&five&&three?1:0;
    else {
        int headN=head(N);
        int tailN=tail(N);
        if(headN>=8)
        return solve( order-1, 1, five, three)
        +solve( order-1, seven, 1, three)
        +solve( order-1, seven, five, 1);
        if(headN==7)    
        return solve(order-1, tailN, 1, five, three)
        +solve(order-1, seven, 1, three)
        +solve(order-1, seven, five, 1);
        if(headN==6)    
        return solve(order-1, seven, 1, three)
        +solve(order-1, seven, five, 1);
        if(headN==5)    
        return solve(order-1, tailN, seven, 1, three)
        +solve(order-1, seven, five, 1);
        if(headN==4)    
        return solve(order-1, seven, five, 1);
        if(headN==3)    
        return solve(order-1, tailN, seven, five, 1);
        else return 0;
    }
}
int main(){
    int N;
    cin>>N;
    int NnogetRank = getRank(N);
    int sum =0;
    for(int i=1;i<=NnogetRank;i++){
        sum+=solve(i,N,0,0,0);
    }
    cout<<sum<<endl;
}

Compiler output:
a.cc: In function 'int solve(int, int, int, int, int)':
a.cc:39:23: error: too few arguments to function 'int head(int, int)'
   39 |         int headN=head(N);
      |                   ~~~~^~~
a.cc:14:5: note: declared here
   14 | int head(int N, int order){
      |     ^~~~
a.cc:40:23: error: too few arguments to function 'int tail(int, int)'
   40 |         int tailN=tail(N);
      |                   ~~~~^~~
a.cc:17:5: note: declared here
   17 | int tail(int N, int order){
      |     ^~~~
Language: Java

import java.util.Scanner;

public class C755 {
	static int count=0;
	static int k;
	public static void main(String[] args) {
		int[][] pop = new int[84][3];
		Scanner sc = new Scanner(System.in);
		k = sc.nextInt();

		int num=0;
			int pi=0;
			for(int three=1;three<9;three++) {
				for(int five=1;five<9;five++) {
					for(int seven=1;seven<9;seven++) {
						if(three+five+seven<=9) {
							pop[num][0]=three;
							pop[num][1]=five;
							pop[num++][2]=seven;
						}
					}
				}
			}
//			System.out.println(pop.length);
		for(int[] h:pop) {
			int[] ss=new int[h[0]+h[1]+h[2]];
			int i=0;
			for(int p=0;p<h[0];p++)ss[i++]=3;
			for(int p=0;p<h[1];p++)ss[i++]=5;
			for(int p=0;p<h[2];p++)ss[i++]=7;
			permutation(ss);
//			System.out.println(ss.length);
//	    	int w=0;
//			for(int s=0;s<ss.length;s++) {
//				for(int m=1;m<ss.length-s;m++)ss[s]*=10;
//				w+=ss[s];
//			}
//			System.out.println(w);
		}
		System.out.println(count);
	}
    private static void permutation(int[] seed) {
        int[] perm = new int[seed.length];
        boolean[] used = new boolean[seed.length];
        buildPerm(seed, perm, used, 0);
    }

    private static void buildPerm(int[] seed, int[] perm, boolean[] used, int index) {
        if (index == seed.length) {
            procPerm(perm);
            return;
        }

        for (int i = 0; i < seed.length; ++i) {
            if (used[i]) continue;
            perm[index] = seed[i];
            used[i] = true;
            buildPerm(seed, perm, used, index + 1);
            used[i] = false;
        }
    }

    private static void procPerm(int[] perm) {
    	int num=0;
		for(int s=0;s<perm.length;s++) {
			int tem=perm[s];
			for(int i=1;i<perm.length-s;i++)tem*=10;
			num+=tem;
		}
//		System.out.println(num);
		if(num<=k && num>0) {

			count++;
		}
    }
}


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

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

int get_power10(int n);

int main(void)
{
  int n;
  int level;
  int comb;
  int full_comb;
  int biggest_digit;
  int i;
  
  cin >> n;
  
  level = get_power10(n);
  
  for(i = 3; i < level; i++){
    comb += pow(3, i) - pow(2, i) * 3 + 3;
  }
  
  biggest_digit = n / pow(10, level);
  full_comb = pow(3, level) - pow(2, level) * 3 + 3;
  
  if(biggest_digit >= 7){
  	comb += full_comb;
  }else if(biggest_digit >= 5){
    comb += full_comb / 3 * 2;
  }else if(biggest_digit >= 3){
    comb += full_comb / 3
  }
  
  cout << comb << endl;
  
  return 0;
}


int get_power10(int n)
{
  int power = 0;
  
  while(n >= 10){
    n /= 10;
    power++;
  }
  
  return power;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:26: error: expected ';' before '}' token
   32 |     comb += full_comb / 3
      |                          ^
      |                          ;
   33 |   }
      |   ~
Language: C++

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

int main(void)
{
  int n;
  int level;
  int comb;
  int full_comb;
  int biggest_digit;
  int i;
  
  cin >> n;
  
  level = (int)log(10, n);
  
  for(i = 3; i < level; i++){
    comb += pow(3, i) - pow(2, i) * 3 + 3;
  }
  
  biggest_digit = n / pow(10, level);
  full_comb = pow(3, level) - pow(2, level) * 3 + 3;
  
  if(biggest_digit >= 7){
  	comb += full_comb;
  }else if(biggest_digit >= 5){
    comb += full_comb / 3 * 2;
  }else if(biggest_digit >= 3){
    comb += full_comb / 3
  }
  
  cout << comb << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: no matching function for call to 'log(int, int&)'
   16 |   level = (int)log(10, n);
      |                ~~~^~~~~~~
In file included from a.cc:2:
/usr/include/c++/14/cmath:338:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::log(_Tp)'
  338 |     log(_Tp __x)
      |     ^~~
/usr/include/c++/14/cmath:338:5: note:   candidate expects 1 argument, 2 provided
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:122:1: note: candidate: 'double log(double)'
  122 | __MATHCALL_VEC (log,, (_Mdouble_ __x));
      | ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:122:1: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:330:3: note: candidate: 'constexpr long double std::log(long double)'
  330 |   log(long double __x)
      |   ^~~
/usr/include/c++/14/cmath:330:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:326:3: note: candidate: 'constexpr float std::log(float)'
  326 |   log(float __x)
      |   ^~~
/usr/include/c++/14/cmath:326:3: note:   candidate expects 1 argument, 2 provided
a.cc:30:26: error: expected ';' before '}' token
   30 |     comb += full_comb / 3
      |                          ^
      |                          ;
   31 |   }
      |   ~
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 '753') else 0
    for c in '753':
        ret += dfs(s + c)
    return ret

print(dfs('0'))

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

package compareStr;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) 
    {PrintWriter out = new PrintWriter(System.out);
		int ans = 0;
		boolean scount = false;
		boolean fcount = false;
		boolean tcount = false;
		boolean flag = true;
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		sc.close();
		for (int i = 357; i < N + 1; i = i + 2) {
			String S = String.valueOf(i);
			int Slen = S.length();
			for (int j = 0; j < Slen; j++) {
				if (S.charAt(j) == '7') {
					scount = true;
				} else if (S.charAt(j) == '5') {
					fcount = true;
				} else if (S.charAt(j) == '3') {
					tcount = true;
				} else {
					flag = false;
					break;
				}
			}
			if (scount && fcount && tcount && flag) {
				ans = ans + 1;
			}
			scount = false;
			fcount = false;
			tcount = false;
			flag = true;
		}
		out.println(ans);
	}

}


Compiler output:
Main.java:8: error: cannot find symbol
    {PrintWriter out = new PrintWriter(System.out);
     ^
  symbol:   class PrintWriter
  location: class Main
Main.java:8: error: cannot find symbol
    {PrintWriter out = new PrintWriter(System.out);
                           ^
  symbol:   class PrintWriter
  location: class Main
2 errors
Language: C++

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

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

  int cnt = 0;
  if (n < 357) {
    break;
  } else if (n < 375) {
    cnt = 1;
    cout << cnt << endl;
  } else if (n < 537) {
    cnt = 2;
    cout << cnt << endl;
  } else if (n < 573) {
    cnt = 3;
    cout << cnt << endl;
  } else if (n < 735) {
    cnt = 4;
    cout << cnt << endl;
  } else if (n < 753) {
    cnt = 5;
    cout << cnt << endl;
  } else if (n< 3357) {
    cnt = 6;
    cout << cnt << endl;
  } else {
    cnt = 6;
    for (int i = 3357; i <= n; i += 2) {
      int tmp = i, three = 0, five = 0, seven = 0;
      bool x = false;
      while (tmp > 0) {
        if (tmp % 10 == 7) {
          seven ++;
        } else if (tmp % 10 == 5) {
          five ++;
        } else if (tmp % 10 == 3) {
          three ++;
        } else {
          x = true;
          break;
        }
        tmp /= 10;
      }
      if (x) {
        continue;
      }
      if (seven > 0 && five > 0 && three > 0) {
        cnt ++;
      }
    }
  }

  cout << cnt << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: break statement not within loop or switch
   10 |     break;
      |     ^~~~~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String x = sc.next();
    int count = 0;
    String str = x;
    int[] stg = {3,7,5};
    int c = Integer.parseInt(x);

    if(c < 357){
        System.out.println("0");
    }else{
        for(int i = 355;i <= c;i += 2){
            String s = String.valueOf(i);
            if((s.contains("3") & !(s.contains("5") & s.contains("7")) & (s.contains("0") | s.contains("1") | s.contains("2") | s.contains("4") | s.contains("6") | s.contains("8") | s.contains("9"))){
                count++;
            }
        }
        System.out.println(count);
    }
  }
}

Compiler output:
Main.java:17: error: ')' expected
            if((s.contains("3") & !(s.contains("5") & s.contains("7")) & (s.contains("0") | s.contains("1") | s.contains("2") | s.contains("4") | s.contains("6") | s.contains("8") | s.contains("9"))){
                                                                                                                                                                                                       ^
1 error
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<iomanip>
#include<math.h>
#include<complex>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
#include<bitset>
using namespace std;
#define REP(i,m,n) for(int i=(int)m ; i < (int) n ; ++i )
#define rep(i,n) REP(i,0,n)
typedef long long ll;
typedef pair<int,int> pint;
typedef pair<ll,int> pli;
const int inf=1e9+7;
const ll longinf=1LL<<60 ;
const ll mod=1e9+7 ;
    using namespace std;

vector<int> buf;
int a[3]={3,5,7};
int ans;

void dfs(int i, const int size)
{
    if (i == size) {
      int x=0;
      bool flag3=false;
      bool flag5=false;
      bool flag7=false;
        // ここで所望の作業を行う
        for(int i = 0; i < buf.size(); ++i){
            x+=pow(10,i)*buf[i];
          if(buf[i]==3)flag3=true;
          if(buf[i]==5)flag3=true;
          if(buf[i]==7)flag3=true;
        }
      if(x<=n && flag3 && flag5 && flag7)ans++;
    }
    else{
        for(int j =0; j <3; ++j){
            buf[i] = a[j];
            dfs(i + 1, size);
        }
    }
}

int main(void)
{
  int n;
  cin >> n;
  int ans=0;
    int size = 0;
  while(n>0){
   size++;
    n/=10;
  }
    buf.resize(size);
    dfs(0, size);
  cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'void dfs(int, int)':
a.cc:43:13: error: 'n' was not declared in this scope
   43 |       if(x<=n && flag3 && flag5 && flag7)ans++;
      |             ^
Language: C

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

int main(void){
  long int N ;
  scanf("%d",&N);
  long int number;
  int three= 0,five=0,seven = 0,t= 0;;
  for (long int i = 0; i < N; i++) {
    three = 0;
    five = 0;
    seven = 0;
    number = i;
    while(number!=0){
     number = number/10;
     ++digit;
    }
    int s[digit];
    for(int j = 0;j < digit;j++){
      s[i] = S/((int)pow(10, digit-i-1));
      S = S%((int)pow(10, digit-i-1));
    }
    for (int k = 0; k < digit; k++) {
      if(s[i] == 3){
        three++;
      }else if(s[i] == 5){
        five++;
      }else if(s[i] == 7){
        seven++;
      }
    }
    if(three > 0&& five >0||seven > 0){
      t++;
    }
  }
  printf("%d\n",t );
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:8: error: 'digit' undeclared (first use in this function)
   18 |      ++digit;
      |        ^~~~~
main.c:18:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:14: error: 'S' undeclared (first use in this function)
   22 |       s[i] = S/((int)pow(10, digit-i-1));
      |              ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
using namespace std;

int main(){

  long N;
  int num[10];
  int ans;
  int ddd=0,fff=0,ggg=0;
  int aAA=0, AAA,BBB;

  scanf("%ld", &N);
  AAA = N;
  BBB =N;


  while(N){
    N = N / 10;
    aAA++;
  }

  for(int k=0;k<aAA;k++){
    num[k]=AAA % 10;
    AAA/=10;
  }
  //num[aAA] = BBB%10;


for(i=0; i< aAA;i++){
  if(num[i]>=7) ddd++;
  if(num[i]>=5) fff++;
  if(num[i]>=3) ggg++;
}

ggg-=fff;
fff-=ddd;
if(ddd == 0 || fff == 0) goto Ans;
ans = 3*(ddd-1) + 2*(fff-1);



  Ans: ;
  printf("%d\n", aAA);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:5: error: 'i' was not declared in this scope
   32 | for(i=0; i< aAA;i++){
      |     ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String x = sc.next();
    int count = 0;
    String str = x;
    int[] stg = {3,7,5};
    int c = Integer.parseInt(x);

    if(c < 357){
        System.out.println("0");
    }else{
        for(int i = 355;i <= c;i += 2){
            String s = String.valueOf(i);
            if((s.contains("3") & !(s.contains("5") & s.contains("7")) &s.contains("0") | s.contains("1") | s.contains("2") | s.contains("4") | s.contains("6") | s.contains("8") | s.contains("9")){
                count++;
            }
        }
        System.out.println(count);
    }
  }
}

Compiler output:
Main.java:17: error: ')' expected
            if((s.contains("3") & !(s.contains("5") & s.contains("7")) &s.contains("0") | s.contains("1") | s.contains("2") | s.contains("4") | s.contains("6") | s.contains("8") | s.contains("9")){
                                                                                                                                                                                                    ^
1 error
Language: Java

package compareStr;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int ans = 0;
		boolean scount = false;
		boolean fcount = false;
		boolean tcount = false;
		boolean flag = true;
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		sc.close();
		for (int i = 357; i < N + 1; i = i + 2) {
			String S = String.valueOf(i);
			int Slen = S.length();
			for (int j = 0; j < Slen; j++) {
				if (S.charAt(j) == '7') {
					scount = true;
				} else if (S.charAt(j) == '5') {
					fcount = true;
				} else if (S.charAt(j) == '3') {
					tcount = true;
				} else {
					flag = false;
					break;
				}
			}
			if (scount && fcount && tcount && flag) {
				ans = ans + 1;
			}
			scount = false;
			fcount = false;
			tcount = false;
			flag = true;
		}
		out.println(ans);
	}

}


Compiler output:
Main.java:39: error: cannot find symbol
		out.println(ans);
		^
  symbol:   variable out
  location: class Main
1 error
Language: C++

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

int main() {
 int N,answer;
  answer=0;
  cin >> N;
  for(int i=1;i<N+1;i++){
    bool j=true;
    string a;
    a=std::to_string(i);
      for(int k=0;k<a.size();k++){
    if(a.at(k)!='7'&&a.at(k)!='5'&&a.at(k)!='3'){
      j=false;
    }
    if(a.at(k)=='3'||a.at(k)=='5'||a.at(k)=='7'){
      j=false;
    }  
    if((a.at(k)=='3')||(a.at(k)=='5'))||(a.at(k)=='5')||(a.at(k)=='7'))||(a.at(k)=='7')||(a.at(k)=='3')){
    j=false;  
    }
        if(j){
     answer=answer+1;
   }  
 }
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:39: error: expected primary-expression before '||' token
   21 |     if((a.at(k)=='3')||(a.at(k)=='5'))||(a.at(k)=='5')||(a.at(k)=='7'))||(a.at(k)=='7')||(a.at(k)=='3')){
      |                                       ^~
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: Java


import java.util.Scanner;

public class Main｛
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		long N = in.nextLong();
		int count = 0;
		for (long i = 0; i < N; i++) {
			if (i / 2 == 1) {
				String s = String.valueOf(i);
				if (s.matches("[^1246890]+")) {
					if (s.matches(".*[3].*")) {
						if (s.matches(".*[5].*")) {
							if (s.matches(".*[7].*")) {
								count++;
							}
						}
					}
				}

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

Compiler output:
Main.java:4: error: illegal character: '\uff5b'
public class Main?
                 ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:26: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.*;
/**
 *
 * @author kouki
 */
public class Aim {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int sichigosan = sc.nextInt();
        int sichigoCounter=0;
        for (int i = 1; i < sichigosan; i++) {
            //System.out.println(i);
            String sichigo = String.valueOf(i);
            if (!(sichigo.contains("0"))&&!(sichigo.contains("1"))&&!(sichigo.contains("2"))&&sichigo.contains("3")
                    &&!(sichigo.contains("4"))&&sichigo.contains("5")&&!(sichigo.contains("6"))&&sichigo.contains("7")
                    &&!(sichigo.contains("8"))&&!(sichigo.contains("9"))) {
                sichigoCounter++;
                System.out.println(i);
            }
        }
        System.out.println(sichigoCounter);
    }
    
}

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

#include <iostream>
using namespace std;
int main()
{
	int n,a,b,c,d,e,f,g,h,i;
	cin>>n;
	a=n%10;
	b=n%100;
	c=n%1000;
	d=n%10000;
	e=n%100000;
	f=n%1000000;
	g=n%10000000;
	h=n%100000000;
	i=n%1000000000;
	if(a<3) a=0;
	if(3<=a<5) a=1;
	if(5<=a<7) a=2;
	if(7<=a) a=3;
	if(b<3) b=0;
	if(3<=b<5) b=1;
	if(5<=b<7) b=2;
	if(7<=b) b=3;
	if(c<3) c=0;
	if(3<=c<5) c=1;
	if(5<=c<7) c=2;
	if(7<=c) c=3;
	if(d<3) d=0;
	if(3<=d<5) d=1;
	if(5<=d<7) d=2;
	if(7<=d) d=3;
	if(e<3) e=0;
	if(3<=e<5) e=1;
	if(5<=e<7) e=2;
	if(7<=e) e=3;
	if(f<3) f=0;
	if(3<=f<5) f=1;
	if(5<=f<7) f=2;
	if(7<=f) f=3;
	if(g<3) g=0;
	if(3<=g<5) g=1;
	if(5<=g<7) g=2;
	if(7<=g) g=3;
	if(h<3) h=0;
	if(3<=h<5) h=1;
	if(5<=h<7) h=2;
	if(7<=h) h=3;
	if(i<3) i=0
	if(3<=i<5) i=1;
	if(5<=i<7) i=2;
	if(7<=i) i=3;
	int ans;
	if(a==3 || b==3 || c==3 || d==3 || e==3 || f==3 || g==3 || h==3 || i==3){
		if(a==3 || b==3 || c==3 || d==3 || e==3 || f==3 || g==3 || h==3){
			if(a==3 || b==3 || c==3 || d==3 || e==3 || f==3 || g==3){
				if(a==3 || b==3 || c==3 || d==3 || e==3 || f==3){
					if(a==3 || b==3 || c==3 || d==3 || e==3){
						if(a==3 || b==3 || c==3 || d==3){
							if(a==3 || b==3 || c==3){
								ans=a*b*c+a*b*c*d+a*b*c*d*e+a*b*c*d*e*f+a*b*c*d*e*f*g+a*b*c*d*e*f*g*h+a*b*c*d*e*f*g*h*i;
							}
							else ans=a*b*c*d+a*b*c*d*e+a*b*c*d*e*f+a*b*c*d*e*f*g+a*b*c*d*e*f*g*h+a*b*c*d*e*f*g*h*i;
						}
						else ans=a*b*c*d*e+a*b*c*d*e*f+a*b*c*d*e*f*g+a*b*c*d*e*f*g*h+a*b*c*d*e*f*g*h*i;
					}
					else ans=a*b*c*d*e*f+a*b*c*d*e*f*g+a*b*c*d*e*f*g*h+a*b*c*d*e*f*g*h*i;
				}
				else ans=a*b*c*d*e*f*g+a*b*c*d*e*f*g*h+a*b*c*d*e*f*g*h*i;
			}
			else ans=a*b*c*d*e*f*g*h+a*b*c*d*e*f*g*h*i;
		}
		else ans=a*b*c*d*e*f*g*h*i;
	}
	else ans=0;
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:20: error: expected ';' before 'if'
   48 |         if(i<3) i=0
      |                    ^
      |                    ;
   49 |         if(3<=i<5) i=1;
      |         ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string n;
	cin >> n;
	int a = 0;
	for(int i = 0; i < n.size(); i++){
		double b = pow(10.0,n.size() - i - 1);
		char c = n[i];
		int y = c - '0';
		a += y * b;
	}
	int count = 0;
	int count3;
	int count5;
	int count7;
	if(a == 999999999){
		cout << 26484 << endl;
	}
	else{
		for(int i = 357; i < a; i++){
		std::string s;
		s = std::to_string(i);
		int k = s.size();
		double b = pow(10.0,k - 1);
		double b2 = pow(10.0,k - 2);
		int f = i % b / b2;
		int e = i / b;
		if(e != 3 && e != 5 && e != 7){
			i += b;
		}
		else if(f != 3 && f!= 5 && f != 7){
			i += b2;
		}
		else{
			if(e == 3){
			 count3 = 1;
			 count5 = 0;
			 count7 = 0;
			}
			if(e == 5){
			 count3 = 0;
			 count5 = 1;
			 count7 = 0;
			}
			if(e == 7){
			 count3 = 0;
			 count5 = 0;
			 count7 = 1;
			}
			for(int j = 1; j < k; j++){
				if(s[j] != '3' && s[j] != '5' && s[j] != '7'){
					break;
				}

				if(s[j] == '3'){count3++;}

				if(s[j] == '5'){count5++;}

			    if(s[j] == '7'){count7++;}

				if(j == k - 1 && count3 != 0 && count5 != 0 && count7 != 0){
					count++;
				}
			}
		}
	}
	cout << count << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:27: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   27 |                 int f = i % b / b2;
      |                         ~ ^ ~
      |                         |   |
      |                         int double
Language: C++

#include <iostream>
#include <cmath>
#include <map>
#include <vector>

using namespace std;

int main() {

  map<long, vector<long>> S;
  vector<long> A;
  A.push_back(357);
  A.push_back(375);
  A.push_back(537);
  A.push_back(573);
  A.push_back(735);
  A.push_back(753);
  S[3] = A;

  long list[3] = {3,5,7};

  for (long i = 4; i < 11; ++i) {
    // cout << "[" << i << "]" << endl;
    vector<long> A;
    for (auto x : S[i-1]) {
      long x_inc = x * 10;
      // cout << "x:" << x << ", x_inc:" << x_inc << endl;
      
      for (long j = 0; j < 3; ++j) {
        long num_base = list[j];
        long num = list[j];
        long times = to_string(x).length();
        for (long k = 0; k < times; ++k) {
          num *= 10;
        }
        long x2 = x + num;
        A.push_back(x2);
        A.push_back(x_inc + num_base);
        // cout << x2 << "," << x_inc + num_base << endl;
      }
    }
    sort(A.begin(), A.end());
    A.erase(unique(A.begin(), A.end()), A.end());
    S[i] = A;
    for (auto y: S[i]) {
      // cout << y << endl;
    }
  }


  long num_i;
  cin >> num_i;
  long keta = to_string(num_i).length();
  long kosu = 0;
  if (keta > 3) {
    for (long i = 3; i < keta; ++i) {
      kosu += S[i].size();
      // cout << S[i].size() << endl;

    }
  }
  // cout << "keta:" << keta << endl;
  for (auto y: S[keta]) {
    // cout << y ;
    if (y <= num_i) {
      // cout << "ok" << endl;
      kosu++;
    } else {
      // cout << "ng" << endl;
    }
  }
  cout << kosu << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   42 |     sort(A.begin(), A.end());
      |     ^~~~
      |     sqrt
a.cc:43:13: error: 'unique' was not declared in this scope
   43 |     A.erase(unique(A.begin(), A.end()), A.end());
      |             ^~~~~~
Language: C++

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

int GetDigit(int num) {
  int digit = 0;
  while (num != 0) {
    num /= 10;
    digit++;
  }
  return digit;
}

bool is753(int n) {
  int digit = GetDigit(n);
  string s = to_string(n);
  int cnt7 = 0, cnt5 = 0, cnt3 = 0;
  for (int i = 0; i < digit; ++i) {
    if (s[i] == '7')
      cnt7++;
    else if (s[i] == '5')
      cnt5++;
    else if (s[i] == '3')
      cnt3++;
    else
      return false;
  }
  if (cnt7 > 0 && cnt5 > 0 && cnt3 > 0)
    return true;
  else
    return false;
}

int main() {
  int N;
  cin >> N;
  if (N >= 777777753) {
    cout << 26484 << endl;
  } else {
    int MAX = 26485;
    int store[4] = {0, 3, 5, 7};
    vector<int> v;
    for (int i1 = 0; i1 < 4; ++i1) {
      for (int i2 = 0; i2 < 4; ++i2) {
        for (int i3 = 0; i3 < 4; ++i3) {
          for (int i4 = 0; i4 < 4; ++i4) {
            for (int i5 = 0; i5 < 4; ++i5) {
              for (int i6 = 0; i6 < 4; ++i6) {
                for (int i7 = 0; i7 < 4; ++i7) {
                  for (int i8 = 0; i8 < 4; ++i8) {
                    for (int i9 = 0; i9 < 4; ++i9) {
                      int num = store[i1] * 100000000 + store[i2] * 10000000 +
                                store[i3] * 1000000 + store[i4] * 100000 +
                                store[i5] * 10000 + store[i6] * 1000 +
                                store[i7] * 100 + store[i8] * 10 +
                                store[i9] * 1;
                      if (is753(num)) v.push_back(num);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    sort(v.begin(), v.end());
    for (int i = 0; i < MAX; ++i) {
      if (v[i] == N) {
        cout << i + 1 << endl;
        break;
      } else if (v[i] > N) {
        cout << i << endl;
        break;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:69:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   69 |     sort(v.begin(), v.end());
      |     ^~~~
      |     sqrt
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int target = sc.nextInt();
    int result = 0;
    long currentVal = 357;
    for (;;) {
       if (target >= currentVal) {
          result++;
       } else {
          break;
       }
       currentVal = nextVal(currentVal);
    }
    // 出力
    System.out.println(result);
  }
  private static long nextVal(int t) {
      String target = String.valueOf(t);
      for (;;) {
         target = roundUp(target, target.length() - 1);
         if (target.contains("3") && target.contains("5") && target.contains("7")) {
            break;
         }
      }
      return Long.valueOf(target);
  }
 
  private static String roundUp(String t, int n) {
      if (n < 0) {
         return "3" + t;
      }
      String a = t.substring(n,n+1);
      String replace = "";
      if (a.equals("3")) {
          replace = "5";
      } else if (a.equals("5")) {
          replace = "7";
      } else {
          if (n == t.length() - 1) {
             return roundUp(t.substring(0,n) + "3", n - 1);
          } else {
             return roundUp(t.substring(0,n) + "3" + t.substring(n+1, t.length()), n - 1);
          }
      }
      if (n == t.length() - 1) {
        return t.substring(0,n) + replace;
      } else {
        return t.substring(0,n) + replace + t.substring(n+1, t.length());
      }
  }
}
import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long target = sc.nextInt();
    int result = 0;
    long currentVal = 357;
    for (;;) {
       if (target >= currentVal) {
          result++;
       } else {
          break;
       }
       currentVal = nextVal(currentVal);
    }
    // 出力
    System.out.println(result);
  }
  private static long nextVal(long t) {
      String target = String.valueOf(t);
      for (;;) {
         target = roundUp(target, target.length() - 1);
         if (target.contains("3") && target.contains("5") && target.contains("7")) {
            break;
         }
      }
      return Long.valueOf(target);
  }
 
  private static String roundUp(String t, int n) {
      if (n < 0) {
         return "3" + t;
      }
      String a = t.substring(n,n+1);
      String replace = "";
      if (a.equals("3")) {
          replace = "5";
      } else if (a.equals("5")) {
          replace = "7";
      } else {
          if (n == t.length() - 1) {
             return roundUp(t.substring(0,n) + "3", n - 1);
          } else {
             return roundUp(t.substring(0,n) + "3" + t.substring(n+1, t.length()), n - 1);
          }
      }
      if (n == t.length() - 1) {
        return t.substring(0,n) + replace;
      } else {
        return t.substring(0,n) + replace + t.substring(n+1, t.length());
      }
  }
}
Submission

Compiler output:
Main.java:54: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:107: error: reached end of file while parsing
Submission
^
2 errors
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int target = sc.nextInt();
    int result = 0;
    long currentVal = 357;
    for (;;) {
       if (target >= currentVal) {
          result++;
       } else {
          break;
       }
       currentVal = nextVal(currentVal);
    }
    // 出力
    System.out.println(result);
  }
  private static long nextVal(int t) {
      String target = String.valueOf(t);
      for (;;) {
         target = roundUp(target, target.length() - 1);
         if (target.contains("3") && target.contains("5") && target.contains("7")) {
            break;
         }
      }
      return Long.valueOf(target);
  }
 
  private static String roundUp(String t, int n) {
      if (n < 0) {
         return "3" + t;
      }
      String a = t.substring(n,n+1);
      String replace = "";
      if (a.equals("3")) {
          replace = "5";
      } else if (a.equals("5")) {
          replace = "7";
      } else {
          if (n == t.length() - 1) {
             return roundUp(t.substring(0,n) + "3", n - 1);
          } else {
             return roundUp(t.substring(0,n) + "3" + t.substring(n+1, t.length()), n - 1);
          }
      }
      if (n == t.length() - 1) {
        return t.substring(0,n) + replace;
      } else {
        return t.substring(0,n) + replace + t.substring(n+1, t.length());
      }
  }
}

Compiler output:
Main.java:14: error: incompatible types: possible lossy conversion from long to int
       currentVal = nextVal(currentVal);
                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C++

sing namespace std;

int judge(int n){
    int lst[]={0,0,0};
    while(n>0){
        switch(n%10){
            case 3 :lst[0]++;break;
            case 5 :lst[1]++;break;
            case 7 :lst[2]++;break;
            default : return 0 ;
        }
        n=n/10;
    }
    for(int i:lst){
        if(i==0)return 0;
    }
    return 1;
}

int main(void){
    int ans=0,n;
    scanf("%d",&n);
    for(int i=357;i<n;i+=10){
        ans+=judge(i);
    }
    for(int i=375;i<n;i+=10){
        ans+=judge(i);
    }
    for(int i=573;i<n;i+=10){
        ans+=judge(i);
    }
    ans+=judge(n);
    printf("%d\n",ans);
}


Compiler output:
a.cc:1:1: error: 'sing' does not name a type
    1 | sing namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:22:5: error: 'scanf' was not declared in this scope
   22 |     scanf("%d",&n);
      |     ^~~~~
a.cc:33:5: error: 'printf' was not declared in this scope
   33 |     printf("%d\n",ans);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | sing namespace std;
Language: Java

import java.util.*;

public class test755{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    int count = 0;
    String str = String.valueOf(x);
    int[] stg = {3,7,5};

    if(x < 357){
        System.out.println("0");
    }else{
        for(int i = 356;i <= x;i++){
            String s = String.valueOf(i);
            if(s.contains("1") | s.contains("2") | s.contains("4") | s.contains("6") | s.contains("8") | s.contains("9")){
            }else if(s.contains("3") & s.contains("5") & s.contains("7")){
                count++;
            }else{
            }
        
        }
        System.out.println(count);
    }
  }
}

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

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

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

    for(i=1; i<=n; i++){
		sprintf(s,"%d",i);

		for(j=0;j<strlen(s);j++){
			if(s[j] == '7'){}
			else if (s[j] == '5'){}
			else if (s[j] == '3'){}
		    else {not_n++; break;}
		}
	}

    printf("%d\n",i-not_n);
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   11 |         scanf("%d", &n);
      |         ^~~~~
main.c:16:21: error: 'j' undeclared (first use in this function)
   16 |                 for(j=0;j<strlen(s);j++){
      |                     ^
main.c:16:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:27: error: 'not_n' undeclared (first use in this function)
   20 |                     else {not_n++; break;}
      |                           ^~~~~
Language: C

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

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

    for(i=1; i<=n; i++){
		sprintf(s,"%d",i);

		for(j=0;j<strlen(s);j++){
			if(s[j] == '7')
			else if (s[j] == '5')
			else if (s[j] == '3')
		    else {not_n++; break;}
		}
	}

    printf("%d\n",i-non_n);
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   11 |         scanf("%d", &n);
      |         ^~~~~
main.c:16:21: error: 'j' undeclared (first use in this function)
   16 |                 for(j=0;j<strlen(s);j++){
      |                     ^
main.c:16:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:25: error: expected expression before 'else'
   18 |                         else if (s[j] == '5')
      |                         ^~~~
main.c:24:21: error: 'non_n' undeclared (first use in this function)
   24 |     printf("%d\n",i-non_n);
      |                     ^~~~~
Language: C++

#include <iostream>
#include <cmath>
#include <thread>
#include <vector>


using namespace std;

bool Check753(int32_t x){
	int32_t digit = static_cast<int32_t>(log10(x)) + 1;
	
	bool flag3 = false, flag5 = false, flag7 = false;
	int32_t cnt = 0;

	for(size_t i = 0, end = static_cast<size_t>(digit); i < end; ++i){
		int32_t n = x % 10;
		x = x / 10;
		if(n == 3){
			flag3 = true;
			++cnt;
		}
		else if(n == 5){
			flag5 = true;
			++cnt;
		}
		else if(n == 7){
			flag7 = true;
			++cnt;
		}
		else{
			break;
		}
	}
	return((cnt == digit) && flag3 && flag5 && flag7);
}

int main(){
	int32_t n = 0;

	cin >> n;

	int32_t ans = 0;

	vector<thread> worker;

	for(int32_t i = 0, end = 50; i <= n; ++i){
		worker.emplace_back([&](int32_t id){
			int32_t r0 = n / 50 * id + min(n % 50, id);
			int32_t r1 = n / 50 * (id + 1)) + min(n % 50, id + 1);
			for(int32_t j = r0; j < r1; ++j){
				if(Check753(i)){
					++ans;
				}
			}
		}, i);
	}

	cout << ans << endl;

	return(0);
}

Compiler output:
a.cc: In lambda function:
a.cc:49:55: error: expected ',' or ';' before ')' token
   49 |                         int32_t r1 = n / 50 * (id + 1)) + min(n % 50, id + 1);
      |                                                       ^
Language: Java

import java.util.Scanner;


public class ABC114C {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		sc.close();
		
		int ans = 0;
		for(long i = 357;i <= N;) {
			String s = String.valueOf(i);
			boolean flag7 = false, flag5 = false, flag3 = false;
			for(int j = 0;j < s.length();++j) {
				switch(Integer.parseInt(s.substring(j, j+1))) {
				case 7:
					flag7 = true;
					break;
				case 5:
					flag5 = true;
					break;
				case 3:
					flag3 = true;
					break;
				default:
					flag7 = false;
					j = s.length();
					break;
				}
			}
			if(flag7 && flag5 && flag3)
				ans++;
			switch((int)(i % 10)) {
			case 7:
				i += 6;
				break;
			case 5:
			case 3:
				i += 2;
				break;
			}
		}
		System.out.println(ans);
	}
}

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

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int target = sc.nextInt();
    int result = 0;
    int currentVal = 357;
    for (;;) {
       if (target >= currentVal) {
          result++;
       } else {
          break;
       }
       currentVal = nextVal(currentVal);
    }
    // 出力
    System.out.println(result);
  }
  private static int nextVal(int t) {
      String target = String.valueOf(t);
      for (;;) {
         target = roundUp(target, target.length() - 1);
         if (target.contains("3") && target.contains("5") && target.contains("7"')) {
            break;
         }
      }
      return Integer.valueOf(target);
  }

  private static String roundUp(String t, int n) {
      if (n <= 0) {
         return "3" + t;
      }
      String a = t.substring(n,n+1);
      String replace = "";
      if (a.equals("3")) {
          replace = "5";
      } else if (a.equals("5")) {
          replace = "7";
      } else {
          return roundUp(t.substring(0,n) + "3" + t.substring(n+1, t.length()), n - 1);
      }
      return t.substring(0,n) + replace + t.substring(n+1, t.length());
  }
}

Compiler output:
Main.java:23: error: unclosed character literal
         if (target.contains("3") && target.contains("5") && target.contains("7"')) {
                                                                                ^
1 error
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<cmath>
#include<string>
#include<cstdlib>

using namespace std;

const long long INF = 10e9;

int main() {
	long long n;
	cin >> n;
	bool F[3] = {false, false, false};
	long long ans = 0;
	int keta;
	for (long long j = 0; j < 20; j++) {
		c /= 10;
		keta++;
		if (c == 0) break;
	}
	if (keta > 3) {
		for (long long i = n; i >= 1000; i++) {
			long long c = i;
			for (long long j = 0; j < 20; j++) {
				if (c%10 == 3)
					F[0] = true;
				else if (c%10 == 5)
					F[1] = true;
				else if (c%10 == 7)
					F[2] = true;
				c /= 10;
				if (c == 0) break;
			}
			if (F[0] == true && F[1] == true && F[2] == true) {
				ans++;
			}
			F[0] = false;
			F[1] = false;
			F[2] = false;
		}
		ans += 6;
	}
	for (long long i = n; i >= 356; i++) {
		long long c = i;
		for (long long j = 0; j < 20; j++) {
			if (c%10 == 3)
				F[0] = true;
			else if (c%10 == 5)
				F[1] = true;
			else if (c%10 == 7)
				F[2] = true;
			c /= 10;
			if (c == 0) break;
		}
		if (F[0] == true && F[1] == true && F[2] == true) {
			ans++;
		}
		F[0] = false;
		F[1] = false;
		F[2] = false;
	}

	cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'c' was not declared in this scope
   20 |                 c /= 10;
      |                 ^
Language: C++

#include "bits/stdc++.h"
#define rep(i,a,n) for(int i=a;i<n;i+=2)
using namespace std;
bool judge(int num){
  int chthree=0,chfive=0,chseven=0;
  while(num>0){
    int MOD=num%10;
    if(MOD!=3&&MOD!=5&&MOD!=7)return false;
    if(MOD==3)chthree++;
    if(MOD==5)chfive++;
    if(MOD==7)chseven++;
    num/=10;
  }
  if(chthree||chfive||chseven)return false;
  return true;
}
int main(){
  int n;cin>>n;
  int ans=0;
  if(n<375)cout<<0<<endl,return 0;
  rep(i,357,n){
    if(judge(i))ans++;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: expected primary-expression before 'return'
   20 |   if(n<375)cout<<0<<endl,return 0;
      |                          ^~~~~~
Language: C++

#include "bits/stdc++.h"
#define rep(i,a,n) for(int i=a;i<n;i+=2)
using namespace std;
bool judge(int num){
  int chthree=chfive=chseven=0;
  while(num>0){
    int MOD=num%10;
    if(MOD!=3||MOD!=5||MOD!=7)return false;
    if(MOD==3)chthree++;
    if(MOD==5)chfive++;
    if(MOD==7)chseven++;
    num/=10;
  }
  if(chthree||chfive||chseven)return false;
  return true;
}
int main(){
  int n;cin>>n;
  int ans=0;
  rep(i,357,n){
    if(judge(i))ans++;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'bool judge(int)':
a.cc:5:15: error: 'chfive' was not declared in this scope
    5 |   int chthree=chfive=chseven=0;
      |               ^~~~~~
a.cc:5:22: error: 'chseven' was not declared in this scope
    5 |   int chthree=chfive=chseven=0;
      |                      ^~~~~~~
Language: C

#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<stdio.h>
int min(int a,int b){
    return a<=b?a:b;
}
int main()
{   int n,i,cnt3=0,cnt5=0,cnt7=0,ans=0;
    scanf("%d",&n);
    
        for(i=357;i<=max(n,777777777);i++){
        cnt3=0;cnt5=0;cnt7=0;
        int num=i;
        while(num>0){if(num%10==3)cnt3++;
        
        else if(num%10==5)cnt5++;
        else if(num%10==7)cnt7++;
        else break;
        num/=10;
        }
        if(num==0&&cnt3>0&&cnt5>0&&cnt7>0)ans++;
    }
    printf("%d",ans);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:22: error: implicit declaration of function 'max'; did you mean 'fmax'? [-Wimplicit-function-declaration]
   12 |         for(i=357;i<=max(n,777777777);i++){
      |                      ^~~
      |                      fmax
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int target = sc.nextInt();
    int result = 0;
    int currentVal = 357;
    for (;;) {
       if (target >= currentVal) {
          result++;
       } else {
          break;
       }
       currentVal = Main.nextVal(currentVal);
    }
    // 出力
    System.out.println(result);
  }
  private static int nextVal(int v) {
      String t = String.valueOf(v);
      String target = Main.roundUp(t, t.length - 1);
      int result = Integer.valueOf(target);
      return result;
  }
  private static String roundUp(String t, int n) {
      if (n <= 0) {
         return "3" + t;
      }
      String a = t.substring(n,n+1);
      String replace;
      if (a.equals("3")) {
          replace = "5";
      } else if (a.equals("5")) {
          replace = "7";
      } else {
          return Main.roundUp(t, n - 1);
      }
      return t.substring(0,n) + replace + t.substring(n+1, t.length);
  }
}

Compiler output:
Main.java:21: error: cannot find symbol
      String target = Main.roundUp(t, t.length - 1);
                                       ^
  symbol:   variable length
  location: variable t of type String
Main.java:38: error: cannot find symbol
      return t.substring(0,n) + replace + t.substring(n+1, t.length);
                                                            ^
  symbol:   variable length
  location: variable t of type String
2 errors
Language: C++

int main(void) {
  for(int i = 0; i < pow(10, 9); i++) {
  }
  cout << 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:22: error: 'pow' was not declared in this scope
    2 |   for(int i = 0; i < pow(10, 9); i++) {
      |                      ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout << 1 << endl;
      |   ^~~~
a.cc:4:16: error: 'endl' was not declared in this scope
    4 |   cout << 1 << endl;
      |                ^~~~