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

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

public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	long[] A = new long[N];

    	BigInteger times = BigInteger.valueOf(1);
    	long K = (long) Math.pow(10,18);

    	boolean flg = true;
    	boolean haszero = false;

    	for(int i=0;i<N;i++) {
    		A[i]=sc.nextLong();
    	}

    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			haszero = true;
    			break;
    		}
    	}

    	if(haszero==false) {

        	for(int i=0;i<N;i++) {
                 if(times>(double)K/A[i]) {
        			flg = false;
        			break;
        		}
        		times = times.multiply(BigInteger.valueOf(A[i]));
        		
        	}

        	if(flg) {
        		System.out.println(times);
        	} else {
        		System.out.println("-1");
        	}

    	} else {
    		System.out.println("0");
    	}
    }
}


Compiler output:
Main.java:38: error: bad operand types for binary operator '>'
                 if(times>(double)K/A[i]) {
                         ^
  first type:  BigInteger
  second type: double
1 error
Language: Java

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

public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	long[] A = new long[N];

    	BigInteger times = BigInteger.valueOf(1);
    	long K = (long) Math.pow(10,18);

    	boolean flg = true;
    	boolean haszero = false;

    	for(int i=0;i<N;i++) {
    		A[i]=sc.nextLong();
    	}

    	for(int i=0;i<N;i++) {
    		if(A[i]==0) {
    			haszero = true;
    			break;
    		}
    	}

    	if(haszero==false) {

        	for(int i=0;i<N;i++) {
                 if(times.compareTo(BigInteger.valueOf(K/A[i])==-1) {
        			flg = false;
        			break;
        		}
        		times = times.multiply(BigInteger.valueOf(A[i]));
        		
        	}

        	if(flg) {
        		System.out.println(times);
        	} else {
        		System.out.println("-1");
        	}

    	} else {
    		System.out.println("0");
    	}
    }
}


Compiler output:
Main.java:38: error: ')' expected
                 if(times.compareTo(BigInteger.valueOf(K/A[i])==-1) {
                                                                   ^
1 error
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:7:16: error: stray '\' in program
    7 |     cout<<a*b<<\n;
      |                ^
a.cc: In function 'int main()':
a.cc:7:17: error: 'n' was not declared in this scope
    7 |     cout<<a*b<<\n;
      |                 ^
Language: C++

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

Compiler output:
a.cc:4:16: error: stray '\' in program
    4 |     cout<<a*b<<\n;
      |                ^
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>a,b;
      |     ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout<<a*b<<\n;
      |     ^~~~
a.cc:4:17: error: 'n' was not declared in this scope
    4 |     cout<<a*b<<\n;
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b,mul;
  cin>>a>>b;
  mul=a*b;
  cout<<mul<<endl;

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

#include <iostream>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
const ll inf = (ll)1e9 + 7;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll i, j, k;
    float b;
    ll a, c;
    cin >> a >> b;
    c = 100 * b;
    cout << c << endl;
    cout << (a * c / (ll)100);
    return 0;
}

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

/* author : akshatjai258 */

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

typedef pair<int, int> pii;

typedef pair<ll, ll> pll;

typedef pair<string, string> pss;

typedef vector<int> vi;

typedef vector<vi> vvi;

typedef vector<pii> vii;

typedef vector<ll> vl;

typedef vector<vl> vvl;

#define mod int(1e9 + 7)

#define inf int(1e9)

#define endl "\n"

#define FOR(a, b, c) for (int(a) = (b); (a) < (c); ++(a))

#define FORN(a, b, c) for (int(a) = (b); (a) <= (c); ++(a))

#define fi first

#define mem0(a) memset(a, 0, sizeof(a))

#define mem1(a) memset(a, -1, sizeof(a))

#define memf(a) memset(a, false, sizeof(a))

#define all(v) v.begin(), v.end()

#define se second

#define mp make_pair

#define pb push_back

#define w(x)  \

	int x;    \

	cin >> x; \

	while (x--)

#define ps(x, y) fixed << setprecision(y) << x

void prep()

{

	ios_base::sync_with_stdio(0);

	cin.tie(0);

	cout.tie(0);

/*#ifndef ONLINE_JUDGE

	freopen("input.txt", "r", stdin);

	freopen("output.txt", "w", stdout);

#endif*/

}

int main()

{

	prep();
    long long a,b;
    cin>>a>>b;
    cout<<a*b<<endl;
	return 0;

}

Compiler output:
a.cc:55:9: error: 'cin' does not name a type
   55 |         cin >> x; \
      |         ^~~
a.cc:57:9: error: expected unqualified-id before 'while'
   57 |         while (x--)
      |         ^~~~~
a.cc: In function 'int main()':
a.cc:85:9: error: 'prep' was not declared in this scope
   85 |         prep();
      |         ^~~~
Language: C

#include <bits/stdc++.h>
//debug
#define vecprint(v) cout << "  vector: ";rep(i,v.size())cout << v[i] << " ";cout << endl;
#define setprint(s) cout << "  set: ";for(auto i=s.begin();i!=s.end();i++)cout << *i << " ";cout << endl;
#define mappairprint(s) cout << "  map: ";for(auto i=s.begin();i!=s.end();i++)cout << i->first << " " << i->second << endl;cout << endl;
//reader
#define r1(a) cin>>(a)
#define r2(a,b) cin>>(a)>>(b)
#define r3(a,b,c) cin>>(a)>>(b)>>(c)
//writer
#define w1(a) cout<<(a)<<" "
#define w2(a,b) cout<<(a)<<" "<<(b)<<" "
#define w3(a,b,c) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "
#define wl1(a) cout<<(a)<<endl
#define wl2(a,b) cout<<(a)<<" "<<(b)<<endl
#define wl3(a,b,c) cout<<(a)<<" "<<(b)<<" "<<(c)<<endl
//variable definition
#define pii pair<int,int>
#define pis pair<int,string>
#define psi pair<string,int>
#define pll pair<ll,ll>
//roop
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rep1(i,n) for (int i = 1; i <= (n); ++i)
#define all(c) c.begin(),c.end()
//term
#define elif else if
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define eb emplace_back
using namespace std;
using ll = long long;
//const


int main() {
  //input
  int a,b;
  cin >> a >> b;
 

  cout << a * b << 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: C++

/* author : akshatjai258 */

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

typedef pair<int, int> pii;

typedef pair<ll, ll> pll;

typedef pair<string, string> pss;

typedef vector<int> vi;

typedef vector<vi> vvi;

typedef vector<pii> vii;

typedef vector<ll> vl;

typedef vector<vl> vvl;

#define mod int(1e9 + 7)

#define inf int(1e9)

#define endl "\n"

#define FOR(a, b, c) for (int(a) = (b); (a) < (c); ++(a))

#define FORN(a, b, c) for (int(a) = (b); (a) <= (c); ++(a))

#define fi first

#define mem0(a) memset(a, 0, sizeof(a))

#define mem1(a) memset(a, -1, sizeof(a))

#define memf(a) memset(a, false, sizeof(a))

#define all(v) v.begin(), v.end()

#define se second

#define mp make_pair

#define pb push_back

#define w(x)  \

	int x;    \	cin >> x; \

	while (x--)

#define ps(x, y) fixed << setprecision(y) << x

void prep()

{

	ios_base::sync_with_stdio(0);

	cin.tie(0);

	cout.tie(0);

/*#ifndef ONLINE_JUDGE

	freopen("input.txt", "r", stdin);

	freopen("output.txt", "w", stdout);

#endif*/

}

int main()

{

	prep();
    int a,b;
    cin>>a>>b;
    cout<<a*b<<endl;

	return 0;

}

Compiler output:
a.cc:53:19: error: stray '\' in program
   53 |         int x;    \     cin >> x; \
      |                   ^
a.cc:53:25: error: 'cin' does not name a type
   53 |         int x;    \     cin >> x; \
      |                         ^~~
a.cc:55:9: error: expected unqualified-id before 'while'
   55 |         while (x--)
      |         ^~~~~
a.cc: In function 'int main()':
a.cc:83:9: error: 'prep' was not declared in this scope
   83 |         prep();
      |         ^~~~
Language: C++

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

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

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

#include <stdio.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<a*b;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<a*b;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    
    long a[] = new long[n];
    long sum = 1;
    for(int i = 0; i < n; i++){
      a[i] = sc.nextLong();
      sum *= a[i];
    }
    
    if(sum > 1000000000000000000){
      System.out.println(-1);
    }else{
      System.out.println(sum);
    }
  }
}

Compiler output:
Main.java:15: error: integer number too large
    if(sum > 1000000000000000000){
             ^
1 error
Language: C++

#include <stdio.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<a*b*;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<a*b*;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:13: error: expected primary-expression before ';' token
    6 |   cout<<a*b*;
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main(
  {
  
  	long long x,y;
    cin>>x>>y;
    cout<<x*y;
  
  }

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(
      |     ^~~~
a.cc:7:9: error: expected primary-expression before 'long'
    7 |         long long x,y;
      |         ^~~~
a.cc:7:9: error: expected '}' before 'long'
a.cc:5:3: note: to match this '{'
    5 |   {
      |   ^
a.cc:5:4: error: expected ')' before 'long'
    5 |   {
      |    ^
      |    )
    6 | 
    7 |         long long x,y;
      |         ~~~~
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:7:21: error: 'y' was not declared in this scope
    7 |         long long x,y;
      |                     ^
a.cc:8:5: error: 'cin' does not name a type
    8 |     cin>>x>>y;
      |     ^~~
a.cc:9:5: error: 'cout' does not name a type
    9 |     cout<<x*y;
      |     ^~~~
a.cc:11:3: error: expected declaration before '}' token
   11 |   }
      |   ^
Language: C++

#include <stdio.h>
#include <iostream>

 
using namespace std;
 
int main(){
 int a,b;
  i=0;
  	scanf("%d %d",&a,&b);
  printf("%d",a*b);
  
 return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'i' was not declared in this scope
    9 |   i=0;
      |   ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    
    long a[] = new long[n];
    long sum = 1;
    for(int i = 0; i < n; i++){
      a[i] = sc.nextInt();
      sum *= a[i];
    }
    
    if(sum > 1000000000000000000){
      System.out.println(-1);
    }else{
      System.out.println(sum);
    }
  }
}

Compiler output:
Main.java:15: error: integer number too large
    if(sum > 1000000000000000000){
             ^
1 error
Language: Java

import java.util.*;
import java.io.*;
 
class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    long result = 1;
    boolean flag = true;
    long num = 1000000000000000000l;
    long arr = new long[n];
    
    for(int i = 0; i < n; i++) {
        arr[i] = sc.nextLong();
        if (arr[i] == 0) {
            System.out.println(0);
            System.exit(0);
        }
    }
    Arrays.sort(arr);
    for(int i = 0; i < n; i++) {
      	if(flag) result = result*arr[i];
      	if(result > num || result < 1) flag = false;
    }
    
    if(flag) System.out.println(result);
    else System.out.println(-1);
  }
}

Compiler output:
Main.java:11: error: incompatible types: long[] cannot be converted to long
    long arr = new long[n];
               ^
Main.java:14: error: array required, but long found
        arr[i] = sc.nextLong();
           ^
Main.java:15: error: array required, but long found
        if (arr[i] == 0) {
               ^
Main.java:20: error: no suitable method found for sort(long)
    Arrays.sort(arr);
          ^
    method Arrays.sort(int[]) is not applicable
      (argument mismatch; long cannot be converted to int[])
    method Arrays.sort(long[]) is not applicable
      (argument mismatch; long cannot be converted to long[])
    method Arrays.sort(short[]) is not applicable
      (argument mismatch; long cannot be converted to short[])
    method Arrays.sort(char[]) is not applicable
      (argument mismatch; long cannot be converted to char[])
    method Arrays.sort(byte[]) is not applicable
      (argument mismatch; long cannot be converted to byte[])
    method Arrays.sort(float[]) is not applicable
      (argument mismatch; long cannot be converted to float[])
    method Arrays.sort(double[]) is not applicable
      (argument mismatch; long cannot be converted to double[])
    method Arrays.sort(Object[]) is not applicable
      (argument mismatch; long cannot be converted to Object[])
    method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (actual and formal argument lists differ in length))
    method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
    T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Main.java:22: error: array required, but long found
      	if(flag) result = result*arr[i];
      	                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
5 errors
Language: C++

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;

int main() {
    int n;
    cin >> n;
    ll a[n];

    rep(i, n) {
        cin >> a[i];
        if(a[i] == 0) {
            cout << 0 << endl;
            return 0;
        }
    }
    ll ans = 1;
    rep(i, n) {
        if(ans > 1000000000000000000 / a[i]) {
            cout << -1 << endl;
            return 0;
        }
        sum *= a[i];
    }

    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:9: error: 'sum' was not declared in this scope
   31 |         sum *= a[i];
      |         ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long a;
  double b;
  cin>>a>>b;
  string s=to_string(b);
  string bb=s.at(0)+s.at(2)+s.at(3);
  int c=stoi(bb);
  long long ans=a*c;
  ans=ans/100;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string bb=s.at(0)+s.at(2)+s.at(3);
      |             ~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define fol(i,n) for(int i=0;i<n;i++)
#define pb push_back
typedef long long ll;
typedef pair<int,int> P;
typedef vector<P> vip;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'a'
   10 |   int a,b;cin a >> b;
      |              ^~
      |              ;
Language: C++

#include <iostream>
Using namespace std ;

Int main () {
  Int a, b;
  Int x=a*b;
  Cin>> a, b;
  Cout<< x;
 } 

Compiler output:
a.cc:2:1: error: 'Using' does not name a type
    2 | Using namespace std ;
      | ^~~~~
a.cc:4:1: error: 'Int' does not name a type; did you mean 'int'?
    4 | Int main () {
      | ^~~
      | int
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define eb emplace_back
#define debug(x) cout << '>' << #x << ':' << x << '\n';
#define debug2(x,y) cout << '>' << #x <<" = "<< x <<" & "<< #y <<" = "<< y << '\n';
#define rep(i,n) for(ll i=0;i<(n);i++)
#define fr(i,a,b) for(ll i=(a);i<(b);i++)
#define frd(i,a,b) for(ll i=(a);i>=(b);i--)
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define endl "\n"
#define fileIO freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout);
#define inf ((long long) 1e18 + 10)
#define ve vector<ll>
#define mod 100007
using namespace std;
const int N = 1e3 + 2;

int main() {
    std::ios::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);
    #ifndef ONLINE_JUDGE
    fileIO
    #endif
    ll t;
    t = 1;
    while(t--){
        cin >> a >> b;
        cout << a * b << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:16: error: 'a' was not declared in this scope
   30 |         cin >> a >> b;
      |                ^
a.cc:30:21: error: 'b' was not declared in this scope
   30 |         cin >> a >> b;
      |                     ^
Language: C++

#include<bits/stdc++.h>
int main()
{
  int A,B,C;
  C=A*B;
  cout<<C;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<C;
      |   ^~~~
      |   std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
int main()
{
	int A,B,C;
  	cin>>A>>B;
  	C=A*B;
  	cout<<C;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<C;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include <vector>

using namespace std;

int main(){
  
  scanf("%d %d",&a,&b);
  printf("%d",a*b);
return 1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'a' was not declared in this scope
    9 |   scanf("%d %d",&a,&b);
      |                  ^
a.cc:9:21: error: 'b' was not declared in this scope
    9 |   scanf("%d %d",&a,&b);
      |                     ^
Language: C


#include <bits/stdc++.h>

#define ll int64_t
using namespace std;
#include <cstdlib> 
#include <math.h>
#include<cstdio>
#include<cstring>
#define FOR(I, A, B) for (int I = (A); I <= (B); I++)
#define fo(i,n) for(int i=0;i<n;i++)
#define sz(a) int((a).size())
#define pb push_back
#define all(c) (c).begin(),(c).end()
#define dbg(x) cout << #x << " = " << x << endl
#define dbg2(x,y) cout << #x << " = " << x << ", " << #y << " = " << y << endl
#define dbg3(x,y,z) cout << #x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << endl
#define dbg4(x,y,z,q) cout << #x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << ", " << #q << " = " << q << endl
#define scan(char_array) scanf("%[^\n]s",&char_array)
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);

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

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

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
 
int main(){
  int N;
  float M;
  float A;
  
  cin >> N >> M ;
  A=int(floor(N*M))
  cout << A << endl;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before 'cout'
   11 |   A=int(floor(N*M))
      |                    ^
      |                    ;
   12 |   cout << A << endl;
      |   ~~~~
Language: C++

int main(){
  int N, M;
  long long res;
  cin >> N >> M ;
  
  res = N * M;
  cout << res;
  resturn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> N >> M ;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << res;
      |   ^~~~
a.cc:8:3: error: 'resturn' was not declared in this scope
    8 |   resturn 0;
      |   ^~~~~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namsespace'
    2 | using namsespace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << a << 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:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << a << 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<bits/stdc++.h>
using namespace std;

int main(){
   int a,b;
  cin>>a>>B;
  cout<<a*b<<endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'B' was not declared in this scope
    6 |   cin>>a>>B;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before 'return'
    6 |   cout << a * b << endl
      |                        ^
      |                        ;
    7 |   return 0;
      |   ~~~~~~
Language: C++

#include <bits/stdc++.h>
#define ull  unsigned long long
using namespace std;
int main()
{
    ull n,sum=1;
    cin>>n;
    for(ull i=0;i<n;i++)
       {ull a;
       cin>>a;
        sum=sum*a;
        if(a==0)
         {cout<<0<<endl;
         break;}
        if(a>1000000000000000000)
        cout<<-1<<endl;
    }
    if(a<=1000000000000000000 && a!=0)
    cout<<a;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 'a' was not declared in this scope
   18 |     if(a<=1000000000000000000 && a!=0)
      |        ^
Language: Java

import java.util.*;
public class Main {
 
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		long num = scan.nextLong();
		for(int i = 0; i < n - 1; i++) {
			long a = scan.nextLong();
			num = num * a;
		}
		System.out.println(num);
		}
	}
 
}


Compiler output:
Main.java:16: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

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

int main(){
  	double A,B
    cin >> A >> B;
  	cout << floor(A*B);
}


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

#include<bits/stdc++.h>
int main()
{
  long long x,y,z;
  cin>>x>>y;
  cout<<x*y;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>x>>y;
      |   ^~~
      |   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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<x*y;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<iostream>
#include<stdio.h>
using namespace std;
#define N 1000
typedef long long ll;

int main(){
    ll a,s=0;
    ll b;
    cin>>a>>b;
    a*=b;
    cout<<a<<endl;
    
    return 0;
}



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

#include <iostream.h>
using namespace std;
int main() {
   long int a, b, result;
  cin>>a>>b;
  result = a * b;
  cout<<result<<endl;
  
  
  
  
  return 0;
 } 

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

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

unsigned long long int main(){
int N;
  cin >> N ;
vector<int> A(N);
  
 for(int i = 0; i < N ; i++){
cin >> A.at(i);
}
  int T = 1;
 
  for(int i = 0; i < N ; i++){
  T = T*A.at(i);
  }
 if(T <= 10000000000000000){
 cout << T << endl;
 }
  else {
  cout << -1 << endl;
  }  
  }


Compiler output:
a.cc:7:20: error: '::main' must return 'int'
    7 | unsigned long long int main(){
      |                    ^~~
Language: C

#include <stdio.h>
 
int main(void)
{ int a,b,s; 
 printf("Aの値は？" \n);
 scanf("%d",&a);
 printf("Bの値は？" \n);
 scanf("%d",&b);
  
  if(1<=a,b && a,b <=100){
     s = a*b;
  }
 
   printf("A×B＝%d",s); 
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:21: error: stray '\' in program
    5 |  printf("Aの値は？" \n);
      |                     ^
main.c:5:20: error: expected ')' before 'n'
    5 |  printf("Aの値は？" \n);
      |        ~           ^ ~
      |                    )
main.c:7:21: error: stray '\' in program
    7 |  printf("Bの値は？" \n);
      |                     ^
main.c:7:20: error: expected ')' before 'n'
    7 |  printf("Bの値は？" \n);
      |        ~           ^ ~
      |                    )
Language: Java

import java.util.*;
 
public class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args){
        int intN = sc.nextInt();
        long A[] = new long[intN];
        long ans =1;
        for(int i=0; i<intN; i++){
            A[i] = sc.nextLong();
            if(A[i]==0){
                ans=0;
            }
        }
        for(int i=0; i<intN; i++){
            if(ans *= A[i] >= Math.pow(10,18){
              ans=-1;
            }else{
              ans *= A[i];
            }        
        }
        
        System.out.println(ans);
    }
}

Compiler output:
Main.java:16: error: ')' expected
            if(ans *= A[i] >= Math.pow(10,18){
                                             ^
1 error
Language: Java

class c1{
  
  public static void main(String args[])
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int a[] = new int[2];
    for(int i=0;i<2;i++)
    {
      a[i]=Integer.parseInt(r.readLine(a[i]));
                            }
                            
    int c = a[0]*a[1];
                            System.out.println(c);
                            }
                            }


Compiler output:
Main.java:5: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    ^
  symbol:   class BufferedReader
  location: class c1
Main.java:5: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                            ^
  symbol:   class BufferedReader
  location: class c1
Main.java:5: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                               ^
  symbol:   class InputStreamReader
  location: class c1
Main.java:9: error: cannot find symbol
      a[i]=Integer.parseInt(r.readLine(a[i]));
                            ^
  symbol:   variable r
  location: class c1
4 errors
Language: Java

class c1{
  
  public static void main(String args[])
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int a[] = new int[2];
    for(int i=0;i<2;i++)
    {
      a[i]=Integer.parseInt(br.readLine(a[i]);
                            }
                            
    int c = a[0]*a[1];
                            System.out.println(c);
                            }
                            }


Compiler output:
Main.java:9: error: ')' or ',' expected
      a[i]=Integer.parseInt(br.readLine(a[i]);
                                             ^
1 error
Language: C++

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

typedef vector <int> vi;
typedef pair< int , int > pii;
#define endl "\n"
#define sd(val) scanf("%d",&val)
#define ss(val) scanf("%s",&val)
#define sl(val) scanf("%lld",&val)
#define debug(val) printf("check%d\n",val)
#define all(v) v.begin(),v.end()
#define PB push_back
#define MP make_pair
#define FF first
#define SS second
#define ll long long
#define MOD 1000000007
#define clr(val) memset(val,0,sizeof(val))
#define what_is(x) cerr << #x << " is " << x << endl;
#define OJ \
    freopen("input.txt", "r", stdin); \
    freopen("output.txt", "w", stdout);
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);


int main()
{
	FIO;
	ll a, b;
	cin >> a >> b;
	cout << a*b << "\n";011
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:32: error: expected ';' before 'return'
   31 |         cout << a*b << "\n";011
      |                                ^
      |                                ;
   32 |         return 0;
      |         ~~~~~~
Language: Java

class c1{
  
  public static void main(String args[])
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int a[] = new int[2];
    for(int i=0;i<2;i++)
    {
      a[i]=Integer.parseInt(r.readLine(a[i]);
                            }
                            
    int c = a[0]*a[1];
                            System.out.println(c);
                            }
                            }

Compiler output:
Main.java:9: error: ')' or ',' expected
      a[i]=Integer.parseInt(r.readLine(a[i]);
                                            ^
1 error
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'c' was not declared in this scope
    6 |   c>>a>>b;
      |   ^
Language: C

#include <stdio.h>
 
int main(void)
{ int a , b; 
  
  if(1<=a,b && a,b <=100){
     s = a*b;
  }
 
   printf("%d",s); 
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: 's' undeclared (first use in this function)
    7 |      s = a*b;
      |      ^
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

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

		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		System.out.println(a * b);
	}

}

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

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(s,t) for (int s = 0; s < t; ++s);
using ll = long long;


int main() {
  int a,b;

  cin >> a >> b;

  ans = a*b;

  cout << ans << endl;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:3:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 |   int a.b.c;
      |        ^
main.c:3:8: error: expected expression before '.' token
main.c:4:18: error: 'a' undeclared (first use in this function)
    4 |   scanf("%d %d",&a,&b);
      |                  ^
main.c:4:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:21: error: 'b' undeclared (first use in this function)
    4 |   scanf("%d %d",&a,&b);
      |                     ^
main.c:5:3: error: 'c' undeclared (first use in this function)
    5 |   c=a*b;
      |   ^
Language: C

#include <iostream>

using namespace std;

int main(){

    //freopen("input.txt", "r", stdin);
   // freopen("output.txt", "w", stdout);

    long long A, B;

    cin >> A >> B;
    cout<< A*B << endl;

    return 0;
}

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

#include "bits/stdc++.h"
using namespace std;
int main() {
  long N, a1, a2; 
  cin >> N >> a1;
  for (int i = 0; i < N - 1; i++){
    cin >> a2;
    a1 *= a2;
      if (a1 > 1000000000000000000){
      a1 = -1;
      break;
      }
    else if (a2 == 0){
      a1 = 0
      break;
    }
  if (a1 > 1000000000000000000){
      a1 = -1;
  }
  cout << a1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected ';' before 'break'
   14 |       a1 = 0
      |             ^
      |             ;
   15 |       break;
      |       ~~~~~  
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C

#include <stdio.h>
void main(){
	i
	scanf("%d",&a);
	scanf("%d",&b);
	printf("%d",a*b);
}

Compiler output:
main.c: In function 'main':
main.c:3:9: error: unknown type name 'i'
    3 |         i
      |         ^
main.c:4:15: error: expected declaration specifiers or '...' before string constant
    4 |         scanf("%d",&a);
      |               ^~~~
main.c:4:20: error: expected declaration specifiers or '...' before '&' token
    4 |         scanf("%d",&a);
      |                    ^
main.c:5:21: error: 'b' undeclared (first use in this function)
    5 |         scanf("%d",&b);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: 'a' undeclared (first use in this function)
    6 |         printf("%d",a*b);
      |                     ^
Language: C++

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

#define int long long
#define double long double
#define pb push_back

typedef vector<int, int> vii;
typedef pair<int, int> pii;

const int inf = 2e18;
const int mod = 1000000000000000000;
signed main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int sum=1;
    int n;
    cin >> n;
    double a=c*d;
    
    int temp;
    while(n--){
        int a;
        cin >> a;
        sum*=a;
        


    }
    if(sum>mod){
        sum=-1;
    }
    cout<<sum<<endl;
}



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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int A, N[i];
  cin >> A;
  int sum = 1;
  int i;
  for(int i = 0; i < A; i++){
    cin >> N[i];
    sum *= N[i];
  }
  if(sum < 10^18){
    cout << -1 <<endl;
  }
  else{
    cout << sum <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'i' was not declared in this scope
    5 |   int A, N[i];
      |            ^
a.cc:10:12: error: 'N' was not declared in this scope
   10 |     cin >> N[i];
      |            ^
Language: C

#include<stdio.h> 

int mul(int, int);

int main(void)
{
	int A, B; 
  	int	ans;
	ans = A * B;
	printf("%d * %d =%d\n", a, b, ans);
	return 0;
  	
}

int mul(int A,int B){
  return A * B;
}


Compiler output:
main.c: In function 'main':
main.c:10:33: error: 'a' undeclared (first use in this function)
   10 |         printf("%d * %d =%d\n", a, b, ans);
      |                                 ^
main.c:10:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:36: error: 'b' undeclared (first use in this function)
   10 |         printf("%d * %d =%d\n", a, b, ans);
      |                                    ^
Language: Java

class Main {
    public static int solve(int a, int b) {
        return a * b;
    }
    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int a = sn.nextInt();
        int b =  sn.nextInt();
        System.out.println(solve(a, b));
    }
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	cout<<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<bits/stdc++.h>
using namespace std;

int main()
{
    long long int A;
    double B;
    
    cin>>A>>B;
    string S;
    S=to_string(long double(A*B));
    
    string T;
    for(auto x:S)
    {
        if(x!='.')
        {
            T+=x;
        }
        else
        {
            break;
        }
    }
    
    cout<<T<<endl;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected primary-expression before 'long'
   11 |     S=to_string(long double(A*B));
      |                 ^~~~
Language: Java

import java.util.Scanner;
 
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int numa = scan.nextInt();
        int numb = scan.nextInt();
        int ans = 0;
        int i;
        
        for(i=0;i<=numb-1;i++){
           ans = ans +numa;
        }   
	    System.out.println(ans);
        scan.close();
    }

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

#include <stdio.h>

int main(){
  int a, b;
  scanf("%d, %d" &a, &b);
  printf("%d", a*b);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: invalid operands of types 'const char [7]' and 'int' to binary 'operator&'
    5 |   scanf("%d, %d" &a, &b);
      |         ~~~~~~~~ ^~
      |         |         |
      |         |         int
      |         const char [7]
Language: C++

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

int main(int argc, char const *argv[]) {
  int A,B,answer;
  std::cin >> A >> B;
  answer = A*B
  std::cout << answer << '\n';
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:7:15: error: expected ';' before 'std'
    7 |   answer = A*B
      |               ^
      |               ;
    8 |   std::cout << answer << '\n';
      |   ~~~
Language: Java

import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;

public class A {

    public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        int a = in.nextInt();
        int b = in.nextInt();

        System.out.println(a * b);
    }

    private static boolean isValid(int a, int b, int c) {
        if (a + b <= c || a + c <= b || b + c <= a) {
            return false;
        }

        return true;
    }
}


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

#include<iostream>

using namespace std;

int main(){
  int n, m;
  cin >> n >> m;
  cout << n*m << endl;
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |   return;
      |   ^~~~~~
Language: Java

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

Compiler output:
Main.java:8: error: incompatible types: unexpected return value
    return a * b;
             ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  int x=1;
  cin>>n;
vector <int>vec(n);
  for(int i=0;i<n;i++){
    cin>>vec.at(i);
    x=x*vec.at(i);}
  
  if(x>1000000000000000000){
    x=-1;
  break;
  }
 
  cout<<x<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: break statement not within loop or switch
   14 |   break;
      |   ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i,n) for(ll i=0;i<n;++i)
#define ocut cout
#define ouct cout
#define itn int

struct Union{
  vector<ll> par;
  Union(ll a){
  par=vector<ll>(a,-1);
  }
  ll find(ll a){
    if(par[a]<0){
      return a;
    }
    else{
      return par[a]=find(par[a]);
    }
  }
  bool same(ll a,ll b){
    return (find(a)==find(b));
  }
  ll size(ll a){
    return -par[find(a)];
  }
  void unite(ll a,ll b){
    ll c=find(a),d=find(b);
    if(c==d)
      return;
    if(size(c)<size(d)){
      swap(c,d);
    }
    par[c]+=par[d];
    par[d]=c;
  }
};
ll Nagaemon1;
void swap(ll i,ll j){
  Nagaemon1=i;
  i=j;
  j=Nagaemon1;
}
ll inputNum(void){
    ll num = 0;
    while (1){
        printf("素因数分解したい整数を入力：");
        scanf("%d", &num);
        if (num < 2){
            printf("2以上の整数にしてください\n\n");
        } else{
            break;
        }
    }
    return num;
}
map<ll,ll> mp;
void findFactors(int num){
    ll i;
    while (num % 2 == 0){ // 偶数の素数は2のみ
        mp[2]++;
        num /= 2;
    }
    k=2;
    for (i = 3; i <= num; i++){ // 他の素数で割って
        while (num % i == 0){
            mp[i]++;
            num /= i;
        }
    }
    printf("%b %n");
}
int main(void){
    int a,b;
    cin >> a >> b;
    cout << a*b;
}

Compiler output:
a.cc: In function 'void findFactors(int)':
a.cc:66:5: error: 'k' was not declared in this scope
   66 |     k=2;
      |     ^
Language: Java

import  java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in)
     
     int A = scan.nextInt();
     int B = scan.nextInt();
    
    System.out.println(A * B);
  }
}

Compiler output:
Main.java:5: error: ';' expected
    Scanner scan = new Scanner(System.in)
                                         ^
1 error
Language: C++

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

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

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

#include <stdio.h>
int main(void){
  int A,B,C=0;
  scanf("%d %d",A,B);
 
  C=A*B;
  printf("%d",C)
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ';' before 'return'
    7 |   printf("%d",C)
      |                 ^
      |                 ;
    8 |   return 0;
      |   ~~~~~~
Language: C++

#include <stdio.h>
int main(void){
  int A,B,C=0;
  scanf("%d %d",A,B);

  C=A*B;
  printf("%d",C)
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'return'
    7 |   printf("%d",C)
      |                 ^
      |                 ;
    8 |   return 0;
      |   ~~~~~~