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

#include <iostream>

using namespace std;

typedef long long ll;

ll gcd(ll x, ll y) {
    x = min(x, y), y = max(x, y);
    if (y % x == 0)
        return x;
    else 
        return gcd(x, y % x);
}

ll lcm(ll x, ll y) {
    ll g = gcd(x, y);
    return x * (y / g);
}

int main() {
    ll n, *t;   cin >> n;   t = new ll[n];
    for (int i = 0; i < n; i++)
        cin >> t[i];
    
    ll ans = t[0];
    for (int i = 1; i < n; i++) {
        ans = lcm(ans, t[i]);
    }

    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++


	 {
	 	scanf("%d",&t[i]);
	 	if(i==1)
	 	{
	 		ans = __lcm(t[i],t[i-1]);
		}
		else if(i>1)
		{
			ans = __lcm(ans,t[i]);
		}
	 }
	 printf("%d",ans);
}

Compiler output:
a.cc:2:10: error: expected unqualified-id before '{' token
    2 |          {
      |          ^
a.cc:13:16: error: expected constructor, destructor, or type conversion before '(' token
   13 |          printf("%d",ans);
      |                ^
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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


unsigned long long f(unsigned long long a,unsigned long long b)
{
	unsigned long long ml=a;
	while(ml>0)
	{
		ml
	}
	
}


main()
{
	int n;
	cin >> n;
	long long ar[n];
	
	for(int i=0;i<n;i++)
	{
		cin >> ar[i];
	}
	for(int i=1;i<n;i++)
	{
		ar[i]=ar[i]/__gcd(ar[i],ar[i-1]) * ar[i-1];
	}
	cout << ar[n-1];
}

Compiler output:
a.cc: In function 'long long unsigned int f(long long unsigned int, long long unsigned int)':
a.cc:10:19: error: expected ';' before '}' token
   10 |                 ml
      |                   ^
      |                   ;
   11 |         }
      |         ~          
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
a.cc: At global scope:
a.cc:16:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   16 | main()
      | ^~~~
Language: C++

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

ll gcdab(ll a,ll b) 
{
 	if(b==0)return a;
    return gcdab(b,a%b);
  
}
int main()
{
  ll n;
  cin>>n;
 ll arr[n];
  for(ll i=0;i<n;i++)
  	cin>>arr[i];
  
  int ll=arr[0];
  
  for(ll i=1;i<n;i++)
  {
   	ans= ans/gcdab(ans,arr[i]);
    ans=ans*arr[i];
    
    
    
  }
  
  cout<<ans<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: expected unqualified-id before '=' token
   19 |   int ll=arr[0];
      |         ^
a.cc:23:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |         ans= ans/gcdab(ans,arr[i]);
      |         ^~~
      |         abs
a.cc:30:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

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

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

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

int main() {
    int N; cin >> N;
    vector<ll> T(N);
    REP(i, 0, N) cin >> T[i];

    ll ans = T[0];
    REP(i, 1, N) {
        ans = lcm(ans, T[i]);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:10:15: error: 'i' was not declared in this scope
   10 |         a = b;i
      |               ^
Language: Java

import java.util.*;
class Main{
  static long gcd (long m, long n) {
   if(m<n) return gcd(n,m);
   if(n==0) return m;
     return gcd(n,m%n);
  }
  static long lcm(long m,long n){
    return m/gcd(m,n)*n;
  }
  public static void main(String[] args){
    Scanner scan=new Scanner(System.in);
    int N=scan.nextInt();
    long[] T=new long[N];
    for(int i=0;i<N;i++){
      T[i]=scan.nextLong();
    }
    if(N==1){
      tmp=T[0];
    }
    else{
      long tmp=lcm(T[0],T[1]);
      for(int i=2;i<N;i++){
        tmp=lcm(tmp,T[i]);
      }
    }
      
    System.out.println(tmp);
  }
}

Compiler output:
Main.java:19: error: cannot find symbol
      tmp=T[0];
      ^
  symbol:   variable tmp
  location: class Main
Main.java:28: error: cannot find symbol
    System.out.println(tmp);
                       ^
  symbol:   variable tmp
  location: class Main
2 errors
Language: C

v#include<stdio.h>
int main(void){
 int num=0;
 int clock[num];
 int i=0;
 int max=0;
  int c=0;
  int result=0;
 scanf("%d",&num);
 for(i=0;i<num;i++){
 	scanf("%d",clock[i]);
   	if(clock[i]>max){max=clock[i];}
 }
 for(i=0;i<1000;i++){
 	for(int k=0;k<num;k++){
    	if((max*i)%clock[k]==0){
    		c=0;
    	}
   		else{c=1;}
 	}
   	if(c==1){c==0;}
   	else{break;result=max*i;}
 }
  printf("%d",result);
}


Compiler output:
main.c:1:2: error: stray '#' in program
    1 | v#include<stdio.h>
      |  ^
main.c:1:1: error: unknown type name 'v'
    1 | v#include<stdio.h>
      | ^
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | v#include<stdio.h>
      |          ^
Language: C++

#include<stdio.h>
#include<math.h>

int main(void){
	int num=0;//個数
  	float time[num];
  	int count=0;
  
  	scanf("%d",&num);
  	for(int k=0;k<num;k++){
    	scanf("%f",&time[k]);
    }
  
	for(int i=0;i<=1000000000000000000;i++){
    	for(int m=0;m<num;m++){
        		if(i%time[m]==0){
                	count+=1;
                }
        }
      	if(count==num){
        	printf("%d",i);
          	break;
        }
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: invalid operands of types 'int' and 'float' to binary 'operator%'
   16 |                         if(i%time[m]==0){
      |                            ~^~~~~~~~
      |                            |       |
      |                            int     float
Language: C++

#include<stdio.h>
#include<math.h>

int main(void){
	int num=0;//個数
  	float time[num];
  	int count=0;
  
  	scanf("%d",num);
  	for(int k=0;k<num;k++){
    	scanf("%f",time[k]);
    }
  
	for(int i=0;i<=1000000000000000000;i++){
    	for(int m=0;m<num;m++){
        		if(i%time[m]==0){
                	count+=1;
                }
        }
      	if(count==num){
        	printf("%d",i);
          	break;
        }
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: invalid operands of types 'int' and 'float' to binary 'operator%'
   16 |                         if(i%time[m]==0){
      |                            ~^~~~~~~~
      |                            |       |
      |                            int     float
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define REP(i,j,n) for (int i = j; i < (n); ++i)
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b)
{
	if (a%b==0)
	{
		return(b);
    }
	else
	{
		return(gcd(b,a%b));
    }
}

int main(){
    ll n;
    cin >> n;
    ll t[n];
    
    rep(i,n){
        cin>>t[i];
    }

    ll c = t[0]/gcd(t[0],t[1]);
    c*=*t[1];
    REP(i,2,n){
        ll d = t[i]/gcd(c,t[i]);
        d*=c;
        c = d;
    }
    cout<< c<<endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:8: error: invalid type argument of unary '*' (have 'll' {aka 'long long int'})
   28 |     c*=*t[1];
      |        ^~~~~
Language: C++

#include<cstdio>
#include<numeric>

using namespace std;
int n;

long int multi_lcm(int n, long int t[n],int i, long int ans){
    if (i == n) return ans;

    ans = lcm(ans,t[i]);
    return multi_lcm(n, t, i+1, ans);
}

int main(){
    
    scanf("%d", &n);
    long int t[n];
    for (int i = 0; i < n; i++){
        scanf("%ld", &t[i]);
        
    }
    long int ans = t[0];

    ans = multi_lcm(n, t, 1, ans);
    printf("%ld\n", ans);



    
}

Compiler output:
a.cc:7:39: error: use of parameter outside function body before ']' token
    7 | long int multi_lcm(int n, long int t[n],int i, long int ans){
      |                                       ^
a.cc:7:40: error: expected ')' before ',' token
    7 | long int multi_lcm(int n, long int t[n],int i, long int ans){
      |                   ~                    ^
      |                                        )
a.cc:7:41: error: expected unqualified-id before 'int'
    7 | long int multi_lcm(int n, long int t[n],int i, long int ans){
      |                                         ^~~
Language: C++

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

ll cmd(ll a, ll b){
return b==0?a:cmd(b,a%b);}
ll gcd(ll a , ll b){
    ll k = cmd(a,b);
    return (a/k)*b;
}
ll a[10000]={0};
int main(){
    ll n,num=1;
    cin >>n;
    for(l i=1;i<=n;i++){
        cin >>a[i];
    }
    for(int i=1;i<=n;i++){
        num=gcd(a[i],num);
    }
    cout<<num<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'l' was not declared in this scope
   18 |     for(l i=1;i<=n;i++){
      |         ^
a.cc:18:15: error: 'i' was not declared in this scope
   18 |     for(l i=1;i<=n;i++){
      |               ^
Language: C++

/// Author: Sarfaraz Alam
# include <bits/stdc++.h>
# define pb push_back
# define ll long long

# define fi first
# define se second
# define all(vc) vc.begin(),vc.end()
//# define speed ios_base::sync_with_stdio(false);cin.tie(Nint128_t);cout.tie(Nint128_t)
# define DEBUG
typedef unsigned long long int ull;
using namespace std;
#include<string>
#include<cmath>
const int N = 1e5 + 7;
const int mod = 1e9 + 7;

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

  gcd(b%a, a);
}

int128_t lcm(int128_t a, int128_t b)
{
  return (a*b)/gcd(a,b);
}



int main()
{
  //  speed;
    #ifdef DEBUGfd
        freopen("in.txt", "r", stdin);
        freopen("out.txt", "w", stdout);
    #endif // DEBUG

    //Code begins
    int n;
    cin>>n;
    int128_t a[n];
    for(int i = 0; i<n; i++)
    cin>>a[i];
    sort(a, a+n);
    int128_t last = a[0];
    for(int i = 1; i<n; i++)
    {
      last = lcm(a[i], last);
    //  cout<<"last value : "<<last<<endl;
    }
    cout<<last<<endl;
  //  cout<<lcm(1000,1000);


    return 0;
}


Compiler output:
a.cc:18:1: error: 'int128_t' does not name a type; did you mean 'int8_t'?
   18 | int128_t gcd(int128_t a, int128_t b)
      | ^~~~~~~~
      | int8_t
a.cc:26:1: error: 'int128_t' does not name a type; did you mean 'int8_t'?
   26 | int128_t lcm(int128_t a, int128_t b)
      | ^~~~~~~~
      | int8_t
a.cc: In function 'int main()':
a.cc:44:5: error: 'int128_t' was not declared in this scope; did you mean 'int8_t'?
   44 |     int128_t a[n];
      |     ^~~~~~~~
      |     int8_t
a.cc:46:10: error: 'a' was not declared in this scope
   46 |     cin>>a[i];
      |          ^
a.cc:47:10: error: 'a' was not declared in this scope
   47 |     sort(a, a+n);
      |          ^
a.cc:48:13: error: expected ';' before 'last'
   48 |     int128_t last = a[0];
      |             ^~~~~
      |             ;
a.cc:51:7: error: 'last' was not declared in this scope
   51 |       last = lcm(a[i], last);
      |       ^~~~
a.cc:54:11: error: 'last' was not declared in this scope
   54 |     cout<<last<<endl;
      |           ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pop pop_back
#define V vector
#define P pair
#define V2(a,b,c) V<V<int>> a(b,V<int>(c))
#define V2a(a,b,c,d) V<V<int>> a(b,V<int>(c,d))
#define incin(a) int a; cin>>a
#define yuko(a) setprecision(a)
//#define min min<int>
//#define max max<int>
template<class T>
 void cou(vector<vector<T>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}
/*template<>
 void cou(vector<vector<char>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}*/
 int wari(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
 int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
 int souwa(int a){
  return a*(a+1)/2;
 }
 /*int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }*/
 bool prime(int a){
   if(a<2)
     return false;
   else if(a==2)
     return true;
   else if(a%2==0)
     return false;
   double b=sqrt(a);
    for(int i=3;i<=b;i+=2){
      if(a%i==0){
        return false;
      }
    }
   return true;
 }
struct Union{
  vector<int> par;
  Union(int a){
	par= vector<int>(a,-1);
  }
  int find(int a){
    if(par[a]<0)
      return x;
    else
      return par[a]=find(par[a]);
  }
  bool same(int a,int b){
    return find(a)==find(b);
  }
  int Size(int a){
    return -par[find(a)];
  }
  void unite(int a,int b){
    a=find(a);
    b=find(b);
    if(a==b)
      return;
    if(Size(b)>Size(a))
      swap<int>(a,b);
    par[a]+=par[b];
    par[b]=a;
  }
};
int ketas(int a){
  string b=to_string(a);
  int c=0;
  fo(i,keta(a)){
    c+=b[i]-'0';
  }
  return c;
}
int gcm(int a,int b){
    if(b==0)
        return a;
    return gcm(b,a%b);
}
int lcm(int a,int b){
    return a*b/gcm(a,b);
}
/*struct aa{
	vector<int> gt;
  aa(int n){
	gt= vector<int>(n, 1);
  }
	void c(V<int> d,int b){
	if(d[b]==0){
		gt[d[b]-1]++;
		gt[gt.sz-1]++;
	}
	else{
		gt[d[b]-1]++;
		c(d,d[d[b]]-1);
	}
}
void cok(int a){
	cout<<gt[a-1]<<endl;
	fo(i,a-1)
	cout<<gt[i]<<endl;
}
};
*/
signed main(){
	int a;
	cin>>a;
	int b,c;
	cin>>b;
	fo(i,a-1){
	cin>>c;
	b=lcm(b,c);
}
cout<<b<<endl;
}


Compiler output:
a.cc: In member function 'long long int Union::find(long long int)':
a.cc:124:14: error: 'x' was not declared in this scope
  124 |       return x;
      |              ^
Language: C++

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

int main() {
    int n;
    ll t,l=1;
    for (int i=0;i<n;i++) {
        cin>>t;
        l=__lcm(l,t);
    }
    cout<<l<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: '__lcm' was not declared in this scope
   10 |         l=__lcm(l,t);
      |           ^~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  long long t[n];
  long long maxx = -1;
  for(int i=0; i<n; i++){
    cin >> t[i];
    maxx = max(maxx, t[i]);
  }
  bool prime = true;
  for(int i=0; i<n; i++){
    for(int j=0; j<n; j++){
      if(i != j){
        if(t[i] % t[j] == 0){
          prime = false;
          break;
        }
      }
    }
  }
  if(prime){
    __int64 ans = 1;
    for(int i=0; i<n; i++) ans *= t[i];
    cout << ans << endl;
    return 0;
  }
  long long mul = 1;
  while(maxx <= 1e18){
    long long temp = maxx * 1ll * mul;
    bool ok = true;
    for(int i=0; i<n; i++){
      if(temp % t[i] != 0){
        ok = false;
        break;
      }
    }
    if(ok){
      cout << temp << endl;
      return 0;
    }
    mul++;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   28 |     __int64 ans = 1;
      |     ^~~~~~~
      |     __ynf64
a.cc:29:28: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |     for(int i=0; i<n; i++) ans *= t[i];
      |                            ^~~
      |                            abs
a.cc:30:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  __int64 t[n];
  __int64 maxx = -1;
  for(int i=0; i<n; i++){
    cin >> t[i];
    maxx = max(maxx, t[i]);
  }
  __int64 mul = 1;
  while(maxx <= 1e18){
    __int64 temp = maxx * 1ll * mul;
    bool ok = true;
    for(int i=0; i<n; i++){
      if(temp % t[i] != 0){
        ok = false;
        break;
      }
    }
    if(ok){
      cout << temp << endl;
      return 0;
    }
    mul++;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   10 |   __int64 t[n];
      |   ^~~~~~~
      |   __ynf64
a.cc:11:10: error: expected ';' before 'maxx'
   11 |   __int64 maxx = -1;
      |          ^~~~~
      |          ;
a.cc:13:12: error: 't' was not declared in this scope
   13 |     cin >> t[i];
      |            ^
a.cc:14:5: error: 'maxx' was not declared in this scope
   14 |     maxx = max(maxx, t[i]);
      |     ^~~~
a.cc:16:10: error: expected ';' before 'mul'
   16 |   __int64 mul = 1;
      |          ^~~~
      |          ;
a.cc:17:9: error: 'maxx' was not declared in this scope
   17 |   while(maxx <= 1e18){
      |         ^~~~
a.cc:18:12: error: expected ';' before 'temp'
   18 |     __int64 temp = maxx * 1ll * mul;
      |            ^~~~~
      |            ;
a.cc:21:10: error: 'temp' was not declared in this scope; did you mean 'tm'?
   21 |       if(temp % t[i] != 0){
      |          ^~~~
      |          tm
a.cc:21:17: error: 't' was not declared in this scope
   21 |       if(temp % t[i] != 0){
      |                 ^
a.cc:27:15: error: 'temp' was not declared in this scope; did you mean 'tm'?
   27 |       cout << temp << endl;
      |               ^~~~
      |               tm
a.cc:30:5: error: 'mul' was not declared in this scope; did you mean 'fmul'?
   30 |     mul++;
      |     ^~~
      |     fmul
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using vec=vector<ll>;
using mat=vector<vec>;
#define For(i,a,b) for(i=a;i<b;i++)
#define rep(i,N) For(i,0,N)
#define rep1(i,N) For(i,1,N)
#define all(v) (v).begin(),(v).end()
#define vsort(v) sort(all(v))
#define mod 1000000007
using data=pair<ll,ll>;
long mmid(long a,long b,long c){return a<b?(b<c?b:max(a,c)):(b>c?b:min(a,c));}
ll modinv(ll a){ ll b=mod,u=1,v=0,t; while(b){ t=a/b; a-=t*b; swap(a,b); u-=t*v; swap(u,v); } return (u+mod)%mod; }
ll moddevide(ll a,ll b){return (a*modinv(b))%mod;}
ll modncr(ll n,ll r){ ll i,plus=1; rep(i,r){ plus=(plus*(n-i))%mod; plus=moddevide(plus,i+1); } return plus; }
ll gcd(ll a, ll b) { if(a<b) return euclidean_gcd(b, a); ll r; while ((r=a%b)){a=b;b=r;} return b; }
ll countdigits(ll n){ ll ans=0; while(n){n/=10;ans++;} return ans; }
ll sumdigits(ll n){ ll ans=0; while(n){ans+=n%10;n/=10;} return ans; }
void printmap(vector<ll>& a,ll H,ll W){ ll i,j; For(i,0,H+2){ For(j,0,W+2){cout<<a[i*(W+2)+j];} cout<<endl; } } void inputmap(vector<ll>& a,ll H,ll W){ ll i,j; string ss; For(i,1,H+1){ cin>>ss; For(j,1,W+1){ if(ss[j-1]=='#'){ a[i*(W+2)+j]=1; }else{ a[i*(W+2)+j]=0; } } } }
int main(){
  ll i,j,N,K,a;
  string ss;
  cin>>N;
  vec v(N);
  cin>>a;
  rep1(i,N){
    cin>>K;
    a=a*K/gcd(a,K)
  }
  cout<<a<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:17:37: error: 'euclidean_gcd' was not declared in this scope
   17 | ll gcd(ll a, ll b) { if(a<b) return euclidean_gcd(b, a); ll r; while ((r=a%b)){a=b;b=r;} return b; }
      |                                     ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:29:19: error: expected ';' before '}' token
   29 |     a=a*K/gcd(a,K)
      |                   ^
      |                   ;
   30 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
//char型から数値型に変換する関数（z.at(i)などに使用）
int ctoi(char c){
	if(c>='0'&&c<='9'){
		return c-'0';
	}
	return 0;
}
//1～10000の階乗（を1000000007で割ったあまり）を求める関数
int fact(int64_t x){
  int64_t y=1;
  for(int64_t i=1;i<=x;i++){
   y*=i;
   y%=1000000007;
  }
  return y;
}
//入力した２つの値の最小公倍数を求める関数
int64_t lcm(int64_t x,int64_t y){
   int64_t z=x*y;
  if(x<y){
    int64_t ex=x;
    x=y;
    y=ex;
  }
  int64_t r=x%y;
  while(r!=0){
    x=y;
    y=r;
    r=x%y;
  }
  return z/y;
}
//入力した２つの値の最大公約数を求める関数は__gcd(x,y);
int main() {
int64_t n;
cin>>n;
vector<int64_t> t(n);
for(int i=0;i<n;i++){
cin>>t.at(i);
int ans=t.at(0);
for(int i=1;i<n;i++){
ans=lcm(ans,t.at(i));
}
cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:2: error: expected '}' at end of input
   47 | }
      |  ^
a.cc:36:12: note: to match this '{'
   36 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(ll i=ll(a);i<ll(b);i++)using ll=long long;
using ld=long double;
using namespace std;
ll GCD(ll a, ll b) { return b ? GCD(b, a%b) : a; }
ll t[110];
int main(){
  ll n,tmp=0,cnt=0;
  cin>>n;
  rep(i,0,n)cin>>t[i];
  cnt=t[0];
  rep(i,1,n)tmp=cnt*t[i]/GCD(cnt,t[i]);
  cout<<tmp;
}


Compiler output:
a.cc:5:1: error: 'll' does not name a type; did you mean 'ld'?
    5 | ll GCD(ll a, ll b) { return b ? GCD(b, a%b) : a; }
      | ^~
      | ld
a.cc:6:1: error: 'll' does not name a type; did you mean 'ld'?
    6 | ll t[110];
      | ^~
      | ld
a.cc: In function 'int main()':
a.cc:8:3: error: 'll' was not declared in this scope; did you mean 'ld'?
    8 |   ll n,tmp=0,cnt=0;
      |   ^~
      |   ld
a.cc:9:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |   cin>>n;
      |        ^
      |        yn
a.cc:10:7: error: expected ';' before 'i'
   10 |   rep(i,0,n)cin>>t[i];
      |       ^
a.cc:2:27: note: in definition of macro 'rep'
    2 | #define rep(i,a,b) for(ll i=ll(a);i<ll(b);i++)using ll=long long;
      |                           ^
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   rep(i,0,n)cin>>t[i];
      |       ^
a.cc:2:35: note: in definition of macro 'rep'
    2 | #define rep(i,a,b) for(ll i=ll(a);i<ll(b);i++)using ll=long long;
      |                                   ^
a.cc:10:18: error: 't' was not declared in this scope; did you mean 'tm'?
   10 |   rep(i,0,n)cin>>t[i];
      |                  ^
      |                  tm
a.cc:10:20: error: 'i' was not declared in this scope
   10 |   rep(i,0,n)cin>>t[i];
      |                    ^
a.cc:11:3: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |   cnt=t[0];
      |   ^~~
      |   int
a.cc:12:7: error: expected ';' before 'i'
   12 |   rep(i,1,n)tmp=cnt*t[i]/GCD(cnt,t[i]);
      |       ^
a.cc:2:27: note: in definition of macro 'rep'
    2 | #define rep(i,a,b) for(ll i=ll(a);i<ll(b);i++)using ll=long long;
      |                           ^
a.cc:12:13: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   12 |   rep(i,1,n)tmp=cnt*t[i]/GCD(cnt,t[i]);
      |             ^~~
      |             tm
a.cc:12:26: error: 'GCD' was not declared in this scope
   12 |   rep(i,1,n)tmp=cnt*t[i]/GCD(cnt,t[i]);
      |                          ^~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#define _USE_MATH_DEFINES
#include<math.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
vector<__int64> t;
__int64 ans = 1;
__int64 gcd(__int64 a, __int64 b) {
	if (b == 0) {
		return a;
	}
	return gcd(b, a % b);
}
void kbs(int n) {
	rep(i, n) {
		ans = ans / gcd(ans, t[i]) * t[i];
	}
}
int main() {
	int n;
	cin >> n;
	t.resize(n);
	rep(i, n) {
		cin >> t[i];
	}
	kbs(n);
	cout << ans << endl;
}

Compiler output:
a.cc:8:8: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
    8 | vector<__int64> t;
      |        ^~~~~~~
      |        __ynf64
a.cc:8:15: error: template argument 1 is invalid
    8 | vector<__int64> t;
      |               ^
a.cc:8:15: error: template argument 2 is invalid
a.cc:9:1: error: '__int64' does not name a type; did you mean '__int64_t'?
    9 | __int64 ans = 1;
      | ^~~~~~~
      | __int64_t
a.cc:10:1: error: '__int64' does not name a type; did you mean '__int64_t'?
   10 | __int64 gcd(__int64 a, __int64 b) {
      | ^~~~~~~
      | __int64_t
a.cc: In function 'void kbs(int)':
a.cc:18:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |                 ans = ans / gcd(ans, t[i]) * t[i];
      |                 ^~~
      |                 abs
a.cc:18:39: error: invalid types 'int[int]' for array subscript
   18 |                 ans = ans / gcd(ans, t[i]) * t[i];
      |                                       ^
a.cc:18:29: error: 'gcd' was not declared in this scope
   18 |                 ans = ans / gcd(ans, t[i]) * t[i];
      |                             ^~~
a.cc:18:47: error: invalid types 'int[int]' for array subscript
   18 |                 ans = ans / gcd(ans, t[i]) * t[i];
      |                                               ^
a.cc: In function 'int main()':
a.cc:24:11: error: request for member 'resize' in 't', which is of non-class type 'int'
   24 |         t.resize(n);
      |           ^~~~~~
a.cc:26:25: error: invalid types 'int[int]' for array subscript
   26 |                 cin >> t[i];
      |                         ^
a.cc:29:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C++

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

using ll = long long;

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

ll lcm(ll a, ll b)
{
  ll g = gcd(a, b)
  return a*b / g;
}

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

  ll ans = 1LL, t;
  for (int i = 0; i < N; i++) {
    cin >> t;
    ans = lcm(ans, t);
  }
  cout << ans << endl;

  return 0;
}


Compiler output:
a.cc: In function 'll lcm(ll, ll)':
a.cc:17:3: error: expected ',' or ';' before 'return'
   17 |   return a*b / g;
      |   ^~~~~~
a.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
 
using namespace std;
 
long Gcd(long a,long b){
	if(b==0)return a;
  return gcd(b,a%b);
}

int main(){
  int N;
  cin >> N;
  int tmp0;
  cin >> tmp0;
  long ans=tmp0;
  
  long a;
  for(int i=1;i<N;i++){
    long tmp;
    cin >> tmp;
    a=tmp;
    long gcd=Gcd(a,ans);
    if(gcd!=0){
	    ans=a/gcd*ans;
    }else{
    	ans = a > ans ? a : ans;
    }
  }
  cout << ans;
}


Compiler output:
a.cc: In function 'long int Gcd(long int, long int)':
a.cc:8:10: error: 'gcd' was not declared in this scope; did you mean 'Gcd'?
    8 |   return gcd(b,a%b);
      |          ^~~
      |          Gcd
Language: C++

#include <iostream>
#include <vector>
 
using namespace std;
 
int Gcd(int a,int b){
  int tmp=0;
  if(b>a){
    tmp=b;
    b=a;
    a=tmp;
  }
	while (a % b != 0)
	{
		tmp = b;
		b = a % b;
		a = tmp;
	}
	return b;
}
  
int main(){
  int N;
  cin >> N;
  vector<int> a;
  int tmp0;
  cin >> tmp0;
  a.push_back(tmp0);
  int ans;
  
  for(int i=1;i<N;i++){
    int tmp;
    cin >> tmp;
    a.push_back(tmp);
    ans=a[i]*a[i-1]/Gcd(a[i],a[i-1]);
  }
  cout << ans;
}
  }

Compiler output:
a.cc:39:3: error: expected declaration before '}' token
   39 |   }
      |   ^
Language: C++

#include <iostream>
#include <vector>
 
using namespace std;
 
int Gcd(int a,int b){
  if(b>a){
    int tmp=b;
    b=a;
    a=tmp;
  }
	while (a % b != 0)
	{
		tmp = b;
		b = a % b;
		a = tmp;
	}
	return n;
}
  
int main(){
  int N;
  cin >> N;
  vector<int> a;
  int tmp0;
  cin >> tmp0;
  a.push_back(tmp0);
  int ans;
  
  for(int i=1;i<N;i++){
    int tmp;
    cin >> tmp;
    a.push_back(tmp);
    ans=a[i]*a[i-1]/Gcd(a[i],a[i-1]);
  }
  cout << ans;
}
  }

Compiler output:
a.cc: In function 'int Gcd(int, int)':
a.cc:14:17: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   14 |                 tmp = b;
      |                 ^~~
      |                 tm
a.cc:18:16: error: 'n' was not declared in this scope
   18 |         return n;
      |                ^
a.cc: At global scope:
a.cc:38:3: error: expected declaration before '}' token
   38 |   }
      |   ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int Gcd(int a,int b){
  if(b>a){
    int tmp=b;
    b=a;
    a=tmp;
  }
	while (a % b != 0)
	{
		temp = n;
		n = m % n;
		m = temp;
	}
	return n;
}
  
int main(){
  int N;
  cin >> N;
  vector<int> a;
  int tmp0;
  cin >> tmp0;
  a.push_back(tmp0);
  int ans;
  
  for(int i=1;i<N;i++){
    int tmp;
    cin >> tmp;
    a.push_back(tmp);
    ans=a[i]*a[i-1]/Gcd(a[i],a[i-1]);
  }
  cout << ans;
}
  }

Compiler output:
a.cc: In function 'int Gcd(int, int)':
a.cc:14:17: error: 'temp' was not declared in this scope; did you mean 'tm'?
   14 |                 temp = n;
      |                 ^~~~
      |                 tm
a.cc:14:24: error: 'n' was not declared in this scope
   14 |                 temp = n;
      |                        ^
a.cc:15:21: error: 'm' was not declared in this scope
   15 |                 n = m % n;
      |                     ^
a.cc:18:16: error: 'n' was not declared in this scope
   18 |         return n;
      |                ^
a.cc: At global scope:
a.cc:38:3: error: expected declaration before '}' token
   38 |   }
      |   ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

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

ll LCM(ll a,ll b){
  ll g=GCD(a,b);
  return a/g*b;
}

void main(){
  ll N;
  cin>>N;
  ll T[N];
  REP(i,N) cin>>T[i];
  ll ans=T[0];
  FOR(i,1,N){
    ans=LCM(ans,T[i]);
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:29:1: error: '::main' must return 'int'
   29 | void main(){
      | ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

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

ll LCM(ll a,ll b){
  ll g=GCD(a,b);
  return a/g*b;
}

ll main(){
  ll N;
  cin>>N;
  ll T[N];
  REP(i,N) cin>>T[i];
  ll ans=T[0];
  FOR(i,1,N){
    ans=LCM(ans,T[i]);
  }
  cout<<ans<<endl;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

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

void ll LCM(ll a,ll b){
  ll g=gcd(a,b);
  return a/g*b;
}

int main(){
  ll N;
  cin>>N;
  ll T[N];
  REP(i,N) cin>>T[i];
  ll ans=T[0];
  FOR(i,1,N){
    ans=LCM(ans,T[i]);
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:8:17: error: 'long long' specified with 'void'
    8 | #define ll long long
      |                 ^~~~
a.cc:19:6: note: in expansion of macro 'll'
   19 | void ll GCD(ll a,ll b){
      |      ^~
a.cc: In function 'void GCD(long long int, long long int)':
a.cc:20:19: error: return-statement with a value, in function returning 'void' [-fpermissive]
   20 |   if(b==0) return b;
      |                   ^
a.cc:21:13: error: return-statement with a value, in function returning 'void' [-fpermissive]
   21 |   return gcd(b,a%b);
      |          ~~~^~~~~~~
a.cc: At global scope:
a.cc:8:17: error: 'long long' specified with 'void'
    8 | #define ll long long
      |                 ^~~~
a.cc:24:6: note: in expansion of macro 'll'
   24 | void ll LCM(ll a,ll b){
      |      ^~
a.cc: In function 'void LCM(long long int, long long int)':
a.cc:26:13: error: return-statement with a value, in function returning 'void' [-fpermissive]
   26 |   return a/g*b;
      |          ~~~^~
a.cc: In function 'int main()':
a.cc:36:12: error: void value not ignored as it ought to be
   36 |     ans=LCM(ans,T[i]);
      |         ~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

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

void ll LCM(ll a,ll b){
  ll g=gcd(a,b);
  return a/g*b;
}

int main(){
  ll N;
  cin>>N;
  ll T[N];
  REP(i,N) cin>>T[i];
  ll ans=T[0];
  FOR(i,1,N){
    ans=LCM(ans,T[i]);
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:5:29: warning: extra tokens at end of #include directive
    5 | #include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
      |                             ^
a.cc:5:9: fatal error: bits/stdc++.h>http: No such file or directory
    5 | #include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

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

void LCM(ll a,ll b){
  ll g=gcd(a,b);
  return a/g*b;
}

int main(){
  ll N;
  cin>>N;
  ll T[N];
  REP(i,N) cin>>T[i];
  ll ans=T[0];
  FOR(i,1,N){
    ans=LCM(ans,T[i]);
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:5:29: warning: extra tokens at end of #include directive
    5 | #include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
      |                             ^
a.cc:5:9: fatal error: bits/stdc++.h>http: No such file or directory
    5 | #include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

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

ll LCM(ll a,ll b){
  ll g=gcd(a,b);
  return a/g*b;
}

int main(){
  ll N;
  cin>>N;
  ll T[N];
  REP(i,N) cin>>T[i];
  ll ans=T[0];
  FOR(i,1,N){
    ans=LCM(ans,T[i]);
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc:5:29: warning: extra tokens at end of #include directive
    5 | #include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
      |                             ^
a.cc:5:9: fatal error: bits/stdc++.h>http: No such file or directory
    5 | #include<bits/stdc++.h>https://atcoder.jp/contests/abc070/submissions/me
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std; {
  template <class M, class N>
  constexpr common_type_t<M, N> lcm(M m, N n);
}
int neko(int N){
  vector<int64_t> t(N);
  for(int i=0;i<N;i++){
    cin>>t.at(i);
  }
  if(N==2){
    return lcm(t.at(0),t.at(1));
  }
  int64_t z=neko(N-1);
  return lcm(z,t.at(N));
}
int main() {
  int N;
  cin >> N;
  if(N==1){
  int64_t a;
  cin>>a; 
    cout<<a;
  }
  else{
    cout<<neko(N);
  }
}


Compiler output:
a.cc:2:22: error: expected unqualified-id before '{' token
    2 | using namespace std; {
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std {
  template <class M, class N>
  constexpr common_type_t<M, N> lcm(M m, N n);
}
int neko(int N){
  vector<int64_t> t(N);
  for(int i=0;i<N;i++){
    cin>>t.at(i);
  }
  if(N==2){
    return lcm(t.at(0),t.at(1));
  }
  int64_t z=neko(N-1);
  return lcm(z,t.at(N));
}
int main() {
  int N;
  cin >> N;
  if(N==1){
  int64_t a;
  cin>>a; 
    cout<<a;
  }
  else{
    cout<<neko(N);
  }
}


Compiler output:
a.cc:2:20: error: expected ';' before '{' token
    2 | using namespace std {
      |                    ^~
      |                    ;
a.cc:2:21: error: expected unqualified-id before '{' token
    2 | using namespace std {
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std {
  template <class M, class N>
  constexpr common_type_t<M, N> gcd(M m, N n);

  template <class M, class N>
  constexpr common_type_t<M, N> lcm(M m, N n);
}
int neko(int N){
  vector<int64_t> t(N);
  for(int i=0;i<N;i++){
    cin>>t.at(i);
  }
  if(N==2){
    return lcm(t.at(0),t.at(1));
  }
  int64_t z=neko(N-1);
  return lcm(z,t.at(N));
}
int main() {
  int N;
  cin >> N;
  if(N==1){
  int64_t a;
  cin>>a; 
    cout<<a;
  }
  else{
    cout<<neko(N);
  }
}


Compiler output:
a.cc:2:20: error: expected ';' before '{' token
    2 | using namespace std {
      |                    ^~
      |                    ;
a.cc:2:21: error: expected unqualified-id before '{' token
    2 | using namespace std {
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int neko(int N){
  vector<int64_t> t(N);
  for(int i=0;i<N;i++){
    cin>>t.at(i);
  }
  if(N==2){
    return lcm(t.at(0),t.at(1));
  }
  int64_t z=neko(N-1);
  return lcm(z,t.at(N))
}
int main() {
  int N;
  cin >> N;
  if(N==1){
  int64_t a;
  cin>>a; 
    cout<<a;
  }
  else{
    cout<<neko(N);
  }
}


Compiler output:
a.cc: In function 'int neko(int)':
a.cc:12:24: error: expected ';' before '}' token
   12 |   return lcm(z,t.at(N))
      |                        ^
      |                        ;
   13 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int neko(int N){
  vector<int64_t> t(N);
  for(int i=0;i<N;i++){
    cin>>t.at(i);
  }
  if(N==2){
    return lcm(a.at(0),a.at(1));
  }
  int64_t t=neko(N-1);
  return lcm(t,a.at(N))
}
int main() {
  int N;
  cin >> N;
  if(N==1){
  int64_t a;
  cin>>a; 
    cout<<a;
  }
  else{
    cout<<neko(N);
  }
}


Compiler output:
a.cc: In function 'int neko(int)':
a.cc:9:16: error: 'a' was not declared in this scope
    9 |     return lcm(a.at(0),a.at(1));
      |                ^
a.cc:11:11: error: conflicting declaration 'int64_t t'
   11 |   int64_t t=neko(N-1);
      |           ^
a.cc:4:19: note: previous declaration as 'std::vector<long int> t'
    4 |   vector<int64_t> t(N);
      |                   ^
a.cc:12:16: error: 'a' was not declared in this scope
   12 |   return lcm(t,a.at(N))
      |                ^
a.cc:12:24: error: expected ';' before '}' token
   12 |   return lcm(t,a.at(N))
      |                        ^
      |                        ;
   13 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int neko(int N){
  vector<int64_t> t(N);
  for(int i=0;i<N;i++){
    cin>>t.at(i);
  }
  if(N==1){
    return lcm(a.at(0),a.at(1));
  }
  int64_t t=neko(N-1);
  return lcm(t,a.at(N))
}
int main() {
  int N;
  cin >> N;
  if(N==1){
  cout<<a.at(0);  
  }
  else{
    cout<<neko(N);
  }
}


Compiler output:
a.cc: In function 'int neko(int)':
a.cc:9:16: error: 'a' was not declared in this scope
    9 |     return lcm(a.at(0),a.at(1));
      |                ^
a.cc:11:11: error: conflicting declaration 'int64_t t'
   11 |   int64_t t=neko(N-1);
      |           ^
a.cc:4:19: note: previous declaration as 'std::vector<long int> t'
    4 |   vector<int64_t> t(N);
      |                   ^
a.cc:12:16: error: 'a' was not declared in this scope
   12 |   return lcm(t,a.at(N))
      |                ^
a.cc:12:24: error: expected ';' before '}' token
   12 |   return lcm(t,a.at(N))
      |                        ^
      |                        ;
   13 | }
      | ~                       
a.cc: In function 'int main()':
a.cc:18:9: error: 'a' was not declared in this scope
   18 |   cout<<a.at(0);
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int neko(int N){
  if(N==1){
    return lcm(a.at(0),a.at(1));
  }
  int64_t t=neko(N-1);
  return lcm(t,a.at(N))
}
int main() {
  int N;
  cin >> N;
  vector<int64_t> t(N);
  for(int i=0;i<N;i++){
    cin>>t.at(i);
  }
  if(N==1){
  cout<<a.at(0);  
  }
  else{
    cout<<neko(N);
  }
}

Compiler output:
a.cc: In function 'int neko(int)':
a.cc:5:16: error: 'a' was not declared in this scope
    5 |     return lcm(a.at(0),a.at(1));
      |                ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |   return lcm(t,a.at(N))
      |                ^
a.cc:8:24: error: expected ';' before '}' token
    8 |   return lcm(t,a.at(N))
      |                        ^
      |                        ;
    9 | }
      | ~                       
a.cc: In function 'int main()':
a.cc:18:9: error: 'a' was not declared in this scope
   18 |   cout<<a.at(0);
      |         ^
Language: C++

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


int main() {
  int N;
  cin >> N;
  vector<unsigned long long> T(N);
  for (int i=0; i<N; ++i) {
    cin >> T[i];
  }
  sort(T.begin(), T.end());
  unsigned long long max_t = T.end();
  unsigned long long cur_t = max_t;
  unsigned long long interval = T.begin();
  while (true) {
    int cnt = 0;
    for (int i=0; i<N; ++i) {
      if (cur_t % T[i] == 0) {
        ++cnt;
      }
    }
    if (cnt == N) {
      break;
    }
    cur_t += interval;
  }
  cout << cur_t << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: cannot convert 'std::vector<long long unsigned int>::iterator' to 'long long unsigned int' in initialization
   13 |   unsigned long long max_t = T.end();
      |                              ~~~~~^~
      |                                   |
      |                                   std::vector<long long unsigned int>::iterator
a.cc:15:40: error: cannot convert 'std::vector<long long unsigned int>::iterator' to 'long long unsigned int' in initialization
   15 |   unsigned long long interval = T.begin();
      |                                 ~~~~~~~^~
      |                                        |
      |                                        std::vector<long long unsigned int>::iterator
Language: C++

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

#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define mem(x,val) memset((x),(val),sizeof(x))
#define all(x) x.begin(),x.end()
#define pb push_back
#define mp make_pair
#define PI acos(-1.0) 
#define N 111111

const int INF = 1 << 30 ;
typedef unsigned long long ull ;
typedef pair < int , int > pii ;

ll a[N] ;

int main(){
  int n ;
  ll ans = 1 , x = 1;
  scanf("%d", &n) ;

  for(int i = 0 ;i<n ;i++){
    scanf("%d", &a[i]) ;
    ll y = _gcd(ans, x) ;
    x/=y ;
    ans*=(x*a[i]) ;
  }
  cout << ans << endl ;
  
  return 0 ;
}

Compiler output:
a.cc:16:1: error: 'll' does not name a type; did you mean 'ull'?
   16 | ll a[N] ;
      | ^~
      | ull
a.cc: In function 'int main()':
a.cc:20:3: error: 'll' was not declared in this scope; did you mean 'ull'?
   20 |   ll ans = 1 , x = 1;
      |   ^~
      |   ull
a.cc:24:18: error: 'a' was not declared in this scope
   24 |     scanf("%d", &a[i]) ;
      |                  ^
a.cc:25:7: error: expected ';' before 'y'
   25 |     ll y = _gcd(ans, x) ;
      |       ^~
      |       ;
a.cc:26:5: error: 'x' was not declared in this scope
   26 |     x/=y ;
      |     ^
a.cc:26:8: error: 'y' was not declared in this scope
   26 |     x/=y ;
      |        ^
a.cc:27:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |     ans*=(x*a[i]) ;
      |     ^~~
      |     abs
a.cc:29:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |   cout << ans << endl ;
      |           ^~~
      |           abs
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define df 0
int dc=100000;
#define MAX 100010
typedef long int li;
li gcd(li a,li b){
  if(b==0)return a;
  return gcd(b,a%b);
}
#define lcm(a,b) ((a)/gcd(a,b)*(b))

int main(){
  if(df)printf("*** debug mode ***\n");
  int n,m=1,i;
  scanf("%d",&n);

  for(i=0;i<n;i++){
    li a;
    scanf("%ld",&a);
    m=lcm(m,a);
  }
  printf("%d",);
  return 0;
}


/// confirm df==0 ///


Compiler output:
main.c: In function 'main':
main.c:24:15: error: expected expression before ')' token
   24 |   printf("%d",);
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(),(v).end()
#define REP(i,p,n) for(int i=p;i<(int)(n);++i)
#define rep(i,n) REP(i,0,n)
#define INF 999999999
typedef long long ll;
using VI = vector<int>;
using Int = long long int;
ll gcd(ll a,ll b){
  return b ? gcd(b,a%b) : a;
}
ll lcm(ll a,ll b){
  return a*b/gcd(a,b);
}

int main(){
  int n;cin >> n;
  vector<ll> a(n);
  rep(i,n) cin >> a[i];
  ll m =a[0];
  rep(i,n) m = lcm(m,a[i]);
  cout << m << endl;
}*

Compiler output:
a.cc:24:3: error: expected unqualified-id at end of input
   24 | }*
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(),(v).end()
#define REP(i,p,n) for(int i=p;i<(int)(n);++i)
#define rep(i,n) REP(i,0,n)
#define INF 999999999
using LL = long long;
using VI = vector<int>;
int gcd(Int a, Int b) {
  return b != 0 ? gcd(b, a % b) : a;
}
int lcm(Int a, Int b) {
  return a / gcd(a, b)*b;
}
int main(){
  int n;cin >> n;
  int ans;
  rep(i,n){
    int a;
    cin >> a;
    if(i==0) ans = a;
    else ans = lcm(a,ans)
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:9:9: error: 'Int' was not declared in this scope; did you mean 'int'?
    9 | int gcd(Int a, Int b) {
      |         ^~~
      |         int
a.cc:9:16: error: 'Int' was not declared in this scope; did you mean 'int'?
    9 | int gcd(Int a, Int b) {
      |                ^~~
      |                int
a.cc:9:21: error: expression list treated as compound expression in initializer [-fpermissive]
    9 | int gcd(Int a, Int b) {
      |                     ^
a.cc:12:9: error: 'Int' was not declared in this scope; did you mean 'int'?
   12 | int lcm(Int a, Int b) {
      |         ^~~
      |         int
a.cc:12:16: error: 'Int' was not declared in this scope; did you mean 'int'?
   12 | int lcm(Int a, Int b) {
      |                ^~~
      |                int
a.cc:12:21: error: expression list treated as compound expression in initializer [-fpermissive]
   12 | int lcm(Int a, Int b) {
      |                     ^
a.cc: In function 'int main()':
a.cc:22:16: error: reference to 'lcm' is ambiguous
   22 |     else ans = lcm(a,ans)
      |                ^~~
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:188:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::lcm(_Mn, _Nn)'
  188 |     lcm(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:12:5: note:                 'int lcm'
   12 | int lcm(Int a, Int b) {
      |     ^~~