Language: C++

import std.stdio;
import std.conv, std.array, std.algorithm, std.string;
import std.math, std.random, std.range, std.datetime;
import std.bigint;

const long MOD = 1_000_000_007;

void main(){
	int n = readln.chomp.to!int;
	
	int[] ps; // primes
	int[int] cs; // prime -> count
	for(int i = 2; i < 1000; i ++){
		int f = 1;
		for(int j = 2; j <= i / 2; j ++){
			if(i % j == 0) f = 0;
			}
		if(f){
			ps ~= i;
			cs[i] = 0;
			}
		}
	
	
	for(int i = 2; i <= n; i ++){
		int x = i;
		foreach(p; ps){
			while(x % p == 0){
				cs[p] += 1;
				x /= p;
				}
			}
		}
	
	BigInt ans;
	ans = 1;
	foreach(p; ps){
		ans *= cs[p] + 1;
		ans %= MOD;
		}
	
	ans.writeln;
	
	}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import std.conv, std.array, std.algorithm, std.string;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import std.math, std.random, std.range, std.datetime;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import std.bigint;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:18: error: unable to find numeric literal operator 'operator""_000_000_007'
    6 | const long MOD = 1_000_000_007;
      |                  ^~~~~~~~~~~~~
a.cc:8:1: error: '::main' must return 'int'
    8 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:17: error: 'readln' was not declared in this scope
    9 |         int n = readln.chomp.to!int;
      |                 ^~~~~~
a.cc:11:12: error: structured binding declaration cannot have type 'int'
   11 |         int[] ps; // primes
      |            ^~
a.cc:11:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:12: error: empty structured binding declaration
a.cc:11:15: error: expected initializer before 'ps'
   11 |         int[] ps; // primes
      |               ^~
a.cc:12:13: error: expected identifier before 'int'
   12 |         int[int] cs; // prime -> count
      |             ^~~
a.cc:12:13: error: expected ']' before 'int'
   12 |         int[int] cs; // prime -> count
      |             ^~~
      |             ]
a.cc:12:12: error: structured binding declaration cannot have type 'int'
   12 |         int[int] cs; // prime -> count
      |            ^
a.cc:12:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:12: error: empty structured binding declaration
a.cc:12:18: error: expected initializer before 'cs'
   12 |         int[int] cs; // prime -> count
      |                  ^~
a.cc:19:25: error: 'ps' was not declared in this scope
   19 |                         ps ~= i;
      |                         ^~
a.cc:20:25: error: 'cs' was not declared in this scope
   20 |                         cs[i] = 0;
      |                         ^~
a.cc:27:25: error: 'p' was not declared in this scope
   27 |                 foreach(p; ps){
      |                         ^
a.cc:27:28: error: 'ps' was not declared in this scope
   27 |                 foreach(p; ps){
      |                            ^~
a.cc:35:9: error: 'BigInt' was not declared in this scope
   35 |         BigInt ans;
      |         ^~~~~~
a.cc:36:9: error: 'ans' was not declared in this scope
   36 |         ans = 1;
      |         ^~~
a.cc:37:17: error: 'p' was not declared in this scope
   37 |         foreach(p; ps){
      |                 ^
a.cc:37:20: error: 'ps' was not declared in this scope
   37 |         foreach(p; ps){
      |                    ^~