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

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

int main() {
    int a, b
    cin >> a >> b
    cout << a + b
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> a >> b
      |     ^~~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int a'
    7 |   int a=a*b;
      |       ^
a.cc:5:7: note: 'int a' previously declared here
    5 |   int a,b;
      |       ^
Language: Java

Class Multiplication{
public static void main{
int num1, num2;
Scanner sc = new Scanner(System.in);
num1 = sc.nextInt();
num2= sc.next.Int();
int res = num1* num2;
System.out.println(res); 
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Class Multiplication{
^
Main.java:2: error: class, interface, enum, or record expected
public static void main{
              ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
num1 = sc.nextInt();
^
Main.java:6: error: class, interface, enum, or record expected
num2= sc.next.Int();
^
Main.java:8: error: class, interface, enum, or record expected
System.out.println(res); 
^
Main.java:9: error: class, interface, enum, or record expected
}
^
7 errors
Language: C

#include<stdio.h>
int main()
  {
  int a,b;
  scanf("%d%d",&a,&b);
  printf("%d\n",a*b);

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected declaration or statement at end of input
    6 |   printf("%d\n",a*b);
      |   ^~~~~~
Language: C++

  long long a;
  double b;
  cin >> a >> b;
  long long c = b*100;
  long long ans = (a*c)/100;
  cout << ans << endl;
}


Compiler output:
a.cc:3:3: error: 'cin' does not name a type
    3 |   cin >> a >> b;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout << ans << endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~
Language: Java

import java.util.Scanner;

public class Test {

    public static void main(String[] args) {

        int inputA, inputB;
        Scanner scanner = new Scanner(System.in);

        inputA = scanner.nextInt();
        inputB = scanner.nextInt();

        System.out.println(inputA*inputB);
    }
}


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

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println(sc.nextInt() * sc.nextInt());
  

Compiler output:
Main.java:6: error: reached end of file while parsing
        System.out.println(sc.nextInt() * sc.nextInt());
                                                        ^
1 error
Language: Java

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

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

/******************************************************************************

            EYENINE,THE ELDER_WAND!!!
            THE ROOT OVER MINUS EIGHTY ONE!!

*******************************************************************************/

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

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


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

/******************************************************************************

            EYENINE,THE ELDER_WAND!!!
            THE ROOT OVER MINUS EIGHTY ONE!!

*******************************************************************************/

#include<bits/stdc++.h>
#define ALL_UP_WITH return 0
using namespace std;

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

    ALL_UP_WITH;
}



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

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected expression before '%' token
    7 |   scanf("%d %d",&A,%B);
      |                    ^
Language: C

#include<stdio.h>

int main(void)
{
  int A, B, C;
 
  scanf("%d %d",&A,%B);
  
  C=A*B;
  
  printf("計算結果は %d です。\n", C);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected expression before '%' token
    7 |   scanf("%d %d",&A,%B);
      |                    ^
Language: C

#include<studio.h>

int main(void)
{
  int A, B, C;
  
  printf("A×Bの値を計算します。");
  
  printf("Aの値は？");
  scanf("%d",&A);
  
  printf("Bの値は？");
  scanf("%d",&B);
  
  C=A*B;
  
  printf("計算結果は %d です。\n", C);
  
  return 0;
}

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

using System;

namespace Mysample{
  
  class multi1{
    
    static void Main(string[] args){
      	
      int A,B,C:
      
      A=Console.Readline();
      B=Console.Readline();
      
      if( 1<= A <= 100 && 1<= B <= 100){
        
        C  = A*B;
      }
      else{
        Console.WriteLine("値が間違っています");
      }
    }
  }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:22: error: 'string' has not been declared
    7 |     static void Main(string[] args){
      |                      ^~~~~~
a.cc:7:31: error: expected ',' or '...' before 'args'
    7 |     static void Main(string[] args){
      |                               ^~~~
a.cc:22:4: error: expected ';' after class definition
   22 |   }
      |    ^
      |    ;
a.cc: In static member function 'static void Mysample::multi1::Main(int*)':
a.cc:9:16: error: found ':' in nested-name-specifier, expected '::'
    9 |       int A,B,C:
      |                ^
      |                ::
a.cc:9:15: error: 'C' has not been declared
    9 |       int A,B,C:
      |               ^
a.cc:11:8: error: qualified-id in declaration before '=' token
   11 |       A=Console.Readline();
      |        ^
a.cc:12:9: error: 'Console' was not declared in this scope
   12 |       B=Console.Readline();
      |         ^~~~~~~
a.cc:16:9: error: 'C' was not declared in this scope
   16 |         C  = A*B;
      |         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    2 |   int a * b;
      |         ^
main.c:2:11: error: 'b' undeclared (first use in this function)
    2 |   int a * b;
      |           ^
main.c:2:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d", &a, &b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d", &a, &b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:19: error: 'a' undeclared (first use in this function)
    3 |   scanf("%d %d", &a, &b);
      |                   ^
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d", a*b);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc:9:14: error: stray '\' in program
    9 |     printf(%d\n,a*b);
      |              ^
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '%' token
    8 |     scanf(%d%d,&a,&b);
      |           ^
a.cc:8:12: error: 'd' was not declared in this scope
    8 |     scanf(%d%d,&a,&b);
      |            ^
a.cc:9:12: error: expected primary-expression before '%' token
    9 |     printf(%d\n,a*b);
      |            ^
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc:9:14: error: stray '\' in program
    9 |     printf(%d\n,a*b);
      |              ^
a.cc: In function 'int main()':
a.cc:7:12: error: expected unqualified-id before 'int'
    7 |     int a, int b;
      |            ^~~
a.cc:8:11: error: expected primary-expression before '%' token
    8 |     scanf(%d%d,&a,&b);
      |           ^
a.cc:8:12: error: 'd' was not declared in this scope
    8 |     scanf(%d%d,&a,&b);
      |            ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |     scanf(%d%d,&a,&b);
      |                    ^
a.cc:9:12: error: expected primary-expression before '%' token
    9 |     printf(%d\n,a*b);
      |            ^
Language: Java

import java.util.Scanner;
public class MultiplicationOne{
  public static void main(String[] args)
  {
    Scanner scan = new Scanner(System.in);
    int one = scan.nextInt();
    int two = scan.nextInt();
    
    int total = one * two;
    
    System.out.println(total);
  }
}

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

int numOne = System.nextInt();
int numTwo = System.nextInt();

int total = numOne * numTwo;

System.out.print(total);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int numOne = System.nextInt();
^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
System.out.print(total);
^
2 errors
Language: Java

import java.util.Scanner;
public class prog
{
  public static void main()
  {
    
  Scanner sc = new Scanner(System.in);
  int a=sc.nextInt();
  int b=sc.nextInt();
  int c=a*b;
  System.out.println(c);
}
 
}

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

mport java.util.Scanner;
class prog
{
  public static void main()
  {
    
  Scanner sc = new Scanner(System.in);
  int a=sc.nextInt();
  int b=sc.nextInt();
  int c=a*b;
  System.out.println(c);
}
 
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner
class prog
{
  public static void main()
  {
    
  Scanner sc = new Scanner(System.in);
  int a=sc.nextInt();
  int b=sc.nextInt();
  int c=a*b;
  System.out.println(c);
}

}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: C++

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

}

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main()
      | ~~~
Language: C++

#inc#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;

#define INF 1000000000
#define loop(i,a,b) for(int i=a;i<b;i++)
int main()
{
    //freopen("contest.txt","r",stdin);
    //freopen("contest.txt","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
    int a,b;
    cin>>a>>b;
    cout<<a*b<<endl;



    return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inc
    1 | #inc#include <bits/stdc++.h>
      |  ^~~
a.cc:4:9: error: 'vector' does not name a type
    4 | typedef vector<int> vi;
      |         ^~~~~~
a.cc:5:9: error: 'pair' does not name a type
    5 | typedef pair<int,int> pi;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:13:5: error: 'ios' has not been declared
   13 |     ios::sync_with_stdio(0);
      |     ^~~
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inc#include <bits/stdc++.h>
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<a*b<<endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:16: error: 'endl' was not declared in this scope
   17 |     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 | #inc#include <bits/stdc++.h>
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define endl "\n"

using namsepace std;

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

Compiler output:
a.cc:5:7: error: expected nested-name-specifier before 'namsepace'
    5 | using namsepace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   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:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   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
      |                  ^~~~
Language: C++

include<iostream>
using namespace std;
int main(){
	int A, B;
	cin >> A>> B;
  cout << A + B;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> A>> B;
      |         ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << A + B;
      |   ^~~~
Language: Java


public class Main {
    public static void main(String[] args) throws IOException {
        long a, b;
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));

        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));

        while (in.nextToken() != StreamTokenizer.TT_EOF)
        // in.nextToken()读下一个标记，StreamTokenizer.TT_EOF是个参数EOF
        {
            a = (int) in.nval;
            in.nextToken();
            b = (int) in.nval;
            out.println(a + b);
        }
        out.flush();// 刷新缓冲区，否则a+b会留在缓冲区
    }
}


Compiler output:
Main.java:3: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
        ^
  symbol:   class StreamTokenizer
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
                                 ^
  symbol:   class StreamTokenizer
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
                                                     ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
                                                                        ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:7: error: cannot find symbol
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        ^
  symbol:   class PrintWriter
  location: class Main
Main.java:7: error: cannot find symbol
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
                              ^
  symbol:   class PrintWriter
  location: class Main
Main.java:7: error: cannot find symbol
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
                                              ^
  symbol:   class OutputStreamWriter
  location: class Main
Main.java:9: error: cannot find symbol
        while (in.nextToken() != StreamTokenizer.TT_EOF)
                                 ^
  symbol:   variable StreamTokenizer
  location: class Main
9 errors
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: In function 'main':
main.c:5:16: error: expected ')' before 'a'
    5 |   scanf("%d %d"a, b);
      |        ~       ^
      |                )
Language: Java


public class Main {
    public static void main(String[] args) throws IOException {
        int a, b;
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));

        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));

        while (in.nextToken() != StreamTokenizer.TT_EOF)
        // in.nextToken()读下一个标记，StreamTokenizer.TT_EOF是个参数EOF
        {
            a = (int) in.nval;
            in.nextToken();
            b = (int) in.nval;
            out.println(a + b);
        }
        out.flush();// 刷新缓冲区，否则a+b会留在缓冲区
    }
}


Compiler output:
Main.java:3: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
        ^
  symbol:   class StreamTokenizer
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
                                 ^
  symbol:   class StreamTokenizer
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
                                                     ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
                                                                        ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:7: error: cannot find symbol
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        ^
  symbol:   class PrintWriter
  location: class Main
Main.java:7: error: cannot find symbol
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
                              ^
  symbol:   class PrintWriter
  location: class Main
Main.java:7: error: cannot find symbol
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
                                              ^
  symbol:   class OutputStreamWriter
  location: class Main
Main.java:9: error: cannot find symbol
        while (in.nextToken() != StreamTokenizer.TT_EOF)
                                 ^
  symbol:   variable StreamTokenizer
  location: class Main
9 errors
Language: Java

import java.util.Scanner;

public class KaranTandonKicks{

	public static void main(String[] args) {
	  	Scanner scn = new Scanner(System.in);
      	long a = scn.nextLong();
      	long b = scn.nextLong();
      	System.out.println(a*b);
	}
}

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

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
	ll a; double b;
	cin >> a >> b;
	b *= 100;
	ll res = (ll)(a * int(round(b)));
	cout << ll(res/100) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:12: error: expected primary-expression before 'long'
    2 | #define ll long long
      |            ^~~~
a.cc:10:17: note: in expansion of macro 'll'
   10 |         cout << ll(res/100) << endl;
      |                 ^~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:21: error: invalid operands to binary & (have 'int *' and 'int')
    5 |   scanf("%d %d", &n &m);
      |                  ~~ ^
      |                  |
      |                  int *
Language: C++

int main()
{
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);

    ll A;
    double B;
    B *= 100;
    ll res = (ll)(A * B);

    cout << round(res / 100) << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin.tie(0);
      |     ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout.tie(0);
      |     ^~~~
a.cc:5:5: error: 'ios' has not been declared
    5 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll A;
      |     ^~
a.cc:10:7: error: expected ';' before 'res'
   10 |     ll res = (ll)(A * B);
      |       ^~~~
      |       ;
a.cc:12:19: error: 'res' was not declared in this scope
   12 |     cout << round(res / 100) << endl;
      |                   ^~~
a.cc:12:13: error: 'round' was not declared in this scope
   12 |     cout << round(res / 100) << endl;
      |             ^~~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |     cout << round(res / 100) << endl;
      |                                 ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | 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:5:1: 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: C++

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

int a,b;
cin >> a >> b;
cout << a*b << endl;


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b;
      | ^~~
a.cc:6:1: error: 'cout' does not name a type
    6 | cout << a*b << endl;
      | ^~~~
Language: Java

import java.util.Scanner;
public class Main {
 
	public static void main(String[] args) {
		  Scanner sc = new Scanner(System.in);
	         
          int A = sc.nextInt();
      	  int B = sc.nextInt();
      

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

Compiler output:
Main.java:15: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

package cp;

import java.io.*;
import java.util.*;
public class CP {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		System.out.println(n*m);
	}
}


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



import java.io.*;
import java.util.*;
public class CP {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		System.out.println(n*m);
	}
}


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

#include<stdio.h> 
int main(){
  inta,b;
  scanf("%d%d",&a,&b);
  printf("%d\n",a*b);
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: 'inta' undeclared (first use in this function); did you mean 'int'?
    3 |   inta,b;
      |   ^~~~
      |   int
main.c:3:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:8: error: 'b' undeclared (first use in this function)
    3 |   inta,b;
      |        ^
main.c:4:17: error: 'a' undeclared (first use in this function)
    4 |   scanf("%d%d",&a,&b);
      |                 ^
Language: Java

import java.util.*;
public class Main {
  public static void main (String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    for (; n != 0; n--){
    int a = sc.nextInt();  
    if (a != 0) {
      int b = sc.nextInt;
      a*b = a;
    }  
    else {
      System.out.println(-1);
    }
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
      int b = sc.nextInt;
                ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
Main.java:10: error: unexpected type
      a*b = a;
       ^
  required: variable
  found:    value
2 errors
Language: C++

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

int main(){
  int n, m;
  cin>>n>>m;
  print(n*m);
  return 0;
}


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

class LevelA{
  public static main(String args[]){
  	int A=Integer.parseInt(args[0]);
  	int B=Integer.parseInt(args[1]);
  	System.out.println(A*B)
	}
}

Compiler output:
Main.java:2: error: invalid method declaration; return type required
  public static main(String args[]){
                ^
Main.java:5: error: ';' expected
  	System.out.println(A*B)
  	                       ^
2 errors
Language: Java

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

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

import java.util.Scanner;
        
public class main {

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

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

import java.util.Scanner;
        
public class m {

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


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

import java.util.Scanner;
        
public class main {

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


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

import java.util.Scanner;
        
public class main {

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


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

#include<iostream>
using namespace std;

N, S = map(int,input().split())
A = list(map(int,input().split()))
mod = 998244353
dp = [[0 for j in range(S + 1)] for i in range(N + 1)]
dp[0][0] = 1
for i in range(N) : 
    for j in range(S + 1) : 
        dp[i + 1][j] += 2 * dp[i][j]
        dp[i + 1][j] %= mod 
        if j + A[i] <= S : 
            dp[i + 1][j + A[i]] += dp[i][j]
            dp[i + 1][j + A[i]] %= mod
print(dp[N][S])


Compiler output:
a.cc:4:1: error: 'N' does not name a type
    4 | N, S = map(int,input().split())
      | ^
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;

public class DSU2
{ 
  public static void main(String[] args) throws Exception{
  	FastReader sc = new FastReader();
    int a = sc.nextInt();
    int b = sc.nextInt();
    System.out.println(a*b);
  
  }
  
  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; 
        } 
    }
}

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

#include <bits/stdc++. h>

using namepace std;

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

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

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

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


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

int a, b;

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

Compiler output:
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | scanf("%d",&a);
      |      ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d",&b);
      |      ^
a.cc:6:7: error: expected constructor, destructor, or type conversion before '(' token
    6 | printf("%d",a*b);
      |       ^
Language: Java


import java.util.Scanner;


public class kakeru {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		long [] a = new long[n];


		for(int i=0;i<n;i++) {

			 a[i] = scan.nextLong();
			 if(a[i]==0) {
				 System.out.println(0);
				 return;
			 }
		}

long c =1;
for(int i=0;i<n;i++) {
	if(a[i] <= 1000000000000000000L / c) {
		c *= a[i];
	}else {
		System.out.println(-1);
		return;
	}
}

if(c > 1000000000000000000L) {
			System.out.println(-1);
}else {
	System.out.println(c);
	scan.close();
}
	}

}


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

/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>
#include<vector>
#include<algorithm>
typedef unsigned long long int aj;
using namespace std;
int main()
{
    vector <aj> ar;
    aj i,n,mult=1,k,f=0;
  cin>>n;
    for(i=0; i<n; i++)
    {
        cin>>k;
        ar.push_back(k);
    }
    
    sort(ar.begin(),ar.end());
    if(ar[n-1]>1000000000000000000)
    cout<<"-1";
    else
    if(ar[n-1]*ar[0]>1000000000000000000)
    cout<<"-1";
    else
      if(ar[n-1]*ar[n-1]>1000000000000000000)
        cout<<"-1";
  else
    if(ar[0]==0)
    cout<<0;
    else
    {
        for(i=0; i<n; i++)
        {
           
            if(ar[i]>1000000000000000000/mult;)
            {
                f=1;
                break;
            }
           mult=mult*ar[i];
        }
        if(f==0)
        cout<<mult;
        else
        cout<<"-1";
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:47: error: expected primary-expression before ')' token
   42 |             if(ar[i]>1000000000000000000/mult;)
      |                                               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e5+5;
#define mst(a) memset(a,0,sizeof a)
int main(){
	cin>>a>>b;
  cout<<a*b;
	
	return 0;
} 

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

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:19: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d%d",&a &b);
      |                ~~ ^
      |                |
      |                int *
Language: C

#include<atdio.h>

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


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

#include<atdio.h>

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


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

#include<atdio.h>

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


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

#include <iostream>
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:5:11: error: expected ';' before 'B'
    5 |   cin >> A B;
      |           ^~
      |           ;
Language: C++

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

Compiler output:
a.cc:7:14: warning: missing terminating " character
    7 |   cout<<a*b<<"\n;
      |              ^
a.cc:7:14: error: missing terminating " character
    7 |   cout<<a*b<<"\n;
      |              ^~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C

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

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

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>

#define int long long

using namespace std;

const long double EPS = 1e-20;

int32_t main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int A;
long double B;
cin >> A >> B;
B+= EPS;
int T = B;
A *= B

    cout << A/100<< '\n';

    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:18:7: error: expected ';' before 'cout'
   18 | A *= B
      |       ^
      |       ;
   19 | 
   20 |     cout << A/100<< '\n';
      |     ~~~~
Language: C++


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

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:1: error: expected initializer before 'cin'
    9 | cin>>a>>b;
      | ^~~
a.cc:10:9: error: 'b' was not declared in this scope
   10 | cout<<a*b<<endl;
      |         ^
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef map<int,int> mii;
typedef map<ll,ll> mll;
typedef vector<pii> vii;
typedef vector<pll> vll;
#define fi first
#define se second
#define pi 3.141592653589793
#define mod 1000000007
#define pb push_back
#define all(v) v.begin(),v.end()
#define rall(v) v.begin(), v.end(), greater<ll>()
#define tc int t;cin>>t;while(t--)
#define pqmax priority_queue<int>
#define pqmin priority_queue<int,vi,greater<int>>
#define fast_io ios_base::sync_with_stdio(0), cin.tie(NULL)
#define tc_g int tt;cin>>tt;for(int ti=1;ti<=tt;ti++)
#define case_g "Case #"<<ti<<": "
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_multiset;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
typedef tree<int, int, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_map;
using namespace std;
int main() {
    ll 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 <iostream>
using namespace std;
int main(){
           int a,b;
           cin>>a>>b;
           cout<<a*b<<"\n;
}

Compiler output:
a.cc:6:23: warning: missing terminating " character
    6 |            cout<<a*b<<"\n;
      |                       ^
a.cc:6:23: error: missing terminating " character
    6 |            cout<<a*b<<"\n;
      |                       ^~~~
a.cc: In function 'int main()':
a.cc:7:1: error: expected primary-expression before '}' token
    7 | }
      | ^
Language: Java

import java.util.Scanner;

public class Problem1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		sc.close();
		System.out.println(n*m);
	}
}


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

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

Compiler output:
a.cc:7:26: warning: missing terminating ' character
    7 |         cout << a * b << '\n;
      |                          ^
a.cc:7:26: error: missing terminating ' character
    7 |         cout << a * b << '\n;
      |                          ^~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: Java

//package javacode;

import java.util.Scanner;
public class AMultiplication1atcoder169 {
    
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        
        int A,B;
        
        A=input.nextInt();
        B=input.nextInt();
        
        System.out.println(A*B);
    }
    
}


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


import java.util.Scanner;
public class AMultiplication1atcoder169 {
    
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        
        int A,B;
        
        A=input.nextInt();
        B=input.nextInt();
        
        System.out.println(A*B);
    }
    
}

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

n = int(input())
ar = list(map(int,input().split()))
a = 1
for i in ar:
    a = a*i
    if a>1000000000000000000:
		a = -1
        break;
print(a)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
a.cc:9:6: error: expected constructor, destructor, or type conversion before '(' token
    9 | print(a)
      |      ^
Language: C++

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

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 n,a;
  cin>>n;
  long long int s=1,ss=1000000000000000000,c=0;
  while(n--)
  {
    cin>>a;
    s+=s*a;
    if(s>ss)
    {
      c++;
      break;
    }
    if(c)
      cout<<"-1";
    else
      cout<<s;
  }
    

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

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: class Solution is public, should be declared in a file named Solution.java
public class Solution{
       ^
1 error
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:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:12: error: 'cin' was not declared in this scope
    5 |   int a,b; cin >> a >> b;
      |            ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << a*b << endl;
      |   ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |   cout << a*b << endl;
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using ll = long long int;
int main(){
    ll a;
    string b;
    cin>>a>>b;
    cout<<(a*100*(b[0]-'0') + a*10*(b[2]-'0') + a*(b[3]-'0'))/100<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string b;
      |     ^~~~~~
a.cc:5:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:5: 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:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:13: error: 'b' was not declared in this scope
    6 |     cin>>a>>b;
      |             ^
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<(a*100*(b[0]-'0') + a*10*(b[2]-'0') + a*(b[3]-'0'))/100<<"\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~