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

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

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


int main() {
    long long int a, b;
    std::cin >> a >> b;
    long long int c = a * b;
    long long int ans = c / gcd(a, b);
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'void gcd(int, int)':
a.cc:7:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
    7 |         return a;
      |                ^
a.cc: In function 'int main()':
a.cc:17:27: error: invalid operands of types 'long long int' and 'void' to binary 'operator/'
   17 |     long long int ans = c / gcd(a, b);
      |                         ~ ^ ~~~~~~~~~
      |                         |      |
      |                         |      void
      |                         long long int
Language: C++

a = input("a")
b = input("b")

A = int(a)
B = int(b)

if (A < B):
    tmb = A
    A = B
    B = tmb

while (A > 0)and (B >0):
    A = A - B
    if (A < B):
        abc = A
        A = B
        B = abc
c = str(A)
d = str(B)
if (A > B):
    GCM=int(c)
elif (A < B):
    GCM=int(d)
P=int(a)*int(b)
lcm=P//GCM
print(str(lcm))


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = input("a")
      | ^
Language: Java

public class Main {
    private static long lcm(long a, long b) {
        return a * (b / gcd(a, b));
    }

    private static long gcd(long a, long b) {
        return b==0 ? a : gcd(b, a%b);
    }

    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String[] split = br.readLine().split("\\s+");
            int a = Integer.parseInt(split[0]);
            int b = Integer.parseInt(split[1]);
            System.out.println(lcm(a,b));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
        try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:12: error: cannot find symbol
        try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
                                    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:12: error: cannot find symbol
        try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
                                                       ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:17: error: cannot find symbol
        } catch (IOException e) {
                 ^
  symbol:   class IOException
  location: class Main
4 errors
Language: C

#include<stdio.h>
int gcd(long long  a, long long b)
{
	if (a > b)
	{
		while (b != 0)
		{
			long long temp = a % b;
			a = b;
			b = temp;
		}
		return a;
	}
	else
	{
		while (a != 0)
		{
			long long temp = b % a;
			b = a;
			a = temp;
		}
		return b;
	}
}
int main(void)
{
	long long a, b;
	scanf_s("%lld %lld", &a, &b);
	long long c = gcd(a, b);
	printf("%lld", c * (a / c) * (b / c));

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   28 |         scanf_s("%lld %lld", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main() {
    long long a, b, c;
    cin >> a >> b;

    long long c = __gcd(a, b);
    a /= c;

    cout << a*b;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: redeclaration of 'long long int c'
    8 |     long long c = __gcd(a, b);
      |               ^
a.cc:5:21: note: 'long long int c' previously declared here
    5 |     long long a, b, c;
      |                     ^
Language: C

#include<stdio.h>

int main(void)
{
	int a, b,max;

		
	scanf("%d%d", &a, &b);
		int a_h=a, b_h=b;
	
	if (a > b) {
		max = b;
	}else {
		max = a;
	}
	do{
		a_h = a; b_h = b;
		for (int i = max; i >= 1; i--){

			int A = a % i;
			int B = b & i;

			if (A == 0 && B == 0){

				a = a / i;
				b = b / i;
			}
		}
	} while (a != a_h || b != b_h)

		printf("%d", a * b);
}

Compiler output:
main.c: In function 'main':
main.c:29:39: error: expected ';' before 'printf'
   29 |         } while (a != a_h || b != b_h)
      |                                       ^
      |                                       ;
   30 | 
   31 |                 printf("%d", a * b);
      |                 ~~~~~~
Language: C

#include<stdio.h>
int gcd(int a, int b)
{
	if (a > b)
	{
		while (b != 0)
		{
			int temp = a % b;
			a = b;
			b = temp;
		}
		return a;
	}
	else
	{
		while (a != 0)
		{
			int temp = b % a;
			b = a;
			a = temp;
		}
		return b;
	}
}
int main(void)
{
	int a, b;
	scanf_s("%d %d", &a, &b);
	int c = gcd(a, b);
	printf("%d", c*(a/c)*(b/c));

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   28 |         scanf_s("%d %d", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>

using namespace std;

int main(void)
{
  int a,b;
  
  cin>>a>>b;
  
  int ans=1;
  
  while()
  {
    if(ans%a!=0)
      ans++;
      continue;
    else if(ans%b!=0)
      ans++;
      continue;
    
    break;
  }
    
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected primary-expression before ')' token
   13 |   while()
      |         ^
a.cc:18:5: error: 'else' without a previous 'if'
   18 |     else if(ans%b!=0)
      |     ^~~~
Language: C++

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

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

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

int main() {
  int a,b;
  cin >> a >> b;
  int c = a*b;
  int ans;
  ans = c / gcd(a,b);
  cout << ans;
  return 0;
}


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

#include <iostream> 
#include <boost/math/common_factor.hpp> 
  
using namespace std; 
  
int main() 
{ 
    long a,b;
    cin>>a>>b;
    cout << boost::math::lcm(a,b) ;
    return 0; 
} 
Outpu

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

import java.util.*;

class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long A = sc.nextInt();
        long B = sc.nextInt();
        //ここまで入力

        long ans = lcm(A,B);

        System.out.println(ans);
    }
        //AとBの最小公倍数を求める
    static int lcm (long a, long b) {
        long temp;
        long c = a;
        c *= b;
        while((temp = a%b)!=0) {
            a = b;
            b = temp;
        }
        return (long)(c/b);
    }
}

Compiler output:
Main.java:24: error: incompatible types: possible lossy conversion from long to int
        return (long)(c/b);
               ^
1 error
Language: C++

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

int main(){
    int a,b;
    cin >> a >>b;
    vector<long>ssu ={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317};
    vector<int>a_ssu_t;
    vector<int>b_ssu_t;
    int a_s=0;
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        while(a/tem_s>0 && can){
            a /=tem_s;
            a_ssu_t[i]++;
        }
        if(a<=0)break;
        a_s++;
    }
    int b_s=0;
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        while(b/tem_s>0){
            b /=tem_s;
            b_ssu_t[i]++;
        }
        if(b<=0)break;
        b_s++;
    }
    int max_t = max(a_s,b_s);
    int ans=1;
    for(int i=0;i<max_t;i++){
        ans*=ssu[i];
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: 'can' was not declared in this scope; did you mean 'tan'?
   13 |         while(a/tem_s>0 && can){
      |                            ^~~
      |                            tan
Language: C++

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

int main(){
    int a,b;
    cin >> a >>b;
    vector<long>ssu ={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317};
    vector<int>a_ssu_t;
    vector<int>b_ssu_t;
    int a_s=0;
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        while(a/tem_s>0 && can){
            a /=tems;
            a_ssu_t[i]++;
        }
        if(a<=0)break;
        a_s++;
    }
    int b_s=0;
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        while(b/tem_s>0){
            b /=tems;
            b_ssu_t[i]++;
        }
        if(b<=0)break;
        b_s++;
    }
    int max_t = max(a_s,b_s);
    int ans=1;
    for(int i=0;i<max_t;i++){
        ans*=ssu[i];
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: 'can' was not declared in this scope; did you mean 'tan'?
   13 |         while(a/tem_s>0 && can){
      |                            ^~~
      |                            tan
a.cc:14:17: error: 'tems' was not declared in this scope; did you mean 'tem_s'?
   14 |             a /=tems;
      |                 ^~~~
      |                 tem_s
a.cc:24:17: error: 'tems' was not declared in this scope; did you mean 'tem_s'?
   24 |             b /=tems;
      |                 ^~~~
      |                 tem_s
Language: C++

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

int main(){
    int a,b;
    cin >> a >>b;
    vector<long>ssu =[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317];
    vector<int>a_ssu_t;
    vector<int>b_ssu_t;
    int a_s=0;
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        while(a/tem_s>0 && can){
            a /=tems;
            a_ssu_t[i]++;
        }
        if(a<=0)break;
        a_s++;
    }
    int b_s=0;
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        while(b/tem_s>0){
            b /=tems;
            b_ssu_t[i]++;
        }
        if(b<=0)break;
        b_s++;
    }
    int max_t = max(a_s,b_s);
    int ans=1;
    for(int i=0;i<max_t;i++){
        ans*=ssu[i];
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected identifier before numeric constant
    7 |     vector<long>ssu =[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317];
      |                       ^
a.cc:7:24: error: expected ']' before ',' token
    7 |     vector<long>ssu =[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317];
      |                        ^
      |                        ]
a.cc: In lambda function:
a.cc:7:24: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:22: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::vector<long int>' requested
    7 |     vector<long>ssu =[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317];
      |                      ^~
a.cc:7:25: error: expected unqualified-id before numeric constant
    7 |     vector<long>ssu =[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317];
      |                         ^
a.cc:13:28: error: 'can' was not declared in this scope; did you mean 'tan'?
   13 |         while(a/tem_s>0 && can){
      |                            ^~~
      |                            tan
a.cc:14:17: error: 'tems' was not declared in this scope; did you mean 'tem_s'?
   14 |             a /=tems;
      |                 ^~~~
      |                 tem_s
a.cc:24:17: error: 'tems' was not declared in this scope; did you mean 'tem_s'?
   24 |             b /=tems;
      |                 ^~~~
      |                 tem_s
Language: C++

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


int main(){
  
  int a,b,c,tmp=99,d,e;
  cin >> a >> b;
  d = a; e = b;
  while(tmp == 0){
    c = max(d,e)/min(d,e);
    tmp = max(d,e)%min(d,e);
    d = c; e = f;
  }
  
  cout << a*b/c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'f' was not declared in this scope
   13 |     d = c; e = f;
      |                ^
Language: C++

#include <iostream>
#include <boost/math/common_factor_rt.hpp>

using namesapce std;

int main() {
  int a, b, c;
  cin >> a >> b;
  c = boost::math::lcm(a,b);
  cout << c << endl;
}

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

import java.util.*;
import java.text.DecimalFormat;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
 
        int max = 1;
        for (int i = 2; i <= a; i++) {
            if (a % i == 0 && b % i == 0) {
                max = i;
            }
        }
		DecimalFormat decimalFormat = new DecimalFormat("###");
      	Double result=new Double(a)*new Double(b);
        System.out.println(decimalFormat.format(result/max));
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.text.DecimalFormat;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

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

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

function Main(input) {
	input = input.split(" ");
	var a = parseInt(input[0], 10);
	var b = parseInt(input[1], 10);
	console.log(lcm(a, b));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

Compiler output:
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'?
    1 | function gcd(a, b){
      | ^~~~~~~~
      | union
a.cc:6:1: error: 'function' does not name a type; did you mean 'union'?
    6 | function lcm(a, b){
      | ^~~~~~~~
      | union
a.cc:10:1: error: 'function' does not name a type; did you mean 'union'?
   10 | function Main(input) {
      | ^~~~~~~~
      | union
a.cc:16:5: error: expected constructor, destructor, or type conversion before '(' token
   16 | Main(require("fs").readFileSync("/dev/stdin", "utf8"));
      |     ^
Language: C++

#include <iostream> 
#include <boost/math/common_factor.hpp> 
  
using namespace std; 
  
int main() 
{ 
    cout << "LCM(1.0,20) = " << boost::math::lcm(1.0,20)  
         << endl; 
    return 0; 
} 

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

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int a,b;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a>>b;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout<<lcm(a,b);
      |   ^~~~
a.cc:9:3: error: expected unqualified-id before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++


#include <stdio.h>

int main(void)
{
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  printf("gcd(%d, %d) = %d\n", a, b, gcd(a, b));
  printf("lcm(%d, %d) = %d\n", a, b, lcm(a, b));
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:38: error: 'gcd' was not declared in this scope
    9 |   printf("gcd(%d, %d) = %d\n", a, b, gcd(a, b));
      |                                      ^~~
a.cc:10:38: error: 'lcm' was not declared in this scope
   10 |   printf("lcm(%d, %d) = %d\n", a, b, lcm(a, b));
      |                                      ^~~
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int na=scan.nextInt();
int nb=scan.nextInt();
  
int sum=1;
  for(int i=1;i<=min(na,nb);i++){
      if(na%i==0&&nb%i==0){
          sum=i;
      }
  }
Sysyem.out.println(na*nb/sum);
  
}
}

Compiler output:
Main.java:10: error: cannot find symbol
  for(int i=1;i<=min(na,nb);i++){
                 ^
  symbol:   method min(int,int)
  location: class Main
Main.java:15: error: package Sysyem does not exist
Sysyem.out.println(na*nb/sum);
      ^
2 errors
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#define rep(i,n) for (int i = 0;i < (n);++i)
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;

int main() {
    int a,b;
    cin >> a >> b;
    int c;
    c = __lcm(a,b);
    cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: '__lcm' was not declared in this scope
   12 |     c = __lcm(a,b);
      |         ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    reg int a,b;
  cin >> a >> b;
    cout<<1ll*a/__gcd(a,b)*b<<"\n";
	return 0;
}


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

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

int main() {

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 a,b;
  cin >> a >> b;
  int x= std::lcm(a,b)
    
  std::cout << x << std::endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'namespace' definition is not allowed here
    6 | namespace std {
      | ^~~~~~~~~
a.cc:19:3: error: expected ',' or ';' before 'std'
   19 |   std::cout << x << std::endl;
      |   ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:7: error: lvalue required as left operand of assignment
   14 |    i*d=e;
      |       ^
Language: C++

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


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

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

Compiler output:
main.c: In function 'main':
main.c:13:6: error: 'i' undeclared (first use in this function)
   13 |  for(i=1;i<=c;i++){
      |      ^
main.c:13:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long a,b; cin>>a>>b;
  if(a>b) swap(a,b);
  long i;
  else
  {
 /* for( i=sqrt(a);i>=1;i--)
  {
    if(a%i==0&&b%i==0)
    break;
  }*/
    i=__gcd(a,b);
    cout<<(a*b)/(i);
  }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else
      |   ^~~~
Language: Java

import java.util.Scanner;

public class LCM {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
       
        long m = in.nextLong();
        long n = in.nextLong();
        System.out.printf("LCM(%d, %d) = %d%n", m, n, lcm(m, n));
    }
    
    private static long gcd(long m, long n) {
        if(m < n) return gcd(n, m);
        if(n == 0) return m;
        return gcd(n, m % n);
    }
    
    private static long lcm(long m, long n) {
        return m * n / gcd(m, n);
    }
}

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

#include<fstream>
#include<string>
#include<iostream>
#include<sstream>
#include<iterator>
#include<cmath>
 
using namespace std;
 
int main(){
 int A;
 int B;
 long long int C = A * B;
 cin >> A >> B;
 int tmp;
 int r;
 if(A < B){
    tmp = A;
    A = B;
    B = tmp;
  }
  r = a % b;
  while(r!=0){
    A = B;
    B = r;
    r = A % B;
  }
  cout << C/B << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:7: error: 'a' was not declared in this scope
   22 |   r = a % b;
      |       ^
a.cc:22:11: error: 'b' was not declared in this scope
   22 |   r = a % b;
      |           ^
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  int x= std::lcm(a,b)
    
  std::cout << x << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'std'
    9 |   std::cout << x << std::endl;
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int A,B,r,x,tmp;
  cin>>A>>B;
  x=A*B;
  if(A<B){tmp=A;A=B;B=tmp;}
  r=A%B;
  while(r!=0){A=B;B=r;r=A%B;}
  cout<<x/B<<endl;}
}

Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C

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

 
int main(){
   long long int a,b,bb,r,temp;
   scanf("%lld %lld", &a,&b);
   bb = b;
   if(a<b){
    tmp = a;
    a = b;
    b = tmp;
   }
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  	printf("%d", bb*a/b);
	return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'tmp' undeclared (first use in this function); did you mean 'temp'?
   11 |     tmp = a;
      |     ^~~
      |     temp
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  int x= std::gcd(a,b)
    
  std::cout << x << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'std'
    9 |   std::cout << x << std::endl;
      |   ^~~
Language: C++

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

int an() {
    int a,b;
    cin>>a>>b;
    int n1=a;
    int n2=b;
    int max = (n1 > n2) ? n1 : n2;
    do
    {
        if (max % n1 == 0 && max % n2 == 0)
        {
            cout << max;
            break;
        }
        else
            ++max;
    } while (true);
	return 0;
}
 
int main(void) {
    ll a,b;
    cin>>a>>b;
    long long ans = a * b;
	if(a < b){swap(a, b);}
 
	int r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
 
  ans /= b;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: 'll' was not declared in this scope
   25 |     ll a,b;
      |     ^~
a.cc:26:10: error: 'a' was not declared in this scope; did you mean 'an'?
   26 |     cin>>a>>b;
      |          ^
      |          an
a.cc:26:13: error: 'b' was not declared in this scope
   26 |     cin>>a>>b;
      |             ^
Language: C++

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include>bits/stdc++.h>
      |         ^
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | 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 | #include>bits/stdc++.h>
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout<<A*B/__gcd(A,B);
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:11: error: '__gcd' was not declared in this scope
    7 | cout<<A*B/__gcd(A,B);
      |           ^~~~~
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x=scan.nextInt();
		int y=scan.nextInt();
		scan.close();

		if(x<y) {
			int tmp=y;
			y=x;
			x=tmp;
		}


		System.out.println((x+y)/gcd(x,y));
	}

	static int gcd(int x,int y) {
		if(x%y==0)return y;
		else return gcd(y,x%y);
	}

Compiler output:
Main.java:23: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <iostream>
#include <numeric>
	//#include <vector>
	//#include<math.h>
	//#include <algorithm>
	//#include <functional>
	//#include <numeric>
	//#include<cmath>
	//#include <stdio.h> 
	//#include <cstdint>
	//#include <string>
	//#include <cstdlib>
	//#define pi 3.14159265359
using namespace std;


	int main() {

		int a, b;
		cin >> a;
		cin >> b;
		int tmp;
		int r;

		x = a * b;

		if (a < b) {
			tmp = a;
			a = b;
			b = tmp;
		}

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

		cout << x / b;

		return 0;

	}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'x' was not declared in this scope
   25 |                 x = a * b;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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

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

get = gets.chomp
space = get.index(" ")

a = get[0..(space-1)].to_i
b = get[(space+1)..(get.length-1)].to_i

puts(a.lcm(b))

Compiler output:
a.cc:4:9: error: too many decimal points in number
    4 | a = get[0..(space-1)].to_i
      |         ^~~
a.cc:1:1: error: 'get' does not name a type
    1 | get = gets.chomp
      | ^~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int result =  a * b  /  aaa(a, b);

		System.out.println(result);
	}
	
	private static int aaa(int m, int n) {
	    if(m < n) return aaa(n, m);
	    if(n == 0) return m;
	    return a(aan, m % n);
	}
	
}

Compiler output:
Main.java:16: error: cannot find symbol
	    return a(aan, m % n);
	             ^
  symbol:   variable aan
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
	long a,b;
	scanf("%ld %ld",&a, &b);
	printf("%ld", std::__detail::__lcm(a,b));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: '__lcm' is not a member of 'std::__detail'
    8 |         printf("%ld", std::__detail::__lcm(a,b));
      |                                      ^~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x = a * b;

		int tmp = 0;
		if (a < b) {
			tmp = a;
			a = b;
			b = tmp;
		}

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

		System.out.println(x / b);
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

/**
 * code generated by JHelper
 * More info: https://github.com/AlexeyDmitriev/JHelper
 * @author Sagor
 */

#include <fstream>
#include <iostream>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
typedef long long int ll;
typedef double ld;

class t {
public:
	void solve(std::istream& in, std::ostream& out) {

	    ll a,b,c;
	    in>>a>>b;

	    ll l = a*b;
	    ll g = __algo_gcd(a,b);
	    out<<l/g<<endl;

	}
};


int main() {
    std::ios_base::sync_with_stdio(0);
    std::cin.tie(nullptr);
	t solver;
	std::istream& in(std::cin);
	std::ostream& out(std::cout);
	solver.solve(in, out);
	return 0;
}


Compiler output:
a.cc: In member function 'void t::solve(std::istream&, std::ostream&)':
a.cc:24:20: error: '__algo_gcd' was not declared in this scope
   24 |             ll g = __algo_gcd(a,b);
      |                    ^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:10:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   10 | int main()
      |         ^~
a.cc:10:9: note: remove parentheses to default-initialize a variable
   10 | int main()
      |         ^~
      |         --
a.cc:10:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:1: error: a function-definition is not allowed here before '{' token
   11 | {
      | ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'a' was not declared in this scope
    7 |    cin >> a;
      |           ^
a.cc:8:11: error: 'b' was not declared in this scope
    8 |    cin >> b;
      |           ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

import com.sun.tools.javac.util.List;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArray = br.readLine().split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		long kobaisu = getKobaisu(a, b);
		System.out.println(kobaisu);
	}
	// 公約数の取得
	  private static long getKoyakusu(long a, long b) {
	    long candidate = a;
	    while (b % a != 0) {
	      candidate = b % a;
	      b = a;
	      a = candidate;
	    }
	    return candidate;
	  }

	  // 公倍数の取得
	  private static long getKobaisu(long a, long b) {
	    return (a * b) / getKoyakusu(a, b);
	  }
}


Compiler output:
Main.java:6: error: package com.sun.tools.javac.util is not visible
import com.sun.tools.javac.util.List;
                          ^
  (package com.sun.tools.javac.util is declared in module jdk.compiler, which does not export it to the unnamed module)
1 error
Language: C++

//#include <boost/math/common_factor.hpp>
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(x,y) for(ll i=x;i<y;i++)
#define vll vector<ll>
#define sll set<ll>
#define pb push_back
#define in insert
#define FAST ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define MOD 1000000007
#define all(x) x.begin(),x.end()
#define tc ll t;cin>>t;while(t--)
#define rev(x) reverse(all(x))
#define low_str(x) transform(all(x),x.begin(),::tolower)
#define up_str(x) transform(all(x),x.begin(),::toupper)
int main()
{
ll x,y;
cin>>x>>y;
cout<<boost::math::lcm(x,y);
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: 'boost' has not been declared
   21 | cout<<boost::math::lcm(x,y);
      |       ^~~~~
Language: C++

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

#define int long long
#define double long double
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, n) for (int i = 1; i <= (n); i++)
#define all(x) (x).begin(), (x).end()
#define uniq(x) (x).erase(unique(all(x)), (x).end())
#define bit(n) (1LL << (n))
#define dump(x) cerr << #x " = " << (x) << endl
using vint = vector<int>;
using vvint = vector<vint>;
using pint = pair<int, int>;
using vpint = vector<pint>;
template<typename T> using priority_queue_rev = priority_queue<T, vector<T>, greater<T>>;
constexpr double pi = 3.1415926535897932384626433832795028L;
constexpr int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
constexpr int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int gcd(int a, int b) {
    while (b) { swap(a %= b, b); }
    return a;
}
int lcm(int a, int b) { return a / gcd(a, b) * b; }
template<typename T> void fin(T mes) {
    cout << mes << endl;
    exit(0);
}
template<typename T, typename U> bool chmax(T &a, const U &b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
template<typename T, typename U> bool chmin(T &a, const U &b) {
    if (b < a) {
        a = b;
        return true;
    }
    return false;
}
template<typename T, typename U> ostream &operator<<(ostream &os, const pair<T, U> &rhs) {
    os << "(" << rhs.first << ", " << rhs.second << ")";
    return os;
}
template<typename T> ostream &operator<<(ostream &os, const vector<T> &rhs) {
    os << "{";
    for (auto itr = rhs.begin(); itr != rhs.end(); itr++) {
        os << *itr << (next(itr) != rhs.end() ? ", " : "");
    }
    os << "}";
    return os;
}
struct setup {
    static constexpr int PREC = 20;
    setup() {
        cout << fixed << setprecision(PREC);
        cerr << fixed << setprecision(PREC);
    };
} setup;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:64:10: error: found ':' in nested-name-specifier, expected '::'
   64 |   int A,B:
      |          ^
      |          ::
a.cc:64:9: error: 'B' has not been declared
   64 |   int A,B:
      |         ^
a.cc:65:6: error: qualified-id in declaration before '>>' token
   65 |   cin>>A>>B;
      |      ^~
a.cc:66:15: error: 'B' was not declared in this scope
   66 |   cout<<lcm(A,B)<<endl;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    ll a,b,tmp;
    cin>>a>>b;
    ll x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }

    cout<<x/b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'r' was not declared in this scope
   19 |   r = a % b;
      |   ^
Language: C++

 * C言語のサンプルプログラム - Webkaru
 * - 入力した2つの自然数の最小公倍数を求める -
 */
#include <stdio.h>
 
int main(void)
{
 
  int a, b, r, x, tmp;
 
  printf("2つの自然数を入力してください。\n");
  printf("1つ目の自然数 = ");
  scanf("%d", &a);
  printf("2つ目の自然数 = ");
  scanf("%d", &b);
 
  x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    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:
a.cc:1:30: error: expected constructor, destructor, or type conversion before '-' token
    1 |  * C言語のサンプルプログラム - Webkaru
      |                              ^
a.cc: In function 'int main()':
a.cc:11:3: error: 'printf' was not declared in this scope
   11 |   printf("2つの自然数を入力してください。\n");
      |   ^~~~~~
a.cc:5:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    4 | #include <stdio.h>
  +++ |+#include <cstdio>
    5 | 
a.cc:13:3: error: 'scanf' was not declared in this scope
   13 |   scanf("%d", &a);
      |   ^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: 'i' was not declared in this scope
   16 |   cout << A * i % B << endl;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    ll a,b;
    cin>>a>>b;
    ll x = a * b;
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }

    cout<<x/b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   13 |     tmp = a;
      |     ^~~
      |     tm
a.cc:19:3: error: 'r' was not declared in this scope
   19 |   r = a % b;
      |   ^
Language: C++

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

int main(){
  int a,b;cin >> a >> b;
  x = a*b;
  if(a<b){
    int tmp = a;
    b = a;
    b = tmp;
  }
  int r = a%b;
  while(r!=0){
    a = b;
    b = r;
    r = a%b;
  }
  cout << x/b;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x = a*b;
      |   ^
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<tuple>
#include<map>
#include<queue>
#include<math.h>
#include <numeric>
#include<iomanip>
#define rep(i, n) rep2(i,0,n)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define PI acos(-1);
typedef long long ll;
#define int ll
using namespace std;
const int MOD=1000000007;
//scanf("%d", &a); '\n';


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

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

int lcm(int a, int b)
{
	return a * b / gcd(a, b);
}
int main() {
	int n,m;
	cin >> n>>m;
	cout << lcm(n, m);
	}

	

Compiler output:
a.cc:15:13: error: '::main' must return 'int'
   15 | #define int ll
      |             ^~
a.cc:36:1: note: in expansion of macro 'int'
   36 | int main() {
      | ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long long;
#ifndef STOP_DEBUG
#define debug(...)\
    do { cerr << boolalpha << "[" << #__VA_ARGS__ << "]:";\
    debug_cerr(__VA_ARGS__); cerr << noboolalpha; } while (0)
#else
#define debug(...)
#endif
void debug_cerr(){ cerr << '\n'; }
template<class Head, class... Tail>
void debug_cerr(Head head, Tail... tail){
  cerr << ' ' << head;
  debug_cerr(tail...);
}
void chmax(lint &a, lint b) { if (a < b) a = b; }
void chmin(lint &a, lint b) { if (a > b) a = b; }
struct IoSetup{
    IoSetup(){
      ios::sync_with_stdio(false);
      cin.tie(nullptr);
      cout << fixed << setprecision(20);
      cerr << fixed << setprecision(20);
    }
} iosetup;


int main() {
  lint a, b;
  cin >> a >> b;
  cout << __lcm(a, b) << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:11: error: '__lcm' was not declared in this scope
   32 |   cout << __lcm(a, b) << '\n';
      |           ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  int m = (a > b) ? a : b;
    while (1) {
        if (m % a == 0 && m % b == 0) {
            printf("%d\n",m)
            break;
        }
        ++m;
    } 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected ';' before 'break'
   10 |             printf("%d\n",m)
      |                             ^
      |                             ;
   11 |             break;
      |             ~~~~~
Language: C++

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

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

    int a,b;
    cin>>a>>b;
    int ans=a*b/gcd(a,b);x

    cout<<ans<<endl;

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: 'x' was not declared in this scope
   18 |     int ans=a*b/gcd(a,b);x
      |                          ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  long a, b, c=0, d=0, e, f, g, n;
  string s, k, t={};
  cin >> a >> b;
  int x;
  x=a*b;
  int y;
  if(a<b){
    y=a;
    a=b;
    b=y;
  }
  
  int r;
  r=a%b;
  while(r!=0){
    a=b;
    b=r;
    r=a%b:
  }
  
  co(x/b);
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: expected ';' before ':' token
   23 |     r=a%b:
      |          ^
      |          ;
Language: Java

import java.util.*;
public class Main
{
    public static void main(String[] args)
    {
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;
        double dMax = Double.MIN_VALUE;
        double dMin = Double.MAX_VALUE;
        //
        Scanner sc = new Scanner(System.in);
        //int n = sc.nextInt();
        long a = sc.nextLong();
        long b = sc.nextLong();
        Compute c = new Compute();
        long ans = (a*b)/c.gcd(a,b);
        System.out.println(ans);


        sc.close();
    }

    public class Pair<F,S>
    {
        private final F first;
        private final S second;

        Pair(F first,S second)
        {
            this.first = first;
            this.second = second;
        }

        public void print() { System.out.println("("+this.first+","+this.second+")"); }

        //get
        public F first() {return this.first;}
        public S second() {return this.second;}

        @Override
        public boolean equals(Object object)
        {
            if (object instanceof Pair)
            {
                Pair pair = (Pair)object;
                return this.first==pair.first && this.second==pair.second;
            }else
            {
                return false;
            }
        }

        @Override
        public int hashCode()
        {
            return Objects.hash(first,second);
        }
    }
}

Compiler output:
Main.java:17: error: cannot find symbol
        Compute c = new Compute();
        ^
  symbol:   class Compute
  location: class Main
Main.java:17: error: cannot find symbol
        Compute c = new Compute();
                        ^
  symbol:   class Compute
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespace std;

long long minMulti(int A, int B)
{
    long long result = A;
    i = 1;
    while(1) {
        int tmp = A * i;
        if (tmp % B == 0) {
            return tmp;
        }
        i++;
    }
    return result;
}


int main()
{
    int A,B;
    cin >> A >> B;
    if (A < B) {
        cout << minMulti(B,A) << endl;
    } else if (A > B) {
        cout << minMulti(A,B) << endl;
    } else {
        cout << A << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'long long int minMulti(int, int)':
a.cc:7:5: error: 'i' was not declared in this scope
    7 |     i = 1;
      |     ^
Language: Java

import java.io.*;
import java.math.BigInteger;
import java.util.StringTokenizer;

public class C {

    public static void main(String[] args) throws IOException {
        init();

        BigInteger a = new BigInteger(next()), b = new BigInteger(next());
        System.out.println(a.multiply(b).divide(a.gcd(b)));
    }

    //Input Reader
    private static BufferedReader reader;
    private static StringTokenizer tokenizer;

    private static void init() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    private static String next() throws IOException {
        String read;
        while (!tokenizer.hasMoreTokens()) {
            read = reader.readLine();
            if (read == null || read.equals(""))
                return "-1";
            tokenizer = new StringTokenizer(read);
        }

        return tokenizer.nextToken();
    }
}

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

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define vi vector<int>
#define pii pair<int,int>
#define mii map<int,int>
#define mod 1000000007
int32_t main()
{
    int a,b;
  cin>>a>>b;
  cout<<boost::math::lcm(a,b)<<endl;
    return 0;
    
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:13:9: error: 'boost' has not been declared
   13 |   cout<<boost::math::lcm(a,b)<<endl;
      |         ^~~~~
Language: C

/*                    ___          |\    /|           ____   ____   ____  ____
   |     |    /\    /    \ |     | | \  / |    /\    |    \ |    \ |     |    \
   |_____|   /__\   \____  |_____| |  \/  |   /__\   |____/ |____/ |__   |____/
   |     |  /    \       \ |     | |      |  /    \  |      |      |     |   \
   |     | /      \ \____/ |     | |      | /      \ |      |      |____ |    \
*/
#include<bits/stdc++.h>
using namespace std;
#define isko_lga_dala_to_life_jhinga_la_la ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define lb lower_bound
#define ub upper_bound
#define pf push_front
#define pb push_back
#define ll long long
#define pi pair<int,int>
#define pl pair<long long,long long>
#define pld pair<long double,long double>
#define endl '\n'
#define loop(i,n) for(ll i=0;i<n;i++)
#define mod ((ll)(1e9+7))
#define in(x) scanf("%lld",&x)
#define in2(x,y) scanf("%lld %lld",&x,&y)
#define in3(x,y,z) scanf("%lld %lld %lld",&x,&y,&z)
#define inv(v) for(auto&i:v) in(i)
#define vl vector<ll>
#define ml unordered_map<ll,ll> 
#define vpl vector<pair<ll,ll>>
#define INF 0x3f3f3f3f

template<typename T, typename TT>
ostream& operator<<(ostream &os, const pair<T, TT> &t) { return os<<t.first<<" "<<t.second; }
template<typename T>
ostream& operator<<(ostream& os, const vector<T> &t) { for(auto& i: t) os<<i<<" "; return os; }

int main() {
    ll a,b;
    in2(a,b);
    cout<<((ll)(a*b))/(__gcd(a,b))<<endl;
    return 0;
}

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