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

#include<iostream>
using namespace std;
int main()
{int a[4], Ar[2], i;
cout<<"enter no in serial length of rectangle 1 \nbreadth of rectangle 1\nlength of rectangle 2\n breadth of rectangle 2\n" ;
for(i=0;i<4;i++) cin>>a[i] ;
for(i=0;i<2;i++)
       {Ar[i] = a[2i] *a[2i+1];
      }
if(Ar[0]>Ar[1])
     {cout<<"greater area=" <<Ar[0];
}
else {cout<<"greater area=" <<Ar[1] ;}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: invalid types 'int [4][__complex__ int]' for array subscript
    8 |        {Ar[i] = a[2i] *a[2i+1];
      |                  ^
a.cc:8:25: error: invalid types 'int [4][__complex__ int]' for array subscript
    8 |        {Ar[i] = a[2i] *a[2i+1];
      |                         ^
Language: C

#include<stdio.h>

Int main()
{
Int a,b,c,d,e,f;
Scanf("%d %d %d %d",&a,&b,&c,&d);
e=a×b;
f=c×d;
If (e>=f)
{printf("%d",e);}
else
{printf("%d",f);

}

}

Compiler output:
main.c:3:1: error: unknown type name 'Int'; did you mean 'int'?
    3 | Int main()
      | ^~~
      | int
main.c: In function 'main':
main.c:5:1: error: unknown type name 'Int'; did you mean 'int'?
    5 | Int a,b,c,d,e,f;
      | ^~~
      | int
main.c:6:1: error: implicit declaration of function 'Scanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 | Scanf("%d %d %d %d",&a,&b,&c,&d);
      | ^~~~~
      | scanf
main.c:7:4: error: stray '\303' in program
    7 | e=a<U+00D7>b;
      |    ^~~~~~~~
main.c:7:4: error: expected ';' before 'b'
    7 | e=a×b;
      |    ^~
      |    ;
main.c:8:4: error: stray '\303' in program
    8 | f=c<U+00D7>d;
      |    ^~~~~~~~
main.c:8:4: error: expected ';' before 'd'
    8 | f=c×d;
      |    ^~
      |    ;
main.c:9:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration]
    9 | If (e>=f)
      | ^~
main.c:9:10: error: expected ';' before '{' token
    9 | If (e>=f)
      |          ^
      |          ;
   10 | {printf("%d",e);}
      | ~
Language: C

#include<stdio.h>

int main() {
            int A,B,C,D,E,F;
            1<=A<=10000;  
             1<=B<=10000; 
           1<=C<=10000; 
          1<=D=<10000;
            printf ("Enter value of %d %d %d %d",A,B,C,D);
            scanf  ( "%d%d%d%d",&A,&B,&C,&D);
            E=A*B;
            F=C*D;
            if (E>=F)
              printf ("%d",E);
            else
               printf ("%d",F);
       
  }

            

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected expression before '<' token
    8 |           1<=D=<10000;
      |                ^
Language: Java

import java.util.*;
public class rect
{
int ar[]=new int[4];
public void input()
{
    int i;
    Scanner read=new Scanner(System.in);
    System.out.println("enter");
    for(i=0;i<4;i++)
    {
        ar[i]=read.nextInt();
    }
}
public int recto()
{
int a=(ar[0]*ar[1]);
int b=(ar[2]*ar[3]);
if(a>b)
return a;
else if(a<b)
return b;
else
return a;
}
public static void main(String[] args)
{
    rect obj=new rect();
obj.input();
obj.recto();
}
}

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

#include<stdio.h>

int main() {
            int A,B,C,D,E,F;
            if (1<=A<=10000 && 1<=B<=10000 && 1<=C<=10000 && 1<=D=<10000 ) {
            printf ("Enter value of %d %d %d %d",A,B,C,D);
            scanf  ( "%d%d%d%d",&A,&B,&C,&D);
            E=A*B;
            F=C*D;
            if (E>=F)
              printf ("%d",E);
            else
               printf ("%d",F);
       }
  }

            

Compiler output:
main.c: In function 'main':
main.c:5:67: error: expected expression before '<' token
    5 |             if (1<=A<=10000 && 1<=B<=10000 && 1<=C<=10000 && 1<=D=<10000 ) {
      |                                                                   ^
Language: C

#include<stdio.h>

int main() {
            int A,B,C,D,E,F;
            if (1=<A=<10000 && 1=<B=<10000 && 1=<C=<10000 && 1=<D=<10000 &&) {
            printf ("Enter value of %d %d %d %d",A,B,C,D);
            scanf  ( "%d%d%d%d",&A,&B,&C,&D);
            E=A*B;
            F=C*D;
            if (E>=F)
              printf ("%d",E);
            else
               printf ("%d",F);
       }
  }

            

Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected expression before '<' token
    5 |             if (1=<A=<10000 && 1=<B=<10000 && 1=<C=<10000 && 1=<D=<10000 &&) {
      |                   ^
Language: C++

#include<iostream>
void main()
{ int A,B,C,D,area1,area2;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
area1=A*B;
area2=C*D;
if(area1>=area2)
{cout<<area1;}
else 
cout<<area2;
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
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;
      | ^~~
      | 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:11:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | {cout<<area1;}
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | cout<<area2;
      | ^~~~
      | 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.io.*;
import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new
        InputStreamReader(System.in));
int a=Integer.parseInt(br.read());
int b=Integer.parseInt(br.read());
int c=Integer.parseInt(br.read());
int d=Integer.parseInt(br.read());


int area=a*b;
int area1=c*d;
 if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);

}}

Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to String
int a=Integer.parseInt(br.read());
                              ^
Main.java:11: error: incompatible types: int cannot be converted to String
int b=Integer.parseInt(br.read());
                              ^
Main.java:12: error: incompatible types: int cannot be converted to String
int c=Integer.parseInt(br.read());
                              ^
Main.java:13: error: incompatible types: int cannot be converted to String
int d=Integer.parseInt(br.read());
                              ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: C++

#include<iostream.h>
void main()
{ int A,B,C,D,area1,area2;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
area1=A*B;
area2=C*D;
if(area1>=area2)
{cout<<area1;}
else 
cout<<area2;
}

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

#include<iostream>
#include<stdio.h>
int main( ){
int A,B,C,D,area1,area2;
A=5;
B=10;
C=12;
D=20;
area1=A*B;
area2=C*D;
if (area1>area2){
cout<<area1<<endl;  }
else
{
   cout<<area2<<endl;
}
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout<<area1<<endl;  }
      | ^~~~
      | std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 | cout<<area1<<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)
      |     ^~~~
a.cc:15:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |    cout<<area2<<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:15:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |    cout<<area2<<endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:1: error: 'return0' was not declared in this scope
   17 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>

using namespace std;  
int main()
{
          
         int A,B,C,D,ar1=0,ar2=0:
         
         cin>>A>>B>>C>>D;
         ar1=A*B; ar2=C*D;
         if(ar1>ar2)
         cout<<ar1;
         else if(ar2>ar1)
         cout<<ar2;
         else
         cout<<"Equal & = "<<ar1;
return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected ',' or ';' before ':' token
    7 |          int A,B,C,D,ar1=0,ar2=0:
      |                                 ^
Language: C

#include<stdio.h>
#include<conio.h>

int main() {
            int A,B,C,D,E,F;
            printf ("Enter value of %d %d %d %d",A,B,C,D);
            scanf  ( "%d%d%d%d",&A,&B,&C,&D);
            E=A*B;
            F=C*D;
            if (E>=F)
               printf ("%d",E);
            else
               printf ("%d",F);
  }

            

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

#include<iostream>
int main()
{
int A,B,C,D;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
if((A*B)>(C*D))
cout<<(A*B);
else
cout<<(C*D);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>A;
      | ^~~
      | 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:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | 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
      |                  ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout<<(C*D);
      | ^~~~
      | 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.io.*;
import java.util.*;
import java.lang.*;

public class NAIN{
    public static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new
        InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());


int area=a*b;
int area1=c*d;
 if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);

}}

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

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

public class Nain{
    public static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new
        InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());


int area=a*b;
int area1=c*d;
 if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);

}}

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

#include<iostream>
int main()
{
int A,B,C,D;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
if(A*B>C*D)
cout<<(A*B);
else
cout<<(C*D);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>A;
      | ^~~
      | 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:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | 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
      |                  ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout<<(C*D);
      | ^~~~
      | 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>
void main()
{
int A,B,C,D;
cin>>A;
cin>>B;
cin>>C;
cin>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>A;
      | ^~~
      | 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:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | 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
      |                  ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout<<C*D;
      | ^~~~
      | 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>
int main()
{
int A,B,C,D;
cin>>A>>B>>C>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>A>>B>>C>>D;
      | ^~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | 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
      |                  ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout<<C*D;
      | ^~~~
      | 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.io.*;
import java.util.*;
import java.lang.*;

public class area{
    public static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new
        InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());


int area=a*b;
int area1=c*d;
 if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);

}}

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

#include<iostream>
void main()
{
int A,B,C,D;
cin>>A>>B>>C>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>A>>B>>C>>D;
      | ^~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | 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
      |                  ^~~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout<<C*D;
      | ^~~~
      | 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.h>
void main()
{
int A,B,C,D;
cout<<"Enter A,B,C,D respectively \n";
cin>>A>>B>>C>>D;
if(A*B>C*D)
cout<<A*B;
else
cout<<C*D;
}

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

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


public class area{
    public static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new
        InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());


int area=a*b;
int area1=c*d;
 if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);

}}

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

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


public class file.java{
    public static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new
        InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());


int area=a*b;
int area1=c*d;
 if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);

}}

Compiler output:
Main.java:6: error: '{' expected
public class file.java{
                 ^
1 error
Language: Java

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


public class file{
    public static void main(String[] args) throws IOException{
        
        BufferedReader br = new BufferedReader(new
        InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
int d=Integer.parseInt(br.readLine());


int area=a*b;
int area1=c*d;
 if(area>=area1)
System.out.println(area);
else if(area<area1)
System.out.println(area1);

}}

Compiler output:
Main.java:6: error: class file is public, should be declared in a file named file.java
public class file{
       ^
1 error
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();
    int c = sc.nextInt();
    int d = sc.nextInt();
    if(a*b>==c*d){
      System.out.println(a*b);
    }else{
      System.out.println(c*d);
    }
  }
}

Compiler output:
Main.java:10: error: illegal start of expression
    if(a*b>==c*d){
            ^
1 error
Language: C++

#include <iosream>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  if(a * b > c * d) {
    cout << a * b << endl;
  } else {
    cout << c * d << endl;
  }
}

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

#include <stdio.h>

int main(void){
int a;
int b;
int c;
int d;
int menseki1;
int menseki2;

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

menseki1 = a*b;
menseki2 = c*d;

if(menseki1>menseki2){
printf("%d",menseki1);
}else if(menseki1 == menseki2){
printf("%d",menseki1);
}else(menseki2>menseki1){
printf("%d",menseki2);
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: expected ';' before '{' token
   20 | }else(menseki2>menseki1){
      |                         ^
      |                         ;
Language: C++

#include <stdio.h>

int main(void){
int a;
int b;
int c;
int d;
int menseki1;
int menseki2;

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

menseki1 = a*b;
menseki2 = c*d;

if(meseki1>menseki2){
printf("%d",menseki1);
}else if(menseki1 == menseki2){
printf("%d",menseki1);
}else(menseki2>menseki1){
printf("%d",menseki2);
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: 'meseki1' was not declared in this scope; did you mean 'menseki1'?
   16 | if(meseki1>menseki2){
      |    ^~~~~~~
      |    menseki1
a.cc:20:25: error: expected ';' before '{' token
   20 | }else(menseki2>menseki1){
      |                         ^
      |                         ;
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();
		int c = sc.nextInt();
		int d = sc.nextInt();
		System.out.println(a * b >= c * d ? a * b ? c * d);
	}
}


Compiler output:
Main.java:10: error: : expected
		System.out.println(a * b >= c * d ? a * b ? c * d);
		                                                 ^
1 error
Language: Java

public class Main {
    public static void main(String[] args) {
        // TODO code application logic here
        //AtCoder Beginner Contest 052
        Scanner sc = new Scanner(System.in);
        int a =  Integer.parseInt(sc.next());
        int b =  Integer.parseInt(sc.next());      
        int c =  Integer.parseInt(sc.next());               
        int d =  Integer.parseInt(sc.next());
        int x = a*b;
        int y = c*d;
        if(x < y)System.out.println(y);
        else if (x > y ) System.out.println(x);
        else System.out.println(x);       
    }
}

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

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

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d = sc.nextInt();
		int ab = a*b;
		int cd = c*d;
		if(ab > cd){
			System.out.println(ab);
		}else if(ab == cd){
			System.out.println(ab);
		}else if(ab < cd){
			System.out.println(cd);
		}

}
}

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

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

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

#include <iostream>
using namespace std;

main(){
int q,w,e,r;
if(q*w>=e*r){
cout << q*w<<endl;
}else{
cout << e:r <<endl;
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:10: error: found ':' in nested-name-specifier, expected '::'
    9 | cout << e:r <<endl;
      |          ^
      |          ::
a.cc:9:9: error: 'e' is not a class, namespace, or enumeration
    9 | cout << e:r <<endl;
      |         ^
Language: C

include <stdio.h>

int main(void) {
	int A,B,C,D;
	scanf("%d%d%d%d",&A,&B,&C,&D);
	if(A*B>=C*D){
		printf("%d",A*B);
	}
	else{
		printf("%d",C*D);
	}
	return 0;
}


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

import java.util.*;

public class TwoRectangles {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d = sc.nextInt();

		int s1 = a * b;
		int s2 = c * d;

		if (s1 >= s2) {
			System.out.println(s1);
		} else {
			System.out.println(s2);
		}
	}
}

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

#include <iostream>
using namespace std;

int main() {
int A,B,C,D;
cin>>A >> B >> C >> D;
int x=A*B;
int y=C*D;
if(x>=y;){cout<<x<<endl;}
else {cout<<y<<endl;}
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before ')' token
    9 | if(x>=y;){cout<<x<<endl;}
      |         ^
Language: C++

#include <iostream>
using namespace std;

int main() {
int A,B,C,D;
cin>>A >> B >> C >> D;
int x=A*B;
int y=C*D;
bool zyoukena=x>=y;
bool zyoukenb=x<y;
if(zyoukena){cout<<x<<endl;}
else (zyoukenb){cout<<y<<endl;}
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before '{' token
   12 | else (zyoukenb){cout<<y<<endl;}
      |                ^
      |                ;
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <numeric>
#include <cmath>

using namespace std;

typedef long long int lld;

const lld mod = 1e9+7;
const lld INF = 1e9;
//const lld MAXN = 1e9;

int main()
{
	lld a,b,c,d;
	cin >> a >> b >> c >> d;

	if (a*b > c*d)
	{
		cout << a*b << endl;
	}else
	{
		cout << c*d
 << endl	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:16: error: expected ';' before '}' token
   30 |  << endl        }
      |         ^~~~~~~~~
      |                ;
Language: C++

#include <stdio.h>

void bigarea(int A, int B, int C, int D)
{
	int ans = A*B;
	int ans2 = C*D;
	if (ans == ans2)
	{
		printf("%d\n", ans);
	}
	else if (ans < ans2)
	{
		printf("%d\n", ans2);

	}
	else
	{
		printf("%d\n",ans)
	}
}

int main(void)
{
	int A;
	int B;
	int C;
	int D;

	scanf("%d %d %d %d", &A, &B, &C, &D);
	bigarea(A, B, C, D);

	return 0;
}

Compiler output:
a.cc: In function 'void bigarea(int, int, int, int)':
a.cc:18:35: error: expected ';' before '}' token
   18 |                 printf("%d\n",ans)
      |                                   ^
      |                                   ;
   19 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(voic){
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    int ans=a*b;
    if(a*b<c*d){
        ans=c*d;
    }
    cout<<ans<<endl;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(voic){
      |     ^~~~
a.cc:3:10: error: 'voic' was not declared in this scope; did you mean 'void'?
    3 | int main(voic){
      |          ^~~~
      |          void
Language: C++

#include<bits\stdc++.h>

using namespace std;

int main() {
	cin.sync_with_stdio(false);

	int A, B, C, D;
	cin >> A >> B >> C >> D;
	if (A*B <= C*D) {
		cout << C*D << endl;
	}
	else {
		cout << A*B << endl;
	}
	return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:19:9: error: expected declaration or statement at end of input
   19 |         return 0;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
typedef long long LL;
LL A,B,C,D;
int main()
{
    scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
    LL ans = max(A*B, C*D);
    printf("%lld\n", ans );
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |     LL ans = max(A*B, C*D);
      |              ^~~
      |              std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include <bits/stdc++.h>
#include <cmath>
typedef long long LL;
LL A,B,C,D;
int main()
{
    scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
    printf("%lld\n", max(A*B, C*D));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |     printf("%lld\n", max(A*B, C*D));
      |                      ^~~
      |                      std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include <bits/stdc++.h>
typedef long long LL;
LL A,B,C,D;
int main()
{
    scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
    printf("%lld\n", max(A*B, C*D));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |     printf("%lld\n", max(A*B, C*D));
      |                      ^~~
      |                      std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include <bits/stdc++.h>
LL A,B,C,D;
int main()
{
    scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
    printf("%lld\n", max(A*B, C*D));
}

Compiler output:
a.cc:2:1: error: 'LL' does not name a type
    2 | LL A,B,C,D;
      | ^~
a.cc: In function 'int main()':
a.cc:5:32: error: 'A' was not declared in this scope
    5 |     scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
      |                                ^
a.cc:5:36: error: 'B' was not declared in this scope
    5 |     scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
      |                                    ^
a.cc:5:40: error: 'C' was not declared in this scope
    5 |     scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
      |                                        ^
a.cc:5:44: error: 'D' was not declared in this scope
    5 |     scanf("%lld%lld%lld%lld", &A, &B, &C, &D);
      |                                            ^
a.cc:6:22: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     printf("%lld\n", max(A*B, C*D));
      |                      ^~~
      |                      std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: Java

import java.util.*;

public class AtCoder04a {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int D = sc.nextInt();
		int AB, CD;
		AB = A*B;
		CD = C*D;
		if(AB > CD){
			System.out.print(AB);
		}
		else if(AB < CD){
			System.out.print(CD);			
		}
		else{System.out.print(AB);
		}

	}

}


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

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
	int A =nextInt();
	int B =nextInt();
	int C =nextInt();
	int D =nextInt();
	if(A*B<=C*D)System.out.println();
	if(C*D<A*B)System.out.println();
	}
	}

Compiler output:
Main.java:5: error: cannot find symbol
	int A =nextInt();
	       ^
  symbol:   method nextInt()
  location: class Main
Main.java:6: error: cannot find symbol
	int B =nextInt();
	       ^
  symbol:   method nextInt()
  location: class Main
Main.java:7: error: cannot find symbol
	int C =nextInt();
	       ^
  symbol:   method nextInt()
  location: class Main
Main.java:8: error: cannot find symbol
	int D =nextInt();
	       ^
  symbol:   method nextInt()
  location: class Main
4 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int D = sc.nextInt();
        int sqa= A * B
        int sqb= C * D
        if(sqa > sqb){
            System.out.println(sqa);
        }
        if(sqa < sqb){
            System.out.println(sqb);
        }
        if(sqa = sqb){
            System.out.println(sqa);
        }
    }
}

Compiler output:
Main.java:10: error: ';' expected
        int sqa= A * B
                      ^
Main.java:11: error: ';' expected
        int sqb= C * D
                      ^
2 errors
Language: C++

#include<cstdio>

using namespace std;

int main(){
  int a,b,c,d;
  cin >> a >> b >> c >> d;
  cout << max(a*b,c*d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b >> c >> d;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << max(a*b,c*d);
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:11: error: 'max' was not declared in this scope
    8 |   cout << max(a*b,c*d);
      |           ^~~
Language: Java

import java.util.*;

public class A_052 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt(), B=sc.nextInt(),
		    C=sc.nextInt(), D=sc.nextInt();
	    int s, n;
	    
	    s = A*B;
	    n = C*D;
	    
	    if(s>n){
	        System.out.println(s);
	    }
	    
	    else if(n>s){
	    	 System.out.println(n);
	    }
	    
	    else{
	    	 System.out.println(A*B);
	    }
	    }

	}


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

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define REP(i,b) FOR(i,0,b)
#define INF 1e9

int main(){
  int a,b,c,d;
  cin>>s;

  if (a*b >= c*d) {
    cout<<a*b;
  } else {
    cout<<c*d;
  }

  return 0;
}


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

#include <stdio.h>

int main(){
int a, b, c, d;
int s1, s2;
scanf("%d%d%d%d",&a&b&c&d);
s1 = a*b;
s2 = c*d;

if(s1>s2) printf("%d", s1);
if(s1<=s2) printf("%d", s2);

return 0;
}

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

#include "stdafx.h"
#include <string>
#include <iostream>
#include <cmath>
#include <algorithm>

using namespace std;
int main()
{

	int a, b, c, d;
	cin >> a >> b >> c >> d;

	int value = max(a*b, c*d);
		cout << value;

	int wait;
	cin >> wait;
	return 0;
}

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

#include <iostream>
using namespace std;
int main(){
  int a,b,c,d;
  cin >> a >> b >> c >> d;
  int s = a * b; t = c * d;
  cout << (s >= t ? s : t) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 't' was not declared in this scope
    6 |   int s = a * b; t = c * d;
      |                  ^
Language: Java

import java.util.Scanner;

/**
 * Created by User on 2017/02/07.
 */
public class Main {
    public static void main(String[] args) {
        int[] num = new int[4];
        Scanner scn = new Scanner(System.in);

        num[0] = scn.nextInt();
        num[1] = scn.nextInt();
        num[2] = scn.nextInt();
        num[3] = scn.nextInt();

        System.out.println(num[0] * num[1] > num[2] * num[3] ? num[0] * num[1] : num[2] * num[3]);
    }


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

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ab = a*b;
		int c = sc.nextInt();
		int d = sc.nextInt();
		int cd = c*d;
		System.out.println(String.valueOf((ab > cd) ? ab : cd));
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
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<stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
#define 11 long long

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


Compiler output:
main.c:4:9: error: macro names must be identifiers
    4 | #define 11 long long
      |         ^~
main.c: In function 'main':
main.c:8:33: error: expected ';' before ':' token
    8 | scanf("%d %d %d %d",&a,&b,&c,&d):
      |                                 ^
      |                                 ;
Language: C

#include<stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX(a,b) ((a)>(b)?(a):(b))
#define 11 long long
 
int main(void){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d):
	printf("%d\n",MAX(a*b,c*d));
return 0;
}

Compiler output:
main.c:4:9: error: macro names must be identifiers
    4 | #define 11 long long
      |         ^~
main.c: In function 'main':
main.c:8:33: error: expected ';' before ':' token
    8 | scanf("%d %d %d %d",&a,&b,&c,&d):
      |                                 ^
      |                                 ;
Language: C++

#include <iostream>

using namespace std;

int main() {
	int a, b, c, d;

	cin >> a >> b >> c >> d;
	cout << (a * b > c * d) ? a * b : c * d << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:49: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |         cout << (a * b > c * d) ? a * b : c * d << endl;
      |                                           ~~~~~~^~~~~~~
Language: C++

/*
ye mera template hai
apna khud likho bc :P
*/

/*
Author : Sarvagya Agarwal
*/

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

//defines
#define openin freopen("input.txt","r",stdin)
#define openout freopen("output.txt","w",stdout)
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define ll long long
#define int long long
#define mod 1000000007
#define repr(i,x,y) for (__typeof(x) i=x;i>=y;i--)
#define rep(i,x,y) for (__typeof(x) i=x;i<=y;i++)
#define all(c) (c).begin(),(c).end()
#define ff first
#define ss second
#define pb push_back
#define mp make_pair

/* Print pair */
template <typename T,typename S>
ostream & operator << (ostream &os , const pair<T,S> &v) {
    os << "(" ;
    os << v.first << "," << v.second << ")" ;
    return os ;
}
/* Print vector */
template <typename T>
ostream & operator << (ostream &os , const vector<T> &v) {
    os << "[" ;
    int sz = v.size() ;
    for(int i = 0 ; i < sz ; ++i) {
        os << v[i] ;
        if(i!=sz-1)os << "," ;
    }
    os << "]\n" ;
    return os ;
}
/* Print set */
template <typename T>
ostream & operator << (ostream &os , const set<T> &v) {
    T last = *v.rbegin() ;
    os << "[" ;
    for(auto it : v) {
        os << it  ;
        if(it != last) os << "," ;
    }
    os << "]\n" ;
    return os ;
}
/* Print Map */
template <typename T,typename S>
ostream & operator << (ostream &os , const map<T,S> &v) {
    for(auto it : v) {
        os << it.first << " : " << it.second << "\n" ;
    }
    return os ;
}
int power(int a , int b)
{
    int res = 1 ;
    while(b)
    {
        if(b%2) {
            res = (res * a) % mod ;
        }
        b/=2 ;
        a = (a*a) % mod ;
    }
    return res ;
}

//debug
#define TRACE

#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
		cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
		const char* comma = strchr(names + 1, ',');cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
}
#else
#define trace(...)
#endif

int32_t main()
{
    fast;
    int a , b , c , d ; 
    cin >> a >> b >> c >> d ; 
    cout << amx(a*b,c*d) << endl ; 
    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:103:13: error: 'amx' was not declared in this scope
  103 |     cout << amx(a*b,c*d) << endl ;
      |             ^~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int min(int x,int y){
    if(x<y)return x;
    else return y;
}
__int64 N,A,B;
int a[100000];
int main(){
    int sum=0;
    cin>>N>>A>>B;
    for(int i=0;i<N;i++){
        cin>>a[i];
    }
    for(int i=0;i<N-1;i++){
        sum+=min(A*(a[i+1]-a[i]),B);
    }
    cout<<sum<<endl;
}

Compiler output:
a.cc:8:1: error: '__int64' does not name a type; did you mean '__int64_t'?
    8 | __int64 N,A,B;
      | ^~~~~~~
      | __int64_t
a.cc: In function 'int main()':
a.cc:12:10: error: 'N' was not declared in this scope
   12 |     cin>>N>>A>>B;
      |          ^
a.cc:12:13: error: 'A' was not declared in this scope
   12 |     cin>>N>>A>>B;
      |             ^
a.cc:12:16: error: 'B' was not declared in this scope
   12 |     cin>>N>>A>>B;
      |                ^
Language: C++

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

int main()
{
int a,b,c,d;
cin >> a >> b >> c >> d;
cout << max(a*b,c*d) << endl;
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++

int a,b,c,d;
cin>> a >> b >> c >>  d;
count<< max(a*b, c:d)<<end1;

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>> a >> b >> c >>  d;
      | ^~~
a.cc:3:1: error: 'count' does not name a type
    3 | count<< max(a*b, c:d)<<end1;
      | ^~~~~
Language: C

int a,b c,d;
cin>> a >> b >> c >> d:
cout<< max(a*b, c*d) <<end1;

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    1 | int a,b c,d;
      |         ^
main.c:2:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>>' token
    2 | cin>> a >> b >> c >> d:
      |    ^~
Language: C++

int a,b c,d;
cin>> a >> b >> c >> d:
cout<< max(a*b, c*d) <<end1;

Compiler output:
a.cc:1:9: error: expected initializer before 'c'
    1 | int a,b c,d;
      |         ^
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>> a >> b >> c >> d:
      | ^~~
Language: C++

#include <iostream>


 
int main() {
  int a,b,c,d;

  std::cin >> a >> b >> c >> d;

  if (a * b > b * c) {
    std::cout    <<  a * b  << std::endl;
  } else {
    std::cout << c * d << std::endl;
  }
  return 0:
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'll' was not declared in this scope
    4 | ll a,b,c,d;
      | ^~
a.cc:5:6: error: 'a' was not declared in this scope
    5 | cin>>a>>b>>c>>d;
      |      ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 | cin>>a>>b>>c>>d;
      |         ^
a.cc:5:12: error: 'c' was not declared in this scope
    5 | cin>>a>>b>>c>>d;
      |            ^
a.cc:5:15: error: 'd' was not declared in this scope
    5 | cin>>a>>b>>c>>d;
      |               ^
Language: C++

include <iostream>
#include <cstdio>
using namespace std;
int main(){
  int A,B,C,D;
  cin >> A >> B >> C >> D;
  if( A*B >= C*D )
    cout << A*B << endl;
  else
    cout << C*D << endl;
  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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> C >> D;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cstdio>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << A*B << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
    8 |     cout << A*B << endl;
      |                    ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <cstdio>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << C*D << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout << C*D << endl;
      |                    ^~~~
a.cc:10:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'