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

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

std::vector<string> generateIncNum(std::vector<string> c, int digits)
{
    if(digits == 1)
        return c;
    
    std::vector<string> new_c;
    for(string s : c)
    {
        new_c.push_back("3" + s);
        new_c.push_back("5" + s);
        new_c.push_back("7" + s);
    }
    c = new_c;
    return generateIncNum(new_c, digits - 1);
}

int main()
{
//    string a = "999999999";
  	string a;
    cin >> a;
    int a_num = std::stoi(a);
 
    int ret = 0;
    int digits = a.size();
    if(digits < 3)
    {
        ret = 0;
    }
    else
    {
        for(int i = 3; i < digits; i++)
            ret += pow(3, i) - 3 * pow(2, i) + 3;
        
        std::vector<string> c = {"3", "5", "7"};
        auto cc = generateIncNum(c, digits);
        for(string s : cc)
        {
            int num = std::stoi(s);
            if (num <= a_num)
            {
                if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '3';}) == 0)
                    continue;
                if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '5';}) == 0)
                    continue;
                if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '7';}) == 0)
                    continue;
                ret++;
            }
        }
        
    }
    
    cout << ret;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:20: error: 'pow' was not declared in this scope
   37 |             ret += pow(3, i) - 3 * pow(2, i) + 3;
      |                    ^~~
a.cc:46:25: error: 'count_if' is not a member of 'std'
   46 |                 if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '3';}) == 0)
      |                         ^~~~~~~~
a.cc:48:25: error: 'count_if' is not a member of 'std'
   48 |                 if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '5';}) == 0)
      |                         ^~~~~~~~
a.cc:50:25: error: 'count_if' is not a member of 'std'
   50 |                 if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '7';}) == 0)
      |                         ^~~~~~~~
Language: C++

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

std::vector<string> generateIncNum(std::vector<string> c, int digits)
{
    if(digits == 1)
        return c;
    
    std::vector<string> new_c;
    for(string s : c)
    {
        new_c.push_back("3" + s);
        new_c.push_back("5" + s);
        new_c.push_back("7" + s);
    }
    c = new_c;
    return generateIncNum(new_c, digits - 1);
}

int main()
{
//    string a = "999999999";
    cin >> a;
    int a_num = std::stoi(a);
 
    int ret = 0;
    int digits = a.size();
    if(digits < 3)
    {
        ret = 0;
    }
    else
    {
        for(int i = 3; i < digits; i++)
            ret += pow(3, i) - 3 * pow(2, i) + 3;
        
        std::vector<string> c = {"3", "5", "7"};
        auto cc = generateIncNum(c, digits);
        for(string s : cc)
        {
            int num = std::stoi(s);
            if (num <= a_num)
            {
                if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '3';}) == 0)
                    continue;
                if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '5';}) == 0)
                    continue;
                if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '7';}) == 0)
                    continue;
                ret++;
            }
        }
        
    }
    
    cout << ret;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: 'a' was not declared in this scope
   24 |     cin >> a;
      |            ^
a.cc:36:20: error: 'pow' was not declared in this scope
   36 |             ret += pow(3, i) - 3 * pow(2, i) + 3;
      |                    ^~~
a.cc:45:25: error: 'count_if' is not a member of 'std'
   45 |                 if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '3';}) == 0)
      |                         ^~~~~~~~
a.cc:47:25: error: 'count_if' is not a member of 'std'
   47 |                 if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '5';}) == 0)
      |                         ^~~~~~~~
a.cc:49:25: error: 'count_if' is not a member of 'std'
   49 |                 if(std::count_if( s.begin(), s.end(), []( char c ){ return c == '7';}) == 0)
      |                         ^~~~~~~~
Language: C++

K=int(input())
N=str(K)


a=[]
S=int(len(str(K)))

T=0
for i in range(3,S-1):
    t=i**3
    t=t-3*(i**2)-3
    T=T+t

for j in range(0,S):
    if int(N[j])>7:
        T=T+(S-j)**3-S(S-j)**2-3
        break
    if int(N[j])>5 and int(N[j])<7:
        T=T+2*(S-1-j)**3-4*(S-1-j)**2-2
        break
    if int(N[j])>3 and int(N[j])<5:
        T=T+1*(S-1-j)**3-2*(S-1-j)**2-1
        break
    if int(N[j])==7:
        T=T+2*(S-1-j)**3-4*(S-1-j)**2-2
        continue
    if int(N[j])==5:
        T=T+1*(S-1-j)**3-2*(S-1-j)**2-1
        continue
    if int(N[j])==3:
        continue
    else:
        break

print(T)



Compiler output:
a.cc:1:1: error: 'K' does not name a type
    1 | K=int(input())
      | ^
Language: Java

class Main{
  public static void main(String[] args){
    java.util.Scanner sc = new java.util.Scanner();
    
    char[] s = sc.next().toCharArray();
    int d = s.length;
        
    int sum = 0;
    for(int i = 3 ; i < d; i++){
      int pow3 = 1;
      int pow2 = 3;
      for(int j = i ; j > 0 ; j--){
        pow3 *= 3;
        pow2 *= 2;
      }
      sum += pow3 - pow2 + 3;
    }
    
    int dp[][] = new int[1<<3][2];
    int map[] = {0,0,0,1,0,2,0,4}
    if(s[0] == 3 || s[0] == 5 || s[0] == 7){
      dp[map[s[0]]][1] = 1;
    }
    if(s[0] > 3){
      dp[map[3][0]]++;
    }
    if(s[0] > 5){
      dp[map[5][0]]++;
    }
    if(s[0] > 7){
      dp[map[7][0]]++;
    }
    
    for(int i = 1; i < d; i++){
      int next[][] = new int[1<<3][2];
      for(int j = 0 ; j < 1<<3; j++){
        next[j | 1][0] += dp[j][0];
        next[j | 2][0] += dp[j][0];
        next[j | 4][0] += dp[j][0];

        if(s[i] == 3 || s[i] == 5 || s[i] == 7){
	      next[j | map[s[i]]][1] += dp[j][1];
        }
        if(s[0] > 3){
          next[j | map[3][0]] += dp[j][1];
        }
        if(s[0] > 5){
          next[j | map[5][0]] += dp[j][1];
        }
        if(s[0] > 7){
          next[j | map[7][0]] += dp[j][1];
        }
      }
      dp = next
    }
    System.out.pritntln(sum+dp[7][0]+dp[7][1]);
    
  }
  
}

Compiler output:
Main.java:20: error: ';' expected
    int map[] = {0,0,0,1,0,2,0,4}
                                 ^
Main.java:54: error: ';' expected
      dp = next
               ^
2 errors
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int n = 0,sum = 0;
    cin >> n;

    for(int i = 1;i<=n;i++)
    {   int temp = i,d = 0;
        for(temp != 0)
        {
            temp /= 10
            d++;

        }
        int a[d];
        for(int j = 0;i<d;i++)
        {
            a[j] %= 10 
        }

        for(int j = 0;j<d;j++)
        {
                
            if(a[j] == 5||a[j] == 3||a[j] == 7)
            {
                if(j == d-1 )
                    sum++;
            }
            else 
            break;

        }

    }

    printf("%d\n",sum);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before ')' token
   12 |         for(temp != 0)
      |                      ^
      |                      ;
a.cc:18:13: error: condition declares an array
   18 |         int a[d];
      |             ^
a.cc:19:9: error: expected primary-expression before 'for'
   19 |         for(int j = 0;i<d;i++)
      |         ^~~
a.cc:18:18: error: expected ')' before 'for'
   18 |         int a[d];
      |                  ^
      |                  )
   19 |         for(int j = 0;i<d;i++)
      |         ~~~       
a.cc:12:12: note: to match this '('
   12 |         for(temp != 0)
      |            ^
a.cc:21:13: error: 'a' was not declared in this scope
   21 |             a[j] %= 10
      |             ^
a.cc:27:16: error: 'a' was not declared in this scope
   27 |             if(a[j] == 5||a[j] == 3||a[j] == 7)
      |                ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
using int64 = int_fast64_t;

int N;
char opt[3] = {'7', '5', '3'};

boo check(string str) {
	// t:three, f:five, s:seven
	bool t = false, f = false, s = false;
	for (int i=0; i<str.size(); ++i) {
		t |= (str[i] == '3');
		f |= (str[i] == '5');
		s |= (str[i] == '7');
	}
	return t && f && s;
}

int solve(string sum) {
	// 範囲外, 空の時は0を返す
	if (sum.size() > 9 || sum.size() == 0 && stoi(sum) > N) return 0;
	
	int ret = 0;
	for (int i=0; i<3; ++i) {
		string tmp = sum + opt[i];

		cout << tmp << endl;
		// 範囲内で753全てを利用している時に1を加算
		if (tmp.size() <= 9 && stoi(tmp) <= N && check(tmp)) {
			ret++;
		}
		ret += solve(tmp);
	}

	return ret;
}

int main() {
	cin >> N;

	int ans = solve("");
	cout << ans << endl;
	
	return 0;
}


Compiler output:
a.cc:4:15: error: 'int_fast64_t' does not name a type
    4 | using int64 = int_fast64_t;
      |               ^~~~~~~~~~~~
a.cc:9:1: error: 'boo' does not name a type; did you mean 'bool'?
    9 | boo check(string str) {
      | ^~~
      | bool
a.cc: In function 'int solve(std::string)':
a.cc:30:58: error: 'check' was not declared in this scope
   30 |                 if (tmp.size() <= 9 && stoi(tmp) <= N && check(tmp)) {
      |                                                          ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main() {

	long long int n;
	cin >> n;

	string s;
	stringstream ss;

	long long int ans = 0;

	for (long long int i = 1 <= n; i++) {
		ss.clear();
		ss << i;
		ss >> s;
		bool h = false;
		if (s.find('0') != string::npos) {
			h = true;
		}
		if (s.find('1') != string::npos) {
			h = true;
		}
		if (s.find('2') != string::npos) {
			h = true;
		}
		if (s.find('4') != string::npos) {
			h = true;
		}
		if (s.find('6') != string::npos) {
			h = true;
		}
		if (s.find('8') != string::npos) {
			h = true;
		}
		if (s.find('9') != string::npos) {
			h = true;
		}
		if (h) {
			ans++;
		}
	}

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:43: error: expected ';' before ')' token
   17 |         for (long long int i = 1 <= n; i++) {
      |                                           ^
      |                                           ;
Language: Java

N = int(input())

count = 0
for i in range(1, N + 1):
    if "0" in str(i) and "1" in str(i) and "2" in str(i):
        count += 1
print(count)

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
N = int(input())
^
1 error
Language: C++

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(int i=((int)(n)); i>0; --i)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using lint = long long;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

    int cnt = 1;
    char tmp[10];
    bool can;
    bool a, b, c;

    
    if (N < 357)
    {
        cout << 0 << "\n";
        return 0;
    }

    /*
    vector<int> v;
    vector<int> w;
    while (N != 0)
    {
        v.pb(N % 10);
        N /= 10;
    }
    rep (i + 4, SZ(v))
    {
        if (v[i] == 3)
        {
            w.pb(1);
        }
        else if (v[i] == 5)
        {
            w.pb(2);
        }
        else if (v[i] == 7)
        {
            w.pb(3);
        }
    }

    rep (i, w.size())
    {

    }
    */


    
    for (int i = 358; i < N; ++i)
    {
        int buf = i;
        int digit = 0;
        can = true;
        a = b = c = false;
        while (buf != 0)
        {
            int r = buf % 10;
            if (r == 0 ||
                r == 1 || 
                r == 2 || 
                r == 4 || 
                r == 6 || 
                r == 8 || 
                r == 9 
                )
            {
                can = false;
                break;
            }
            else
            {
                if (r == 3)
                {
                    a = true;
                }
                else if (r == 5)
                {
                    b = true;
                }
                else if (r == 7)
                {
                    c = true;
                }
            }
            buf /= 10;
            digit++;
        }
        if (can & a & b & c)
        {
            cnt++;
        }
        if (can & !a & !b)
        {
            string s = "7";
            s += to_string(i)
            i = atoi(c.c_str());
        }
    }
    
    cout << cnt << "\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:110:30: error: expected ';' before 'i'
  110 |             s += to_string(i)
      |                              ^
      |                              ;
  111 |             i = atoi(c.c_str());
      |             ~
Language: C++

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(int i=((int)(n)); i>0; --i)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using lint = long long;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

    int cnt = 1;
    char tmp[10];
    bool can;
    bool a, b, c;

    
    if (N < 357)
    {
        cout << 0 << "\n";
        return 0;
    }

    /*
    vector<int> v;
    vector<int> w;
    while (N != 0)
    {
        v.pb(N % 10);
        N /= 10;
    }
    rep (i + 4, SZ(v))
    {
        if (v[i] == 3)
        {
            w.pb(1);
        }
        else if (v[i] == 5)
        {
            w.pb(2);
        }
        else if (v[i] == 7)
        {
            w.pb(3);
        }
    }

    rep (i, w.size())
    {

    }
    */


    
    for (int i = 358; i < N; ++i)
    {
        int buf = i;
        int digit = 0;
        can = true;
        a = b = c = false;
        while (buf != 0)
        {
            int r = buf % 10;
            if (r == 0 ||
                r == 1 || 
                r == 2 || 
                r == 4 || 
                r == 6 || 
                r == 8 || 
                r == 9 
                )
            {
                can = false;
                break;
            }
            else
            {
                if (r == 3)
                {
                    a = true;
                }
                else if (r == 5)
                {
                    b = true;
                }
                else if (r == 7)
                {
                    c = true;
                }
            }
            buf /= 10;
            digit++;
        }
        if (can & a & b & c)
        {
            cnt++;
        }
        if (can & !a & !b)
        {
            i = atoi("7" + to_string(i));
        }
    }
    
    cout << cnt << "\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:109:26: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
  109 |             i = atoi("7" + to_string(i));
      |                      ~~~~^~~~~~~~~~~~~~
      |                          |
      |                          std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C

#include <iostream>
#include <algorithm>
#include <string>
#include <cstring>
#include <math.h>
using namespace std;

bool is753(string s)
{
    int n = s.length();
    bool b[3] = {false,false,false};
    for (int i = 0; i < n; ++i) {
        b[(int)(s[i] - 48) / 2 - 1] = true;
    }
    return b[0] && b[1] && b[2];
}

int counter(string prefix,int n,int nlen)
{
    if (nlen <= prefix.length()) return 0;
    int count = 0;
    count += counter(prefix + "3", n, nlen);
    count += counter(prefix + "5", n, nlen);
    count += counter(prefix + "7", n, nlen);
    string prefix3 = prefix + "3";
    string prefix5 = prefix + "5";
    string prefix7 = prefix + "7";
    if (atoi(prefix3.c_str()) <= n && is753(prefix3)) count++;
    if (atoi(prefix5.c_str()) <= n && is753(prefix5)) count++;
    if (atoi(prefix7.c_str()) <= n && is753(prefix7)) count++;
    return count;
}
int main ()
{
    string s;
    cin >> s;
    int s_size = s.length();
    int s_int = atoi(s.c_str());
    int count = 0 + counter("3", s_int, s_size) + counter("5", s_int, s_size) + counter("7", s_int, s_size);
    cout << count;
}

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

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

bool check(int x){
	string str;
	str = to_string(x);
	if (str.find("3") == std::string::npos)
		return false;
	if (str.find("5") == std::string::npos)
		return false;
	if (str.find("7") == std::string::npos)
		return false;
	return true;
}

int main(){
	int N;
	cin >> N;
	int index = 0;
	int SHICHI[29523];
	SHICHI[0] = 3;
	SHICHI[1] = 5;
	SHICHI[2] = 7;
	for(int i=1;i<9;i++){
		int l = pow(3,i);
		for(int k=0;k<l;k++){
			SHICHI[l + index + k * 3] = SHICHI[index + k] * 10 + 3;
			SHICHI[l + index + k * 3 + 1] = SHICHI[index + k] * 10 + 5;
			SHICHI[l + index + k * 3 + 2] = SHICHI[index + k] * 10 + 7;
		}
		index = index + l*3;
	}
	int Num = 0;
	for(int j=0;j<29523;j++){
		if (chack(SHICHI[j]) && SHICHI[j] <= N)
			Num++;
	}
	cout << Num << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:21: error: 'chack' was not declared in this scope; did you mean 'check'?
   39 |                 if (chack(SHICHI[j]) && SHICHI[j] <= N)
      |                     ^~~~~
      |                     check
Language: C++

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

bool check(int x){
	string str;
	
}

int main(){
	int N;
	cin >> N;
	int index = 0;
	int SHICHI[29523];
	SHICHI[0] = 3;
	SHICHI[1] = 5;
	SHICHI[2] = 7;
	for(int i=1;i<9;i++){
		int l = pow(3,i);
		for(int k=0;k<pow(3,i);k++){
			SHICHI[pow(3,i) + index + k * 3] = SHICHI[index + k] * 10 + 3;
			SHICHI[pow(3,i) + index + k * 3 + 1] = SHICHI[index + k] * 10 + 5;
			SHICHI[pow(3,i) + index + k * 3 + 2] = SHICHI[index + k] * 10 + 7;
		}
		index = index + pow(3,i+1);
	}
}

Compiler output:
a.cc: In function 'bool check(int)':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: In function 'int main()':
a.cc:23:31: error: invalid types 'int [29523][__gnu_cxx::__promote<double>::__type {aka double}]' for array subscript
   23 |                         SHICHI[pow(3,i) + index + k * 3] = SHICHI[index + k] * 10 + 3;
      |                               ^
a.cc:24:31: error: invalid types 'int [29523][__gnu_cxx::__promote<double>::__type {aka double}]' for array subscript
   24 |                         SHICHI[pow(3,i) + index + k * 3 + 1] = SHICHI[index + k] * 10 + 5;
      |                               ^
a.cc:25:31: error: invalid types 'int [29523][__gnu_cxx::__promote<double>::__type {aka double}]' for array subscript
   25 |                         SHICHI[pow(3,i) + index + k * 3 + 2] = SHICHI[index + k] * 10 + 7;
      |                               ^
Language: C++

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

bool check(int x){
	string str;
	
}

int main(){
	int N;
	cin >> N;
	int index = 0;
	int SHICHi[29523];
	SHICHi[0] = 3;
	SHICHi[1] = 5;
	SHICHi[2] = 7;
	for(int i=1;i<9;i++){
		int l = pow(3,i);
		for(int k=0;k<pow(3,i);k++){
			SHICHI[pow(3,i) + index + k * 3] = SHICHI[index + k] * 10 + 3;
			SHICHI[pow(3,i) + index + k * 3 + 1] = SHICHI[index + k] * 10 + 5;
			SHICHI[pow(3,i) + index + k * 3 + 2] = SHICHI[index + k] * 10 + 7;
		}
		idnex = index + pow(3,i+1);
	}
}

Compiler output:
a.cc: In function 'bool check(int)':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: In function 'int main()':
a.cc:23:25: error: 'SHICHI' was not declared in this scope; did you mean 'SHICHi'?
   23 |                         SHICHI[pow(3,i) + index + k * 3] = SHICHI[index + k] * 10 + 3;
      |                         ^~~~~~
      |                         SHICHi
a.cc:27:17: error: 'idnex' was not declared in this scope; did you mean 'index'?
   27 |                 idnex = index + pow(3,i+1);
      |                 ^~~~~
      |                 index
Language: C++

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

bool check(int x){
	string str;
	
}

int main(){
	int N;
	cin >> N;
	int index = 0;
	int SHICHi[29523];
	int SHICHi[0] = 3;
	int SHICHi[1] = 5;
	int SHICHi[2] = 7;
	for(int i=1;i<9;i++){
		int l = pow(3,i)
		for(int k=0;k<pow(3,i);k++){
			SHICHI[pow(3,i) + index + k * 3] = SHICHI[index + k] * 10 + 3;
			SHICHI[pow(3,i) + index + k * 3 + 1] = SHICHI[index + k] * 10 + 5;
			SHICHI[pow(3,i) + index + k * 3 + 2] = SHICHI[index + k] * 10 + 7;
		}
		idnex = index + pow(3,i+1);
	}
}

Compiler output:
a.cc: In function 'bool check(int)':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: In function 'int main()':
a.cc:17:13: error: conflicting declaration 'int SHICHi [0]'
   17 |         int SHICHi[0] = 3;
      |             ^~~~~~
a.cc:16:13: note: previous declaration as 'int SHICHi [29523]'
   16 |         int SHICHi[29523];
      |             ^~~~~~
a.cc:18:13: error: conflicting declaration 'int SHICHi [1]'
   18 |         int SHICHi[1] = 5;
      |             ^~~~~~
a.cc:16:13: note: previous declaration as 'int SHICHi [29523]'
   16 |         int SHICHi[29523];
      |             ^~~~~~
a.cc:19:13: error: conflicting declaration 'int SHICHi [2]'
   19 |         int SHICHi[2] = 7;
      |             ^~~~~~
a.cc:16:13: note: previous declaration as 'int SHICHi [29523]'
   16 |         int SHICHi[29523];
      |             ^~~~~~
a.cc:22:17: error: expected ',' or ';' before 'for'
   22 |                 for(int k=0;k<pow(3,i);k++){
      |                 ^~~
a.cc:22:29: error: 'k' was not declared in this scope
   22 |                 for(int k=0;k<pow(3,i);k++){
      |                             ^
a.cc:27:17: error: 'idnex' was not declared in this scope; did you mean 'index'?
   27 |                 idnex = index + pow(3,i+1);
      |                 ^~~~~
      |                 index
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long ll;

int a;

int check(ll n){ // check(n) 
	int res = 0;
	if (n > a) return 0;

	string s = to_string(n);

	// 条件に合うかチェック
	bool check[4] = {0};
	for (int i = 0; i < s.size(); i++){
		if(s[i] == '3') check[0] = 1;
		else if(s[i] == '5') check[1] = 1;
		else if(s[i] == '7') check[2] = 1;
		else check[3] = 1;
	}
	if (check[0] && check[1] && check[2] && !check[3]){
		res++;
	}

	res += check(n*10 + 3);
	res += check(n*10 + 5);
	res += check(n*10 + 7);

	return res;
}

int main(){
	cin >> a;
	cout << check(0) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int check(ll)':
a.cc:26:21: error: 'check' cannot be used as a function
   26 |         res += check(n*10 + 3);
      |                ~~~~~^~~~~~~~~~
a.cc:27:21: error: 'check' cannot be used as a function
   27 |         res += check(n*10 + 5);
      |                ~~~~~^~~~~~~~~~
a.cc:28:21: error: 'check' cannot be used as a function
   28 |         res += check(n*10 + 7);
      |                ~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long ll;

int a;

int check(ll n){ // check(n) 
	ll res = 0;
	if (n > a) return 0;

	string s = to_string(n);

	// 条件に合うかチェック
	bool check[4] = {0};
	for (int i = 0; i < s.size(); i++){
		if(s[i] == '3') check[0] = 1;
		else if(s[i] == '5') check[1] = 1;
		else if(s[i] == '7') check[2] = 1;
		else check[3] = 1;
	}
	if (check[0] && check[1] && check[2] && !check[3]){
		res++;
	}

	res += check(n*10 + 3LL);
	res += check(n*10 + 5LL);
	res += check(n*10 + 7LL);

	return res;
}

int main(){
	cin >> a;
	cout << check(0) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int check(ll)':
a.cc:26:21: error: 'check' cannot be used as a function
   26 |         res += check(n*10 + 3LL);
      |                ~~~~~^~~~~~~~~~~~
a.cc:27:21: error: 'check' cannot be used as a function
   27 |         res += check(n*10 + 5LL);
      |                ~~~~~^~~~~~~~~~~~
a.cc:28:21: error: 'check' cannot be used as a function
   28 |         res += check(n*10 + 7LL);
      |                ~~~~~^~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long ll;

int a;

int check(ll n){ // check(n) 
	ll res = 0;
	if (n > a) return 0;

	string s = to_string(n);

	// 条件に合うかチェック
	bool check[4] = {0};
	for (int i = 0; i < s.size(); i++){
		if(s[i] == '3') check[0] = 1;
		else if(s[i] == '5') check[1] = 1;
		else if(s[i] == '7') check[2] = 1;
		else check[3] = 1;
	}
	if (check[0] && check[1] && check[2] && !check[3]){
		res++;
	}

	res += check(n*10 + 3);
	res += check(n*10 + 5);
	res += check(n*10 + 7);

	return res;
}

int main(){
	cin >> a;
	cout << check(0) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int check(ll)':
a.cc:26:21: error: 'check' cannot be used as a function
   26 |         res += check(n*10 + 3);
      |                ~~~~~^~~~~~~~~~
a.cc:27:21: error: 'check' cannot be used as a function
   27 |         res += check(n*10 + 5);
      |                ~~~~~^~~~~~~~~~
a.cc:28:21: error: 'check' cannot be used as a function
   28 |         res += check(n*10 + 7);
      |                ~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long ll;

int a;

int check(ll n){ // check(n) 
	ll res = 0;
	if (n > a) return 0;

	string s = to_string(n);

	// 条件に合うかチェック
	bool check[4] = {0};
	for (int i = 0; i < s.size(); i++){
		if(s[j] == '3') check[0] = 1;
		else if(s[j] == '5') check[1] = 1;
		else if(s[j] == '7') check[2] = 1;
		else check[3] = 1;
	}
	if (check[0] && check[1] && check[2] && !check[3]){
		res++;
	}

	res += check(n*10 + 3);
	res += check(n*10 + 5);
	res += check(n*10 + 7);

	return res;
}

int main(){
	cin >> a;
	cout << check(0) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int check(ll)':
a.cc:17:22: error: 'j' was not declared in this scope
   17 |                 if(s[j] == '3') check[0] = 1;
      |                      ^
a.cc:26:21: error: 'check' cannot be used as a function
   26 |         res += check(n*10 + 3);
      |                ~~~~~^~~~~~~~~~
a.cc:27:21: error: 'check' cannot be used as a function
   27 |         res += check(n*10 + 5);
      |                ~~~~~^~~~~~~~~~
a.cc:28:21: error: 'check' cannot be used as a function
   28 |         res += check(n*10 + 7);
      |                ~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<map>
#include<list>
using namespace std;
#define ll long long

int main(){
  ll N;
  cin >> N;
  list<ll> v;
  v.push_back(3);
  v.push_back(5);
  v.push_back(7);
  ll cnt;
  for(auto itr = v.begin();itr !=v.end(); ++itr){
     if(*itr*10+3<=N)v.push_back(*itr*10+3);
     if(*itr*10+5<=N)v.push_back(*itr*10+5);
     if(*itr*10+7<=N)v.push_back(*itr*10+7);
     cnt+=judge753(*itr);
    }
    cout <<cnt <<endl;
    return 0;
}

ll judge753(ll a){
  bool flag3=0;
  bool flag5=0;
  bool flag7=0;
  int tmp;
  while(a>0){
    tmp=a%10;
    if(tmp==3)flag3=1;
    if(tmp==5)flag5=1;
    if(tmp==7)flag7=1;
    a=a/10;
  }
  if(flag3*flag5*flag7){
    return 1;
  }else{
    return 0;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:11: error: 'judge753' was not declared in this scope
   22 |      cnt+=judge753(*itr);
      |           ^~~~~~~~
Language: C++

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

vector<int>ans;
void backtrack(ll n,int a,int b,int c)
{
	if(n>1e9)return;
	if(a&&b&&c)ans.push_back(n);
	backtrack(n*10+3,true,false,false);
	backtrack(n*10+5,false,true,false);
	backtrack(n*10+7,false,false,true);
}

int main()
{
	backtrack(0,0,0,0);
	int n;
	cin>>n;
	sort(ans.begin(),ans.end());
	int t=lower_bound(ans.begin(),ans.end(),n)-ans.begin()+1;
	cout<<t;
}

Compiler output:
a.cc:3:1: error: 'tpyedef' does not name a type; did you mean 'typedef'?
    3 | tpyedef long long ll;
      | ^~~~~~~
      | typedef
a.cc:6:6: error: variable or field 'backtrack' declared void
    6 | void backtrack(ll n,int a,int b,int c)
      |      ^~~~~~~~~
a.cc:6:16: error: 'll' was not declared in this scope
    6 | void backtrack(ll n,int a,int b,int c)
      |                ^~
a.cc:6:21: error: expected primary-expression before 'int'
    6 | void backtrack(ll n,int a,int b,int c)
      |                     ^~~
a.cc:6:27: error: expected primary-expression before 'int'
    6 | void backtrack(ll n,int a,int b,int c)
      |                           ^~~
a.cc:6:33: error: expected primary-expression before 'int'
    6 | void backtrack(ll n,int a,int b,int c)
      |                                 ^~~
a.cc: In function 'int main()':
a.cc:17:9: error: 'backtrack' was not declared in this scope
   17 |         backtrack(0,0,0,0);
      |         ^~~~~~~~~
Language: C++

var n : longint;
    i,sum : integer;
    e : boolean;
    
procedure sft(p : longint; d : integer; s,f,t : boolean);
begin
  if d = 0 then begin
    if s and f and t then if p < n then sum := sum + 1 else e := true
  end else begin
    sft(p * 10 + 3, d - 1, s, f, true);
    sft(p * 10 + 5, d - 1, s, true, t);
    sft(p * 10 + 7, d - 1, true, f, t);
  end
end;
    
begin
  readln(n);
  e := false;
  for i := 3 to 9 do begin
    sft(0, i, false, false, false);
    if e then break
  end;
  writeln(sum)
end.

Compiler output:
a.cc:1:1: error: 'var' does not name a type
    1 | var n : longint;
      | ^~~
a.cc:2:5: error: 'i' does not name a type
    2 |     i,sum : integer;
      |     ^
a.cc:3:7: error: found ':' in nested-name-specifier, expected '::'
    3 |     e : boolean;
      |       ^
      |       ::
a.cc:3:5: error: 'e' does not name a type
    3 |     e : boolean;
      |     ^
a.cc:5:1: error: 'procedure' does not name a type
    5 | procedure sft(p : longint; d : integer; s,f,t : boolean);
      | ^~~~~~~~~
a.cc:5:30: error: found ':' in nested-name-specifier, expected '::'
    5 | procedure sft(p : longint; d : integer; s,f,t : boolean);
      |                              ^
      |                              ::
a.cc:5:28: error: 'd' does not name a type
    5 | procedure sft(p : longint; d : integer; s,f,t : boolean);
      |                            ^
a.cc:5:41: error: 's' does not name a type
    5 | procedure sft(p : longint; d : integer; s,f,t : boolean);
      |                                         ^
a.cc:6:1: error: 'begin' does not name a type
    6 | begin
      | ^~~~~
a.cc:11:8: error: expected constructor, destructor, or type conversion before '(' token
   11 |     sft(p * 10 + 5, d - 1, s, true, t);
      |        ^
a.cc:12:8: error: expected constructor, destructor, or type conversion before '(' token
   12 |     sft(p * 10 + 7, d - 1, true, f, t);
      |        ^
a.cc:13:3: error: 'end' does not name a type
   13 |   end
      |   ^~~
a.cc:16:1: error: 'begin' does not name a type
   16 | begin
      | ^~~~~
a.cc:18:3: error: 'e' does not name a type
   18 |   e := false;
      |   ^
a.cc:19:3: error: expected unqualified-id before 'for'
   19 |   for i := 3 to 9 do begin
      |   ^~~
a.cc:21:5: error: expected unqualified-id before 'if'
   21 |     if e then break
      |     ^~
a.cc:23:10: error: expected constructor, destructor, or type conversion before '(' token
   23 |   writeln(sum)
      |          ^
Language: C++

#include<iostream>
#define int long long
using namespace std;
int n;
int dfs(int x,bool A,bool B,bool C){
	if(x>n) return 0;
	int ret=0;
	if(A&&B&&C) ret++;
	ret+=dfs(x*10+7,true,B,C);
	ret+=dfs(x*10+5,A,true,C);
	ret+=dfs(x*10+3,A,B,true) ;
	return ret;
}
int main()
{
	cin >> n;
	cout << dfs(0,false,false,false)<<endl ;
	return 0;
	
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<iostream>
#include<sstream>
#include<vector>
#include<iterator>
using namespace std;

string N;
int dp[11][2][2][8];
vector<int> num;

int main(void)
{
	cin >> N;
	memset(dp, sizeof(dp), 0);
	dp[0][0][0][0] = 1;

	num.push_back(3);
	num.push_back(5);
	num.push_back(7);

	// dp[pos][isStart][isSmall][numberFlag]
	for(int i=0; i<N.size(); i++){
		// 先頭から0埋め
		// 必ず小さくなる
		for(int j=0; j<2; j++)
			dp[i+1][0][1][0] += dp[i][0][j][0];
		
		int n = N[i] - '0';
		for(int j=0; j<2; j++){
			// 357埋め
			for(int k=0; k<num.size(); k++){
				int kBit = 1 << k;
				for(int bit=0; bit<(1<<num.size()); bit++){
					// まだ分からない
					if(num[k] == n)
						dp[i+1][1][0][kBit|bit] += dp[i][j][0][bit];

					// 小さいのが確定
					if(num[k] < n)
						dp[i+1][1][1][kBit|bit] += dp[i][j][0][bit];

					// 既に小さい
					dp[i+1][1][1][kBit|bit] += dp[i][j][1][bit];
				}
			}
		}
	}

	cout << dp[N.size()][1][1][7] << endl;

	return 0;
}


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

#import"cstdio"
n,m;
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(){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,m;
      | ^
a.cc: In function 'void d(long int, int)':
a.cc:3:28: error: 'n' was not declared in this scope
    3 | 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);}
      |                            ^
a.cc:3:30: error: 'm' was not declared in this scope
    3 | 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);}
      |                              ^
a.cc: At global scope:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){scanf("%d",&n);d(0,0);printf("%d",m);}
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:20: error: 'n' was not declared in this scope
    4 | main(){scanf("%d",&n);d(0,0);printf("%d",m);}
      |                    ^
a.cc:4:42: error: 'm' was not declared in this scope
    4 | main(){scanf("%d",&n);d(0,0);printf("%d",m);}
      |                                          ^
Language: C++

$N=<>;print~~grep$_<=$N*/3/*/5/*/7/,map{glob'{3,5,7}'x$_}3..9

Compiler output:
a.cc:1:45: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    1 | $N=<>;print~~grep$_<=$N*/3/*/5/*/7/,map{glob'{3,5,7}'x$_}3..9
      |                                             ^~~~~~~~~~~~
a.cc:1:58: error: too many decimal points in number
    1 | $N=<>;print~~grep$_<=$N*/3/*/5/*/7/,map{glob'{3,5,7}'x$_}3..9
      |                                                          ^~~~
a.cc:1:1: error: '$N' does not name a type
    1 | $N=<>;print~~grep$_<=$N*/3/*/5/*/7/,map{glob'{3,5,7}'x$_}3..9
      | ^~
a.cc:1:7: error: 'print' does not name a type; did you mean 'int'?
    1 | $N=<>;print~~grep$_<=$N*/3/*/5/*/7/,map{glob'{3,5,7}'x$_}3..9
      |       ^~~~~
      |       int
a.cc:1:58: error: expected unqualified-id before numeric constant
    1 | $N=<>;print~~grep$_<=$N*/3/*/5/*/7/,map{glob'{3,5,7}'x$_}3..9
      |                                                          ^~~~
Language: Java

import java.util.*;
public class Number{
	//static HashSet<Long> dic = new HashSet<>();
	public static void main(String[] argv){
		run();
	}
	
	static void run(){
		
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		System.out.println(dfs(n, 0));
	}
	static int dfs(long n, long s){
		if(s>n){
			return 0;
		} else {
			int count = 0;
			String ss = String.valueOf(s);
			if(ss.contains("3") && ss.contains("5") &&ss.contains("7"))
				count++;
			count += dfs(n, s*10+3) + dfs(n, s*10+5) + dfs(n, s*10+7); 
			return count;
		}
	}
}

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

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define VRSORT(v) sort(v.rbegin(), v.rend());//vectorの降順ソート
#define ll long long
#define pb(a) push_back(a)
#define INF 1000000000
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
typedef pair<int, P> PP;
typedef pair<ll, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int n;

bool isfind(string s, string pat){
    if(s.find(pat) != string::npos) return true;
    else return false;
}

int dfs(int i, string s){
  if(i==10){
    if(isfind(s,"3") && isfind(s,"5") && isfind(s,"7") && stroll(s) <= n) return 1;
    else return 0;
  }
  
  int ans = 0;
  
  if(s.back() == "0") ans+= dfs(i+1,s+"0");
  
  ans += dfs(i+1,s+"3");
  ans += dfs(i+1,s+"5");
  ans += dfs(i+1,s+"7");
  
  return ans;
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> n;
  cout << dfs(0,"0") << endl;
}

Compiler output:
a.cc: In function 'int dfs(int, std::string)':
a.cc:30:59: error: 'stroll' was not declared in this scope; did you mean 'strtoll'?
   30 |     if(isfind(s,"3") && isfind(s,"5") && isfind(s,"7") && stroll(s) <= n) return 1;
      |                                                           ^~~~~~
      |                                                           strtoll
a.cc:36:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |   if(s.back() == "0") ans+= dfs(i+1,s+"0");
      |      ~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <cmath>

using namespace std;

typedef long long ll;

string bit3(string &res){
	reverse(res.begin(), res.end());
	int i = 0;
	while(1){
		res[i]++;
		if ((res[i]-'0')/3>=1) {
			res[i] = '0';
			i++;
		}
		else break;
	}
	reverse(res.begin(), res.end());

	return res;
}

int main(int argc, char const *argv[])
{
	ll n;
	cin >> n;
	string s = to_string(n);

	ll ans = 0;

	if (n<357) cout << 0 << endl;
	else {
		for (int i = 3; i <= s.size(); ++i) {
			string u(i, '0');
			for (int j = 0; j < pow(3,i); ++j) {
				string t, temp;
				if (j==0) t = u;
				else t = bit3(u);
				for (int k = 0; k < i; ++k) {
					if (t[k]=='0') temp += '3';
					else if (t[k]=='1') temp += '5';
					else temp += '7';
				}
				bool tf = (temp.find('3') != string::npos) && (temp.find('5') != string::npos) && (temp.find('7') != string::npos);
				if (stoll(temp)<=n && tf) ans++;
			}
		}
	}

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'std::string bit3(std::string&)':
a.cc:10:9: error: 'reverse' was not declared in this scope
   10 |         reverse(res.begin(), res.end());
      |         ^~~~~~~
Language: C++

#include <bits/stdc++.h>
int main()
{
  int N;std::cin >> N;
  int ans = 0;
  auto rep = [&](auto&& self,bool fst,int n, bool tw, bool th, bool fi)->void{
  	if(n <= N and tw and th and fi){ans++;}
    if(n > N){return;}
    if(not fst){self(self,false,10*n,tw,th,fi);}
    self(self,fslse,10*n+7,true,th,fi);
    self(self,false,10*n+5,tw,true,fi);
    self(self,false,10*n+3,tw,th,true);
  };
  std::cout << ans << std::endl;
  return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:10:15: error: 'fslse' was not declared in this scope; did you mean 'fclose'?
   10 |     self(self,fslse,10*n+7,true,th,fi);
      |               ^~~~~
      |               fclose
Language: C++

#include <bits/stdc++.h>
int main()
{
  int N;std::cin >> N;
  int ans = 0;
  auto rep = [&](auto&& self,bool fst,int n, bool tw, bool th, bool fi)->void{
  	if(n <= N and tw and th and fi){ans++;}
    if(n > N){return;}
    if(not fst){self(self,i+1,10*n,tw,th,fi);}
    self(self,fslse,10*n+7,true,th,fi);
    self(self,false,10*n+5,tw,true,fi);
    self(self,false,10*n+3,tw,th,true);
  };
  std::cout << ans << std::endl;
  return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:9:27: error: 'i' was not declared in this scope
    9 |     if(not fst){self(self,i+1,10*n,tw,th,fi);}
      |                           ^
a.cc:10:15: error: 'fslse' was not declared in this scope; did you mean 'fclose'?
   10 |     self(self,fslse,10*n+7,true,th,fi);
      |               ^~~~~
      |               fclose
Language: C++

package main

import (
	"fmt"
)

func dfs(in, x, a, b, c int, count *int) {
	if x > in {
		return
	}
	if a > 0 && b > 0 && c > 0 {
		*count++
	}
	dfs(in, x*10+3, 1, b, c, count)
	dfs(in, x*10+5, a, 1, c, count)
	dfs(in, x*10+7, a, b, 1, count)
}

func target(in int) int {
	var count int
	dfs(in, 0, 0, 0, 0, &count)
	return count
}

func main() {
	var in int
	fmt.Scan(&in)
	fmt.Println(target(in))
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:19:1: error: 'func' does not name a type
   19 | func target(in int) int {
      | ^~~~
a.cc:25:1: error: 'func' does not name a type
   25 | func main() {
      | ^~~~
Language: C

#include<math.h>
#include<stdio.h>
#define min(a,b) (a)<=(b)?(a):(b)
}
int main()
{   int n,i,cnt3=0,cnt5=0,cnt7=0,ans=0;
    scanf("%d",&n);
    if(n>=777777753){
        printf("26484");
        return 0;
    }
    int s=min(n,777777753)
        for(i=357;i<=s;i++){
            if(i==1000000000){
                i=333333356;
                continue;
            }
            if(i==377777776){
                i=533333336;
                continue;
            }
            if(i==577777774){
                i=733333334;
                continue;
            }
            
        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:4:1: error: expected identifier or '(' before '}' token
    4 | }
      | ^
main.c: In function 'main':
main.c:13:9: error: expected ',' or ';' before 'for'
   13 |         for(i=357;i<=s;i++){
      |         ^~~
main.c:13:27: error: expected ';' before ')' token
   13 |         for(i=357;i<=s;i++){
      |                           ^
      |                           ;
main.c:13:27: error: expected statement before ')' token
main.c:16:17: error: continue statement not within a loop
   16 |                 continue;
      |                 ^~~~~~~~
main.c:20:17: error: continue statement not within a loop
   20 |                 continue;
      |                 ^~~~~~~~
main.c:24:17: error: continue statement not within a loop
   24 |                 continue;
      |                 ^~~~~~~~
Language: C++

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

int n;

int dfs(int x) {
    if (x > n) return 0;

    int ret = 0;
    ret += dfs(10 * x + 3);
    ret += dfs(10 * x + 5);
    ret += dfs(10 * x + 7);

    return ret;
}
int main()
{
    int n;
    cin >> c;

    cout << dfs(0) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'c' was not declared in this scope
   19 |     cin >> c;
      |            ^
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
const array<pair<int,int>,4> fd{make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; 
//llじゃなく

int n;
vector<string> semi;
void dfs(string s, int len){
  if(len>=10)return;
  semi.push_back(s);
  dfs(s+'3',len+1);
  dfs(s+'5',len+1);
  dfs(s+'7',len+1);
}

int main(){
  cin>>n;
  string s;
  dfs(false,false,false,s,0);
  int ans = 0;
  rep(i,semi.size()){
    int nn = stoi(semi[i]);
    if(nn<=n&&s.find('3')>=0&&s.find('5')>=0&&s.find('7')>=0){
      ans++;
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:7: error: could not convert 'false' from 'bool' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   25 |   dfs(false,false,false,s,0);
      |       ^~~~~
      |       |
      |       bool
Language: C++

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

int main() {
  string s;
  cint >> s >> endl;
  int a,b,c,d,ans;
  int n=s.size();
  for(int i=0;i<n;i++){
       if((s[i]-'0')==3)a++;
	   else if((s[i]-'0')==5)b++;
	   else if((s[i]-'0')==7)c++;
	   else d++;
	   if(a>=1&&b>=1&&c>=1&&d==0)ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |   cint >> s >> endl;
      |   ^~~~
      |   uint
Language: C++

#include<iostream>
int is753(int m){
  static const int table[10]={0,0,0,1,0,2,0,4,0,0};
  int f=0;
  while(m)
    if(table[m%10]) f|=table[m%10],m/=10;
    else return 0;
  return f==7?1:0;
}
int main(){
  int n,ans=0;
  std::cin>>n;
  for(int i=1;i<=n;++i) ans+=is753(i);
  std::cout<<ans<<std::endl;
  rerurn 0;
}


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

#include<iostream>
const int table[10]={0,0,0,1,0,2,0,4,0,0};
bool is753(int m){
  int f=0;
  while(m){
    if(table[m%10])
      f|=table[m%10];
    else
      return false;
    m/=10;
  }
  return f==7;
}
int main{
  int n, ans=0;
  std::cin>>n;
  for(int i=1;i<=n;++i)
    if(is753(i))
      ++ans;
  std::cout<<ans<<std::endl;
  return 0;
}


Compiler output:
a.cc:14:5: error: cannot declare '::main' to be a global variable
   14 | int main{
      |     ^~~~
a.cc:15:3: error: expected primary-expression before 'int'
   15 |   int n, ans=0;
      |   ^~~
a.cc:15:3: error: expected '}' before 'int'
a.cc:14:9: note: to match this '{'
   14 | int main{
      |         ^
a.cc:16:8: error: 'cin' in namespace 'std' does not name a type
   16 |   std::cin>>n;
      |        ^~~
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:3: error: expected unqualified-id before 'for'
   17 |   for(int i=1;i<=n;++i)
      |   ^~~
a.cc:17:15: error: 'i' does not name a type
   17 |   for(int i=1;i<=n;++i)
      |               ^
a.cc:17:20: error: expected unqualified-id before '++' token
   17 |   for(int i=1;i<=n;++i)
      |                    ^~
a.cc:20:8: error: 'cout' in namespace 'std' does not name a type
   20 |   std::cout<<ans<<std::endl;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:21:3: error: expected unqualified-id before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^