Language: C++

v#include<bits/stdc++.h>
#define lli long long
#define all(i) i.begin(),i.end()
#define rall(i) i.rbegin(),i.rend()
#define rep0(i,j) for(int i=0;i<j;i++)
#define rep1(i,j) for(int i=1;i<=j;i++)
#define rep0d(i,j) for(int i=j-1;i>=0;i--)
#define MOD 1000000007
 
using namespace std;
 
bool cmpf(const pair<lli, lli> left, const pair<lli, lli> right) {
  	return left.first< right.first;
}
bool cmps(const pair<lli, lli> left, const pair<lli, lli> right) {
  	return left.second < right.second;
}
 
void dfs(lli ed, lli num, vector<map<lli,lli>>& vec){
    lli n=1;
    for(auto e: vec[num]){
        if(n == ed)n++;
        if(e.second != -1)continue;
        vec[num][e.first] = n;
        vec[e.first][num] = n;   
        dfs(n, e.first, vec);
        n++;
    }
}
 
lli gcd(lli a, lli b){
    if(a < b)return gcd(b, a);
    lli temp;
    while((temp = a%b)){
        a=b;
        b=temp;
    }
    return b;
}

struct nCr{
  vector<lli> f, rf;
  lli count=0;
  nCr(lli num): f(num), rf(num){
      count = num;
      f[0] = 1;
      rep1(i, num) f[i] = (f[i - 1] * i) % MOD;
      rep0(i, num+1) rf[i] = inv(f[i]);
  }
    
  lli inv(lli x) {
      lli res = 1;
      lli k = MOD - 2;
      lli y = x;
      while (k) {
          if (k & 1) res = (res * y) % MOD;
          y = (y * y) % MOD;
          k /= 2;
      }
      return res;
  }
  lli C(lli n, lli k) {
      lli a = f[n];
      lli b = rf[n-k];
      lli c = rf[k];
   
      lli bc = (b * c) % MOD;
   
      return (a * bc) % MOD;
  }
};

struct UF{
    vector<int> par,size;

    UF(int N) : par(N), size(N, 1){
        rep0(i,N)par[i] = i;
    }

    int root(int x){
        if (par[x] == x) return x;
        return par[x] = root(par[x]);
    }

    void unite(int x, int y){
        int rx = root(x);
        int ry = root(y);
        if(rx == ry) return;
        par[rx] = ry;
        size[rx] += size[ry];
    }

    bool same(int x, int y){
        int rx = root(x);
        int ry = root(y);
        return rx == ry;
    }

    int getSize(int x){
        return size[x];
    }
};
int main(){
  lli k;
  cin >> k;
  lli ans=0;
  rep1(i,k)rep1(j,k)rep1(l,k)ans+=gcd(gcd(i,j),l);
  cout << ans;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include<bits/stdc++.h>
      | ^
a.cc:12:17: error: 'pair' does not name a type
   12 | bool cmpf(const pair<lli, lli> left, const pair<lli, lli> right) {
      |                 ^~~~
a.cc:12:21: error: expected ',' or '...' before '<' token
   12 | bool cmpf(const pair<lli, lli> left, const pair<lli, lli> right) {
      |                     ^
a.cc: In function 'bool cmpf(int)':
a.cc:13:16: error: 'left' was not declared in this scope
   13 |         return left.first< right.first;
      |                ^~~~
a.cc:13:28: error: 'right' was not declared in this scope
   13 |         return left.first< right.first;
      |                            ^~~~~
a.cc: At global scope:
a.cc:15:17: error: 'pair' does not name a type
   15 | bool cmps(const pair<lli, lli> left, const pair<lli, lli> right) {
      |                 ^~~~
a.cc:15:21: error: expected ',' or '...' before '<' token
   15 | bool cmps(const pair<lli, lli> left, const pair<lli, lli> right) {
      |                     ^
a.cc: In function 'bool cmps(int)':
a.cc:16:16: error: 'left' was not declared in this scope
   16 |         return left.second < right.second;
      |                ^~~~
a.cc:16:30: error: 'right' was not declared in this scope
   16 |         return left.second < right.second;
      |                              ^~~~~
a.cc: At global scope:
a.cc:19:27: error: 'vector' has not been declared
   19 | void dfs(lli ed, lli num, vector<map<lli,lli>>& vec){
      |                           ^~~~~~
a.cc:19:33: error: expected ',' or '...' before '<' token
   19 | void dfs(lli ed, lli num, vector<map<lli,lli>>& vec){
      |                                 ^
a.cc: In function 'void dfs(long long int, long long int, int)':
a.cc:21:17: error: 'vec' was not declared in this scope
   21 |     for(auto e: vec[num]){
      |                 ^~~
a.cc: At global scope:
a.cc:42:3: error: 'vector' does not name a type
   42 |   vector<lli> f, rf;
      |   ^~~~~~
a.cc: In constructor 'nCr::nCr(long long int)':
a.cc:44:17: error: class 'nCr' does not have any field named 'f'
   44 |   nCr(lli num): f(num), rf(num){
      |                 ^
a.cc:44:25: error: class 'nCr' does not have any field named 'rf'
   44 |   nCr(lli num): f(num), rf(num){
      |                         ^~
a.cc:46:7: error: 'f' was not declared in this scope
   46 |       f[0] = 1;
      |       ^
a.cc:48:22: error: 'rf' was not declared in this scope
   48 |       rep0(i, num+1) rf[i] = inv(f[i]);
      |                      ^~
a.cc: In member function 'long long int nCr::C(long long int, long long int)':
a.cc:63:15: error: 'f' was not declared in this scope
   63 |       lli a = f[n];
      |               ^
a.cc:64:15: error: 'rf' was not declared in this scope
   64 |       lli b = rf[n-k];
      |               ^~
a.cc: At global scope:
a.cc:74:5: error: 'vector' does not name a type
   74 |     vector<int> par,size;
      |     ^~~~~~
a.cc: In constructor 'UF::UF(int)':
a.cc:76:17: error: class 'UF' does not have any field named 'par'
   76 |     UF(int N) : par(N), size(N, 1){
      |                 ^~~
a.cc:76:25: error: class 'UF' does not have any field named 'size'
   76 |     UF(int N) : par(N), size(N, 1){
      |                         ^~~~
a.cc:77:18: error: 'par' was not declared in this scope
   77 |         rep0(i,N)par[i] = i;
      |                  ^~~
a.cc: In member function 'int UF::root(int)':
a.cc:81:13: error: 'par' was not declared in this scope
   81 |         if (par[x] == x) return x;
      |             ^~~
a.cc:82:16: error: 'par' was not declared in this scope
   82 |         return par[x] = root(par[x]);
      |                ^~~
a.cc: In member function 'void UF::unite(int, int)':
a.cc:89:9: error: 'par' was not declared in this scope
   89 |         par[rx] = ry;
      |         ^~~
a.cc:90:9: error: 'size' was not declared in this scope
   90 |         size[rx] += size[ry];
      |         ^~~~
a.cc: In member function 'int UF::getSize(int)':
a.cc:100:16: error: 'size' was not declared in this scope
  100 |         return size[x];
      |                ^~~~
a.cc: In function 'int main()':
a.cc:105:3: error: 'cin' was not declared in this scope
  105 |   cin >> k;
      |   ^~~
a.cc:108:3: error: 'cout' was not declared in this scope
  108 |   cout << ans;
      |   ^~~~