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

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<stack>
#include<queue>
#include<map>
#include<set>
#include<vector>
#define R register
#define next mlgvegetable
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
inline ll read();
inline void write(ll x);
inline void writeln(ll x);
inline void writesp(ll x);
int main(){
	n=read();m=read();
	writeln(n*m);
}
inline ll read(){
	ll x=0,t=1;char ch=getchar();
	while(ch<'0'||ch>'9'){
		if(ch=='-') t=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9'){
		x=x*10+ch-'0';
		ch=getchar();
	}
	return x*t;
}
inline void write(ll x){
	if(x<0){putchar('-');x=-x;}
	if(x<=9){putchar(x+'0');return;}
	write(x/10);putchar(x%10+'0');
}
inline void writesp(ll x){
	write(x);putchar(' ');
}
inline void writeln(ll x){
	write(x);putchar('\n');
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'n' was not declared in this scope; did you mean 'yn'?
   23 |         n=read();m=read();
      |         ^
      |         yn
a.cc:23:18: error: 'm' was not declared in this scope; did you mean 'tm'?
   23 |         n=read();m=read();
      |                  ^
      |                  tm
Language: Java

n = int(input())
a = input().split(" ")

sum = 1
for i in range(n):
  sum = sum * int(a[i])

if sum > 1000000000000000000:
  print(-1)
else:
  print(sum)

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
n = int(input())
^
1 error
Language: C++

#include<stdio.h>
 
int main()
{
	int A, B;
	int N = A*B;
	std::cout << N;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'cout' is not a member of 'std'
    7 |         std::cout << N;
      |              ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 |
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:7:19: error: expected '}' at end of input
    7 |   cout<<A*B<<endl;
      |                   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
#define MOD 1000000007
#define ll long long int
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);
 
using namespace std;

std::ostream& operator<<(std::ostream& os, __int128 t) {
    // TODO: Convert t to string
    return os << str;
}
 
int main()
{
	
    fastio
    ll n;
  ll x, ans=1;
  cin>>n;
  for(int i=0; i<n; i++)
  {
    cin>>x;
    if(__builtin_popcountll(ans)+__builtin_popcountll(x)>61)
    {
      ans=-1;
      break;
    }
    ans*=x;
    if(ans>1e18)
    {
      ans=-1;
      break;
    }
  }
  cout<<ans;
}

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

import java.util.Scanner;

public class Main{
  static void main(String args[]){
    double a = Integer.parseInt(args[1]);
    int i = 2;
    while(args[i] != null){
      a *= args[i];
      i++;
    }
    
    if(a > (10^18)){
      System.out.print(-1);
    }else{
      System.out.print(a);
    }
  }
}

Compiler output:
Main.java:8: error: bad operand types for binary operator '*'
      a *= args[i];
        ^
  first type:  double
  second type: String
1 error
Language: C++

#include <bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> 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 * B << 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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << A * B << 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: Java

public class run
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
		double b = scan.nextInt() * scan.nextDouble();
		scan.close();
		System.out.println((int)b);
		
		
	}
}

Compiler output:
Main.java:1: error: class run is public, should be declared in a file named run.java
public class run
       ^
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class run
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class run
3 errors
Language: C

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

int main()
{
	long A,N,i;
	long ans;
	
	scanf("%ld", &N);
	
	// 整数の入力
	for(i; i < N ; i++)
	{
		scanf("%ld", &A);
		ans = ans * A;
	}
	
	// 出力
	if(ans < 10^18){
		printf("ld",ans);
	
	}else{
		printf("-1")
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:29: error: expected ';' before '}' token
   25 |                 printf("-1")
      |                             ^
      |                             ;
   26 |         }
      |         ~
Language: C++

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

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

import java.util.Scanner;

public class Main{

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
       
      
        System.out.printf(A*B);

        sc.close();

    }
}

Compiler output:
Main.java:12: error: no suitable method found for printf(int)
        System.out.printf(A*B);
                  ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
1 error
Language: C++

#include <bits/stdc++.h>

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

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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << a * b << 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:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << a * b << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

include<stdio.h>

int main(void)
{
  int A,B;
  scanf("%d%d",&A,&B);
  printf("%d",A * B);
  
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: Java

Scanner scan = new Scanner(System.in);
		
		double b = scan.nextInt() * scan.nextDouble();
		scan.close();
		System.out.println((int)b);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
		scan.close();
		^
Main.java:5: error: class, interface, enum, or record expected
		System.out.println((int)b);
		^
3 errors
Language: Java

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

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

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

int main() {
    int A, B;
    int ans;
    cin >> A, B;
    ans = A*B;
    cout << and << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected identifier before '<<' token
   11 |     cout << and << endl;
      |                 ^~
Language: C++

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

int main() {
    int A, B;
    int ans;
    cin >> A;
    cin >> B;
    ans = A*B;
    cout << and << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected identifier before '<<' token
   12 |     cout << and << endl;
      |                 ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  cin::ios::sync_with_stdio(false);
  cin.tie(0);
  int a, b;
  cin >> a >> b;
  cout << a*b << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' is not a class, namespace, or enumeration
    6 |   cin::ios::sync_with_stdio(false);
      |   ^~~
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> 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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << A * B << 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:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << A * B << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include<bits/stdc++.h>
int main()
{
  int n,m;
  cin>>n>>m;
  cout<<n*m;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n>>m;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<n*m;
      |   ^~~~
      |   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>
#include <string>
using namespace std;

int main() {
    int A, B;
    int ans;
    cin >> A;
    cin >> B;
    ans = A*B
    cout << and << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'cout'
   11 |     ans = A*B
      |              ^
      |              ;
   12 |     cout << and << endl;
      |     ~~~~
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;
public class GFG
 {
	public static void main (String[] args)throws IOException
	 {
	    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer(br.readLine());
		
			int n=Integer.parseInt(st.nextToken());
         int m=Integer.parseInt(st.nextToken());
		System.out.println(n*m);
	 }
	 
	//calculate (m+n)!/(m!*n!)
	static int maxPath(int m,int n)
	{
	    
	    if(m==1 || n==1)
	        return 1;
	   m--;n--;
	   if(m<n)
	   {
	       m=m+n;
	       n=m-n;
	       m=m-n;
	   }
	   int res=1,j=1;
	   for(int i=m+1;i<=(m+n);i++,j++)
	   {
	       res*=i;
	       res/=j;
	   }
	   return res;
	}
	static int modDivide(int a,int b,int m)
	{
	    a = a % m ;
        int inv = modInverse(b,m);
        System.out.println("inv "+inv);
        if(inv==-1)
            return -1;
        return (inv*a) % m;
	}
	static int modInverse(int b,int m)
	{
	    int g=gcd(b,m);
	    
	    if(g!=1)
	        return -1;
	    //If b and m are relatively prime,  
        //then modulo inverse is b^(m-2) mode 
      return power(b,m-2,m);
	}
	// a^p%m
	static int power(int x, int y, int p) 
    { 
        // Initialize result 
        int res = 1;      
         
        // Update x if it is more   
        // than or equal to p 
        x = x % p;  
  
       if (x == 0) return 0; // In case x is divisible by p;    
  
        while (y > 0) 
        { 
            // If y is odd, multiply x 
            // with result 
            if((y & 1)==1) 
                res = (res * x) % p; 
      
            // y must be even now 
            // y = y / 2 
            y = y >> 1;  
            x = (x * x) % p;  
        } 
        return res; 
    } 
    
	//Euclidean algorithms
	static int gcd(int a, int b) 
    { 
        if (a == 0) 
            return b; 
          
        return gcd(b%a, a); 
    } 
	static int[] array(StringTokenizer st,int a)
	{
		int y[]=new int[a];
		int p=0;
		while(st.hasMoreTokens())
		{
			y[p]=Integer.parseInt(st.nextToken());
			p++;
		}
		return y;
	}
	 static int lis(int arr[])
	 {
	     int lis[]=new int[arr.length];
	     for(int i=0;i<arr.length;i++)
	        lis[i]=1;
	     for(int i=1;i<arr.length;i++)
	     {
	         for(int j=0;j<i;j++)
	         {
	             if(arr[i]>arr[j] && lis[i]<lis[j]+1)
	                lis[i]=lis[j]+1;
	         }
	     }
	     int max=1;
	     for(int i=0;i<lis.length;i++)
	        if(lis[i]>max)
	            max=lis[i];
	   return max;
	 }
	 static long max(long a)
	{
		long max=0;
		while(a>0)
		{
			if(a%10>max)
			{
				max=a%10;
			}
			a/=10;
		}
		return max;
	}
	static long min(long a)
	{
		long min=1000;
		while(a>0)
		{
			if(a%10<min)
			{
				min=a%10;
			}
			a/=10;
		}
		return min;
	}
}

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

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

}

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

#include <bits/stdc++.h>
int main()
{
  int a,b;
  cin>>a>>b;
  cout<<a*b<<endl;
  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>>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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<a*b<<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:6:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<a*b<<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: Java

import java.util.Scanner;

public class Demo {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        scan.close();
        int total = num1*num2;
        System.out.println("Output: "+total);
    }
}

Compiler output:
Main.java:3: error: class Demo is public, should be declared in a file named Demo.java
public class Demo {
       ^
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:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C++

string t; cin >> t;
    string past,now;
    ll sz = t.size(),wp=t.find("P"),wd=t.find("D"),w;
    if(sz == 1){
        if(t == "?") cout << 'P' << endl;
        else cout << t << endl;
        return 0;
    }
    if(wp == -1 && wd == -1){
        t.replace(0,0,"P");
        t.replace(0,1,"D");
        w = 0;
    } else {
        if(wp >= wd) w = wd;
        else w = wp;
    }
    for(ll i=w;i>0;i--){
        past = t[i-1]; now = t[i];
        if(past == "?"){
            if(now == "P") t.replace(0,i-1,"D");
            else if(now == "D") t.replace(0,i-1,"P");
        }
    }
    for(ll i=w+1;i<sz;i++){
        past = t[i-1]; now = t[i];
        if(now == "?"){
            if(past == "P") t.replace(0,i,"D");
            else if(past == "D") t.replace(0,i,"P");
        }
    }

    cout << t << endl;    

    return 0;

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string t; cin >> t;
      | ^~~~~~
a.cc:1:11: error: 'cin' does not name a type
    1 | string t; cin >> t;
      |           ^~~
a.cc:2:5: error: 'string' does not name a type
    2 |     string past,now;
      |     ^~~~~~
a.cc:3:5: error: 'll' does not name a type
    3 |     ll sz = t.size(),wp=t.find("P"),wd=t.find("D"),w;
      |     ^~
a.cc:4:5: error: expected unqualified-id before 'if'
    4 |     if(sz == 1){
      |     ^~
a.cc:9:5: error: expected unqualified-id before 'if'
    9 |     if(wp == -1 && wd == -1){
      |     ^~
a.cc:13:7: error: expected unqualified-id before 'else'
   13 |     } else {
      |       ^~~~
a.cc:17:5: error: expected unqualified-id before 'for'
   17 |     for(ll i=w;i>0;i--){
      |     ^~~
a.cc:17:16: error: 'i' does not name a type
   17 |     for(ll i=w;i>0;i--){
      |                ^
a.cc:17:20: error: 'i' does not name a type
   17 |     for(ll i=w;i>0;i--){
      |                    ^
a.cc:24:5: error: expected unqualified-id before 'for'
   24 |     for(ll i=w+1;i<sz;i++){
      |     ^~~
a.cc:24:18: error: 'i' does not name a type
   24 |     for(ll i=w+1;i<sz;i++){
      |                  ^
a.cc:24:23: error: 'i' does not name a type
   24 |     for(ll i=w+1;i<sz;i++){
      |                       ^
a.cc:32:5: error: 'cout' does not name a type
   32 |     cout << t << endl;
      |     ^~~~
a.cc:34:5: error: expected unqualified-id before 'return'
   34 |     return 0;
      |     ^~~~~~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected primary-expression before ';' token
    5 |   cin >> a >> ;
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'rendl' was not declared in this scope; did you mean 'roundl'?
    7 |   cout << A*B << rendl;
      |                  ^~~~~
      |                  roundl
Language: C++

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


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

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

int main(){
    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++

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

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = in.nextInt();
        int B = in.nextInt();

        System.out.println(A * B);
        in.close();
    }
}

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

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

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

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

Compiler output:
a.cc:3:1: error: 'itn' does not name a type; did you mean 'int'?
    3 | itn main()
      | ^~~
      | int
Language: C++

#include <bits/stdc++.h>

#define For(i,n) for(int i = 0; i < n; ++i)
#define Forr(i,n) for(int i = 1; i <= n; ++i)
#define Fori(i,a,b) for(int i = a;i <= b; ++i)
#define Forir(i,a,b) for(int i = a;i >= b; --i)
#define pb push_back
#define pf pop_front
#define SZ(x) (int)x.size()
#define mp make_pair
#define fi first
#define se second
#define np(b,e) next_permutation(b, e)
#define rev(b,e) reverse(b, e)
#define is(b, e) is_sorted(b, e)
#define DBG(v) cerr<< #v<<" = "<< (v) <<endl
#define DBG2(v, e) cerr<< #v<<", "<< #e<<" = "<<(v)<<", "<<(e)<<endl

using namespAace std;


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

Compiler output:
a.cc:19:7: error: expected nested-name-specifier before 'namespAace'
   19 | using namespAace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:24:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   24 |   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:25:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |   cout<<a*b<<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:25:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |   cout<<a*b<<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: Java

import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Vector;

class Codechef {

    
    public static void main(String[] args) throws java.lang.Exception {
        // your code goes here
        Scanner ob = new Scanner(System.in);
        int T = ob.nextInt();
        int b = ob.nextInt();
        out.println(T * b);
        out.close();
    }
}

Compiler output:
Main.java:23: error: cannot find symbol
        out.println(T * b);
        ^
  symbol:   variable out
  location: class Codechef
Main.java:24: error: cannot find symbol
        out.close();
        ^
  symbol:   variable out
  location: class Codechef
2 errors
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluude; did you mean #include?
    1 | #incluude<bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incluude<bits/stdc++.h>
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<a*b<<endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |         cout<<a*b<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incluude<bits/stdc++.h>
Language: C++

#include <boost/multiprecision/cpp_int.hpp>
#include<bits/stdc++.h> 
namespace mp = boost::multiprecision;
 
#define BINT mp::cpp_int
using namespace std;
 
int main()
{
    int n;cin>>n;
    while(n--)
    {
        BINT a,ans;
        cin>>a;
        ans=ans*a;
        if(ans<1000000000000000000)
        {
            ans=ans*a;
        }
    }
    
    if(ans>1000000000000000000)
    {
        cout<<-1;
        return 0;
    }
    else
    cout<<ans<<endl;
	
} 

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

#include<bits/stdc++.h>
using namespace std;
int main(){
 long long a;
  long double b;
  cout <<floor(long long a*b) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected primary-expression before 'long'
    6 |   cout <<floor(long long a*b) <<endl;
      |                ^~~~
Language: C++

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

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

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




/*
	ID: sixathofpain
	TASK: friday
	LANG: C++   

*/


//#pragma GCC optimize("Ofast")
//#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define all(x) (x).begin(), (x).end()
#define ff first
#define ss second
#define setbits(x) __builtin_popcount(x)
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef long double ldb;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<ll, int> pli;
typedef pair<db, db> pdd;
typedef vector<int> vi;
#define m1 make_pair
#define in insert
#define pb push_back
#define IOS                           \
    std::ios::sync_with_stdio(false); \
    cin.tie(NULL);                    \
    cout.tie(NULL);
#define endl "\n"
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

inline ll gcd(ll a, ll b)
{
    if (a == 0)
        return b;
    return gcd(b % a, a);
}
inline ll power(ll a, ll n, ll m)
{
    if (n == 0)
        return 1;
    ll p = power(a, n / 2, m);
    p = (p * p) % m;
    if (n % 2)
        return (p * a) % m;
    else
        return p;
}
const ll MOD = 1000000007;
const int N = int(3e5) + 999;
#define int long long int

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

    return 0;
}

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


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

#define froop1(a,n) for(int i = a;i < n;i++)
#define froop2(a,n) for(int i = a;i > n;i--)
int main(){
	long long a,b;
  cin >> a >> b;
  cou << a * b << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'cou' was not declared in this scope; did you mean 'cos'?
   10 |   cou << a * b << endl;
      |   ^~~
      |   cos
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

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


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

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

Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         printf("%d",　N);
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000N' was not declared in this scope
    8 |         printf("%d",　N);
      |                     ^~~
Language: C++

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

Compiler output:
a.cc:7:12: error: extended character 　 is not valid in an identifier
    7 |         N =　A*B;
      |            ^
a.cc:8:17: error: extended character 　 is not valid in an identifier
    8 |     printf("%d",　N);
      |                 ^
a.cc: In function 'int main()':
a.cc:7:12: error: '\U00003000A' was not declared in this scope
    7 |         N =　A*B;
      |            ^~~
a.cc:8:17: error: '\U00003000N' was not declared in this scope
    8 |     printf("%d",　N);
      |                 ^~~
Language: C

#include <stdio.h>
#include <stdlib.h>

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


Compiler output:
main.c:4:1: error: unknown type name 'not'; did you mean 'ino_t'?
    4 | not main()
      | ^~~
      | ino_t
Language: Java

import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Vector;

public class Codechef {

    /**
     * Returns list of all indices where pattern is found in text.
     */
    public static int[] calculateZ(char input[]) {
        int Z[] = new int[input.length];
        int left = 0;
        int right = 0;
        for (int k = 1; k < input.length; k++) {
            if (k > right) {
                left = right = k;
                while (right < input.length && input[right] == input[right - left]) {
                    right++;
                }
                Z[k] = right - left;
                right--;
            } else {
                // we are operating inside box
                int k1 = k - left;
                // if value does not stretches till right bound then just copy it.
                if (Z[k1] < right - k + 1) {
                    Z[k] = Z[k1];
                } else { // otherwise try to see if there are more matches.
                    left = k;
                    while (right < input.length && input[right] == input[right - left]) {
                        right++;
                    }
                    Z[k] = right - left;
                    right--;
                }
            }
        }
        return Z;
    }

    /**
     * Returns list of all indices where pattern is found in text.
     */

    public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));

    public static int[] radixSort(int[] f) {
        return radixSort(f, f.length);
    }

    public static int[] radixSort(int[] f, int n) {
        int[] to = new int[n];
        {
            int[] b = new int[65537];
            for (int i = 0; i < n; i++)
                b[1 + (f[i] & 0xffff)]++;
            for (int i = 1; i <= 65536; i++)
                b[i] += b[i - 1];
            for (int i = 0; i < n; i++)
                to[b[f[i] & 0xffff]++] = f[i];
            int[] d = f;
            f = to;
            to = d;
        }
        {
            int[] b = new int[65537];
            for (int i = 0; i < n; i++)
                b[1 + (f[i] >>> 16)]++;
            for (int i = 1; i <= 65536; i++)
                b[i] += b[i - 1];
            for (int i = 0; i < n; i++)
                to[b[f[i] >>> 16]++] = f[i];
            int[] d = f;
            f = to;
            to = d;
        }
        return f;
    }

    public static void main(String[] args) throws java.lang.Exception {
        // your code goes here
        Scanner ob = new Scanner(System.in);
        int T = ob.nextInt();
        int b = ob.nextInt();
        out.println(T * b);
        out.close();
    }
}

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

int A = 58;
int B = 48;
println(A*B)


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int A = 58;
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
println(A*B)
^
2 errors
Language: Java

import java.io.*;
public class A{

    public static void main(String[] args){

        int a=0;
        int b=0;
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try{
            String line = reader.readLine();
            String[] inp = line.split(" ", 0);
            a = Integer.parseInt(inp[0]);
            b = Integer.parseInt(inp[1]);
        
        }catch(IOException e){
        }

        System.out.println(a * b);

    }
}

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

#include <stdio.h>
#include <stdlib.h>

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

Compiler output:
main.c:4:1: error: unknown type name 'not'; did you mean 'ino_t'?
    4 | not main()
      | ^~~
      | ino_t
main.c: In function 'main':
main.c:9:13: error: expected ';' before '}' token
    9 |     return 0
      |             ^
      |             ;
   10 | }
      | ~
Language: C++

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


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

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

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

Compiler output:
a.cc:6:23: warning: missing terminating ' character
    6 |         cin >> a >> b;'
      |                       ^
a.cc:6:23: error: missing terminating ' character
Language: Java

import java.util.*;
public class Multipication
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    int a[]=new int[2];
    a[0]=sc.nextInt();
    a[1]=sc.nextInt();
    int c=a[0]*a[1];
    System.out.println(c);
  }
}


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

//package MyJavaProject;
 
import java.util.*;
import java.io.BufferedReader;
import java.io.IOException; 
import java.io.InputStreamReader;
import java.lang.Math;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import java.io.*;
import java.math.BigInteger; 
import java.io.PrintWriter;  

public class Test 
{
	static class FastReader 

	    { 
	        BufferedReader br; 
	        StringTokenizer st; 
	  
	        public FastReader() 
	        { 
	            br = new BufferedReader(new
	                     InputStreamReader(System.in)); 
	        } 
	  
	        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; 
	        } 
	    }
	
	
	static void print(String s)
	{
		System.out.print(s);
	}
	static void print(boolean s)
	{
		System.out.print(s);
	}
	
	public static void main(String argsp[]) throws Exception
	{
		FastReader f=new FastReader();
		BufferedWriter w=new BufferedWriter(new OutputStreamWriter(System.out));
		 
		int t;
		//Test ob=new Test();
		t=f.nextInt();
		while(t--!=0)
		{
			long a,b;
			a=f.nextLong();
			b=f.nextLong();
			System.out.println(a*b);
			
		}
	}
}
	

	
	
	
	
	
	
	
	
	
	


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

    #include<stdio.h>
    #include<math.h>
     
    int main(){
    int a;
    double b;
      int ans=0;
      
    scanf("%d %f\n",&a,&b);
      ans = (int)a*b;
      
      printf("%d\n",ans);
      return 0;
    }

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

int main(){
int a;
double b;
  int ans=0;
  
scanf("%d %lf\n",&a,&b);
  ans = (int)a*b;
  
  printf("%d\n",ans);
  return 0;
}




Compiler output:
main.c:19:5: error: redefinition of 'main'
   19 | int main(){
      |     ^~~~
main.c:4:9: note: previous definition of 'main' with type 'int()'
    4 |     int main(){
      |         ^~~~
Language: C

#include<iostream>
using namespace std;
#define pb push_back
#define ll long long int
#define vi vector<int>
#define floop(i,n) for(int i = 0; i < n; ++i)
#define maxi 1000000000000000000

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


	return 0;
	
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'cout'
    7 | C=A*B
      |      ^
      |      ;
    8 | cout << C << endl;
      | ~~~~
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'll' was not declared in this scope
    7 |  ll n, m;
      |  ^~
a.cc:8:10: error: 'n' was not declared in this scope
    8 |   cin >> n >> m;
      |          ^
a.cc:8:15: error: 'm' was not declared in this scope; did you mean 'tm'?
    8 |   cin >> n >> m;
      |               ^
      |               tm
Language: Java

import java.util.*;
public class Main.extension
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    int a[]=new int[2];
    a[0]=sc.nextInt();
    a[1]=sc.nextInt();
    int c=a[0]*a[1];
    System.out.println(c);
  }
}


Compiler output:
Main.java:2: error: '{' expected
public class Main.extension
                 ^
1 error
Language: C++

#include<iostream>
 
int main() {
  int a, b;
  cin >> a >>b;
  cout << a*b << endl;
}

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 >> a >>b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << a*b << 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:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << a*b << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

int a;
int b;
inr sum;

a=2;
b=5;
sum=a*b;

System.out.print(sum);



Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int a;
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
a=2;
^
Main.java:6: error: class, interface, enum, or record expected
b=5;
^
Main.java:7: error: class, interface, enum, or record expected
sum=a*b;
^
Main.java:9: error: class, interface, enum, or record expected
System.out.print(sum);
^
5 errors
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     std::cout<<A*B<<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,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream> 
using namespace std;

int mian()
{
	int a, b, c;
	cin >> a >> b;
	
	c=a*b;
	cout << c;
	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status