Language: C++

struct prime {
	ll prime_number, amo;
	prime(ll prime_number, ll amo) :prime_number(prime_number), amo(amo) {};
};
class prime_enum {
public:
	vector<prime> p;
	void enum_prime(ll n) {
		p.clear();
		for (ll i = 2; i * i <= n; i += 2) {
			if (n % i)
				continue;
			n /= i;
			p.emplace_back(i, 1);
			while (n % i == 0) {
				n /= i;
				p.back().amo++;
			}
		}
		if (1 < n)
			p.emplace_back(n, 1);
	}
};
struct Long2
{
	ll x, y;
	Long2() {}
	Long2(ll x, ll y) :x(x), y(y) {}

	bool operator<(const Long2& other) const {
		if (x != other.x)
			return x < other.x;
		return y < other.y;
	}
	bool operator>(const Long2& other) const {
		if (x != other.x)
			return x > other.x;
		return y > other.y;
	}
};
int main() {
	int n;
	ll t;
	vector<Long2> primes;
	prime_enum p;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%lld", &t);
		p.enum_prime(t);
		for (prime prim : p.p)
			primes.emplace_back(prim.prime_number, prim.amo);
	}
	sort(primes.begin(), primes.end());
	ll res = 1;
	for (int i = 0; i < primes.size() - 1; i++) {
		if (primes[i].x == primes[i + 1].x)
			continue;
		for (int j = 0; j < primes[i].y; j++)
			res *= primes[i].x;
	}
	for (int i = 0; i < primes.back().y; i++)
		res *= primes.back().x;
	printf("%lld\n", res);
}

Compiler output:
a.cc:2:9: error: 'll' does not name a type
    2 |         ll prime_number, amo;
      |         ^~
a.cc:3:17: error: expected ')' before 'prime_number'
    3 |         prime(ll prime_number, ll amo) :prime_number(prime_number), amo(amo) {};
      |              ~  ^~~~~~~~~~~~~
      |                 )
a.cc:7:9: error: 'vector' does not name a type
    7 |         vector<prime> p;
      |         ^~~~~~
a.cc:8:25: error: 'll' has not been declared
    8 |         void enum_prime(ll n) {
      |                         ^~
a.cc: In member function 'void prime_enum::enum_prime(int)':
a.cc:9:17: error: 'p' was not declared in this scope
    9 |                 p.clear();
      |                 ^
a.cc:10:22: error: 'll' was not declared in this scope
   10 |                 for (ll i = 2; i * i <= n; i += 2) {
      |                      ^~
a.cc:10:32: error: 'i' was not declared in this scope
   10 |                 for (ll i = 2; i * i <= n; i += 2) {
      |                                ^
a.cc: At global scope:
a.cc:26:9: error: 'll' does not name a type
   26 |         ll x, y;
      |         ^~
a.cc:28:17: error: expected ')' before 'x'
   28 |         Long2(ll x, ll y) :x(x), y(y) {}
      |              ~  ^~
      |                 )
a.cc: In member function 'bool Long2::operator<(const Long2&) const':
a.cc:31:21: error: 'x' was not declared in this scope
   31 |                 if (x != other.x)
      |                     ^
a.cc:31:32: error: 'const struct Long2' has no member named 'x'
   31 |                 if (x != other.x)
      |                                ^
a.cc:32:42: error: 'const struct Long2' has no member named 'x'
   32 |                         return x < other.x;
      |                                          ^
a.cc:33:24: error: 'y' was not declared in this scope
   33 |                 return y < other.y;
      |                        ^
a.cc:33:34: error: 'const struct Long2' has no member named 'y'
   33 |                 return y < other.y;
      |                                  ^
a.cc: In member function 'bool Long2::operator>(const Long2&) const':
a.cc:36:21: error: 'x' was not declared in this scope
   36 |                 if (x != other.x)
      |                     ^
a.cc:36:32: error: 'const struct Long2' has no member named 'x'
   36 |                 if (x != other.x)
      |                                ^
a.cc:37:42: error: 'const struct Long2' has no member named 'x'
   37 |                         return x > other.x;
      |                                          ^
a.cc:38:24: error: 'y' was not declared in this scope
   38 |                 return y > other.y;
      |                        ^
a.cc:38:34: error: 'const struct Long2' has no member named 'y'
   38 |                 return y > other.y;
      |                                  ^
a.cc: In function 'int main()':
a.cc:43:9: error: 'll' was not declared in this scope
   43 |         ll t;
      |         ^~
a.cc:44:9: error: 'vector' was not declared in this scope
   44 |         vector<Long2> primes;
      |         ^~~~~~
a.cc:44:21: error: expected primary-expression before '>' token
   44 |         vector<Long2> primes;
      |                     ^
a.cc:44:23: error: 'primes' was not declared in this scope; did you mean 'prime'?
   44 |         vector<Long2> primes;
      |                       ^~~~~~
      |                       prime
a.cc:46:9: error: 'scanf' was not declared in this scope
   46 |         scanf("%d", &n);
      |         ^~~~~
a.cc:48:32: error: 't' was not declared in this scope
   48 |                 scanf("%lld", &t);
      |                                ^
a.cc:50:37: error: 'class prime_enum' has no member named 'p'
   50 |                 for (prime prim : p.p)
      |                                     ^
a.cc:51:50: error: 'struct prime' has no member named 'prime_number'
   51 |                         primes.emplace_back(prim.prime_number, prim.amo);
      |                                                  ^~~~~~~~~~~~
a.cc:51:69: error: 'struct prime' has no member named 'amo'
   51 |                         primes.emplace_back(prim.prime_number, prim.amo);
      |                                                                     ^~~
a.cc:53:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   53 |         sort(primes.begin(), primes.end());
      |         ^~~~
      |         short
a.cc:54:11: error: expected ';' before 'res'
   54 |         ll res = 1;
      |           ^~~~
      |           ;
a.cc:59:25: error: 'res' was not declared in this scope
   59 |                         res *= primes[i].x;
      |                         ^~~
a.cc:62:17: error: 'res' was not declared in this scope
   62 |                 res *= primes.back().x;
      |                 ^~~
a.cc:63:26: error: 'res' was not declared in this scope
   63 |         printf("%lld\n", res);
      |                          ^~~
a.cc:63:9: error: 'printf' was not declared in this scope
   63 |         printf("%lld\n", res);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | struct prime {