criyle/codenet-compile-errors huggingface dataset:
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;
    d=div(a1,b1);
    cout<<a1/d1*b1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:5: error: 'd' was not declared in this scope; did you mean 'd1'?
   35 |     d=div(a1,b1);
      |     ^
      |     d1
a.cc:35:10: error: call of overloaded 'div(long long int&, long long int&)' is ambiguous
   35 |     d=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); }
      |   ^~~
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 a,b,d;
    cin>>a>>b;
    d=div(a,b);
    cout<<a/d*b;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: call of overloaded 'div(long long int&, long long int&)' is ambiguous
   35 |     d=div(a,b);
      |       ~~~^~~~~
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); }
      |   ^~~
Language: C++

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

int main(){
  int A, B, x, r, tnp;
  cin >> A >> 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;
  }
	cout << x / B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'tmp' was not declared in this scope; did you mean 'tnp'?
   11 |     tmp = A;
      |     ^~~
      |     tnp
Language: C++

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

int main(){
  int A, B, x, r, tnp;
  cin >> A >> 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;
  }
	cout << x / b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'a' was not declared in this scope
    7 |   x = a * b;
      |       ^
a.cc:7:11: error: 'b' was not declared in this scope
    7 |   x = a * b;
      |           ^
a.cc:11:5: error: 'tmp' was not declared in this scope; did you mean 'tnp'?
   11 |     tmp = a;
      |     ^~~
      |     tnp
Language: C++

#include<iostream>
using namespace std;
typedef long long int;
int a,b;
int gcd(int a,int b){
    return b?gcd(b,a%b):a;
}
int main(){
  cin>>a>>b;
  cout<<a*b/gcd(a,b)<<endl;
}


Compiler output:
a.cc:3:19: error: declaration does not declare anything [-fpermissive]
    3 | typedef long long int;
      |                   ^~~
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
 
int a,b;
 
 
int main( ) {
    scanf("%d%d",&a,&b);
    int g = __gcd(a,b);
    printf("%lld",1LL*g*a/g*b/g);
    return 0;

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

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

int main()
{
  int a,b,s;
  
  long c;
  
  cin >> a >> b;
  x=a;
  y=b;
  if(a<b)
  {
    s=a;
    a=b;
    b=s;
  }
  
  a=lcm(a,b);
  cout << a <<endl;
  
  return 0;
  
}

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

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

int main()
{
  int a,b,s,x,y;
  long c;
  
  cin >> a >> b;
  x=a;
  y=b;
  if(a<b)
  {
    s=a;
    a=b;
    b=s;
  }
  
    a=gcd(a,b)
 
  
  s=x*y/a;
  
  cout << s <<endl;
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:15: error: expected ';' before 's'
   19 |     a=gcd(a,b)
      |               ^
      |               ;
......
   22 |   s=x*y/a;
      |   ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'r' was not declared in this scope
   19 |   while(r!=0)
      |         ^
Language: C++

#include <iostream>

using namespace std;

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


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

#include <iostream>
#include <algorithm>

using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before 'return'
    8 |   cout<<(a*b)/__gcd(a,b)<<endl
      |                               ^
      |                               ;
    9 |   return 0;
      |   ~~~~~~
Language: C++

#include<bits/stdc++.h> 

#include <boost/math/common_factor.hpp> 
using namespace std; 
int main() 
{ 
  int a,b;
  cin>>a>>b;
  cout<<lcm(a,b);

  return 0;
} 

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

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

int main(){
  int A,B,d,mgd;
  cin >>A >> B;
  d=1;
  mgd=1;
  if(A>B){
    for(int i=0;i<A;i++){
      if(A%d==0 && B%d==0){
        mgd=d; //最大公約数
        d++;
      }else{
        break;
      }
    }
    if(A<B){
    for(int i=0;i<B;i++){
      if(A%d==0 && B%d==0){
        mgd=d; //最大公約数
        d++;
      }else{
        break;
      }
    }
    cout << (A*B)/d << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:9:10: note: to match this '{'
    9 |   if(A>B){
      |          ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

#define rep(i,j,n) for(i=j;i<n;i++)
#define repi(i,j,n) for(i=j;i>n;i--)
#define inf 100001
#define M 1000000007
#define ll long long
#define vll vector<long long>
#define vi vector<int>
#define pll pair<long long,long long>
#define pii pair<int,int>
#define vpii vector<pair<int,int> >
#define vpll vector<pair<long long,long long> >
#define pb push_back
#define pf pop_front
#define mp make_pair
#define F first
#define S second


ll power(ll a,ll m,ll mod){
	ll ans=1;
	while(m){
		if(m%2){
			ans*=a;
			ans%=(mod);
		}
		a=(a*a)%(mod);
		m>>=1;
	}
	return ans;
}


void init(long long* a,long long n,long long val){
	for(long long i=0;i<n;i++)
		a[i]=val;
}



int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);	
	ll t=1,i,j;
	ll n;
	ll a,b;
	cin>>a>>b;
	n=_gcd(a,b);
	cout<<a*b/n;
	return 0;
}

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

#include <cmath>
using namespace std;
 
int main()
{
  long int a,b;
  cin>>a>>b;
 for(int i = 1; i <= b; i++){
    if((a * i) % b == 0){
      cout << a * i << endl;
      break;
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a>>b;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cmath>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:10:7: error: 'cout' was not declared in this scope
   10 |       cout << a * i << endl;
      |       ^~~~
a.cc:10:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |       cout << a * i << endl;
      |                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cmath>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'B' was not declared in this scope
    9 |  for(int i = 1; i <= B; i++){
      |                      ^
a.cc:10:9: error: 'A' was not declared in this scope
   10 |     if((A * i) % B == 0){
      |         ^
Language: C++

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

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

int main(void)
{
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ll a, b;
  cin >> a >> b;
  cout << (a*b)/gcd(a,b) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'long long int gcd(long long int, long long int)':
a.cc:10:23: error: expected ';' before '}' token
   10 |     return gcd(b, a%b)
      |                       ^
      |                       ;
   11 | }
      | ~
Language: C++

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

int main() {
  int A, B;
  cin >> A >> B;
  int n = 0;
  while (n*A%B!=0) n++;
  int 64_t ans = n*A;
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected unqualified-id before numeric constant
    9 |   int 64_t ans = n*A;
      |       ^~~~
a.cc:10:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: expected ';' before 'break'
   18 |         cout<<i
      |                ^
      |                ;
   19 |         break;
      |         ~~~~~   
a.cc:35:16: error: expected ';' before 'break'
   35 |         cout<<i
      |                ^
      |                ;
   36 |         break;
      |         ~~~~~
Language: C++

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

int main() {
  long a, b, temp;
  cin >> a >> b;
  temp = 0;
  
  while(a % b != 0){ /* calc gcd(a,b) */
    temp = b;
    b = a % b;
    a = temp;
  }
  long lcm = c*d / b; /* lcm(a,b) == a*b/gcd(a,b) */
  cout << lcm << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'c' was not declared in this scope
   14 |   long lcm = c*d / b; /* lcm(a,b) == a*b/gcd(a,b) */
      |              ^
a.cc:14:16: error: 'd' was not declared in this scope
   14 |   long lcm = c*d / b; /* lcm(a,b) == a*b/gcd(a,b) */
      |                ^
Language: Java

import java.util.Scanner;

public class Main2 {

    public static void main(String[] args) {
        // ABC148C - Snack

        Scanner sc = new Scanner(System.in);

        long a = (long)sc.nextInt();
        long b = (long)sc.nextInt();

        long x = 0;
        
        for (int i = 1; i <= b; i++) {
            x = a * i;
            if (x % b == 0) {
                break;
            }
        }
        
        System.out.println(x);
    }
}


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

#include <iostream>
#include <stdio.h>
#include <bits/stdc++.h>
#include <numeric>
#include <string>
using namespace std;
long lcm(long a, long b){return (a*b/__gcd(a,b));}
void main()
{
    long a,b;
    cin >> a >> b;
    cout << lcm(a,b);
}


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

#include <stdio.h>
 
int main(void)
{
  int a, b, r, x, tmp;
  scanf("%d", &a);
  scanf("%d", &b);
  if(a==b){return -1;}
  if(!(1<=ab||<=100000)){return -1;}
  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;
  }
  printf("%d", x/b);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'ab' was not declared in this scope; did you mean 'b'?
    9 |   if(!(1<=ab||<=100000)){return -1;}
      |           ^~
      |           b
a.cc:9:15: error: expected primary-expression before '<=' token
    9 |   if(!(1<=ab||<=100000)){return -1;}
      |               ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int i,a,b,minbei;
scanf("%d%d,&a,&b);
i=(a<b)?a:b;
for(;!(i%a==0&&i%b==0);i++);
printf("minbei=%d\n",i);
}

Compiler output:
a.cc:6:7: warning: missing terminating " character
    6 | scanf("%d%d,&a,&b);
      |       ^
a.cc:6:7: error: missing terminating " character
    6 | scanf("%d%d,&a,&b);
      |       ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:12: error: expected ')' before ';' token
    7 | i=(a<b)?a:b;
      |            ^
      |            )
a.cc:6:6: note: to match this '('
    6 | scanf("%d%d,&a,&b);
      |      ^
Language: C++

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

Compiler output:
a.cc:1:15: warning: extra tokens at end of #include directive
    1 | #include<>bits/stdc++.h>
      |               ^
a.cc:1:9: fatal error: >bit: No such file or directory
    1 | #include<>bits/stdc++.h>
      |         ^~~~~~
compilation terminated.
Language: C++

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

int main() {
  
  int a, b;
  cin >> a >> b;
  
  int aa, bb;
  aa=max(a,b);
  bb=min(a,b);
  r=aa%bb;
  while(r!=0){
    aa=bb;
    bb=r;
    r=aa%bb;
  }
  
  cout << a*b/bb << endl;
}

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

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

int main() {

  int A, B;
  cin >> A >> B;
  long long int ans;
  ans = a * b / lcm(a, b);
  cout << ans << endl;
    
}


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

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

int main() {
  
  int a, b;
  cin >> a >> b;
  
  int aa, bb;
  aa=max(a,b);
  bb=min(a,b);
  r=aa%bb;
  while(r!=0){
    aa=bb;
    bb=r;
    r=aa%bb;
  }
  
  cout << a*b/bb << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:6: error: 'max' was not declared in this scope; did you mean 'std::max'?
   10 |   aa=max(a,b);
      |      ^~~
      |      std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:11:6: error: 'min' was not declared in this scope; did you mean 'std::min'?
   11 |   bb=min(a,b);
      |      ^~~
      |      std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:12:3: error: 'r' was not declared in this scope
   12 |   r=aa%bb;
      |   ^
a.cc:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout << a*b/bb << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   cout << a*b/bb << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int a,b;
  scanf("%d%d",&a,&b);
  prinf("%lld",a*b);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   prinf("%lld",a*b);
      |   ^~~~~
      |   printf
Language: C++

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

int main() {
  
  int a, b;
  cin >> a >> b;
  
  int aa, bb;
  aa=max(a,b);
  bb=min(a,b);
  r=aa%bb;
  while(r!=0){
    aa=bb;
    bb=r;
    r=aa%bb;
  }
  
  cout << a*b/r << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:6: error: 'max' was not declared in this scope; did you mean 'std::max'?
   10 |   aa=max(a,b);
      |      ^~~
      |      std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:11:6: error: 'min' was not declared in this scope; did you mean 'std::min'?
   11 |   bb=min(a,b);
      |      ^~~
      |      std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:12:3: error: 'r' was not declared in this scope
   12 |   r=aa%bb;
      |   ^
a.cc:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout << a*b/r << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   cout << a*b/r << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before '<' token
   12 |     cout <<< std::lcm(a,b);
      |            ^
Language: C++

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

int main(){
    int a,b;
    cin >> a >>b;
    vector<int>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};
    set<int>mst_s{};
    for(int i=0; i < ssu.size() ; i++){
        int tem_s=ssu[i];
        if(a/tem_s>0){
            mst_s.insert(tem_s);
            while(a/tem_s>0){
                a/=tem_s;
            }
        }
    }
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        if(b/tem_s>0){
            mst_s.insert(tem_s);
            while(b / tem_s > 0){
                b/=tem_s;
            }
        }
    }
    int ans=1;
    auto itr = mst_s.begin();
    for(itr;itr!=mst_s.end();++itr){
        ans *= *itr;
    }
    cout << *ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:13: error: invalid type argument of unary '*' (have 'int')
   32 |     cout << *ans <<endl;
      |             ^~~~
Language: C++

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

int main() {
  
  int a, b;
  cin >> a >> b;
  
  aa=max(a,b);
  bb=min(a,b);
  r=aa%bb;
  while(r!=0){
    aa=bb;
    bb=r;
    r=aa%bb;
  }
  
  cout << a*b/r << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'aa' was not declared in this scope; did you mean 'a'?
    9 |   aa=max(a,b);
      |   ^~
      |   a
a.cc:9:6: error: 'max' was not declared in this scope; did you mean 'std::max'?
    9 |   aa=max(a,b);
      |      ^~~
      |      std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:10:3: error: 'bb' was not declared in this scope; did you mean 'b'?
   10 |   bb=min(a,b);
      |   ^~
      |   b
a.cc:10:6: error: 'min' was not declared in this scope; did you mean 'std::min'?
   10 |   bb=min(a,b);
      |      ^~~
      |      std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:11:3: error: 'r' was not declared in this scope
   11 |   r=aa%bb;
      |   ^
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |   cout << a*b/r << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |   cout << a*b/r << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: 'r' was not declared in this scope
   16 |         while (r !=0){
      |                ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int gcm(int a, int b ) {
int c;
while (b != 0) {
c = a % b;
a = b;
b = c;
}
return a;
}
int main() {
int a, b;
cin >> a >> b;
  int d;
  d= gcm(a, b);
  int e;
  e= a/d*b;
cout << e << endl;
}


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

import java.util.Scanner;
import java.util.Arrays;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int[] ax = new int[a];
    int[] bx = new int[b];
    int ay = 0;
    int by = 0;
    int az = a;
    int bz = b;
    for(int i = 2;i < a;i++){
      if(az % i == 0){
   //     System.out.println(i);
 //       System.out.println(a);        
        az = az / i;
        ax[ay] = i;
        i--;
        ay++;
      }
    }
    for(int j = 2;j < b;j++){
      if(bz % j == 0){
        bz = bz / j;
        bx[by] = j;
        j--;
        by++;
      }
    }
    for(int c = 0;c <= ay;c++){
      for(int d = 0;d <= by;d++){
        if(ax[c] == bx[d] && ax[c] != 1){
          ax[d] = 1;
        }
      }
    }
    int ans = 0;
     for(int e = 0;e <= ay;e++){
        ans *= ax[e];
        ans *= bx[e];
     }
    System.out.pritnln(ans);
 //   System.out.println(Arrays.toString(ax));
   // System.out.println(Arrays.toString(bx));    
  }
}

Compiler output:
Main.java:45: error: cannot find symbol
    System.out.pritnln(ans);
              ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
  int r,a,b;
  cin>>a>>b;
  int r=lcm(a,b);
  cout<<r;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: redeclaration of 'int r'
    6 |   int r=lcm(a,b);
      |       ^
a.cc:4:7: note: 'int r' previously declared here
    4 |   int r,a,b;
      |       ^
a.cc:6:9: error: 'lcm' was not declared in this scope
    6 |   int r=lcm(a,b);
      |         ^~~
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: 'r' was not declared in this scope
   16 |         while(r!=0){
      |               ^
a.cc:21:18: error: expected ';' before 'cout'
   21 |         d = d / e
      |                  ^
      |                  ;
   22 |         cout << d <<endl;
      |         ~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int r,a,b;
  cin>>a>>b;
  r=lcm(a,b);
  cout<<r;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'lcm' was not declared in this scope
    6 |   r=lcm(a,b);
      |     ^~~
Language: C

#include <stdio.h>
 
int GCD(int x, int y);/*最大公約数を引数にもつ関数*/
int LCM(int x, int y);/*最小公倍数を引数にもつ関数*/
 
int main(){
int x,y,LCM_num;
 
scanf("%d", &x);
scanf("%d", &y);
 
LCM_num = LCM(x,y);
printf("%d",LCM_num);
return 0;
}
 
int GCD(int x, int y){
int r;
while((r = x%y) != 0){/*ユークリッドの互除法*/
x=y;
y=r;
}
return y;
}
 
int LCM(int x, int y){
return ((x*y)/GCD(x,y));
}
#include <　stdio.h　>

int GCD(int x, int y);/*最大公約数を引数にもつ関数*/
int LCM(int x, int y);/*最小公倍数を引数にもつ関数*/

int main(){
int x,y,LCM_num;

scanf("%d", &x);
scanf("%d", &y);

LCM_num = LCM(x,y);
printf("%d",LCM_num);
return 0;
}

int GCD(int x, int y){
int r;
while((r = x%y) != 0){/*ユークリッドの互除法*/
x=y;
y=r;
}
return y;
}

int LCM(int x, int y){
return ((x*y)/GCD(x,y));
}



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

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

int main(){
    int a,b;
    cin >> a >>b;
    vector<int>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};
    set<int>mst_s{};
    for(int i=0; i < ssu.size() ; i++){
        int tem_s=ssu[i];
        if(a/tem_s>0){
            mst_s.insert(tem_s);
            while(a/tem_s>0){
                a/=tem_s;
            }
        }
    }
    for(int i=0;i<ssu.size();i++){
        int tem_s=ssu[i];
        if(b/tem_s>0){
            mst_s.insert(tem_s);
            while(b / tem_s > 0){
                b/=tem_s;
            }
        }
    }
    int ans=0;
    auto itr = mst_s.begin();
    for(itr;itr!=mst_s.end();++itr){
        ans *= *itr;
    }
    cout >> *ans >>end;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:13: error: invalid type argument of unary '*' (have 'int')
   32 |     cout >> *ans >>end;
      |             ^~~~
Language: Java

import java.util.*;

public class C{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();

		System.out.println(lcm(A, B));
	}

	public static int lcm(int A, int B){
		int temp;
		int C = A;
		C *= B;
		while((temp = A%B) != 0){
			A = B;
			B = temp;
		}
		return C / B;
	}
}


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

#include <iostream>
using namespace std;
 
int main(){
  int A, B;
  cin >> A >> B;
  for (int i = 0; i < B; i++){
    if ( A * ( i + 1 ) % B == 0 ){
      cout << A * ( i + 1 );
      break
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |       break
      |            ^
      |            ;
   11 |     }
      |     ~
Language: C

#include <　stdio.h　>

int GCD(int x, int y);/*最大公約数を引数にもつ関数*/
int LCM(int x, int y);/*最小公倍数を引数にもつ関数*/

int main(){
int x,y,LCM_num;

scanf("%d", &x);
scanf("%d", &y);

LCM_num = LCM(x,y);
printf("%d",LCM_num);
return 0;
}

int GCD(int x, int y){
int r;
while((r = x%y) != 0){/*ユークリッドの互除法*/
x=y;
y=r;
}
return y;
}

int LCM(int x, int y){
return ((x*y)/GCD(x,y));
}

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

#include <iostream>
using namespace std;
 
int main(){
  int A, B;
  cin >> A >> B;
  for (int i = 0; i < B; i++){
    if ( A * ( i + 1 ) % B == 0 ){
      cout << A * ( i + 1 );
      break
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |       break
      |            ^
      |            ;
   11 |     }
      |     ~
Language: C++

#include<iostream>

using namespace std;

int main(void)
{
  int a,b;
  
  cin>>a>>b;
  
  int c=1;
  
  if(a<b)
  {
    while(true)
    {
      if((b*c}%a==0)
         cout<<b*c<<endl;
         
         c++;
     }
   }
   else{
         while(true)
         {
           if(a*c%b==0)
             cout<<a*c<<endl;
           
           c++;
         }
   }
         
         }
         

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: expected ')' before '}' token
   17 |       if((b*c}%a==0)
      |          ~   ^
      |              )
a.cc:17:14: error: expected ')' before '}' token
   17 |       if((b*c}%a==0)
      |         ~    ^
      |              )
a.cc:17:14: error: expected primary-expression before '}' token
a.cc:17:15: error: expected primary-expression before '%' token
   17 |       if((b*c}%a==0)
      |               ^
a.cc: At global scope:
a.cc:23:4: error: expected unqualified-id before 'else'
   23 |    else{
      |    ^~~~
a.cc:33:10: error: expected declaration before '}' token
   33 |          }
      |          ^
Language: C++

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

int mAin(){
    int A, B;
    cin >> A >> B;
    int x = A * B, tmp;
 
  /* 自然数 A > B を確認・入替 */
  if(A<B){
    tmp = A;
    A = B;
    B = tmp;
  }
 
  /* ユークリッドの互除法 */
  int 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:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <Bits/stdc++.h>
using nAmespAce std;

int mAin(){
    int A, B;
    cin >> A >> B;
    int x = A * B, tmp;
 
  /* 自然数 A > B を確認・入替 */
  if(A<B){
    tmp = A;
    A = B;
    B = tmp;
  }
 
  /* ユークリッドの互除法 */
  int r = A % B;
  while(r!=0){
    A = B;
    B = r;
    r = A % B;
  }
    cout << x / B << endl;
}

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

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

int mAin(){
    int A, B;
    cin >> A >> B;
    int x = A * B, tmp;
 
  /* 自然数 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:17:3: error: 'r' was not declared in this scope
   17 |   r = A % B;
      |   ^
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
Language: C++

#include <Bits/stdc++.h>
using nAmespAce std;

int mAin(){
    int A, B;
    cin >> A >> B;
    int x = A * B, tmp;
 
  /* 自然数 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:1:10: fatal error: Bits/stdc++.h: No such file or directory
    1 | #include <Bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {

  int A, B;
  cin >> A >> B;
  int a, b;
  a = max(A, B);
  b = min(A, B);
  while (a % b != 0) {
    c = a;
    d = b;
    a = d;
    b = c % d;
  }
  int ans;
  ans = A * B / b;
  cout << ans << endl;
    
}


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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

int main(void){
    int A,B; cin>>A>>B;
    int ex = 1;
    while(1){
        while(1){
            if(A%i==0&&B%i==0){
                A /= i;
                B /= i;
                ex *= i;
                break;
            }
            i++;
        }
        if(i>A/2||i>B/2)break;
    }
    cout << ex*A*B << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: 'i' was not declared in this scope
   13 |             if(A%i==0&&B%i==0){
      |                  ^
a.cc:19:13: error: 'i' was not declared in this scope
   19 |             i++;
      |             ^
a.cc:21:12: error: 'i' was not declared in this scope
   21 |         if(i>A/2||i>B/2)break;
      |            ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  long A,B,C,A2,B2,C2;
      cin>>A>>B;              //外部入力読み込み方法
   A2=A;
   B2=B;
   C=A%B;
  while (C!=0){
   
    A=B;
    B=C;
    C=A%B;
    
   }  
  
  C2=A2*B2/B

  cout<<C2 
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before 'cout'
   19 |   C2=A2*B2/B
      |             ^
      |             ;
   20 | 
   21 |   cout<<C2
      |   ~~~~
Language: C++

#include<iostream>

using namespace std;

int main(){
  long A,B,C,A2,B2,C2;
      cin>>A>>B;              //外部入力読み込み方法
   A2=A;
   B2=B;
   C=A%B;
  while (C!=0){
   
    A=B;
    B=C;
    C=A%B;
    
   }  
  
  C2=A2*B2/B

  Cout<<C2 
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before 'Cout'
   19 |   C2=A2*B2/B
      |             ^
      |             ;
   20 | 
   21 |   Cout<<C2
      |   ~~~~
Language: C++

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

int main()
{
  int i=0;
  int64_t a[100],b[100],c,
  
  cin >> a[0] >>b[0];
  
  if(a<b)
  {
    c=a[0];
    a[0]=b[0];
    b[0]=c;
  }
  
  
  for(i=0;i<100;i++)
  {
  a[i+1]=a[i];
  b[i+1]=b[i];
  while(a[i+1]<b[i+1])
  {
   a[i+1]=a[i+1]-b[i+1];
    i++;
  }
  if(a[i+1]==0)
  {
   cout << b[i-1]<<endl;
    break;
  }
  else{
    a[i+2]=b[i+1];
    b[i+2]=i;
  	}
  
  
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected initializer before '>>' token
    9 |   cin >> a[0] >>b[0];
      |       ^~
Language: C++

#include <stdio.h>
int mmc(int num1,int num2)
{
int a,b,resto;
 a = num1;
 b = num2;
do
{
 resto = a%b;
 a = b;
 b = resto;
}
while(resto != 0);

return(num1*num2)/a;

int main(void)
{
int a;
int b;
scanf("%d %d",&a,&b);
int resu;
resu = mmc(a,b);
if(resu > 100000)
{
printf("%d",a*b);
}
else
{
printf("%d",resu);
}
return(0);
}

Compiler output:
a.cc: In function 'int mmc(int, int)':
a.cc:18:1: error: a function-definition is not allowed here before '{' token
   18 | {
      | ^
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

int main()
{
  int i=0;
  int64_t a[100],b[100],c,
  
  cint >>a[0] >>b[0];
  
  if(a<b)
  {
    c=a[0];
    a[0]=b[0];
    b[0]=c;
  }
  
  
  for(i=0;i<100;i++)
  {
  a[i+1]=a[i];
  b[i+1]=b[i]:
  while(a[i+1]<b[i+1])
  {
   a[i+1]=a[i+1]-b[i+1];
    i++;
  }
  if(a[i+1]==0)
  {
   cout << b[i-1];
    break;
  }
  else{
    a[i+2]=b[i+1];
    b[i+2]=i;
  	}
  
  
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected initializer before '>>' token
    9 |   cint >>a[0] >>b[0];
      |        ^~
a.cc:22:14: error: expected ';' before ':' token
   22 |   b[i+1]=b[i]:
      |              ^
      |              ;
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();

    for(int i=0;i<100;i++){
for(int j=;j<100;j++){
  if(A*i==B*j){
System.out.println(A*i);
    break;
  }
}

  }
}

                  


Compiler output:
Main.java:11: error: illegal start of expression
for(int j=;j<100;j++){
          ^
Main.java:19: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int gcm(int x, int y ) {
int c;
while (y != 0) {
c = x % y;
x = y;
y = c;
}
return a;
}
int main() {
int a, b;
cin >> a >> b;
  int d;
  d= gcm(a, b);
  int e;
  e= a/d*b;
cout << e << endl;
}

Compiler output:
a.cc: In function 'int gcm(int, int)':
a.cc:10:8: error: 'a' was not declared in this scope
   10 | return a;
      |        ^
Language: C++

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


Compiler output:
a.cc: In function 'int gcd(int, int)':
a.cc:8:25: error: expected ';' before '}' token
    8 |     return gcd(b, a % b)
      |                         ^
      |                         ;
    9 | }
      | ~
Language: C++

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

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

int main(void) {
int a, b;
cin>> a>> b;
  int d;
  d= gcm(a, b);
  int e;
  e= a/d*b
cout << e << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: expected ';' before 'cout'
   20 |   e= a/d*b
      |           ^
      |           ;
   21 | cout << e << endl;
      | ~~~~
Language: C++

#include <cstdio>
using namespace std;
int main()
{
    cin.tie(0);
   	ios::sync_with_stdio(false);
    int n1, n2, max;
    cin >> n1 >> n2;
    
    // maximum value between n1 and n2 is stored in max
    max = (n1 > n2) ? n1 : n2;
    do
    {
        if (max % n1 == 0 && max % n2 == 0)
        {
            cout << max;
            break;
        }
        else
            ++max;
    } while (true);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin.tie(0);
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:9: error: 'ios' has not been declared
    6 |         ios::sync_with_stdio(false);
      |         ^~~
a.cc:16:13: error: 'cout' was not declared in this scope
   16 |             cout << max;
      |             ^~~~
a.cc:16:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include<numeric>
using namespacd std;
int main(){
  int m,n;
  cin >> m>> n;
  cout << lcm(m,n)<<endl;
  return 0;
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespacd'
    3 | using namespacd std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> m>> n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << lcm(m,n)<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:11: error: 'lcm' was not declared in this scope; did you mean 'std::lcm'?
    7 |   cout << lcm(m,n)<<endl;
      |           ^~~
      |           std::lcm
In file included from a.cc:2:
/usr/include/c++/14/numeric:188:5: note: 'std::lcm' declared here
  188 |     lcm(_Mn __m, _Nn __n) noexcept
      |     ^~~
a.cc:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << lcm(m,n)<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#!/usr/bin/env python3
import sys

def gcd(A,B):
    while B:
        A, B = B, A % B

    return A

def solve(A: int, B: int):
    print( (A*B) // gcd(A, B))
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

if __name__ == '__main__':
    main()


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:15:3: error: invalid preprocessing directive #Generated
   15 | # Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
      |   ^~~~~~~~~
a.cc:22:28: error: stray '#' in program
   22 |     A = int(next(tokens))  # type: int
      |                            ^
a.cc:23:28: error: stray '#' in program
   23 |     B = int(next(tokens))  # type: int
      |                            ^
a.cc:26:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   26 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'