Language: C++

import java.util.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] p = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
        int ans = 0;
        int[] a = new int[25];
        int cnt4 = 0, cnt2 = 0, cnt24 = 0, cnt14 = 0, cnt74 = 0;
        for(int k = 2; k <= n; k++){
            int i = k;
            for(int j = 0; j < 25; j++){
                while(i > 1 && i % p[j] == 0){
                    a[j]++;
                    i = i / p[j];
                }
            }
        }
        for(int i = 0; i < p.length; i++){
            if(a[i] >= 4) cnt4++;
            if(a[i] >= 2) cnt2++;
            if(a[i] >= 14) cnt14++;
            if(a[i] >= 24) cnt24++;
            if(a[i] >= 74) cnt74++;
        }
        ans = cnt4 * (cnt4 - 1) * (cnt2 - 2) / 2 + cnt24 * (cnt2 - 1) + cnt74 + cnt14 * (cnt4 - 1);
        System.out.println(ans);
    }
} 

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main (String[] args)
      |           ^~~~~~~
      |           :
a.cc:4:30: error: 'String' has not been declared
    4 |     public static void main (String[] args)
      |                              ^~~~~~
a.cc:4:39: error: expected ',' or '...' before 'args'
    4 |     public static void main (String[] args)
      |                                       ^~~~
a.cc:31:2: error: expected ';' after class definition
   31 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:9: error: 'Scanner' was not declared in this scope
    6 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:7:17: error: 'sc' was not declared in this scope
    7 |         int n = sc.nextInt();
      |                 ^~
a.cc:8:12: error: structured binding declaration cannot have type 'int'
    8 |         int[] p = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
      |            ^~
a.cc:8:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:12: error: empty structured binding declaration
a.cc:8:15: error: expected initializer before 'p'
    8 |         int[] p = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
      |               ^
a.cc:10:12: error: structured binding declaration cannot have type 'int'
   10 |         int[] a = new int[25];
      |            ^~
a.cc:10:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:12: error: empty structured binding declaration
a.cc:10:15: error: expected initializer before 'a'
   10 |         int[] a = new int[25];
      |               ^
a.cc:15:36: error: 'p' was not declared in this scope
   15 |                 while(i > 1 && i % p[j] == 0){
      |                                    ^
a.cc:16:21: error: 'a' was not declared in this scope
   16 |                     a[j]++;
      |                     ^
a.cc:21:28: error: 'p' was not declared in this scope
   21 |         for(int i = 0; i < p.length; i++){
      |                            ^
a.cc:22:16: error: 'a' was not declared in this scope
   22 |             if(a[i] >= 4) cnt4++;
      |                ^
a.cc:23:16: error: 'a' was not declared in this scope
   23 |             if(a[i] >= 2) cnt2++;
      |                ^
a.cc:24:16: error: 'a' was not declared in this scope
   24 |             if(a[i] >= 14) cnt14++;
      |                ^
a.cc:25:16: error: 'a' was not declared in this scope
   25 |             if(a[i] >= 24) cnt24++;
      |                ^
a.cc:26:16: error: 'a' was not declared in this scope
   26 |             if(a[i] >= 74) cnt74++;
      |                ^
a.cc:29:9: error: 'System' was not declared in this scope
   29 |         System.out.println(ans);
      |         ^~~~~~