criyle/codenet-compile-errors huggingface dataset:
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
const ll MOD = 1e9 + 7;
const long long INF = 1LL << 60;

int gcd(int a, int b)
{
    if (a % b == 0)
    {
        return (b);
    }
    else
    {
        return (gcd(b, a % b));
    }
}

int main()
{
    int k;
    cin >> k;

    ll answer = 0;
    for (int a = 1; a <= k; a++)
    {
        for (int b = 1; b <= k; b++)
        {
            for (int c = 1; c <= k; c++)
            {
                answer += gcd(a, gcd(b, c));
            }
        }
    }
    cout << answer << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <iomanip>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<string> VS;
typedef vector< vector<int> > VVI;
typedef vector< vector<ll> > VVL;
typedef pair<int,int> PII;
typedef pair<ll,ll> PLL;
#define rep(i,n) for(int i=0;i<(n);i++)
#define all(a) (a).begin(),(a).end()
#define pf push_front
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define ub upper_bound
#define lb lower_bound
 
int main(){
  ll K;
  cin>>K;
  ll ans=0;
  rep(a,K) rep(b,K) rep(c,K) ans+=gcd(gcd((a+1),(b+1)),c+1);
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:39: error: 'gcd' was not declared in this scope
   33 |   rep(a,K) rep(b,K) rep(c,K) ans+=gcd(gcd((a+1),(b+1)),c+1);
      |                                       ^~~
a.cc:33:35: error: 'gcd' was not declared in this scope
   33 |   rep(a,K) rep(b,K) rep(c,K) ans+=gcd(gcd((a+1),(b+1)),c+1);
      |                                   ^~~
Language: C++

#include<bits/stdc++.h>
#define db double
#define ll long long
#define reg register
#define pb(x) push_back(x)
#define fup(i,x,y) for(reg int i=x;i<=y;++i)
#define fdw(i,x,y) for(reg int i=x;i>=y;--i)
using namespace std;
const int N=210;
int gcd[N][N];
ll ans,n;
inline int read()
{
	int x=0,ff=1;
	char ch=getchar();
	while(!isdigit(ch)) {if(ch=='-') ff=-1;ch=getchar();}
	while(isdigit(ch)) {x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}
	return x*ff;
}
inline int Gcd(int a,int b){return b?Gcd(b,a%b):a;}
int main()
{
	//freopen("1.in","r",stdin);
	n=read();
	for(int i=1;i<=n;++i)
		for(int j=1;j<=n;++j) gcd[i][j]=Gcd(i,j);
	for(int i=1;i<=n;++i)
		for(int j=1;j<=n;++j)
		{
			int d=gcd[i][j];
			for(int k=1;k<=n;++k) ans+=(ll)gcd[d][k];
		}
	printf("%lld",ans);
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:26:39: error: reference to 'gcd' is ambiguous
   26 |                 for(int j=1;j<=n;++j) gcd[i][j]=Gcd(i,j);
      |                                       ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:1:
/usr/include/c++/14/numeric:173:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
  173 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:10:5: note:                 'int gcd [210][210]'
   10 | int gcd[N][N];
      |     ^~~
a.cc:30:31: error: reference to 'gcd' is ambiguous
   30 |                         int d=gcd[i][j];
      |                               ^~~
/usr/include/c++/14/numeric:173:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
  173 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:10:5: note:                 'int gcd [210][210]'
   10 | int gcd[N][N];
      |     ^~~
a.cc:31:56: error: reference to 'gcd' is ambiguous
   31 |                         for(int k=1;k<=n;++k) ans+=(ll)gcd[d][k];
      |                                                        ^~~
/usr/include/c++/14/numeric:173:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
  173 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:10:5: note:                 'int gcd [210][210]'
   10 | int gcd[N][N];
      |     ^~~
Language: C++

#include<bits/stdc++.h>
usingnamespace std;
int main(){
  long long a=1,b=1,c=1,k,n=0;
  cin>>k;
  int m;
  for(int a=1;a<=k;a++){
    for(int b=1;b<=k;b++){
      for(int c=1;c<=k;c++){
        m=min(a,b,c);
        n+=m;
      }
    }
  }
  cout<<n<<"\n";
  return(0);
}

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>k;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:11: error: 'min' was not declared in this scope; did you mean 'std::min'?
   10 |         m=min(a,b,c);
      |           ^~~
      |           std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout<<n<<"\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;


#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;

/* vector<int> A(N); 
    vector<pair<int, int> > tasks; ＃ソートした場合、１つ目でソート
　tie(b, a) = p.at(i); #pairを分割
    tasks.emplace_back(b, a)  ＃配列tasksの最後に(b,a)を追加
　xの二乗:  pow(x, 2.0) 
    小さい順: sort(v.begin(), v.end());
    大きい順: reverse(v.begin(), v.end());
    int: -2,147,483,648 ～ 2,147,483,647
    ll: -9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
    // int型の2次元配列(3×4要素の)の宣言
    vector<vector<int>> data(3, vector<int>(4));
*/

/* xとyの最大公約数を求める */

int gcd(ll x, ll y){
  if(x<y)return gcd(y,x);
  else{
    ll r=x%y;
    if(r!=0)return gcd(y,r);
    else return y;
  }
}

int gcd3(ll x, ll y, ll z){
	int a = gcd(x,y);
  	int b = gcd(a,z);
  	 return b;
}
 
int main() {
  
  ll A, B, C, count=0, ans=0;
  string D, E;
  cin >> A;
  
  rep(x,A){
  	rep(y,A){
    	rep(z,A){
          	count+= gcd3(x,y,z);
        }
    }
  }
  
  cout << count << endl;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;

int gcd(int a, int b, int c) {
  if (a == 1 || b == 1 || c == 1) return 1;
  else {
    int tmp = min(a, min(b, c));
    int gcd = 1;
    for (int i = tmp; i > 0; i--) {
      if (a%i == 0 && b%i == 0 && c%i == 0) {
        gcd = i;
        break;
      }
    }
    return gcd;
  }
}

int main() {
  int K;
  cin >> K;
  int res = 0;
  for (int i = 1; i <= K; i++) {
    for (int j = 1; j <= K; j++) {
      for (int k = 1; k <= K; k++) {
        res += gcd(i, j, k);
      }
    }
  }
  cout << res << endl;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int gcd[500][500];
int main() {
	long long int n,d;
	int a,b,c,tot=0;
	scanf("%d",&a);
	b= a;
	c= a;
	for(int i=1;i<=200;i++) {
		for(int j=1;j<=200;j++) {
			gcd[i][j] = __gcd(i,j);
		}
	}
	for(int i=1;i<=a;i++) {
		for(int j=1;j<=b;j++) {
			for(int k=1;k<=c;k++) {
				tot += gcd[gcd[i][j]][k];
			}
		}
	}
	printf("%d",tot);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: reference to 'gcd' is ambiguous
   12 |                         gcd[i][j] = __gcd(i,j);
      |                         ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:1:
/usr/include/c++/14/numeric:173:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
  173 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:3:5: note:                 'int gcd [500][500]'
    3 | int gcd[500][500];
      |     ^~~
a.cc:18:40: error: reference to 'gcd' is ambiguous
   18 |                                 tot += gcd[gcd[i][j]][k];
      |                                        ^~~
/usr/include/c++/14/numeric:173:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
  173 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:3:5: note:                 'int gcd [500][500]'
    3 | int gcd[500][500];
      |     ^~~
a.cc:18:44: error: reference to 'gcd' is ambiguous
   18 |                                 tot += gcd[gcd[i][j]][k];
      |                                            ^~~
/usr/include/c++/14/numeric:173:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)'
  173 |     gcd(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:3:5: note:                 'int gcd [500][500]'
    3 | int gcd[500][500];
      |     ^~~
Language: C

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
#include <cmath>
#include <queue>
#include <map>
#include <utility>
#define endl '\n'
#define fi first
#define se second
#define pb push_back
#define debug(x) cout << "[debug] " << #x << ": " << x << endl
using namespace std;
typedef long long ll;
typedef pair<int, int> PII;
const int MOD = 1e9 + 7;
const int maxn = 1e6 + 5;
const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-8;

ll gcd(ll x, ll y)
{
   while(x!=y)
   {
       if(x>y) x=x-y;
       else
       	y=y-x;
   }
   return x;
   //辗转相除法
}

int main() {
	int n; cin >> n;
	long long sum = 0;
	for(int i = 1; i <= n; ++i){
		for(int j = 1; j <= n; ++j){
			for(int k = 1; k <= n; ++k){
				int x = gcd(j, k);
				int y = gcd(x, i);
				sum += y;
			}
		}
	}
	cout << sum << endl;
	return 0;
} 

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
  int k;
  cin >> k;
  ll ans = 0;
  for (int i = 1; i <= k; i++) {
    for (int j = 1; j <= k; j++) {
      for (int l = 1; l <= k; l++) {
        ans += __gcd(__gcd(i, j), l);
      }
    }
  }
  cout << ans << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=1;i<=n;i++)

int gcd(int a, int b) {
  if(a < b) return gcd(b, a);
  int r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

int main(){
	int k;
	cin >> k;
	int sum =0;
	rep(a,k){
		rep(b,k){
			rep(c,k){
				sum += gcd(a,gcd(b,c));
			}
		}
	}
	
	cout << sum << endl;

	return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
using namespace std;

#define ll int long long
#define dll double long long
#define forei(i,n,x) for(int i=n;i<=x;i++)
#define fored(i,n,x) for(int i=n;i>=x;i--)
#define forni(i,n,x) for(int i=n;i<x;i++)
#define fornd(i,n,x) for(int i=n;i>x;i--)
#define SQ(a) (a)*(a)
#define MOD 1000000007
#define sortvi(v) sort(v.begin(),v.end())
#define sortvd(v) sort(v.rbegin(),v.rend())
#define pb push_back
#define pob pop_back
#define mp make_pair
#define pv(v) for(auto it: v) cout<<it
#define endl '\n'   //Take care in case of interactive problems
#define MAX1 100005
#define MAX2 200005
#define max3(a,b,c) max(a,max(b,c))
#define min3(a,b,c) min(a,min(b,c))

typedef pair<ll,ll> pl;
typedef pair<int,int> pi;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;
ll gcd(ll a , ll b)
{
   if(b==0) return a;
   a%=b;
   return gcd(b,a);
}

ll gcda(ll i, ll j ,ll k)
{
    ll temp;
    temp=gcd(i,j);
    temp=gcd(temp,k);
    return temp;
}

int main() 
{ 
   ll k;cin>>k;
   ll sum=0;
   forni(i,1,k+1)
   {
       forni(j,1,k+1)
       {
           forni(l , 1 ,k+1)
           {
               sum+=gcda(i,j,l);
           }
       }
   }
   cout<<sum<<endl;
   
   
    return 0; 
} 

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include<bits/stdc++.h>
using namespace std;

#define IOS ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define deb(x)	cout << #x << " " << x << endl;

typedef long long int ll;

int gcd(int a, int b) {
	if (b == 0)
		return a;

	return gcd(b, a%b);
}

int main() {

	IOS

	int n;
	cin >> n;

	ll sum = 0;

	for (int i = 1; i <= n; i++)
		for (int j = 1; j <= n; j++)
			for (int k = 1; k <= n; k++)
				sum += gcd(i, gcd(j, k));

	cout << sum << endl;

	return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <cmath>
#include <iomanip>
using namespace std;
typedef long long int ll;

ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

void P(int x) {cout << x << endl;}
void P(long x) {cout << x << endl;}
void P(ll x) {cout << x << endl;}
void P(string x) {cout << x << endl;}

#define YES cout << "YES" << endl
#define Yes cout << "Yes" << endl
#define NO cout << "NO" << endl
#define No cout << "No" << endl

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define drep(i, n) for(int i = n - 1; i >= 0; i--)

const int INF = 1001001001;
const ll LINF = 1001002003004005006ll;

int main() {
  int k;
  cin >> k;
  ll ans = 0;
  for (int a = 1; a < k + 1; a++) {
    for (int b = 1; b < k + 1; b++) {
      for (int c = 1; c < k + 1; c++) {
        ans += gcd(gcd(a, b), c);
      }
    }
  }
  P(ans);
  return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>

using namespace std;
int main()
{
    int n;
    cin >> n;
    long long int sum = 0;
    for (int i = 1; i <= n; i++)
    {
        for (int j = 1; j <= n; j++)
        {
            for (int k = 1; k <= n; k++)
            {
                sum += __gcd(k, __gcd(i, j));
            }
        }
    }
    cout << sum << "\n";
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>

using namespace std;
using namespace __gnu_pbds;

template <class T> using Tree = tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update>;

typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<double, double> pdd;

#define all(x)                      (x).begin(),(x).end()
#define Sort(x)                     sort(all((x)))
#define X                           first
#define Y                           second
#define sep                         ' '
#define endl                        '\n'
#define SZ(x)                       ll(x.size())

ll poww(ll a, ll b, ll md) {
    return (!b ? 1 : (b & 1 ? a * poww(a * a % md, b / 2, md) % md : poww(a * a % md, b / 2, md) % md));
}

const ll MAXN = 1e5 + 10;
const ll LOG = 22;
const ll INF = 8e18;
const ll MOD = 1e9 + 7; // 998244353; // 1e9 + 9;

ll k , ans;

int main() {
    ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);

    cin >> k;
    for(int i = 1 ; i <= k ; i++){
        for(int j = 1 ; j <= k ; j++){
            for(int l = 1 ; l <= k ; l++){
                ans += __gcd(__gcd(i , j) , l);
            }
        }
    }
    cout << ans << endl;

    return 0;
}
/*

*/


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;

int gcd(int a, int b) {
    if (a % b == 0) {
        return(b);
    }
    
    return gcd(b, a % b);
}

int main() {
    int K;
    cin >> K;
    
    long long ans = 0;
    for (int i = 1; i <= K; i++) {
        for (int j = 1; j <= K; j++) {
            for (int k = 1; k <= K; k++) {
                ans += gcd(gcd(i, j), k);
            }
        }
    }

    cout << ans << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

    #include <bits/stdc++.h>

    using namespace std;
    int main(){
        ios::sync_with_stdio(0);
        cin.tie(0);
        cout.tie(0);
        int a;
        cin>>a;
        long long val=0;
        for(int i=1;i<=a;i++){
            for(int j=1;j<=a;j++){
                for(int k=1;k<=a;k++){
                    int z=__gcd(i,j);
                    z=__gcd(z,k);
                    val+=z;
                }
            }
        }
        cout<<val;
        return 0;
    }


Compiler output:
main.c:1:14: fatal error: bits/stdc++.h: No such file or directory
    1 |     #include <bits/stdc++.h>
      |              ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <algorithm>
using namespace std;

int main() {
    int k;
    cin >> k;

    int ans = 0;
    for(int a = 1; a <= k; a++) {
        for(int b = 1; b <= k; b++) {
            for(int c = 1; c <= k; c++) {
                ans += __gcd(__gcd(a, b), c);
            }
        }
    }
    cout << ans << endl;


    
    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include<algorithm>
#include<string>
#include <map>
#include <queue>
#include <stack>
#include <set>

#define INF 1e12
#define DIV 1000000007
using namespace std;
using ll = long long;

int lcd(int p, int q) {
	int upper, lower, r;

	if (p >= q) upper = p, lower = q;
	else upper = q, lower = p;
	r = upper % lower;
	if (r)return lcd(lower, r);
	else return lower;
}

int main() {
    int K;
    cin >> K;
	
	ll ans = 0;
	for (int i = 1; i <= K; i++) {
		for (int j = 1; j <= K; j++) {
			for (int k = 1; k <= K; k++) {
				ans += lcd(lcd(i, j), k);
			}
		}
	}

	cout << ans << endl;


}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define div1 1000000007
const long long INF = 1LL << 60;
using namespace std;
typedef long long ll;
typedef long double ld;
// a>b -> a==b;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
// a<b -> a==b;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }

// 最大公約数 O(log(n))
// gcd(12,0)=gcd(0,12)=12
ll gcd(ll a, ll b)
{
    if(b==0) swap(a,b);
    if(a%b == 0){
        return(b);
    }
    else{
        return(gcd(b, a%b));
    }
}

// 最小公倍数
ll lcm(ll a, ll b)
{
    return a  / gcd(a, b) * b;
}

int main(void)
{
    ll K, i, j, k, ans=0, a, b;

    cin >> K;

    for(i=1; i<=K; i++){
        for(j=i; j<=K; j++){
            for(k=j; k<=K; k++){
                a = gcd(i,j);
                b = gcd(a,k);
                if(i==j && j==k){
                    ans += b;
                }
                else if(i!=j && j!=k && k!=i){
                    ans += b*6;
                }
                else{
                    ans += b*3;
                }
            }
        }
    }

    cout << ans << endl;

    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int K;
  cin >>K;
  int ans=0;
  cin >>ans;
  for (int i = 1; i < K+1; i++) {
    for (int j = 1; j < K+1; j++) {
      for (int t = 1; t < K+1; t++) {
        
        
      ans+=   __gcd(t,__gcd(i, j) )
}
 
}
 
}
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected ';' before '}' token
   14 |       ans+=   __gcd(t,__gcd(i, j) )
      |                                    ^
      |                                    ;
   15 | }
      | ~
Language: C

#include<iostream>
#include <cmath>
#include<vector>
#define rep(i, n) for (int i=0;i<n;i++)
#include <map> 
#include<algorithm>
#include <numeric>
#include<deque>
#include<queue>
#include<string>
#include <iomanip>
using namespace std;
typedef long long ll;

ll gc(ll a, ll b){
    if(b==0) return a;
    else return gc(b, a%b);
}

 
int main(void){
    int k;
    cin>>k;
    ll ans=0;
    for(int i=1;i<=k;i++){
        for(int j=1;j<=k;j++){
            for(int t=1;t<=k;t++){
                ans+=gc(gc(i, j), t);
            }
        }
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <climits>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <cassert>
#include <unordered_map>

#define _(x) { cout << #x << " = " << x << " "; }

const double E = 1e-8;
const double PI = acos(-1);

using namespace std;

int gcd(int a, int b) {
    if (b == 0) return a;
    return gcd(b, a%b);
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int k;
    cin >> k;
    long long sum = 0; 
    for (int a = 1; a <= k; ++a) {
        for (int b = 1; b <= k; ++b) {
            for (int c = 1; c <= k; ++c) {
                sum += gcd(a, gcd(b,c));
            }
        }
    }
    cout << sum << '\n';
    return 0;
}



Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>

using namespace std;
using ll=long long;

ll gcd(ll x,ll y){
    return y?gcd(y,x%y):x;
}

int main()
{
    int k;cin >>k;
    ll ans=0;
    for(int a=1;a<=k;a++){
        for(int b=1;b<=k;b++){
            for(int c=1;c<=k;c++){
                ans+=gcd(gcd(a,b),c);
            }
        }
    }
    cout << ans << endl;
    return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>

int gcd2(int a, int b){
  int c = 1;
  int d = a % b;
  while(d!=0){
    d = a % b;
    a = b;
    b = d;
  }
  return d;
}

int gcd3(int a, int b, int c){
  int d = gcd(a,b);
  int e = gcd(c,d);
  return e;
}

int main(){
  
  int K = 0;
  std::cin >> K;
  
  long Sum = 0;
  for(int i=1; i<=K; i++){
    for(int j=1; j<=K; j++){
      for(int k=1; k<=k; k++){
        Sum += gcd3(i, j, k);
      }
    }
  }
  
  std::cout << Sum << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int gcd3(int, int, int)':
a.cc:15:11: error: 'gcd' was not declared in this scope; did you mean 'gcd3'?
   15 |   int d = gcd(a,b);
      |           ^~~
      |           gcd3
Language: C

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stack>
#include <climits>
#include <cmath>

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define reps(i,s,n) for(int i=s, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define MEMSET(v, h) memset((v), h, sizeof(v))
typedef long long ll;
const char sp = ' ';


using namespace std;

ll gcd(ll a, ll b){
    if(a%b==0) return b;
    else return gcd(b, a%b);
}

int main(void){
    ll K;
    cin>>K;
    ll ans=0;
    rep1(i, K) rep1(j, K) rep1(k, K){
        ans+=gcd(gcd(i, j), k);
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <algorithm>
#include <cstdio>
#include <iomanip>
#include <queue>
#include <deque>
#include <stack>
#include <fstream>
#include <cmath>
#include <random>
#include <complex>
#include <functional>

#define ll int64_t
#define Rep(i, n) for (ll i = 0; i < n; i++)
using namespace std;
typedef vector<ll> vec;
typedef vector<vec> mat;

const ll inf = 1LL << 60;

template<class T> inline void chmin(T& a, T b) {
    if (a > b) {
        a = b;
    }
}
template<class T> inline void chmax(T& a, T b) {
    if (a < b) {
        a = b;
    }
}

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    ll K;
    cin >> K;

    ll ans = 0;
    for (ll a = 1; a <= K; a++) {
        for (ll b = 1; b <= K; b++) {
            for (ll c = 1; c <= K; c++) {
                ll tmp = gcd(a, b);
                tmp = gcd(tmp, c);
                ans += tmp;
            }
        }
    }

    cout << ans << endl;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include<algorithm>
#include<string>
#include<cstring>
#include<cstdio>
#include<stdio.h>
#include<cmath>
#include<math.h>
#include<vector>
#include<set>
#include<queue>
#include<map>
#include<sstream>
#include<iomanip>
#define forn(i,n) for(int (i)=0;i<(n);i++)
#define pb push_back
#define mp make_pair
using namespace std;
typedef pair<int,int>pii;
typedef long long ll;
typedef pair<ll,ll> pll;
const int MAXN=100005;
const int INF=2147483647;
const ll LINF=9223372036854775807;
const int dx[]={1,-1,0,0},dy[]={0,0,1,-1};
int gcd(int a,int b)
{
	if(b==0)return a;
	return gcd(b,a%b);
}
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	int n,ans=0;
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		for(int j=i;j<=n;j++)
		{
			for(int k=j;k<=n;k++)
			{
				int x;
				if(i==j&&j==k)x=1;
				else if(i==j||j==k)x=3;
				else x=6;
				ans+=x*gcd(k,gcd(j,i));
			}
		}
	}
	cout<<ans;
	return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;

int gcd(int a, int b){
    if (a%b == 0)
    {
        return(b);
    }
    else
    {
        return(gcd(b, a%b));
    }
}

int main(){
  int k;
  cin>>k;
  long long ans;
  ans=0;
  for(int i=1;i<=k;i++){
    for(int g=1;g<=k;g++){
      for(int l=1;l<=k;l++){
        ans+=gcd(i,gcd(g,l));
      }
    }
  }
  cout<<ans<<endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include<vector>
#include<cstring>
#include<algorithm>
#include<cmath>
#include<queue>
#include<deque>
#include<map>
#include<bitset>
using namespace std;

typedef long long ll;
#define rep(i, n) for(int i = 0;i < (n);i++)
#define repr(i, n) for(int i = (n);i >= 0;i--)
#define repf(i, m, n) for(int i = (m);i < (n);i++)
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1;} return 0;}
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1;} return 0;}
int dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0};
//////////////////////////////////////////////////

ll gcd (ll a, ll b) { return b?gcd(b,a%b): a;}

int main() {
    int k; cin >> k;
    vector<vector<ll>> a(210, vector<ll>(210, 1));
    repf(i,1,201) repf(j,i,201) {
        a[i][j] = a[j][i] = gcd(i,j);
    }

    ll ans = 0;
    repf(i,1,k+1) repf(j,1,k+1) repf(l,1,k+1) {
        ans += gcd(i, a[j][l]);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <vector>
#include <string>
#include <iostream>
#include <queue>
#include <algorithm>
#include <functional>
#include <map>
#include <array>
#include <cmath>

using namespace std;

int gcd(int a, int b){
    if(a < b){
        return gcd(b, a);
    }

    int r = a % b;
    while(r != 0){
        a = b;
        b = r;
        r = a % b;
    }

    return b;
}

int gcd3(int a, int b, int c){
    int ab = gcd(a, b);
    return gcd(ab, c);
}


int main(int argc, char* argv[]){

    long long N;
    cin >> N;

    long long sum = 0;

    for(int a = 1; a <= N; ++a){
        for(int b = 1; b <= N; ++b){
            for(int c = 1; c <= N; ++c){
                sum += gcd3(a, b, c);
            }
        }
    }

    cout << sum;
}



Compiler output:
main.c:1:10: fatal error: vector: No such file or directory
    1 | #include <vector>
      |          ^~~~~~~~
compilation terminated.
Language: C

/**
 * Title:
 * Url:
 */
#include<iostream>

using namespace std;

#define ll long long

ll gcd(ll a, ll b) {
    if(a==b) return a;
    if(a<b) {
        ll tmp = a;
        a = b;
        b = tmp;
    }
    ll r = a%b;
    while(r!=0) {
        ll tmp_r = r;
        r = b % r;
        b = tmp_r;
    }
    return b;
}

// 最小公倍数
ll lcm(ll a, ll b) {
    if(a==b) {
        return a;
    }
    ll gcd_a_b = gcd(a, b);
    return a/gcd_a_b*b;
}

int main() {
    ll k; cin >> k;
    ll sum = 0;
    for(ll i=1; i<=k; i++) {
        for(ll j=1; j<=k; j++) {
            for(ll l=1; l<=k; l++) {
                sum += gcd(gcd(i, j), l);
            }
        }
    }
    cout << sum << endl;

    return 0;
}

Compiler output:
main.c:5:9: fatal error: iostream: No such file or directory
    5 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
#define f(i,a,b) for(int i=a,inc=(b-a)/abs(b-a); i!=b ; i+=inc)
#define deb(x) cout<<#x<<"->"<<x<<endl;
#define print(arr,a,b) for(int i=a;i!=b;i++){cout<<arr[i]<<" ";}cout<<endl;
using ll=long long int;
int arr_min(int arr[],int a,int b){ int min=arr[0]; for(int i=a;i!=b;i++){if(min>arr[i]) min=arr[i];}return min;}
int arr_max(int arr[],int a,int b){ int max=arr[0]; for(int i=a;i!=b;i++){if(max<arr[i]) max=arr[i];}return max;}

signed main()
{
	ios_base::sync_with_stdio(false);   
    cin.tie(NULL);

	#ifndef ONLINE_JUDGE
      	freopen("input.txt", "r", stdin);
      	freopen("output.txt", "w", stdout);
    #endif
    int t=1;
    // cin>>t;
    while(t-->0){
    	int k;
    	cin>>k;
    	ll sum=0;
    	for(int a=1;a<=k;a++)
    	{
    		for(int b=1;b<=k;b++)
    		{
    			for(int c=1;c<=k;c++)
    			{
                      int x=__gcd(b,c);
                      sum+=__gcd(x,a);
    			}
    		}
    	}
    	cout<<sum<<endl;
    	
    	
    }
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 1; i <= n; i++)
using namespace std;

int gcd(int x, int y)
{
	if (y == 0) return x;
	return gcd(y, x%y);
}
signed main(void)
{
	int k;
	long long ans;
	cin >> k;

	ans = 0;
	rep(i, k) rep(j, k) rep(l, k)
	{
		ans += gcd(gcd(i, j), l);
	}
	cout << ans << endl;
	return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;

int main() {
int K;
  cin >> K;
  int result = 0;
  for(int a = 1;a <= N;a++){
    for(int b = 1;b <= N;b++){
      for(int c = 1;c <= N;c++){
        for(int d = 200;d >= 1;d -= 1){
          if(a%d==0&&b%d==0&&c%d==0){
            result += d;
            break;
          }
        }
      }
    }
  }

cout<<result<<endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define pb push_back
#define rep(i,n) for(int i=0;i<(n);i++)
#define reps(i,n,s) for(int i=(s);i<(n);i++)
#define rrep(i,n) for(int i=(n-1);i>=0;i--)
#define rreps(i,n,s) for(int i=s;i>=n;i--)
#define MOD 1000000007
using ll = long long;
using namespace std;
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
ll gcd(ll a, ll b)
{
    if (a < b)
        return gcd(b, a);
    unsigned r;
    while ((r = a % b))
    {
        a = b;
        b = r;
    }
    return b;
}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int k;
cin >> k;
ll total = 0;
reps(a,k+1,1){
    reps(b,k+1,1){
        reps(c,k+1,1){
            total += gcd(a, gcd(b, c));
        }
}
}
cout << total << endl;
//system("pause");
return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#define ll long long
#define rep(i,n) for(ll i=0;i<n;i++)
#define rep2(i,a,b) for(ll i=a;i<=b;++i)
#define rep3(i,a,b) for(ll i=a;i>=b;i--)
#include <bits/stdc++.h>
 
using namespace std;

ll gcd2(ll x, ll y, ll z){
    return gcd(gcd(x, y), z);
}
int main(void) {
    ll t, ans = 0;
    cin >> t;
    rep2(i, 1, t){
        rep2(j, 1, t){
            rep2(k, 1, t){
                ans += gcd2(i, j, k);
            }
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
main.c:5:10: fatal error: bits/stdc++.h: No such file or directory
    5 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>

using namespace std;

typedef long long ll;

ll gcd(ll a,ll b)
{
    return b ? gcd(b, a % b) : a;
}

int main(){
    int k;
    cin >> k;
    ll sum = 0;
    for (int i = 0; i < k; i++)
    {
        for (int j = 0; j < k; j++)
        {
            for (int l = 0; l < k; l++)
            {
                sum += gcd(gcd(i+1, j+1), l+1);
            }
        }
        
    }
    cout << sum << endl;
    return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

import sys,math
import numpy as np

n=int(sys.stdin.readline())
#n,k=map(int,sys.stdin.readline().split())
#a=np.array(sys.stdin.readline().split(),dtype='int64')
#a=np.array([sys.stdin.readline().split() for i in range(n)],dtype='int64')
ans=0
for i in range(1,n+1):
    for j in range(1,n+1):
        for k in range(1,n+1):
            ans+=math.gcd(math.gcd(i,j),k)

print(ans)


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys,math
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    2 | import numpy as np
      | ^~~~~~
main.c:5:2: error: invalid preprocessing directive #n
    5 | #n,k=map(int,sys.stdin.readline().split())
      |  ^
main.c:6:2: error: invalid preprocessing directive #a
    6 | #a=np.array(sys.stdin.readline().split(),dtype='int64')
      |  ^
main.c:7:2: error: invalid preprocessing directive #a
    7 | #a=np.array([sys.stdin.readline().split() for i in range(n)],dtype='int64')
      |  ^
Language: C

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intput(i) cout << i << endl
#define ll long long
#define stringput(s) cout << (string)(s) << endl

ll GCD(ll a, ll b){
    if(a < b) return GCD(b,a);
    if(b == 0) return a;
    else return GCD(b,a%b);
}

int main(){
  ll K;
  cin >> K;
  ll ans = 0;
  for(int i = 1;i <= K;i++){
    for(int j = 1;j <= K;j++){
      for(int k = 1;k <= K;k++){
        ans += GCD(GCD(i,j),k);
      }
    }
  }
  cout << ans << endl;
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

/* 大文字を小文字に変換 */
char tolower(char c) {return (c + 0x20);}
/* 小文字を大文字に変換 */
char toupr(char c) {return (c - 0x20);}

// if('A'<=s[i] && s[i]<='Z') s[i] += 'a'-'A';

/*
string s = "abcdefg"
s.substr(4) "efg"
s.substr(0,3) "abc"
s.substr(2,4) "cdef"
*/

int gcd(int a, int b, int c){
    int gcd_ab = 0;
    if(a<b) swap(a,b);
    for(int i=1; i<=b; i++){
        if(a % i == 0){
            if(b % i == 0) gcd_ab = i;
        }
    }
    int gcd_abc = 0;
    if(gcd_ab>c) swap(gcd_ab, c);
    for(int i=1; i<=gcd_ab; i++){
        if(c % i == 0){
            if(gcd_ab % i == 0){
                gcd_abc = i;
            }
        }
    } 
    return gcd_abc;
}

int main()
{
    int K; cin >> K;
    ll sum = 0;
    for(int i=1; i<=K; i++){
        for(int j=1; j<=K; j++){
            for(int k=1; k<=K; k++){
                sum += gcd(i, j, k);
            }
        }
    }
    cout << sum << endl;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

public class Main(){
  static int gcd (int a, int b) {return b>0 ? gcd(b, a%b) : a;}
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    long ans = 0;
    for(int a = 1 ; a <= k ; a++){
      for(int b = 1; b <= k ; b++){
        for(int c = 1; c <= k; c++){
          ans += gcd(gcd(a,b),c);
        }
      }
    }
    System.out.println(ans);
  }
}

Compiler output:
Main.java:3: error: '{' expected
public class Main(){
                 ^
1 error
Language: C

#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<map>
#include<set>
#include<stack>
#include<queue>
#include<math.h>
using namespace std;
typedef long long ll;
#define int long long
typedef vector<int> VI;
typedef pair<int, int> pii;
typedef vector<pii> VP;
typedef vector<string> VS;
typedef priority_queue<int> PQ;
template<class T>bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
#define fore(i,a) for(auto &i:a)
#define REP(i,n) for(int i=0;i<n;i++)
#define eREP(i,n) for(int i=0;i<=n;i++)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define eFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define SORT(c) sort((c).begin(),(c).end())
#define rSORT(c) sort((c).rbegin(),(c).rend())
#define LB(x,a) lower_bound((x).begin(),(x).end(),(a))
#define UB(x,a) upper_bound((x).begin(),(x).end(),(a))
#define INF 1000000000
#define LLINF 9223372036854775807
#define mod 1000000007
//priority_queue<int,vector<int>, greater<int> > q2;

int gcd(int a, int b) {//最大公約数
	if (b == 0)return a;
	return gcd(b, a%b);
}

signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int K; cin >> K;
	int sum = 0;

	eFOR(i, 1, K) {
		eFOR(j, 1, K) {
			eFOR(k, 1, K) {
				sum += gcd(i, gcd(j, k));
			}
		}
	}
	cout << sum << endl;

	return 0;
}



Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#include<vector>
using namespace std;
#define rep(i, n)        for(int i=0; i<(int)(n); ++i)

int gcd(int a, int b)
{
   if (a%b == 0)
   {
       return(b);
   }
   else
   {
       return(gcd(b, a%b));
   }
}
int main() {
  long int a,b=0;cin>>a;
  rep(i,a++){
    rep(o,a++){
      rep(o,a++)b+=gcd(a,gcd(b,c));
    }
  }
  cout<<b;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<queue>
#include<cmath>
#include<map>
#include<stack>
#define ll long long
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
static const int MAXN = 100000;
static const int MAX = 1000000000;

int gcd(int a, int b)
{
    if (a < b) {
        a ^= b;
        b ^= a;
        a ^= b;
    }
    
    return b ? gcd(b, a % b) : a;
}

int main(){
    int K;
    cin >> K;

    ll ans = 0;
    for(int i = 1; i <= K; i++){
        for(int j = 1; j <= K; j++){
            int a = gcd(i,j);
            for(int k = 1; k <= K; k++){
                ans += gcd(k,a);
            }
        }
    }
    cout << ans << endl;

    return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
ll gcd(ll a,ll b){
    if(a<b)swap(a,b);
    if(a%b==0)return b;
    return gcd(a%b,b);
}
int main() {
ll sum=0;
ll k;
cin >> k;
for (ll i = 1; i <= k; i++)
{
 for (ll j = 1; j <= k; j++)
  { 
    for (ll b = 1; b <= k; b++)
    {
      sum+=gcd(i,gcd(j,b));
    } 
  }
}

cout << sum <<endl;


}
/*vector <int> a(3);
for (int i = 0; i < n; i++) {
    cin >> a.at(i);
  }*/

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
#define ll long long 
#define P pair<int,int>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;

int main(){
    int k;
    cin >> k;
    int ans = 0;
    for(int i=1;i<=k;i++){
        for(int j=1;j<=k;j++){
            for(int l=1;l<=k;l++){
                ans += __gcd(__gcd(i,j),l);
            }
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define SORT(x) sort((x).begin(), (x).end())
#define RSORT(x) sort((x).rbegin(), (x).rend())
#define ALL(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < n; i++)
#define reps(i, m, n) for (ll i = m; i < n; i++)
#define repr(i, m, n) for (ll i = m; i >= n; i--)
#define de(x) cout << #x << "=" << x << endl;
#define SP << " " <<
template <class T> bool maxi(T &a, const T &b) {
    if (a < b) { a = b; return 1;} return 0;}
template <class T> bool mini(T &a, const T &b) {
    if (b < a) { a = b; return 1;} return 0;}
#define dame {cout<< "-1" <<"\n"; return;}
#define INF2 1000000000000000037
#define INF  1000000007
#define MOD  1000000007
using namespace std;
using ll = long long;
using ld = long double;
using P  = pair<ll,ll>;
//--GLOBAL---------------------------------
ll ggg[210][210];
//--MAIN-----------------------------------
void Main() {
    ll N;
    cin>>N;
    ll ans=0;
    reps(i,1,205){
        reps(j,1,205){
            ggg[i][j]=gcd(i,j);
        }
    }
    reps(i,1,N+1){
        reps(j,1,N+1){
            reps(k,1,N+1){
                ans+=ggg[ggg[i][j]][k];
            }
        }
    }
    cout<< ans <<"\n";
}

//--START----------------------------------
int main() {
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);
    cout << fixed << setprecision(15);
    Main();
}
//-----------------------------------------


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

import sys
import math
#sys.exit()
#sorted( ,reverse=True)
N = int(input())
#S,T = map(int, input().split())
#A = list(map(int, input().split()))
#print(N)
#print(S,T)
#print(A)
ans = 0
for i in range (1,N+1):
    for j in range (1,N+1):
        for k in range (1,N+1):
            ans += math.gcd(math.gcd(i,j),math.gcd(j,k))
            
print(ans)


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    2 | import math
      | ^~~~~~
main.c:2:1: error: unknown type name 'import'
main.c:3:2: error: invalid preprocessing directive #sys
    3 | #sys.exit()
      |  ^~~
main.c:4:2: error: invalid preprocessing directive #sorted
    4 | #sorted( ,reverse=True)
      |  ^~~~~~
main.c:6:2: error: invalid preprocessing directive #S
    6 | #S,T = map(int, input().split())
      |  ^
main.c:7:2: error: invalid preprocessing directive #A
    7 | #A = list(map(int, input().split()))
      |  ^
main.c:8:2: error: invalid preprocessing directive #print
    8 | #print(N)
      |  ^~~~~
main.c:9:2: error: invalid preprocessing directive #print
    9 | #print(S,T)
      |  ^~~~~
main.c:10:2: error: invalid preprocessing directive #print
   10 | #print(A)
      |  ^~~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define int long long

int gcd(int x, int y) {
  return (x % y) ? gcd(y, x % y) : y;
}

signed main() {
  int N;
  cin >> N;
  int a = 0;
  for (int i = 1; i <= N; i++) {
    for (int j = 1; j <= N; j++) {
      for (int k = 1; k <= N; k++) {
        int b = gcd(i, j);
        b = gcd(b, k);
        a += b;
      }
    }
  }
  cout << a << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
#include <algorithm>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)

int main() {
	long long n,k,ans=0;
	string s;
	cin>>k;
	for(int i=1;i<=k;i++){
	    for(int i2=1;i2<=k;i2++){
	        for(int i3=1;i3<=k;i3++){
	            ans+=gcd(i,gcd(i2,i3))
	        }
	    }
	}
	cout<<ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:32: error: 'gcd' was not declared in this scope
   16 |                     ans+=gcd(i,gcd(i2,i3))
      |                                ^~~
a.cc:16:26: error: 'gcd' was not declared in this scope
   16 |                     ans+=gcd(i,gcd(i2,i3))
      |                          ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using p = pair<int, int>;
#define INF 1000000000
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repX(i, n ,x) for (int i = x; i < (int)(n); i++)
#define repM(i, n) for (int i = n; i > 0; i--)

ll gcd(ll a, ll b)
{
    if (a % b == 0)
    {
        return (b);
    }
    else
    {
        return (gcd(b, a % b));
    }
}
ll lcm(ll a, ll b)
{
    return a * b / gcd(a, b);
}

int main() {
    int K;
    cin >> K;
    ll sum = 0;
    repX(a,K+1,1){
        repX(b, K+1,1){
            repX(c, K+1,1){
                sum += gcd(a,gcd(b,c));
            }
        }
    }
    cout << sum << endl;

    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.