Language: C++

#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <utility>
#include <functional>
#include <climits>
#include <cstring>

using namespace std;

#define int long long

#define rep(i, n) for (int i=0;i<(int)n;++i)
#define rep1(i, n) for (int i=1;i<=(int)n;++i)
#define unless(a) if(!(a))
#define all(a) begin(a),end(a)
#define fst first
#define scd second
#define PB emplace_back
#define PPB pop_back

using ll=long long;
using vi=vector<int>;
using pii=pair<int, int>;

bool chmin(int&a,int b){return a>b?(a=b,true):false;}
bool chmax(int&a,int b){return a<b?(a=b,true):false;}
int read(){int a;scanf("%lld",&a);return a;}

const int inf = 1e9 + 10;

int N;
int m[105];

void p_factor(int n)
{
	for (int i = 2; i * i <= n; ++i) {
		while (n % i == 0) {
			//printf("%lld\n", i);
			m[i]++;
			n /= i;
		}
	}

	if (n != 1) m[n]++;
}

	int ans = 0;

	// { 74 }
	rep1(i, N) if (m[i] >= 74) ans++;
	// {2, 24}
	rep1(i, N) {
		rep1(j, N) {
			if (i == j) continue;
			if (m[i] >= 2 and m[j] >= 24) ans++;
		}
	}
	// {4, 14}
	rep1(i, N) {
		rep1(j, N) {
			if (i == j) continue;
			if (m[i] >= 4 and m[j] >= 14) ans++;
		}
	}
	// {2, 4, 4}
	rep1(i, N) {
		rep1(j, N) {
			if (i == j) continue;
			rep1(k, j - 1) {
				if (k == i) continue;
				if (m[i] >= 2 and m[j] >= 4 and m[k] >= 4) {
					ans++;
				}
			}
		}
	}

	cout << ans << endl;
}


Compiler output:
a.cc:19:20: error: expected unqualified-id before 'for'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                    ^~~
a.cc:56:9: note: in expansion of macro 'rep1'
   56 |         rep1(i, N) if (m[i] >= 74) ans++;
      |         ^~~~
a.cc:56:14: error: 'i' does not name a type; did you mean 'vi'?
   56 |         rep1(i, N) if (m[i] >= 74) ans++;
      |              ^
a.cc:19:33: note: in definition of macro 'rep1'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                 ^
a.cc:19:43: error: expected unqualified-id before '++' token
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                           ^~
a.cc:56:9: note: in expansion of macro 'rep1'
   56 |         rep1(i, N) if (m[i] >= 74) ans++;
      |         ^~~~
a.cc:19:20: error: expected unqualified-id before 'for'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                    ^~~
a.cc:58:9: note: in expansion of macro 'rep1'
   58 |         rep1(i, N) {
      |         ^~~~
a.cc:58:14: error: 'i' does not name a type; did you mean 'vi'?
   58 |         rep1(i, N) {
      |              ^
a.cc:19:33: note: in definition of macro 'rep1'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                 ^
a.cc:19:43: error: expected unqualified-id before '++' token
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                           ^~
a.cc:58:9: note: in expansion of macro 'rep1'
   58 |         rep1(i, N) {
      |         ^~~~
a.cc:19:20: error: expected unqualified-id before 'for'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                    ^~~
a.cc:65:9: note: in expansion of macro 'rep1'
   65 |         rep1(i, N) {
      |         ^~~~
a.cc:65:14: error: 'i' does not name a type; did you mean 'vi'?
   65 |         rep1(i, N) {
      |              ^
a.cc:19:33: note: in definition of macro 'rep1'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                 ^
a.cc:19:43: error: expected unqualified-id before '++' token
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                           ^~
a.cc:65:9: note: in expansion of macro 'rep1'
   65 |         rep1(i, N) {
      |         ^~~~
a.cc:19:20: error: expected unqualified-id before 'for'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                    ^~~
a.cc:72:9: note: in expansion of macro 'rep1'
   72 |         rep1(i, N) {
      |         ^~~~
a.cc:72:14: error: 'i' does not name a type; did you mean 'vi'?
   72 |         rep1(i, N) {
      |              ^
a.cc:19:33: note: in definition of macro 'rep1'
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                 ^
a.cc:19:43: error: expected unqualified-id before '++' token
   19 | #define rep1(i, n) for (int i=1;i<=(int)n;++i)
      |                                           ^~
a.cc:72:9: note: in expansion of macro 'rep1'
   72 |         rep1(i, N) {
      |         ^~~~
a.cc:84:9: error: 'cout' does not name a type
   84 |         cout << ans << endl;
      |         ^~~~
a.cc:85:1: error: expected declaration before '}' token
   85 | }
      | ^