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

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <climits>
#include <string>
#include <bitset>
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<string> vs;
typedef vector<double> vd;
typedef vector<ll> vll;
typedef vector<pair<int,int> > vpii;
typedef vector<pair<string,int>> vpsi;
typedef vector<vector<int> > vvi;
typedef vector<vector<char> > vvc;
typedef vector<vector<string> > vvs;
typedef vector<vector<ll> > vvll;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define fin(ans) cout<<(ans)<<endl
#define STI(s) atoi(s.c_str())
#define mp(p,q) make_pair(p,q)
#define pb(n) push_back(n)
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define Sort(a) sort(a.begin(),a.end())
#define Rort(a) sort(a.rbegin(),a.rend())
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const int P = 1000000007;
const int INF = INT_MAX;
const ll LLINF = 1LL<<60;

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;}

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

int a,b;
cin >> a >> b;
fin(lcm(a,b))

//////////////////////////////////////////////////////
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:1: error: expected ';' before 'return'
   58 | return 0;}
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for (int i = 0; i < n; ++i)
#define stl_rep(itr, x) for (auto itr = x.begin(); itr != x.end(); ++itr)
#define stl_repr(itr, x) for (auto itr = x.rbegin(); itr != x.rend(); ++itr)
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()

using llong = long long int;

const static int MOD = 1000000007;
const static int inf = INT_MAX;
const static llong INF = LLONG_MAX;
const static int dx[4] = {1, 0, -1, 0};
const static int dy[4] = {0, 1, 0, -1};
   

template<typename T> T my_gcd(T a, T b) {
    return (a ? my_gcd(b % a, a) : b);
}

template<typename T> T my_lcm(T a, T b){
    return a * b / my_gcd(a, b);    
}

int main (int argc, char *argv[]) {
    cin.tie(0);
    ios::sync_with_stdio(false);

    llong a, b;
    cin >> a >> b;

    cout << my_lcm(a, b) << endl;

    return 0;
}

Compiler output:
a.cc:18:1: error: extended character   is not valid in an identifier
   18 |    
      | ^
a.cc:18:1: error: extended character   is not valid in an identifier
a.cc:18:1: error: extended character   is not valid in an identifier
a.cc:18:1: error: '\U000000a0\U000000a0\U000000a0' does not name a type
   18 |    
      | ^~~
a.cc: In instantiation of 'T my_lcm(T, T) [with T = long long int]':
a.cc:35:19:   required from here
   35 |     cout << my_lcm(a, b) << endl;
      |             ~~~~~~^~~~~~
a.cc:25:26: error: 'my_gcd' was not declared in this scope; did you mean 'my_lcm'?
   25 |     return a * b / my_gcd(a, b);
      |                    ~~~~~~^~~~~~
      |                    my_lcm
Language: C++

#include <iostream>
#include <fstream>
#include <vector>

int main(){
  std::ifstream in("input.txt");
  std::cin.rdbuf(in.rdbuf());

  std::vector<long long int> vec(2);
  long long int answer;
  std::cin >> vec[0] >> vec[1];
  std::sort(vec.begin(), vec.end());

  for(int i = vec[0]; i > 0; i--){
    if(vec[0] % i == 0 & vec[1] % i == 0){
      vec[0] = vec[0] / i;
      vec[1] = vec[1] / i;
      answer = i * vec[0] * vec[1];
      break;
    }
  }

  std::cout << answer << std::endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   12 |   std::sort(vec.begin(), vec.end());
      |        ^~~~
      |        qsort
Language: C++

#include <iostream>
using namespace std;

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

int main(){
	ll a,b;
  	cin >>a >>b;
  	if (a < b)
  		cout << (a*b)/gcd(a,b)<<"\n";
	else
     	cout <<(a*b)/gcd(b,a)<<"\n";
  	
  	return 0;
     }

Compiler output:
a.cc:4:1: error: 'll' does not name a type
    4 | ll gcd(ll a, ll b){
      | ^~
a.cc: In function 'int main()':
a.cc:10:9: error: 'll' was not declared in this scope
   10 |         ll a,b;
      |         ^~
a.cc:11:15: error: 'a' was not declared in this scope
   11 |         cin >>a >>b;
      |               ^
a.cc:11:19: error: 'b' was not declared in this scope
   11 |         cin >>a >>b;
      |                   ^
a.cc:13:31: error: 'gcd' was not declared in this scope
   13 |                 cout << (a*b)/gcd(a,b)<<"\n";
      |                               ^~~
a.cc:15:22: error: 'gcd' was not declared in this scope
   15 |         cout <<(a*b)/gcd(b,a)<<"\n";
      |                      ^~~
Language: C++

A,B = (int(i) for i in input().split())

import math

def lcm(x, y):
    return (x * y) // math.gcd(x, y)


print(lcm(A,B))

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B = (int(i) for i in input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
 ll a,b,c,d;
  cin>>a>>b;
  c=std::gcd(a,b);
  ll d=(a*b)/c;
  cout<<d<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: redeclaration of 'long long int d'
    8 |   ll d=(a*b)/c;
      |      ^
a.cc:5:11: note: 'long long int d' previously declared here
    5 |  ll a,b,c,d;
      |           ^
Language: C++

#include <iostream>
using namespace std;
long long int lcm(long long int x, long long int y){
  return x*y/gcd(x, y);
}
int main(){
  long long a, b;
  cin >> a >> b;
  cout << lcm(a, b) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'long long int lcm(long long int, long long int)':
a.cc:4:14: error: 'gcd' was not declared in this scope
    4 |   return x*y/gcd(x, y);
      |              ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  ll a,b;cin>>a>>b;
  cout<<a*b/__gcd(a,b)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll a,b;cin>>a>>b;
      |   ^~
a.cc:4:15: error: 'a' was not declared in this scope
    4 |   ll a,b;cin>>a>>b;
      |               ^
a.cc:4:18: error: 'b' was not declared in this scope
    4 |   ll a,b;cin>>a>>b;
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
string s,k;
int i;
long long a,b,k;
main() {
cin>>a>>b;
  i=__gcd(a,b);
  cout<<(a*b)/i;
}

Compiler output:
a.cc:5:15: error: conflicting declaration 'long long int k'
    5 | long long a,b,k;
      |               ^
a.cc:3:10: note: previous declaration as 'std::string k'
    3 | string s,k;
      |          ^
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main() {
      | ^~~~
Language: C++

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

long long a,b;

int main(){
	
  cin >> a >> b;
  
  cout << (a*b)/(__gcd(a,b) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout << (a*b)/(__gcd(a,b) << endl;
      |                  ~~~~~~~~~~~^~~~~~~
a.cc:10:36: error: expected ')' before ';' token
   10 |   cout << (a*b)/(__gcd(a,b) << endl;
      |                 ~                  ^
      |                                    )
Language: C++

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

int main() {
	int a, b;
  	cin >> a >> b;
  	
  	cout << (1LL * a * b) / __gcd(a, b) << endl;
}

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

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

int main() {
	int a, b;
  	cin >> a >> b;
  	
  	cout << (1LL * a * b) / __gcd(a, b) << endl;

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

#include "../../lib/lib.h"

void solve1(void)
{
    ll a, b;
    cin >> a >> b;
    cout << LCM(a, b) << endl;
}

void solve2(void)
{
    long long a, b;
    cin >> a >> b;
    for (int i = 1; i <= b; i++)
    {
        if (a * i % b == 0)
        {
            cout << a * i << endl;
            break;
        }
    }
}

int main(void)
{

    solve1();
    //solve2();

    return 0;
}

Compiler output:
a.cc:1:10: fatal error: ../../lib/lib.h: No such file or directory
    1 | #include "../../lib/lib.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
	ll a, b; cin >> a >> b;
  	cout << (a * b) / __gcd(a, b) << endl;
}

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

#include<iostream>
using ll = long long;
using namespace std;
int main()
{
 	ll a,b;cin>>a>>b;
  ll gc = __gcd(a,b);
  a = a/gc;
  cout<<a*b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: '__gcd' was not declared in this scope
    7 |   ll gc = __gcd(a,b);
      |           ^~~~~
Language: C++

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

int main(){
  long int A,B,s;
  s=1;
  int i,j;
  cin >> A >> B;
  
  vector<int> a(100),b(100);
  int countA=0;
  int countB=0;
  
  for(i=1;i<=A;i++){
    if(A%i==0){
      a.at(countA)=i;
      countA++;
      if(i==A){
        a.at(countA+1)=0;
      }
    }
  }
  for(i=1;i<=B;i++){
    if(B%i==0){
      b.at(countB)=i;
      countB++;
      if(i==B){
        b.at(countB+1)=0;
      }
    }
  }
  
  for(i=0;i<countA;i++){
    for(j=0;j<countB;j++){
      if(a.at(i)==b.at(j)){
        s=s*a.at(i)
      }
      if(a.at(i)<b.at(j)) break;
    }
  }
  
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:20: error: expected ';' before '}' token
   36 |         s=s*a.at(i)
      |                    ^
      |                    ;
   37 |       }
      |       ~
Language: C++

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

int main(){
  long int A,B,s;
  s=1;
  int i,j;
  cin >> A >> B;
  
  vector<int> a(100),b(100);
  int countA=0;
  int countB=0;
  
  for(i=1;i<=A;i++){
    if(A%i==0){
      a.at(countA)=i;
      countA++;
      if(i==A){
        a.at(countA+1)=0;
      }
    }
  }
  for(i=1;i<=B;i++){
    if(B%i==0){
      b.at(countB)=i;
      countB++;
      if(i==B){
        b.at(countB+1)=0;
      }
    }
  }
  
  for(i=0;i<countA;i++){
    for(j=0;j<countB;j++){
      if(a.at(i)==b.at(j)){
        s=s*a.at(i)
      }
      if(a.at(i)<b.at(j)) break;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:20: error: expected ';' before '}' token
   36 |         s=s*a.at(i)
      |                    ^
      |                    ;
   37 |       }
      |       ~
Language: C

int main() {
  int a, b, r, x;
  scanf("%d %d", &a, &b);
  int x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a < b){
    int tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  
  printf("%d\n", x/b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d", &a, &b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d", &a, &b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:7: error: redeclaration of 'x' with no linkage
    4 |   int x = a * b;
      |       ^
main.c:2:16: note: previous declaration of 'x' with type 'int'
    2 |   int a, b, r, x;
      |                ^
main.c:21:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |   printf("%d\n", x/b);
      |   ^~~~~~
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
   int a[10],i;
  cin>>a[0]>>a[1];
  sort(a,a+2);
  for(i=1;i<=a[1];i++)
  {
        if((a[0]*i)%a[1]==0)
        {
           cout<<a[0]*i<<endl;
          return 0;
        }
  }

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

#include<iostream>


int main()
{
	 long a, b;
	std::cin >> a >> b;
	 long long bigger = a;
	 long long smaller = b;
	if (b > a)
	{
		bigger = b;
		smaller = a;
	}
	long long GDE = 1;
	for (int i = 1; i < smaller; ++i)
	{
		if (a % i == 0 && b % i == 0)
		{
			GDE = i;
		}
	}
	 long long aa = bigger / GDE;
	std::cout << aa * smaller;
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:18: error: expected '}' at end of input
   25 |         return 0;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

int main()
{
	int a, b;
	std::cin >> a >> b;
	int bigger = a;
	int smaller = b;
	if (b > a)
	{
		bigger = b;
		smaller = a;
	}

	int surp = smaller;
	while (true)
	{
		int tmp = surp;
		if (bigger%surp==0)
		{
			break;
		}
		surp = bigger % surp;
		bigger =tmp;
	}
	std::cout << (a/surp) * (b/surp)*bigger;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::cin >> a >> b;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:24:14: error: 'cout' is not a member of 'std'
   24 |         std::cout << (a/surp) * (b/surp)*bigger;
      |              ^~~~
a.cc:24:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include<stdio.h>
int main(void)
{
  int a,b,i,j,f;
  scanf("%d",&a);
  scanf("%d",&b);
  if(a>=b){
    c=a;
    d=b;
  }
  if(b>a){
    c=b;
    d=a;
  }
  for(i=1;i<d;i++){
    if((c*i)%d==0){
      printf("%d\n",c*i);
      break;
    }
    if((c*i)%d!=0){
      continue;
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'c' undeclared (first use in this function)
    8 |     c=a;
      |     ^
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:5: error: 'd' undeclared (first use in this function)
    9 |     d=b;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    long long a, b, ans;
    cin >> a >> b;
    ans = a /_gcd(a, b) * b;
    cout << ans << '\n';

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: '_gcd' was not declared in this scope
    7 |     ans = a /_gcd(a, b) * b;
      |              ^~~~
a.cc:8:25: error: expected '}' at end of input
    8 |     cout << ans << '\n';
      |                         ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

import java.util.* ;
public class Main{
 public static void main(String []args){
 	Scanner sc = new Scanner(System.in) ;
    long  a = sc.nextInt() ; 
    long  b = sc.nextInt() ;
    System.out.println( (a*b)/gcd(a,b ) ) ;
    
 }
  static int gcd(long a , long b ) { 
   if (b == 1 ) 
     return a ;
    else
      return gcd(b , a%b ) ;
  }
  
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from long to int
     return a ;
            ^
1 error
Language: Java

import java.util.* ;
public class Main{
 public static void main(String []args){
 	Scanner sc = new Scanner(System.in) ;
    long  a = sc.nextInt() ; 
    long  b = sc.nextInt() ;
    System.out.println( (a*b)/gcd(a,b ) ) ;
    
 }
  static int gcd(int a , int b ) { 
   if (b == 1 ) 
     return a ;
    else
      return gcd(b , a%b ) ;
  }
  
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from long to int
    System.out.println( (a*b)/gcd(a,b ) ) ;
                                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.* ;
public class Main{
 public static void main(String []args){
 	Scanner sc = new Scanner(System.in) ;
    long  a = sc.nextInt() ; 
    long  b = sc.nextInt() ;
    System.out.println( a*b/gcd(a,b ) ) ;
    
 }
  static int gcd(int a , int b ) { 
   if (b == 1 ) 
     return a ;
    else
      return gcd(b , a%b ) ;
  }
  
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from long to int
    System.out.println( a*b/gcd(a,b ) ) ;
                                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.* ;
public class Main{
 public static void main(String []args){
 	Scanner sc = new Scanner(System.in) ;
    long  a = sc.nextInt() ; 
    long  b = sc.nextInt() ;
    System.out.println( a*b/gcd(a,b ) ) ;
    
 }
  static long gcd(int a , int b ) { 
   if (b == 1 ) 
     return a ;
    else
      return gcd(b , a%b ) ;
  }
  
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from long to int
    System.out.println( a*b/gcd(a,b ) ) ;
                                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.* ;
public class Main{
 public static void main(String []args){
 	Scanner sc = new Scanner(System.in) ;
    long  a = sc.nextInt() ; 
    long  b = sc.nextInt() ;
   return a*b/gcd(a,b ) ;
    
 }
  static long gcd(int a , int b ) { 
   if (b == 1 ) 
     return a ;
    else
      return gcd(b , a%b ) ;
  }
  
}

Compiler output:
Main.java:7: error: incompatible types: unexpected return value
   return a*b/gcd(a,b ) ;
             ^
Main.java:7: error: incompatible types: possible lossy conversion from long to int
   return a*b/gcd(a,b ) ;
                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.util.* ;
public class Main{
 public static void main(String []args){
 	Scanner sc = new Scanner(System.in) ;
    long  a = sc.nextInt() ; 
    long  b = sc.nextInt() ;
   return a*b/gcd(a,b ) ;
    
 }
  static long gcd(int a , int b ) { 
   if (b == 1 ) 
     return a ;
    else
      return gcd(b , a%b ) 
  }
  
}

Compiler output:
Main.java:14: error: ';' expected
      return gcd(b , a%b ) 
                          ^
1 error
Language: Java

import java.util.*;
public class A
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		long A = sc.nextLong();
		long B = sc.nextLong();
		long min = 100000000;
		long nmin = 0;
		if(A>B)
		{
			min = B;
			nmin = A;
		}
		else
		{
			min = A;
			nmin = B;
		}
		for(long i=1;i<=nmin;i++)
		{
			if(i*min%nmin==0)
			{
				System.out.println(i*min);
				break;
			}
		}
	}
}

Compiler output:
Main.java:2: error: class A is public, should be declared in a file named A.java
public class A
       ^
1 error
Language: Java

import java.util.*;
public class A
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		long A = sc.nextLong();
		long B = sc.nextLong();
		long min = 100000000;
		long nmin = 0;
		if(A>B)
		{
			min = B;
			nmin = A;
		}
		else
		{
			min = A;
			nmin = B;
		}
		System.out.println(min);
		System.out.println(nmin);
		for(long i=1;i<=nmin;i++)
		{
			if(i*min%nmin==0)
			{
				System.out.println(i);
				System.out.println(i*min);
				break;
			}
		}
	}
}

Compiler output:
Main.java:2: error: class A is public, should be declared in a file named A.java
public class A
       ^
1 error
Language: C++

#include <iostream>
#include <vector>

using namespace std;

// Task C
// C - Snack
long long taskC(int a, int b) {
  cin >> a;
  cin >> b;
  int max;

  if (a > b) max = a;
  else max = b;

  int i = max;
  long long bcnn;

  while (1) {
    if (i % a == 0 && i % b == 0) {
      bcnn = i;
      break;
    }
    i += max;
  }

  return bcnn;
}

int main() {
  int main() {
  int a; cin >> a;
  int b; cin >> b;
  cout << taskC(a, b);
  return 0;
}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:11: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   31 |   int main() {
      |           ^~
a.cc:31:11: note: remove parentheses to default-initialize a variable
   31 |   int main() {
      |           ^~
      |           --
a.cc:31:11: note: or replace parentheses with braces to value-initialize a variable
a.cc:31:14: error: a function-definition is not allowed here before '{' token
   31 |   int main() {
      |              ^
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    	int line = sc.nextInt();
    	int line2 = sc.nextInt();
      
      int x = 1;
      int Y = 1;
      while(line != line2){
        if(line < line2 ){
          line = line * x;
          x = x + 1;
        }else if(line2 < line ){
          line2 = line2 * y;
          y = y + 1;
        }
      }
      System.out.print(line);
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
          line2 = line2 * y;
                          ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
          y = y + 1;
          ^
  symbol:   variable y
  location: class Main
Main.java:16: error: cannot find symbol
          y = y + 1;
              ^
  symbol:   variable y
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    long long a, b; cin >> a >> b;



Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: expected '}' at end of input
    7 |     long long a, b; cin >> a >> b;
      |                                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(int argc, char *argv[]) {
    int64_t A, B;
    cin >> A >> B;
    cout << __lcm(A, B) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:13: error: '__lcm' was not declared in this scope
    8 |     cout << __lcm(A, B) << endl;
      |             ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(int argc, char *argv[]) {
    int64_t A, B;
    cin >> A >> B;
    cout << std::__detail::__lcm(A, B) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:28: error: '__lcm' is not a member of 'std::__detail'
    8 |     cout << std::__detail::__lcm(A, B) << endl;
      |                            ^~~~~
Language: C++

#include <bits/stdc++.h>
#define N 100010
#define pb push_back
#define fi first
#define se second
#define si size()
#define ll long long
#define mp make_pair
#define iter ::iterator
#define all(v) v.begin(), v.end()
#define READ(f) freopen (f, "r", stdin)
#define WRITE(f) freopen (f, "w", stdout)
#define pp pop_back
#define mapiter map<int, int>::iterator
#define pii pair<int, int>
#define forn(i, n) for(int i = 0; i < n; ++i)
#define forn1(i, n) for(int i = 0; i <= n; ++i)
#define forr(i, x, n) for(int i = x; i <= n; ++i)
#define r0 return 0
#define barnarnar ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define lld long double
  
const int inf = 1e9 + 1;
const ll modw = 1e9 + 7;
  
using namespace std;

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

int main() {
    barnarnar
	ll a, b;
	cin >> a >> b;
	cout << a * b / gcd(a, b);
    return 0;
}















Compiler output:
a.cc:28:8: error: 'a' was not declared in this scope
   28 | ll gcd(a, b)
      |        ^
a.cc:28:11: error: 'b' was not declared in this scope
   28 | ll gcd(a, b)
      |           ^
a.cc:28:12: error: expression list treated as compound expression in initializer [-fpermissive]
   28 | ll gcd(a, b)
      |            ^
a.cc: In function 'int main()':
a.cc:38:25: error: reference to 'gcd' is ambiguous
   38 |         cout << a * b / gcd(a, b);
      |                         ^~~
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:28:4: note:                 'long long int gcd'
   28 | ll gcd(a, b)
      |    ^~~
Language: C++

#from fractions import gcd
#A,B = map(int, input().split())
#print(A*B//gcd(A,B))
def gcd(a,b):
    if(a<b):
         b,a=a,b
    if(b==0):
        return a
    r = a%b
    if(r!=0) :
        a,b,r=b,r,b%r
        return gcd(b,r)
    else:
        return b

A,B = map(int, input().split())
print(A*B//gcd(A,B))

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #from
    1 | #from fractions import gcd
      |  ^~~~
a.cc:2:2: error: invalid preprocessing directive #A
    2 | #A,B = map(int, input().split())
      |  ^
a.cc:3:2: error: invalid preprocessing directive #print
    3 | #print(A*B//gcd(A,B))
      |  ^~~~~
a.cc:4:1: error: 'def' does not name a type
    4 | def gcd(a,b):
      | ^~~
Language: C++

  cout<< A << B	<<endl;
  cout << A*B << endl;
  cout << A+B <<endl;
  while (fA%fB!=0) {
    temp=fB;
    fB =fA%fB;
    fA=temp;
    cout << fA << fB <<endl;
  }
  cout <<fB <<endl;
  long int ans;
  cout << A*B <<endl;
  ans=A*B/fB;
  cout << ans <<endl;
  return 0;
}

Compiler output:
a.cc:1:3: error: 'cout' does not name a type
    1 |   cout<< A << B <<endl;
      |   ^~~~
a.cc:2:3: error: 'cout' does not name a type
    2 |   cout << A*B << endl;
      |   ^~~~
a.cc:3:3: error: 'cout' does not name a type
    3 |   cout << A+B <<endl;
      |   ^~~~
a.cc:4:3: error: expected unqualified-id before 'while'
    4 |   while (fA%fB!=0) {
      |   ^~~~~
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout <<fB <<endl;
      |   ^~~~
a.cc:12:3: error: 'cout' does not name a type
   12 |   cout << A*B <<endl;
      |   ^~~~
a.cc:13:3: error: 'ans' does not name a type
   13 |   ans=A*B/fB;
      |   ^~~
a.cc:14:3: error: 'cout' does not name a type
   14 |   cout << ans <<endl;
      |   ^~~~
a.cc:15:3: error: expected unqualified-id before 'return'
   15 |   return 0;
      |   ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include<bits/stdc++.h)
int x,y
int gcd(int a, int b) {
    a = abs(a);
    b = abs(b);
    while (b != 0) {
        std::tie(a, b) = std::make_tuple(b, a % b);
    }
    return a;
}
 
int lcm(int a, int b) {
    int c = gcd(a, b);
    return c == 0 ? 0 : a / c * b;
}
int main(){
	cin>>x>>y;
  	cout<<lcm(x,y);
}

Compiler output:
a.cc:1:24: error: missing terminating > character
    1 | #include<bits/stdc++.h)
      |                        ^
a.cc:1:9: fatal error: bits/stdc++.h): No such file or directory
    1 | #include<bits/stdc++.h)
      |         ^
compilation terminated.
Language: C++

#include<iostream>
#include<math.h>

using namespace std;

int main(){
  int a,b;
  cin>>a>>b;
  cout<<lcm(a,b)<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'lcm' was not declared in this scope
    9 |   cout<<lcm(a,b)<<endl;
      |         ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int A,B;    
    cin>>A;
    cin>>B;
      if(A>B){
         for(int i=2;i<=A;i++){
            int b=B*i;
             for(int j=1;i<=B;j++){
                 int a=A*i;
                 if(a==b){
                     cout<<b;}
                 else if(a>b)
                     break;}}
          else if(B>A){
              for(int i=2;i<=B;i++){
            int b=A*i;
             for(int j=1;i<=A;j++){
                 int a=B*i;
                 if(a==b){
                     cout<<b;}
                 else if(a>b){
                     break;}}}}
              return 0;}
              

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: expected '}' before 'else'
   16 |           else if(B>A){
      |           ^~~~
a.cc:7:14: note: to match this '{'
    7 |       if(A>B){
      |              ^
Language: C++

#include<iostream>
#include<string>
#include <cmath>
#include <limits>
#include <numeric>

using namespace std;

int main(){
    int A, B, C;
    cin >> A >> B;
    C = lcm(A, B)
    cout << C << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected ';' before 'cout'
   12 |     C = lcm(A, B)
      |                  ^
      |                  ;
   13 |     cout << C << endl;
      |     ~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  int p=a*b;
  int g=__gcd(a,b);
  cout<<p/g;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected '}' at end of input
   10 |   cout<<p/g;
      |             ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  int g=_gcd(a,b);
  int l=(a*b)/g;
  cout<<l;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: '_gcd' was not declared in this scope
    7 |   int g=_gcd(a,b);
      |         ^~~~
a.cc:9:11: error: expected '}' at end of input
    9 |   cout<<l;
      |           ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a.b;
  cin>>a>>b;
  cout<<(a*b)/(__gcd(a,b));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before '.' token
    4 |   int a.b;
      |        ^
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b;
      |        ^
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cin>>a>>b;
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include<algorithm>
#include <string>
#include <cmath>
#include<queue>
#define PI 3.141592653589793238
#define ll long long
using namespace std;

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

int main()
{
	int x, y;
	__int64 ans;
	

	cin >> x >> y;

	ans = (__int64)x * (__int64)y / (__int64)gcd(x, y);

	printf("%lld", ans);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
   23 |         __int64 ans;
      |         ^~~~~~~
      |         __ynf64
a.cc:28:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |         ans = (__int64)x * (__int64)y / (__int64)gcd(x, y);
      |         ^~~
      |         abs
Language: C++

#include <iostream>
#include <numeric>
using namespace std;
int main(void){
    
    long A, B, ans;
    cin >> A >> B;
    ans = A * B / __gcd(A, B);
    
    cout << ans << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: '__gcd' was not declared in this scope; did you mean 'std::__detail::__gcd'?
    8 |     ans = A * B / __gcd(A, B);
      |                   ^~~~~
      |                   std::__detail::__gcd
In file included from a.cc:2:
/usr/include/c++/14/numeric:134:5: note: 'std::__detail::__gcd' declared here
  134 |     __gcd(_Tp __m, _Tp __n)
      |     ^~~~~
Language: C++

#include <iostream> 
#include <bits/stdc++.h>
#include <vector> 
#include <algorithm> 
#include <string>
#include <cmath>
#include <iomanip> 
#include<climits> 
#include <utility>      
#include <numeric> 
#include <iterator>
#include <map> 
#include <boost/math/common_factor.hpp>
using namespace std; 
#define ll long long int
int main()
{
  int a,b;
  cin>>a>>b;
  cout<<boost::math::lcm(a,b)<<endl  
  
  
}


Compiler output:
a.cc:13:10: fatal error: boost/math/common_factor.hpp: No such file or directory
   13 | #include <boost/math/common_factor.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

import java.util.Scanner;

public class Main {
 
    public static void main(String[] args) {
      Scanner sc=new Scanner(System.in);
      int A,B;
      A=sc.nextInt();
      B=sc.nextInt();
      System.out.println(A);
      sc.close();
      int ans=solve(A,B);
      System.out.println(ans);
    }
  
  static int solve(int a,int b){
    int result=1;
    int i;
    for(i=2;i<=100000||a==1||b==1;i++){
      if(a%i==0&&b%i==0){
        result=result*i;
        a=a/i;
        b=b/i;
        i=2;
      }
    }
    
    return result;
  }
 
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C++

#include<iostream>
#include<cstdlib>
using namespace std;
#defien l long long
int gcd(int a,int b)
{
  if(b==0)
    return a;
  else
    return(gcd(b,abs(a-b)));
  
int main()
{
  int a,b;
  cin>>a>>b;
  int hcf=gcd(a,b);
  l ans=(a*b)/hcf;
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc:4:2: error: invalid preprocessing directive #defien; did you mean #define?
    4 | #defien l long long
      |  ^~~~~~
      |  define
a.cc: In function 'int gcd(int, int)':
a.cc:12:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   12 | int main()
      |         ^~
a.cc:12:9: note: remove parentheses to default-initialize a variable
   12 | int main()
      |         ^~
      |         --
a.cc:12:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:13:1: error: a function-definition is not allowed here before '{' token
   13 | {
      | ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
#defien l long long
int gcd(int a,int b)
{
  if(b==0)
    return a;
  else
    return(gcd(b,a-b));
  
int main()
{
  int a,b;
  cin>>a>>b;
  int hcf=gcd(a,b);
  l ans=(a*b)/hcf;
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #defien; did you mean #define?
    3 | #defien l long long
      |  ^~~~~~
      |  define
a.cc: In function 'int gcd(int, int)':
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main()
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main()
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:12:1: error: a function-definition is not allowed here before '{' token
   12 | {
      | ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a;
  cin>>b;
  int grt=(a>b?a:b);
  int sm=a+b-grt;
  int i=0;
  for( i=grt;i<=a*b;i++)
  {
    if(i%a==0&&i%b==0)
    {
      break;

  }
    cout<<i;
}


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

#include <iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a;
  cin>>b;
  int grt=(a>b?a:b);
  int sm=a+b-gtr;
  int i=0;
  for( i=grt;i<=a*b;i++)
  {
    if(i%a==0&&i%b==0)
    {
      break;

  }
    cout<<i;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'gtr' was not declared in this scope; did you mean 'grt'?
    9 |   int sm=a+b-gtr;
      |              ^~~
      |              grt
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

int main() {

  int A, B;
  cin >> A >> B;
  int C=1
  for(int i=2; i<50001; i++){
  	if(A % i == 0 && B % i == 0){
    	C*= i
    }
  }
 
  cout << A * B / C << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i=2; i<50001; i++){
      |   ^~~
a.cc:9:16: error: 'i' was not declared in this scope
    9 |   for(int i=2; i<50001; i++){
      |                ^
Language: C++

int main(){
    long a,b,t;
    cin >> a >> b;
    for(int i =1;i < b;i++){
        if(a*i%b==0){
            cout << a*i << endl;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:6:13: error: 'cout' was not declared in this scope
    6 |             cout << a*i << endl;
      |             ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope
    6 |             cout << a*i << endl;
      |                            ^~~~
Language: C++

int main(){
    longlong a,b,t;
    cin >> a >> b;
    for(int i =1;i < b;i++){
        if(a*i%b==0){
            cout << a*i << endl;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'longlong' was not declared in this scope
    2 |     longlong a,b,t;
      |     ^~~~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:3:12: error: 'a' was not declared in this scope
    3 |     cin >> a >> b;
      |            ^
a.cc:3:17: error: 'b' was not declared in this scope
    3 |     cin >> a >> b;
      |                 ^
a.cc:6:13: error: 'cout' was not declared in this scope
    6 |             cout << a*i << endl;
      |             ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope
    6 |             cout << a*i << endl;
      |                            ^~~~
Language: C++

int main(){
    long a,b,t;
    cin >> a >> b;
    for(int i =1;i < t;i++){
        if(a*i%b==0){
            cout << a*i << endl;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:6:13: error: 'cout' was not declared in this scope
    6 |             cout << a*i << endl;
      |             ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope
    6 |             cout << a*i << endl;
      |                            ^~~~
Language: C++

int main(){
    longlong a,b,t;
    cin >> a >> b;
    for(int i =1;i < t;i++){
        if(a*i%b==0){
            cout << a*i << endl;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'longlong' was not declared in this scope
    2 |     longlong a,b,t;
      |     ^~~~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:3:12: error: 'a' was not declared in this scope
    3 |     cin >> a >> b;
      |            ^
a.cc:3:17: error: 'b' was not declared in this scope
    3 |     cin >> a >> b;
      |                 ^
a.cc:4:22: error: 't' was not declared in this scope
    4 |     for(int i =1;i < t;i++){
      |                      ^
a.cc:6:13: error: 'cout' was not declared in this scope
    6 |             cout << a*i << endl;
      |             ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope
    6 |             cout << a*i << endl;
      |                            ^~~~
Language: C++

int main(){
    int a,b,t;
    cin >> a >> b;
    if(a>b){
        t = b;
    }
    for(int i =1;i < t;i++){
        if(a*i%b==0){
            cout << a*i << endl;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout << a*i << endl;
      |             ^~~~
a.cc:9:28: error: 'endl' was not declared in this scope
    9 |             cout << a*i << endl;
      |                            ^~~~
Language: C++

int main(){
    int a,b;
    cin >> a >> b;
    if(a>b){
        b=a;
    }
    for(int i =1;i < b;i++){
        if(a*i%b==0){
            cout << a*i << endl;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout << a*i << endl;
      |             ^~~~
a.cc:9:28: error: 'endl' was not declared in this scope
    9 |             cout << a*i << endl;
      |                            ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll gcd(ll a,ll b)
{
  if(b===0)
    return a;
  return(gcd(b,a%b));
}
int main()
{
  ll a,b;
  ll ans=a*b;
  ll k=gcd(a,b);
  ans/=k;
  cout<<ans<<"\n";
  return 0;
}

Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:6:9: error: expected primary-expression before '=' token
    6 |   if(b===0)
      |         ^
Language: C++

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

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

int main(){
    int A,B;
    cin >> A >> B;
    if(A==B){
        cout << A << "/n";
        return 0;
    }
    
    if (A>B){
        int tmp;
        tmp = A;
        A=B;
        B = tmp;
    }
    int l;

    l = euclid(A,B)
    int ans ;
    ans = A*B/l;
    cout << ans << "/n";
    return 0;
}

Compiler output:
a.cc:4:12: error: 'a' was not declared in this scope
    4 | int euclid(a,b){
      |            ^
a.cc:4:14: error: 'b' was not declared in this scope
    4 | int euclid(a,b){
      |              ^
a.cc:4:15: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int euclid(a,b){
      |               ^
a.cc: In function 'int main()':
a.cc:29:15: error: 'euclid' cannot be used as a function
   29 |     l = euclid(A,B)
      |         ~~~~~~^~~~~
a.cc:31:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |     ans = A*B/l;
      |     ^~~
      |     abs
Language: C++

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

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

int main(){
    int A,B;
    cin >> A >> B;
    if(A==B){
        cout << A << "/n";
        return 0;
    }
    
    if (A>B){
        int tmp;
        tmp = A;
        A=B;
        B = tmp;
    }
    int l;

    l = euclid(A,B)
    int ans ;
    ans = A*B/l
    cout << ans << "/n";
    return 0;
}

Compiler output:
a.cc:4:12: error: 'a' was not declared in this scope
    4 | int euclid(a,b){
      |            ^
a.cc:4:14: error: 'b' was not declared in this scope
    4 | int euclid(a,b){
      |              ^
a.cc:4:15: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int euclid(a,b){
      |               ^
a.cc: In function 'int main()':
a.cc:29:15: error: 'euclid' cannot be used as a function
   29 |     l = euclid(A,B)
      |         ~~~~~~^~~~~
a.cc:31:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |     ans = A*B/l
      |     ^~~
      |     abs
Language: C++

#include<iostream>
using namespace std;
int main()
{
  long long a,b;
  cin >> a >> b;
  cout << (a*b)/__gcd(a,b) ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: '__gcd' was not declared in this scope
    7 |   cout << (a*b)/__gcd(a,b) ;
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define ALL(v) v.begin(),v.end()
typedef long long ll;
int main() {
 int a,b;
 cout << gcd(a,b) << endl;
}
int gcd(int a,int b){
  if(a==b){
    return a;
  }else if(a>b){
    return gcd(a-b,b)
  }else{
    return gcd(a,b-a)
  }
}


Compiler output:
a.cc: In function 'int gcd(int, int)':
a.cc:16:22: error: expected ';' before '}' token
   16 |     return gcd(a-b,b)
      |                      ^
      |                      ;
   17 |   }else{
      |   ~                   
a.cc:18:22: error: expected ';' before '}' token
   18 |     return gcd(a,b-a)
      |                      ^
      |                      ;
   19 |   }
      |   ~
Language: C++

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

int main() {
    int a, b;
    cin >> a >> b;
    for(int i = 0; i <= b; i++){
        if((A * i) % B == 0){
            cout << A * i << endl;
            break;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'A' was not declared in this scope
    8 |         if((A * i) % B == 0){
      |             ^
a.cc:8:22: error: 'B' was not declared in this scope
    8 |         if((A * i) % B == 0){
      |                      ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args)
  {
    Scanner input = new Scanner(System.in);
    long a = input.nextLong();
    long b = input.nextLong();
    System.out.println(lcm(a,b));
  }
}


static long gcd(long a, long b) 
    { 
    if (a == 0) 
        return b;  
    return gcd(b % a, a);  
    } 
      
    // method to return LCM of two numbers 
    static long lcm(long a, long b) 
    { 
        return (a*b)/gcd(a, b); 
    } 

Compiler output:
Main.java:13: error: unnamed classes are a preview feature and are disabled by default.
static long gcd(long a, long b) 
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <iostream>

using namespace std;

long long  div(long long m,long long n)
{
	long long x;
	long long a, b;
	a = m;
	b = n;
	if (a > b)
	{
		x = a%b;
	}
	else
	{
		x = a;
		a = b;
		b = x;
		x = a%b;
	}
	while (x != 0)
	{
		a = b;
		b = x;
		x = a%b;
	}
	return b;
}

int main()
{
    long long a1,b1,d1;
    cin>>a1>>b1;
    d1=div(a1,b1);
    cout<<a1/d1*b1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:11: error: call of overloaded 'div(long long int&, long long int&)' is ambiguous
   35 |     d1=div(a1,b1);
      |        ~~~^~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:992:14: note: candidate: 'div_t div(int, int)'
  992 | extern div_t div (int __numer, int __denom)
      |              ^~~
a.cc:5:12: note: candidate: 'long long int div(long long int, long long int)'
    5 | long long  div(long long m,long long n)
      |            ^~~
/usr/include/c++/14/cstdlib:219:3: note: candidate: 'lldiv_t __gnu_cxx::div(long long int, long long int)'
  219 |   div(long long __n, long long __d)
      |   ^~~
/usr/include/c++/14/cstdlib:181:3: note: candidate: 'ldiv_t std::div(long int, long int)'
  181 |   div(long __i, long __j) _GLIBCXX_NOTHROW { return ldiv(__i, __j); }
      |   ^~~