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

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define ll      long long 
#define double      long double
#define pii     pair<int ,int>
#define pld     pair<ld ,ld>
#define all(v)  v.begin(),v.end()
#define F       first
#define S       second
#define mod     1000000007
#define pb      push_back
#define MP      make_pair
#define mset(x) memset(x, 0, sizeof(x));
#define ios     ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define inf     10000000000000007
#define PI 3.14159265
const int N=300005;
// ll a[N],BIT[N];
// void upd(ll x,ll y)
// {
//     for(;x<N;x+=x&-x)
//         BIT[x]+=y;
// }
// ll get(ll x)
// {
//     ll res=0;
//     for(;x;x-=x&-x)
//         res+=BIT[x];
//     return res;
// }
// void f(ll i,ll l,ll r){
//     ll lo,hi,mid,st,en;
//     lo=0;
//     hi=n-1;
//     st=n;
//     while(lo<=hi){
//         mid=(lo+hi)/2;
//         if(v[mid].F>=l) st=mid,hi=mid-1;
//         else lo=mid+1;
//     }
//     en=-1;
//     while(lo<=hi){
//         mid=(lo+hi)/2;
//         if(v[mid].F<=r) en=mid,lo=mid+1;
//         else hi=mid-1;
//     }
//     for(;st<=en;st++)
//         seg[i].pb(v[st].S);
//     mid=(l+r)/2;
//     f(2*i,l,mid);
//     f(2*i+1,mid+1,r);
// }
// ll g(ll i,ll l,ll r,ll x,ll y){
    
// }
// void run(int t){
//     cin>>n>>q;
//     for(i=0;i<n;i++)cin>>a[i];
//     for(i=0;i<n;i++)
//         v.pb(MP(a[i],i));
    
//     sort(all(v));
//     f(1,1,100000);
//     while(q--){
//         cin>>x>>y;
//         cout<<g(1,1,100000,x,y)<<"\n";
//     }


   


// }
 
void run()
{
    ll n,i;
    string s,t;
    cin>>n;
    cin>>s>>t;
    for(i=0;i<n;i++) cout<<s[i]<<t[i];
}
void setup(){
    ios;
    //cout << setprecision(20);
    // #ifndef ONLINE_JUDGE
    // freopen("input", "r", stdin);
    // freopen("output", "w", stdout);
    // #endif
}
 
signed main(){
    setup();
    int tests = 1;
    //cin >> tests;
    for(int i = 1; i <= tests; i++) run(i);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:97:40: error: too many arguments to function 'void run()'
   97 |     for(int i = 1; i <= tests; i++) run(i);
      |                                     ~~~^~~
a.cc:76:6: note: declared here
   76 | void run()
      |      ^~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <algorithm>
#include <iomanip>
#include <math.h>
#include <string.h>
using namespace std; using ll = long long; using pll = pair<ll, ll>;
using vl = vector<ll>; using vll = vector<vl>; using vpll = vector<pll>;
int ctoi(char c) {
	switch (c) {
	case '0': return 0; case '1': return 1; case '2': return 2;
	case '3': return 3; case '4': return 4; case '5': return 5;
	case '6': return 6; case '7': return 7; case '8': return 8;
	case '9': return 9;  default: return 0; }
}
bool pairCompare(const pll firstElof, pll secondElof)
{
	return firstElof.first > secondElof.first;
}
ll nod(ll F) { return log10(F) + 1; }
//**定義場所**//
//gcd, isPrime, eratos, modinv, bitSearch, dfs, bfs, dijkstra, UnionFind//
ll i, j, k, l, m, n; ll N, M, K, H, W, L; string S, T;
ll MOD = 1000000007; ll ans = 0; ll INF = LLONG_MAX;
vl flag, color; vll path;
//***********//
int main() {
	cin >> N;
	cin >> S >> T;
	string Ans;
	for (i = 0; i < N; i++) {
		Ans.push_back(S[i]);
		Ans.push_back(T[i]);
	}
	cout << Ans;
}

Compiler output:
a.cc:29:43: error: 'LLONG_MAX' was not declared in this scope
   29 | ll MOD = 1000000007; ll ans = 0; ll INF = LLONG_MAX;
      |                                           ^~~~~~~~~
a.cc:12:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   11 | #include <string.h>
  +++ |+#include <climits>
   12 | using namespace std; using ll = long long; using pll = pair<ll, ll>;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define PI pair<int,int>
#define ff first
#define ss second
#define boost ios_base::sync_with_stdio(false);cin.tie(NULL)
#define INF LONG_MAX
#define io freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);

int32_t main()
{
   // io;
    boost;
    string a,b,ans="";
    cin>>a>>b;
    for(int i=0;i<n;i++)
    {
        ans+=a[i];
        ans+=b[i];
    }
    cout<<ans<<endl;
}



Compiler output:
a.cc: In function 'int32_t main()':
a.cc:17:19: error: 'n' was not declared in this scope
   17 |     for(int i=0;i<n;i++)
      |                   ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  int n;
  string s, t;
  cin >> n >> s >> t;
  for (int i=0;i<n;++i)
    cou << s[i] << t[i];
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cou' was not declared in this scope
    9 |     cou << s[i] << t[i];
      |     ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define FORR(i,a,b)for(ll i=(a);i<=(b);i++)
#define repR(i,n) for(ll i=n;i>=0;i--)
#define all(v)(v).begin(),(v).end()
#define rall(v)(v).rbegin(),(v).rend()
#define F first
#define S second
#define pb push_back
#define pu push
#define COUT(x) cout<<(x)<<endl
#define PQ priority_queue<ll>
#define PQR priority_queue<ll,vector<ll>,greater<ll>>
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define mp make_pair
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define sz(x) (int)(x).size()
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
const ll MOD = 1000000007LL;
const ll INF = 1LL << 60;
using vll = vector<ll>;
using vvll = vector<vll>;
using vstr = vector<string>;
using pll = pair<ll, ll>;
int main(){
  string s,d;
  cin>>s>>d;
  for(int i=0;i<n;i++){
    cout<<s[i]<<d[i];
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s,t;
  int n;
  cin>>n;
  cin>>s>>t;
  for(int i=0;i<n;i++)
  {
    cout<<s[i]<<t[i];
    
  }

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

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define ll      long long 
#define double      long double
#define pii     pair<int ,int>
#define pld     pair<ld ,ld>
#define all(v)  v.begin(),v.end()
#define F       first
#define S       second
#define mod     1000000007
#define pb      push_back
#define MP      make_pair
#define mset(x) memset(x, 0, sizeof(x));
#define ios     ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define inf     10000000000000007
#define PI 3.14159265
const int N=300005;
// ll a[N],BIT[N];
// void upd(ll x,ll y)
// {
//     for(;x<N;x+=x&-x)
//         BIT[x]+=y;
// }
// ll get(ll x)
// {
//     ll res=0;
//     for(;x;x-=x&-x)
//         res+=BIT[x];
//     return res;
// }
// void f(ll i,ll l,ll r){
//     ll lo,hi,mid,st,en;
//     lo=0;
//     hi=n-1;
//     st=n;
//     while(lo<=hi){
//         mid=(lo+hi)/2;
//         if(v[mid].F>=l) st=mid,hi=mid-1;
//         else lo=mid+1;
//     }
//     en=-1;
//     while(lo<=hi){
//         mid=(lo+hi)/2;
//         if(v[mid].F<=r) en=mid,lo=mid+1;
//         else hi=mid-1;
//     }
//     for(;st<=en;st++)
//         seg[i].pb(v[st].S);
//     mid=(l+r)/2;
//     f(2*i,l,mid);
//     f(2*i+1,mid+1,r);
// }
// ll g(ll i,ll l,ll r,ll x,ll y){
    
// }
// void run(int t){
//     cin>>n>>q;
//     for(i=0;i<n;i++)cin>>a[i];
//     for(i=0;i<n;i++)
//         v.pb(MP(a[i],i));
    
//     sort(all(v));
//     f(1,1,100000);
//     while(q--){
//         cin>>x>>y;
//         cout<<g(1,1,100000,x,y)<<"\n";
//     }


   


// }
 
void run(int t)
{
    ll n,i;
    string s,t;
    cin>>n;
    cin>>s>>t;
    for(i=0;i<n;i++) cout<<s[i]<<t[i];
}
void setup(){
    ios;
    //cout << setprecision(20);
    // #ifndef ONLINE_JUDGE
    // freopen("input", "r", stdin);
    // freopen("output", "w", stdout);
    // #endif
}
 
signed main(){
    setup();
    int tests = 1;
    //cin >> tests;
    for(int i = 1; i <= tests; i++) run(i);
    return 0;
}


Compiler output:
a.cc: In function 'void run(int)':
a.cc:79:14: error: declaration of 'std::string t' shadows a parameter
   79 |     string s,t;
      |              ^
a.cc:76:14: note: 'int t' previously declared here
   76 | void run(int t)
      |          ~~~~^
Language: C++

#include <bits/stdc++.h>
using namespace std;
# define ll int
#define mmm 1000000007
#define pb push_back

									//nestedcode

 int main(){
   ios::sync_with_stdio(0);
   cin.tie(0); cout.tie(0);
   ll n,i;
   striing s,ss;
   cin>>n;
   cin>>s>>ss;
   for(i=0;i<n;i++){
   	cout<<s[i]<<ss[i];
   }
  
 }   

Compiler output:
a.cc: In function 'int main()':
a.cc:13:4: error: 'striing' was not declared in this scope
   13 |    striing s,ss;
      |    ^~~~~~~
a.cc:15:9: error: 's' was not declared in this scope
   15 |    cin>>s>>ss;
      |         ^
a.cc:15:12: error: 'ss' was not declared in this scope
   15 |    cin>>s>>ss;
      |            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long double PI = acos(-1);
typedef long long ll;
typedef pair<int64_t,int64_t> pll;
int dx[]={1,-1,0,0,1,-1,1,-1};
int dy[]={0,0,1,-1,1,-1,-1,1};
#define INF (2147483647)
#define mod (1000000007)
#define limit (7368791)
#define rep(i,a,b) for (int64_t i = (a); i < (b); i++)
#define REP(i,n) rep(i,0,n)
#define ALL(a) begin(a),end(a)
#define sz(s) (s).size()
#define pb push_back
#define mp make_pair
#define fi first
#define se second

void solve()
{
    int s1,s2;cin>>s1>>s2;
    REP(i,s1.size()){
        cout<<s1[i]<<s2[i];
    }cout<<endl;
}

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



Compiler output:
a.cc: In function 'void solve()':
a.cc:23:14: error: request for member 'size' in 's1', which is of non-class type 'int'
   23 |     REP(i,s1.size()){
      |              ^~~~
a.cc:11:47: note: in definition of macro 'rep'
   11 | #define rep(i,a,b) for (int64_t i = (a); i < (b); i++)
      |                                               ^
a.cc:23:5: note: in expansion of macro 'REP'
   23 |     REP(i,s1.size()){
      |     ^~~
a.cc:24:17: error: invalid types 'int[int64_t {aka long int}]' for array subscript
   24 |         cout<<s1[i]<<s2[i];
      |                 ^
a.cc:24:24: error: invalid types 'int[int64_t {aka long int}]' for array subscript
   24 |         cout<<s1[i]<<s2[i];
      |                        ^
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include <algorithm>
#include <functional>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define fro(i,j,n) for(int i=j;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
  #include<bits/stdc++.h>
#include <math.h>
#include <algorithm>
#include <functional>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define fro(i,j,n) for(int i=j;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
    int a;
    string x,y;
	cin >> x>> y;
    string ans="";
    fr(i,a){
      ans+=x[i];
      ans+=y[i];
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   30 | int main() {
      |         ^~
a.cc:30:9: note: remove parentheses to default-initialize a variable
   30 | int main() {
      |         ^~
      |         --
a.cc:30:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:30:12: error: a function-definition is not allowed here before '{' token
   30 | int main() {
      |            ^
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:15:12: note: to match this '{'
   15 | int main() {
      |            ^
Language: Java

import java.io.*;
import java.util.Random;
import java.util.StringTokenizer;

public class Task {

    public static void main(String[] args) {
        FastReader scan = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
        Task solver = new Task();
        int t = 1;
        while (t --> 0) solver.solve(1, scan, out);
        out.close();
    }

    static class Task {

        public void solve(int testNumber, FastReader scan, PrintWriter out) {
            int n = scan.nextInt();
            String a = scan.next(), b = scan.next();
            for(int i = 0; i < n; i++) {
                out.print(a.charAt(i));
                out.print(b.charAt(i));
            }
        }
    }

    static void shuffle(int[] a) {
        Random get = new Random();
        for (int i = 0; i < a.length; i++) {
            int r = get.nextInt(a.length);
            int temp = a[i];
            a[i] = a[r];
            a[r] = temp;
        }
    }

    static void shuffle(long[] a) {
        Random get = new Random();
        for (int i = 0; i < a.length; i++) {
            int r = get.nextInt(a.length);
            long temp = a[i];
            a[i] = a[r];
            a[r] = temp;
        }
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastReader(String s) throws FileNotFoundException {
            br = new BufferedReader(new FileReader(new File(s)));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}

Compiler output:
Main.java:5: error: class Task is public, should be declared in a file named Task.java
public class Task {
       ^
Main.java:16: error: class Task is already defined in package unnamed package
    static class Task {
           ^
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

long long lcm(long long a, long b) {  
    return (a * b) / __gcd(a, b);  
} 

int main() {
    long long n, m; cin >> n >> m;
    cout << lcm(n, m) << "\n";
}

Compiler output:
a.cc: In function 'long long int lcm(long long int, long int)':
a.cc:6:27: error: no matching function for call to '__gcd(long long int&, long int&)'
    6 |     return (a * b) / __gcd(a, b);
      |                      ~~~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   template argument deduction/substitution failed:
a.cc:6:27: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'long int')
    6 |     return (a * b) / __gcd(a, b);
      |                      ~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    long long n, m; cin >> n >> m;
    cout << __lcm(n, m) << "\n";
}

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

 /*

                   Ø¨ÙØ³Ù’Ù…Ù Ù±Ù„Ù„ÙŽÙ‘Ù°Ù‡Ù Ù±Ù„Ø±ÙŽÙ‘Ø­Ù’Ù…ÙŽÙ°Ù†Ù Ù±Ù„Ø±ÙŽÙ‘Ø­ÙÙŠÙ…Ù
                  Ù„Ø¢ Ø§ÙÙ„ÙŽÙ‡ÙŽ Ø§ÙÙ„Ù‘Ø§ Ø§Ù„Ù„Ù‘Ù‡Ù Ù…ÙØ­ÙŽÙ…ÙŽÙ‘Ø¯ÙŒ Ø±ÙŽØ³ÙÙˆÙÙ„ Ø§Ù„Ù„Ù‘Ù‡Ù
*/

/*
    Auther:   n0oO0o0Ob(None of them)
    from  :   https://n0oo0o0ob.sleek.page/

*/




#include <bits/stdc++.h>

using namespace std;
#define endl "\n"
#define pb push_back

                                        #define noob n0oO0o0Ob
// ---------------------------------
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef double db;
//----------------------------------
const ld PI = acos((ld)-1);
const int MOD = 1000000007;
//----------------------------------

int main()
{
    ios::sync_with_stdio(false);cin.tie(0);
    int a, b;
    cin >> a >> b;
    
    cout << std::lcm(a, b) << endl;
		
		
	}
	return 0;
}









Compiler output:
a.cc:43:9: error: expected unqualified-id before 'return'
   43 |         return 0;
      |         ^~~~~~
a.cc:44:1: error: expected declaration before '}' token
   44 | }
      | ^
Language: C++

#include <iostream>  
using namespace std;
 
ll gcd(ll a, ll b)  
{  
    if (a == 0) 
        return b;  
    return gcd(b % a, a);  
}  
 
ll lcm(ll a, ll b)  
{  
    return (a*b)/gcd(a, b);  
}  
 
int main()  
{  
    ll a, b;
    cin >> a >> b;
    cout << lcm(a, b) << endl;  
    return 0;  
} 

Compiler output:
a.cc:4:1: error: 'll' does not name a type
    4 | ll gcd(ll a, ll b)
      | ^~
a.cc:11:1: error: 'll' does not name a type
   11 | ll lcm(ll a, ll b)
      | ^~
a.cc: In function 'int main()':
a.cc:18:5: error: 'll' was not declared in this scope
   18 |     ll a, b;
      |     ^~
a.cc:19:12: error: 'a' was not declared in this scope
   19 |     cin >> a >> b;
      |            ^
a.cc:19:17: error: 'b' was not declared in this scope
   19 |     cin >> a >> b;
      |                 ^
a.cc:20:13: error: 'lcm' was not declared in this scope
   20 |     cout << lcm(a, b) << endl;
      |             ^~~
Language: C++

import math
A, B = map(int, input().split())

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

print(lcm(A, B))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
using namespace std;
int main()
{
    long long a,b;
    string max;
    cin>>a>>b;
    max = (a > b) ? a : b;

    do
    {
        if (max % a == 0 && max % b== 0)
        {
            cout << max;
            break;
        }
        else
            ++max;
    } while (true);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: no match for 'operator%' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'long long int')
   12 |         if (max % a == 0 && max % b== 0)
      |             ~~~ ^ ~
      |             |     |
      |             |     long long int
      |             std::string {aka std::__cxx11::basic_string<char>}
a.cc:12:33: error: no match for 'operator%' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'long long int')
   12 |         if (max % a == 0 && max % b== 0)
      |                             ~~~ ^ ~
      |                             |     |
      |                             |     long long int
      |                             std::string {aka std::__cxx11::basic_string<char>}
a.cc:18:13: error: no match for 'operator++' (operand type is 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   18 |             ++max;
      |             ^~~~~
Language: C++

# include "bits/stdc++.h"
 
using namespace std;
 
#define endl "\n"
typedef long long int ll;
#define f first
#define s second
 
#define SEND_HELP ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
inline void setPrecision(int n){cout.precision(n);}
 
//DEBUG
#define BR cerr<<endl
#define dbg(x) cerr<<(#x)<<": "<<x<<endl
#define dbgV(x) cerr<<(#x)<<": "; for(auto it: x) cerr<<it<<" "; cerr<<endl;
#define dbgS(x) cerr<<(#x)<<": "; for(auto it: x) cerr<<it<<" "; cerr<<endl;
#define dbgM(x) cerr<<(#x)<<": "; for(auto it: x) cerr<<"["<<it.f<<", "<<it.s<<"] "; cerr<<endl;
#define dbg2D(x) cerr<<(#x)<<": \n"; for(auto y: x) { for(auto it: y) cerr<<it<<" "; cerr<<endl; } cerr<<endl;
#define dbgA(x, n) cerr<<(#x)<<": "; for(int i=0;i<n;++i) cerr<<x[i]<<" "; cerr<<endl;
#define dbgVP(x) cerr<<(#x)<<": "; for(auto it: x) cerr<<"["<<it.f<<", "<<it.s<<"] "; cerr<<endl;
 
ll INF = 1e10;
int MOD = 1e9+7;

int main(){
	#ifndef ONLINE_JUDGE
        freopen("inputf.in", "r", stdin);
    #endif
    SEND_HELP

    int a, b;
    cin >> a >> b;
    cout << ((a * b) / __gcd(a * b));

    return 0;
}

/*

*/

Compiler output:
a.cc: In function 'int main()':
a.cc:34:29: error: no matching function for call to '__gcd(int)'
   34 |     cout << ((a * b) / __gcd(a * b));
      |                        ~~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

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

int main(){
  long A,B;cin>>A>>B;
  long count;
  int X=min(A,B);
  for(int i=1;i<=X;i++){
    if(A%i==0 && B%i==0) count=i;
  }
  cout<<A*B/count<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected '}' at end of input
   11 |   cout<<A*B/count<<endl;
      |                         ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:6:17: error: expected primary-expression before 'q'
    6 |   return gcd(ll q,ll p%q)
      |                 ^
a.cc:6:22: error: expected primary-expression before 'p'
    6 |   return gcd(ll q,ll p%q)
      |                      ^
a.cc:6:26: error: expected ';' before 'int'
    6 |   return gcd(ll q,ll p%q)
      |                          ^
      |                          ;
    7 | int main() {
      | ~~~                       
a.cc:7:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 | int main() {
      |         ^~
a.cc:7:9: note: remove parentheses to default-initialize a variable
    7 | int main() {
      |         ^~
      |         --
a.cc:7:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:7:12: error: a function-definition is not allowed here before '{' token
    7 | int main() {
      |            ^
Language: Java


public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
			
			int S = sc.nextInt();
			int T = sc.nextInt();
			int C =0;
			if(S>T) {
				C=T;
			}else {
				C=S;
			}
			
			
			int l =1;
			for(int i=C;i>1;i--) {
			if(Math.floorMod(S, i)==0) {
					if(Math.floorMod(T, i)==0){
						l=i;
						System.out.println("L is "+i);
						break;

					}
				}
			}
	
			
			System.out.println((long)S*(long)T/l);
	}	

}

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

#include <stdio.h>
#DEFINE long long LL

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

int main()
{
  LL int A,B;
  scanf("%lld %lld",&A,&B);
  printf("%lld",A*B/gcd(A,B) );

  return 0;
}


Compiler output:
main.c:2:2: error: invalid preprocessing directive #DEFINE
    2 | #DEFINE long long LL
      |  ^~~~~~
main.c:4:9: error: unknown type name 'LL'; did you mean 'NULL'?
    4 | int gcd(LL int a, LL int b)
      |         ^~
      |         NULL
main.c:4:19: error: unknown type name 'LL'; did you mean 'NULL'?
    4 | int gcd(LL int a, LL int b)
      |                   ^~
      |                   NULL
main.c: In function 'main':
main.c:14:3: error: 'LL' undeclared (first use in this function); did you mean 'NULL'?
   14 |   LL int A,B;
      |   ^~
      |   NULL
main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:5: error: expected ';' before 'int'
   14 |   LL int A,B;
      |     ^~~~
      |     ;
main.c:15:22: error: 'A' undeclared (first use in this function)
   15 |   scanf("%lld %lld",&A,&B);
      |                      ^
main.c:15:25: error: 'B' undeclared (first use in this function)
   15 |   scanf("%lld %lld",&A,&B);
      |                         ^
main.c:16:21: error: implicit declaration of function 'gcd' [-Wimplicit-function-declaration]
   16 |   printf("%lld",A*B/gcd(A,B) );
      |                     ^~~
Language: C++

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

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

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

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

template<typename T> T gcd(T a, T b){return(b?__gcd(a,b):a);} 
template<typename T> T lcm(T a, T b){return(a*(b/gcd(a,b)));}
void solve()
{   
    int a,b;
    cin >> a >> b;
    cout << lcm(a,b);
}
signed main()
{   
   FAST_IO
    int t=1;
   // cin>>t;   
    WL(t){ solve(); cout<<endl; }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: 'FAST_IO' was not declared in this scope
   14 |    FAST_IO
      |    ^~~~~~~
a.cc:17:8: error: 't' was not declared in this scope; did you mean 'tm'?
   17 |     WL(t){ solve(); cout<<endl; }
      |        ^
      |        tm
a.cc:17:5: error: 'WL' was not declared in this scope
   17 |     WL(t){ solve(); cout<<endl; }
      |     ^~
Language: C

#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main()
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    #endif
        ll t,n,m,i,a,b;
        cin>>a>>b;
        
        cout<<(a*b)/__gcd(a,b);
 }
    


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

#include<iostream>
#include <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: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<iostream>
using namespace std;
int main(){
  long a,b,max;
  cin>>a>>b;
  max=(n1>n2)?a:b;
  do{
    if(max%a==0 && max%b==0){
      cout<<max;
      break;
    }
    else
      ++max;
  }while(true);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'n1' was not declared in this scope
    6 |   max=(n1>n2)?a:b;
      |        ^~
a.cc:6:11: error: 'n2' was not declared in this scope
    6 |   max=(n1>n2)?a:b;
      |           ^~
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 c = 0;
		boolean d = true;
		for(int i = 0; d; i++){
			c += a;
			c = c % b;
			if(c == 0){
				System.out.orintln(a * (i + 1));
				d = false;
			}
		}		
	}
}

Compiler output:
Main.java:15: error: cannot find symbol
				System.out.orintln(a * (i + 1));
				          ^
  symbol:   method orintln(int)
  location: variable out of type PrintStream
1 error
Language: C++

#include <iostream>
#include <vector>
#include <numeric>
int a, b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'll' was not declared in this scope
    8 |   ll ans = (ll)std::lcm(a, b);
      |   ^~
a.cc:9:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   std::cout << ans << std::endl;
      |                ^~~
      |                abs
Language: C++

#Author: M@sud_P@rvez
import math
a,b=map(int,input().split())
print(a*b//math.gcd(a,b))

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Author
    1 | #Author: M@sud_P@rvez
      |  ^~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <cmath>
#include <stdint.h>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <set>
using namespace std;
 
//#define int long long
 

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

long long LCM(long long a, long long b){
	
	
return a/gcd(a, b) * b;  
	
	
}

 
int f(int x){
	
	
	int res = 0;
	
	while( x%2 == 0){
		
		x/=2;
		res++;
	}
	
	return res;
	
}

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








Compiler output:
a.cc:15:12: error: expected initializer before 'gcd'
   15 | long glong gcd(long long a, long long b){
      |            ^~~
a.cc: In function 'long long int LCM(long long int, long long int)':
a.cc:28:10: error: 'gcd' was not declared in this scope
   28 | return a/gcd(a, b) * b;
      |          ^~~
Language: C

#include <stdio.h>

int main(void){
        int x,y,r,z,g;

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

        z = x * y;

        if (x < y){
                g = x;
                x = y;
                y = g;
        }

        r = x % y;
        while (r != 0){
                x = y;
                y = r;
                r = x % y;
        }

        printf("%d\n", z / y);

        return 0;
}

~                                                                            ~                                                                            ~                                    

Compiler output:
main.c:28:1: error: expected identifier or '(' before '~' token
   28 | ~                                                                            ~                                                                            ~
      | ^
Language: C++

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

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>
#include<numeric>
#include <boost/math/common_factor.hpp> 
#define int long long
using namespace std;
int main()
{
 int a,b;
       cin>>a>>b;
       cout<<boost::math::lcm(a,b);
}

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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '>>' token
    6 |   int A>>B;
      |        ^~
a.cc:7:8: error: 'A' was not declared in this scope
    7 |   cin>>A>>B;
      |        ^
a.cc:7:11: error: 'B' was not declared in this scope
    7 |   cin>>A>>B;
      |           ^
Language: C

#include<stdio.h>

int main(void){

long int a,b,i=2;ans=1;

scanf("%d %d",&a,&b);

if(a==1){printf("%d",b);}
else if(b==1){printf("%d",a);}
else{
while(i<=a||i<=b){
if(a%i==0&&b%i==0){
  a=a/i;b=b/i;
  ans=ans*i;
}else{
  i++;
}
}

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

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: 'ans' undeclared (first use in this function)
    5 | long int a,b,i=2;ans=1;
      |                  ^~~
main.c:5:18: 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 C = A * B;
  cin >> C;
  int r;
  if(A < B){
    swap(A,B);
  }
r = a % b;
  while(r!=0){
    A = B;
    B = r;
    r = A % B;
  }
 cout << C / B << endl;
}

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

#include<stdlib.h>
int main()
{ int a,b,i=1;
cin>>a>>b;
if(a>b)
{ while(a/b!=0)
  a*=i++;
return a;
}
else
{while(b/a!=0)
  b*=i++;
return b;
}
}

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

import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        BigInteger c = BigInteger.valueOf(a).multiply(BigInteger.valueOf(b));
        int d = a % b;
        while(d != 0) {
            a = b;
            b = d;
            d = a % b;
        }
        System.out.println(c.divide(BigInteger.valueOf(b)));
    }

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

#include<stdio.h>

int main(void) {
    long long a, b, c,d,i;
    scanf_s("%lld %lld", &a, &b);
    
    for (i = 1; i <= b; i++) {
        d = a * i;
        if (d % b == 0) {
            break;
        }
       
    }
    printf("%lld", d);
    return 0;
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.math.BigInteger;
import java.io.PrintWriter;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    long a = Long.parseLong(str[0]);
    long b = Long.parseLong(str[1]);
    
    long min = a<b?a:b;
    long max = a>b?a:b;
    
    for(long i=1; i<=max; i++) {
      if(min*i%max==0) {
        System.out.println(min*i);
        break;
      }
    }
  }

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

import java.util.Scanner;
public class MAin {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc=new Scanner(System.in);
		
		int a=sc.nextInt();
		int b=sc.nextInt();
		
		int temp;
		long c = a;
		c *= b;
		while((temp = a%b)!=0) {
			a = b;
			b = temp;
			break;
		}
		System.out.println(c);
	}
		
	}

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

import java.util.Scanner;
public class TestC_148 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		//最小公倍数を入れる
		long lcm = 0;

		//最小公倍数を求める
		int i=1;
		while(i<=b){
			if((long)a * i % b == 0) {
				lcm = (long)a*i;
				break;
			}
			else{
				i++;
			}
		}

		 System.out.println(lcm);
		 sc.close();
	}
}

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

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdint>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <valarray>
#include <vector>

#if __has_include(<string_view>)
#include <string_view>
#endif
#if __has_include(<optional>)
#include <optional>

template <class T>
constexpr const T& max(const T& a, const std::optional<T>& b)
{
    return b ? max(a, *b) : a;
}

template <class T>
constexpr const T& max(const std::optional<T>& a, const T& b)
{
    return a ? max(*a, b) : b;
}

template <class T>
constexpr const std::optional<T>& max(const std::optional<T>& a, const std::optional<T>& b)
{
    if (a && b)
        return *a > *b ? a : b;
    else if (a)
        return a;
    else
        return b;
}

template <class T>
constexpr const T& min(const T& a, const std::optional<T>& b)
{
    return b ? min(a, *b) : a;
}

template <class T>
constexpr const T& min(const std::optional<T>& a, const T& b)
{
    return a ? min(*a, b) : b;
}

template <class T>
constexpr const std::optional<T>& min(const std::optional<T>& a, const std::optional<T>& b)
{
    if (a && b)
        return *a < *b ? a : b;
    else if (a)
        return a;
    else
        return b;
}

#endif
#if __has_include(<any>)
#include <any>
#endif

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

using namespace std;

template <class T, class U>
istream& operator>>(istream& is, pair<T, U>& pair)
{
    is >> pair.first >> pair.second;
    return is;
}

template <class T>
istream& operator>>(istream& is, vector<T>& collection)
{
    for (auto& item : collection)
        is >> item;
    return is;
}

template <class T>
istream& operator>>(istream& is, valarray<T>& collection)
{
    for (auto& item : collection)
        is >> item;
    return is;
}

template <class T>
T peak_and_pop(std::queue<T>& q)
{
    assert(!q.empty());
    T t = move(q.front());
    q.pop();
    return t;
}

template <class T>
T peak_and_pop(std::priority_queue<T>& q)
{
    assert(!q.empty());
    T t = move(q.top());
    q.pop();
    return t;
}

template <class T>
T peak_and_pop(std::stack<T>& q)
{
    assert(!q.empty());
    T t = move(q.top());
    q.pop();
    return t;
}

void solution()
{
    int64_t a,b;
    cin >> a >> b;
    cout << __lcm(a,b) << '\n';
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout << fixed << setprecision(10);
    solution();
    return 0;
}


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

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

ll main() {
   ll a, b;
   cin >> a >> b;

    ll gcd = GCD(a, b);

    cout << a * b / gcd << endl;
}

ll GCD (ll a, ll b) {
    if (a < b) {
       ll tmp = a;
       a = b;
       b = tmp;
   }

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

    return b;
}

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

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

int main() {
   ll a, b;
   cin >> a >> b;

    ll gcd = GCD(a, b);

    cout << a * b / gcd << ebdl;
}

ll GCD (ll a, ll b) {
    if (a < b) {
       ll tmp = a;
       a = b;
       b = tmp;
   }

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

    return b;
}

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

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

ll main() {
   ll a, b;
   cin >> a >> b;

    ll gcd = GCD(a, b);

    cout << a * b / gcd << ebdl;
}

ll GCD (ll a, ll b) {
    if (a < b) {
       ll tmp = a;
       a = b;
       b = tmp;
   }

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

    return b;
}

Compiler output:
a.cc:8:1: error: '::main' must return 'int'
    8 | ll main() {
      | ^~
a.cc: In function 'int main()':
a.cc:14:28: error: 'ebdl' was not declared in this scope
   14 |     cout << a * b / gcd << ebdl;
      |                            ^~~~
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 tmp = 0;
        if (A < B) {
            tmp = B;
            B = A;
            A = tmp;
        }
        long num = 0;
        for (int b = 1; b <= B; b++){
            num = num + A;
//            System.out.println("num"+num);
            if (num % B == 0) {
                System.out.println(num);
                System.exit(0);
            }
        }

    }

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

import math

a,b = map(int,input().split())

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

print(lcm(a, b))


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll a,b;
      |   ^~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b;
      |               ^
a.cc:8:5: error: expected ';' before 's'
    8 |   ll s;
      |     ^~
      |     ;
a.cc:11:7: error: 's' was not declared in this scope
   11 |       s = a*i;
      |       ^
a.cc:15:11: error: 's' was not declared in this scope
   15 |   cout << s << endl;
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll a,b;
      |   ^~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b;
      |               ^
a.cc:8:5: error: expected ';' before 's'
    8 |   ll s;
      |     ^~
      |     ;
a.cc:11:7: error: 's' was not declared in this scope
   11 |       s = a*i;
      |       ^
a.cc:15:11: error: 's' was not declared in this scope
   15 |   cout << s << endl;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long int a,b;
  cin>>a>>b;
  lont int ans;
  for(long int i=0;i<100000;i++){
    for(long int j=0;j<100000;j++){
      if(i*a==j*b){
        ans=i*a;
      }
      else{
        int unko=0;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'lont' was not declared in this scope; did you mean 'long'?
    6 |   lont int ans;
      |   ^~~~
      |   long
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         ans=i*a;
      |         ^~~
      |         abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long int a,b;
  cin>>a>>b;
  for(long int i=0;i<100000;i++){
    for(long int j=0;j<100000;j++){
      if(i*a==j*b){
        ans=i*a;
      }
      else{
        int unko=0;
      }
    }
  }
}

  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         ans=i*a;
      |         ^~~
      |         abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
  ll a, b;
  cin >> a >> b;
  ll x=max(a, b);
  ll y=min(a, b);
  ll r=x%y;
  if(r==0) cout << x endl;
  else {
  while(r!=1){
    x=b;
    y=r;
    r=x%y;
  }
  
  cout << a*b/r << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ';' before 'endl'
   11 |   if(r==0) cout << x endl;
      |                     ^~~~~
      |                     ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
  ll a, b;
  cin >> a >> b;
  x=max(a, b);
  y=min(a, b);
  r=x%y;
  while(r!=1){
    x=b;
    y=r;
    r=x%y;
  }
  
  cout << a*b/y << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=max(a, b);
      |   ^
a.cc:9:3: error: 'y' was not declared in this scope
    9 |   y=min(a, b);
      |   ^
a.cc:10:3: error: 'r' was not declared in this scope
   10 |   r=x%y;
      |   ^