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

#include <stdio.h>
int max2(int a, int b)
{
    return a>b ? a : b;
}
int max3(int a, int b, int c)
{
    return max2(a, mx2(b, c));
}
int main()
{
    int a, b;   scanf("%d %d", &a, &b);
    printf("%d\n", max3(a-b, a+b, a*b));
    return 0;
}

Compiler output:
main.c: In function 'max3':
main.c:8:20: error: implicit declaration of function 'mx2'; did you mean 'max2'? [-Wimplicit-function-declaration]
    8 |     return max2(a, mx2(b, c));
      |                    ^~~
      |                    max2
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 9999999999999999;
using ll = long long;
int main(){
  int A,B;
  cin>>A>>B;
  cout max(A+B,max(A-B,A*B)) << endl;
  return 0;
}

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

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

int main{
  int a, b;
  cin >> a >> b;
  cout << max(a + b, max(a - b, a * b)) << endl;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a, b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << max(a + b, max(a - b, a * b)) << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: Java

import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
  	int b=sc.nextInt();
    if((a+b)>=(a-b)&&(a+b)>=(a*b)){
    System.out.println(a+b);
    }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){
      System.out.println(a-b);
    }else{
     System.out.println(a*b);
    }
    }
}

Compiler output:
Main.java:10: error: '(' expected
    }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){
       ^
Main.java:10: error: illegal start of expression
    }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){
        ^
Main.java:10: error: not a statement
    }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){
            ^
Main.java:10: error: ';' expected
    }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){
                                        ^
Main.java:12: error: 'else' without 'if'
    }else{
     ^
5 errors
Language: C

#include <stdio.h>
int main(void){
int A,b,c;
scanf("%d %d",&A,&B);
if(A+B>A-B){
	c=A+B;
    }
else{
	c=A-B;
    }
if(A*B>c){
	c=A+B;
    }
printf("%d",c);
}


Compiler output:
main.c: In function 'main':
main.c:4:19: error: 'B' undeclared (first use in this function)
    4 | scanf("%d %d",&A,&B);
      |                   ^
main.c:4:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include <stdio.h>
int main(void){
int A,b,c;
scanf("%d %d",&A,&B);
if(A+B>A-B){
	c=A+B;
    }
else{
	c=A-B;
    }
if(A*B>c){
	c=A+B;
    }
printf("%d",c);
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
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();
		
	System.out.print(a+b>a-b&&a+b>a*b ? a+b : (a-b>a+b&&a-b>a*b ? a-b : (a*b)));	
	
}
}

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

#include<iostream>
using namespace std;

int main()
{
    int a,b,s,m,x;
    cin>>a>>b;
    s = a+b;
    m = a-b;
    x = a*b;

    if(s>= m && s> =x )
        cout <<s;
    if (m>=s && m>=x)
        cout<<m;
    if(x>=s && x>=m)
        cout<<x;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '=' token
   12 |     if(s>= m && s> =x )
      |                    ^
Language: C

#include <stdio.h>

int main(void) {
	int A,B;
	int a,b,c,ans;
	scanf("%d%d",&A,&B);
	a=A+B;
	b=A-B;
	c=A*B;
	if(a>b){
		ans=a
	}else{
		ans=b
	}
	if(ans<c){
		ans=c
	}
	printf("%d",ans);
}


Compiler output:
main.c: In function 'main':
main.c:11:22: error: expected ';' before '}' token
   11 |                 ans=a
      |                      ^
      |                      ;
   12 |         }else{
      |         ~             
main.c:13:22: error: expected ';' before '}' token
   13 |                 ans=b
      |                      ^
      |                      ;
   14 |         }
      |         ~             
main.c:16:22: error: expected ';' before '}' token
   16 |                 ans=c
      |                      ^
      |                      ;
   17 |         }
      |         ~
Language: Java

import java.io.*;
class Main{
  public static void main(String[] args){
    BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in));
    int A = 0;
    int B;
    String txt = "";
    try{
      txt = kbd.readLine();
      kbd.close();
    }catch(IOException e){
      e.printStackTrace();
    }
    String test1 = txt.substring(0, txt.indexOf(" ")).strip()
    A = Integer.parseInt(test1);
    test1 = txt.substring(txt.indexOf(" "), txt.length()).strip()
    B = Integer.parseInt(test1);
    int[] data = {A + B, A - B, A * B};
    System.out.println(Math.max(Math.max(data[0], data[1]), data[2]));
  }
}

Compiler output:
Main.java:14: error: ';' expected
    String test1 = txt.substring(0, txt.indexOf(" ")).strip()
                                                             ^
Main.java:16: error: ';' expected
    test1 = txt.substring(txt.indexOf(" "), txt.length()).strip()
                                                                 ^
2 errors
Language: Java

import java.io.*;
class Main{
  public static void main(String[] args){
    BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in));
    var A;
    int B;
    String txt = "";
    try{
      txt = kbd.readLine();
      kbd.close();
    }catch(IOException e){
      e.printStackTrace();
    }
    
    A = Integer.parseInt(txt.substring(0, txt.indexOf(" ")).strip());
    B = Integer.parseInt(txt.substring(txt.indexOf(" "), txt.length()).strip());
    int[] data = {A + B, A - B, A * B};
    System.out.println(Math.max(Math.max(data[0], data[1]), data[2]));
  }
}

Compiler output:
Main.java:5: error: cannot infer type for local variable A
    var A;
        ^
  (cannot use 'var' on variable without initializer)
1 error
Language: Java

import java.io.*;
class Main{
  public static void main(String[] args){
    BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in));
    int A;
    int B;
    String txt;
    try{
      txt = kbd.readLine();
      kbd.close();
    }catch(IOException e){
      e.printStackTrace();
    }
    
    A = Integer.parseInt(txt.substring(0, txt.indexOf(" ")).strip());
    B = Integer.parseInt(txt.substring(txt.indexOf(" "), txt.length()).strip());
    int[] data = {A + B, A - B, A * B};
    System.out.println(Math.max(Math.max(data[0], data[1]), data[2]));
  }
}

Compiler output:
Main.java:15: error: variable txt might not have been initialized
    A = Integer.parseInt(txt.substring(0, txt.indexOf(" ")).strip());
                         ^
1 error
Language: Java

import java.io.*;
class Main{
  public static void main(String[] args){
    BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in));
    int A;
    int B;
    String txt;
    try{
      txt = kbd.readLine();
      kbd.close();
    }catch(IOException e){
      e.printStackTrace();
    }
    
    A = Integer.parseInt(txt.substring(0, txt.indexOf(" ")));
    B = Integer.parseInt(txt.substring(txt.indexOf(" "), txt.length()));
    int[] data = {A + B, A - B, A * B};
    System.out.println(Math.max(Math.max(data[0], data[1]), data[2]));
  }
}

Compiler output:
Main.java:15: error: variable txt might not have been initialized
    A = Integer.parseInt(txt.substring(0, txt.indexOf(" ")));
                         ^
1 error
Language: Java

import java.io.*;
class Main{
  public static void main(String[] args){
    BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in));
    int A;
    int B;
    String txt;
    try{
      txt = kbd.readLine();
      kbd.close();
    }catch(IOException e){
      e.printStackTrace();
    }
    
    A = Integer.parseInt(txt.substring(0, txt.indexOf(" ")));
    B = Integer.parseInt(txt.substring(txt.indexOf(" "), txt.length()));
    int[] data = {A + B, A - B, A * B};
    System.out.println(Math.max(data));
  }
}

Compiler output:
Main.java:18: error: no suitable method found for max(int[])
    System.out.println(Math.max(data));
                           ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
using namespace std;
int main()
{
    int a, b;
    cin >> a >> b;
    int wa, sa, seki;
    wa = a + b;
    sa = a - b;
    seki = a * b;
    cout << MAX(wa, MAX(sa, seki)) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'MAX' was not declared in this scope
   15 |     cout << MAX(wa, MAX(sa, seki)) << endl;
      |                     ^~~
a.cc:15:13: error: 'MAX' was not declared in this scope
   15 |     cout << MAX(wa, MAX(sa, seki)) << endl;
      |             ^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
using namespace std;
int main()
{
    int a, b;
    cin >> a >> b;
    int wa, sa, seki;
    wa = a + b;
    sa = a - b;
    seki = a * b;
    if (wa > sa)
    {
        if (wa >= eki)
        {
            cout << wa << endl;
        }
    }
    if (sa > seki)
    {
        if (sa > wa)
        {
            cout << sa << endl;
        }
    }
    if (seki > sa)
    {
        if (seki > wa)
        {
            cout << seki << endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: 'eki' was not declared in this scope; did you mean 'seki'?
   17 |         if (wa >= eki)
      |                   ^~~
      |                   seki
Language: C++

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

int main(){
    int A,B;
    cin >> A >> B;
    
    cout << max({A+B, A-B, A*B}) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |     cout << max({A+B, A-B, A*B}) << endl;
      |             ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int main(){
  
  int a,b;
  cin >> a >> b;
  sum = a+b;
  diff = a-b;
  prod = a*b;
  cout << min((sum,diff),prod);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'sum' was not declared in this scope
   10 |   sum = a+b;
      |   ^~~
a.cc:11:3: error: 'diff' was not declared in this scope
   11 |   diff = a-b;
      |   ^~~~
a.cc:12:3: error: 'prod' was not declared in this scope
   12 |   prod = a*b;
      |   ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<vector>
#include<map>
#include<algorithm>
using namespace std;
int main(){
  long long n;
  long long cnt =0;
  cin>>n;
  map<string,long long> mp;
  while(cnt<n){
    string s;
    cin>>s;
    vector<char> ch(10);
    for(int i=0;i<(int)s.size();i++){
      ch[i]=s[i];
    }
    sort(ch.begin(),ch.end());
    for(int i=0;i<(int)s.size();i++){
      s[i]=ch[i];
    }
    if(mp.count(s)!=0){
      mp[s]++;
      ans+=mp[s];
    }else{
      mp[s]=0;
    }
    cnt++;
  }
  cout<<ans<<endl;
    
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |       ans+=mp[s];
      |       ^~~
      |       abs
a.cc:32:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   32 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: Java

import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner yomi = new Scanner(System.in);
        int[] nyuuryoku = new int[2];
        nyuuryoku[0] = yomi.nextInt();
        nyuuryoku[1] = yomi.nextInt();
        int[] suuzi = new int[3];
        suuzi[0] = nyuuryoku[0] + nyuuryoku[1];
        suuzi[1] = nyuuryoku[0] - nyuuryoku[1];
        suuzi[2] = nyuuryoku[0] * nyuuryoku[1];
        int max =suuzi[0]
        for (byte i=1;i<3;i++){
            max = Math.max(suuzi[i],max);
        }
        System.out.println(max);
        }

    }


Compiler output:
Main.java:13: error: ';' expected
        int max =suuzi[0]
                         ^
1 error
Language: Java


import java.util.*;

public class tst {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

    }

}


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

#include <iostream>
#include <assert.h>
#include <vector>
#include <algorithm>
//#include <functional>


int main(){
    int32_t A,B;
    std::cin >> A >> B;

    int32_t plus = A + B;
    int32_t minus = A - B;
    int32_t mul = A * B;
    int32_t res = std::max(plus,minus);
    res = std::max(res, mul);

    std::cout << res;

    return 0;
}
137A.

Compiler output:
a.cc:22:1: error: expected unqualified-id before numeric constant
   22 | 137A.
      | ^~~~~
Language: C++

#include <iostream>
#include <assert.h>
#include <vector>
#include <algorithm>
//#include <functional>


int main(){
    int32_t A,B;
    std::cin >> A >> B;

    int32_t pl
    us = A + B;
    int32_t minus = A - B;
    int32_t mul = A * B;
    int32_t res = std::max(plus,minus);
    res = std::max(res, mul);

    std::cout << res;

    return 0;
}
137A.

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected initializer before 'us'
   13 |     us = A + B;
      |     ^~
a.cc:16:28: error: 'plus' was not declared in this scope; did you mean 'std::plus'?
   16 |     int32_t res = std::max(plus,minus);
      |                            ^~~~
      |                            std::plus
In file included from /usr/include/c++/14/string:49,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_function.h:160:12: note: 'std::plus' declared here
  160 |     struct plus;
      |            ^~~~
a.cc: At global scope:
a.cc:23:1: error: expected unqualified-id before numeric constant
   23 | 137A.
      | ^~~~~
Language: C

#include<stdio.h>
int main()
{
    int a,b,x,y,z;
    scanf("%d%d",&a,&b);
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>=y && x>=z)
        printf("%d\n",x);
    else if(y>=x && y>=z)
        printf("%d\n",y);
    else(z>=x && z>=y)
        printf("%d\n",z);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:23: error: expected ';' before 'printf'
   13 |     else(z>=x && z>=y)
      |                       ^
      |                       ;
   14 |         printf("%d\n",z);
      |         ~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a,b;
  cin>>a;
  cin>>b;
  int a1= a+b;
  int a2=a-b;
  int a3=a*b;
  cout<<max({a1,a2,a3})<<edl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: 'edl' was not declared in this scope
   11 |   cout<<max({a1,a2,a3})<<edl;
      |                          ^~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a,b;
  cin>>a;
  cin>>b;
  int a1= a+b;
  int a2=a-b;
  int a3=a*b;
  cout<<max(a1,a2,a3)<<endl;
  return 0;
}


Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:11:12:   required from here
   11 |   cout<<max(a1,a2,a3)<<endl;
      |         ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a,b;
  cin>>a;
  cin>>b;
  int a1= a+b;
  int a2=a-b;
  int a3=a*b;
  cout<<max(a1,a2,a3)<<edl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: 'edl' was not declared in this scope
   11 |   cout<<max(a1,a2,a3)<<edl;
      |                        ^~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:11:12:   required from here
   11 |   cout<<max(a1,a2,a3)<<edl;
      |         ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<max>
using namespace std;
int main(){
  int a,b;
  cin>>a;
  cin>>b;
  int a1= a+b;
  int a2=a-b;
  int a3=a*b;
  cout<<max(a1,a2,a3)<<edl;
  return 0;
}


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

#include <iostream>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  x = a + b;
  y = a - b; 
  z = a * b;
  cout << max(x, max(y, z)) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'x' was not declared in this scope
    6 |   x = a + b;
      |   ^
a.cc:7:3: error: 'y' was not declared in this scope
    7 |   y = a - b;
      |   ^
a.cc:8:3: error: 'z' was not declared in this scope
    8 |   z = a * b;
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x[3]={};
  int a,b;
  
  cin>>a>>b;
  
  x[0]=a+b;
  
  x[1]=a-b;
  
  x[2]=a*b;
  
  int max=x[0];
  
  for(int i=0;i<2;i++){
    if(max<x[i+1]){
      max=x[i+1];
    }
  }
  
  cout<<max<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: expected '}' at end of input
   23 |   cout<<max<<endl;
      |                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespase std;
int main(){
  int x[3]={};
  int a,b;
  
  cin>>a>>b;
  
  x[0]=a+b;
  
  x[1]=a-b;
  
  x[2]=a*b;
  
  int max=x[0];
  
  for(int i=0;i<2;i++){
    if(max<x[i+1]){
      max=x[i+1];
    }
  }
  
  cout<<max<<endl;

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

#include <stdio.h>

int main()
{
	int A, B, sum = 0, sum1 = 0,sum2 =0;
	scanf("%d%d",&A,&B);
	sum = A + B;
	sum1 = A - B;
	sum2 = A / B;
	if (sum > sum1 && sum > sum2)
		printf("%d", sum);
	else if (sum1 > sum && sum1 > sum 2)
		printf("d", sum1);
	else
		printf("%d",sum2);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:42: error: expected ')' before numeric constant
   12 |         else if (sum1 > sum && sum1 > sum 2)
      |                 ~                        ^~
      |                                          )
Language: C++

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

int main() {
  int A, B;
  cin >> A >> B;
  cout << max((A+B, max((A-B),(A*B))) << endl;
  return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << max((A+B, max((A-B),(A*B))) << endl;
      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#define rep(i,n) for (int i = 0; i < (n);i++)
typedef long long ll;
using namespace std;
/*#include<boost/range/adaptors.hpp>

namespace adaptor = boost::adaptors;*/


void Main()
{	
	int a,b; cin >> a>>b;
  	cout << max(a+b,a*b,a-b) << endl;
}

int main()
{
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
}

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

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

typedef long long ll;
typedef complex<double> Vec;

ll A, B;

int main() {
  cin >> A >> B;
  cout << max(A + B, A - B, A * B) << endl;
  return 0;
}


Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Compare = long long int]':
a.cc:11:14:   required from here
   11 |   cout << max(A + B, A - B, A * B) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  c = a+b;d = a-b;e = a*b;
  if(c >= b && c >= e){
    cout << c << endl;
  }
  else if(d > c && d >= e){
    cout << d << endl;
  }
  else{
    cout << e << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c = a+b;d = a-b;e = a*b;
      |   ^
a.cc:7:11: error: 'd' was not declared in this scope
    7 |   c = a+b;d = a-b;e = a*b;
      |           ^
a.cc:7:19: error: 'e' was not declared in this scope
    7 |   c = a+b;d = a-b;e = a*b;
      |                   ^
Language: C++


#include <stdio.h>
#include <string>
#include <iostream>
#include <vector>
#include <queue>
#include <list>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
using namespace std;

template<typename T>
ostream& operator << (ostream& os, vector<T>& vec) {
	for (int i = 0; i<vec.size(); i++) {
		os << vec[i] << (i + 1 == vec.size() ? "" : " ");
	}
	return os;
}

int SumDigitValues(int x)
{
	int sum = 0;
	while (x)
	{
		sum += x % 10;
		x = x / 10;
	}

	return sum;
}

int Factorial(int n)
{
	if (n < 0) return 0;
	if (n == 0) return 1;
	return n * Factorial(n - 1);
}

int factorial(int n)
{
	if (n > 1)
	{
		return n * factorial(n - 1);
	}
	else
	{
		return 1;
	}
}

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

	vector<int> nums;
	nums.push_back(a + b);
	nums.push_back(a - b);
	nums.push_back(a * b);
	cout << *max_element(nums.begin(), nums.end()) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:18: error: 'max_element' was not declared in this scope
   59 |         cout << *max_element(nums.begin(), nums.end()) << endl;
      |                  ^~~~~~~~~~~
Language: C++

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

typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)

int main() {
  int a,b;
  cin >> a >> b;
  sum=a+b;
  dif=a-b;
  pd=a*b;
  int max;
  if (dif < sum) max=sum;
  else max=dif;
  if (max < pd) max=pd;
  cout << max << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'sum' was not declared in this scope
   16 |   sum=a+b;
      |   ^~~
a.cc:17:3: error: 'dif' was not declared in this scope; did you mean 'div'?
   17 |   dif=a-b;
      |   ^~~
      |   div
a.cc:18:3: error: 'pd' was not declared in this scope
   18 |   pd=a*b;
      |   ^~
Language: C++

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

int main() {
  int A,B,D,E,F;
  int ans = 0;

  cin >> A >> B;

  D = A + B;
  E = A - B;
  F = A * B;

  ans = max({a + b, a - b, a * b});
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'a' was not declared in this scope
   14 |   ans = max({a + b, a - b, a * b});
      |              ^
a.cc:14:18: error: 'b' was not declared in this scope
   14 |   ans = max({a + b, a - b, a * b});
      |                  ^
a.cc:14:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   14 |   ans = max({a + b, a - b, a * b});
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
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,d,e;
		c=a+b;
		d=a-b;
		e=a*b;
		int x=0;
		if(c>=d &&c>=e){
			x=c;
		}
		if(d>=c &&d>=e){
			x=d;
		}
		if(e>=d &&e>=c){
			x=e;
		}
		System.out.println(x);
		
	}

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

import java.util.Scanner;

  class Main{
    public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      int A = stdIn.nextInt();
      int B = stdIn.nextInt();
      int X = a+b;
      int Y = a-b;
      int Z = a*b;
      int[] S = {X,Y,Z};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    }
  }

Compiler output:
Main.java:8: error: cannot find symbol
      int X = a+b;
              ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
      int X = a+b;
                ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
      int Y = a-b;
              ^
  symbol:   variable a
  location: class Main
Main.java:9: error: cannot find symbol
      int Y = a-b;
                ^
  symbol:   variable b
  location: class Main
Main.java:10: error: cannot find symbol
      int Z = a*b;
              ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
      int Z = a*b;
                ^
  symbol:   variable b
  location: class Main
6 errors
Language: Java

import java.util.Scanner;

  class Main{
    public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      int A = stdIn.nextInt();
      int B = stdIn.nextInt();
      int[] S = {a+b,a-b,a*b};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    }
  }

Compiler output:
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                 ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                   ^
  symbol:   variable b
  location: class Main
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                     ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                       ^
  symbol:   variable b
  location: class Main
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                         ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                           ^
  symbol:   variable b
  location: class Main
6 errors
Language: Java

import java.util.Scanner;

  public class Max{
    public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      int A = stdIn.nextInt();
      int B = stdIn.nextInt();
      int[] S = {a+b,a-b,a*b};
      int M = S[0];
      for(int i=0; i<=2; i++){
        if(M <= S[i]){
          M = S[i];
        }
      }
      System.out.println(M);
    }
  }

Compiler output:
Main.java:3: error: class Max is public, should be declared in a file named Max.java
  public class Max{
         ^
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                 ^
  symbol:   variable a
  location: class Max
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                   ^
  symbol:   variable b
  location: class Max
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                     ^
  symbol:   variable a
  location: class Max
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                       ^
  symbol:   variable b
  location: class Max
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                         ^
  symbol:   variable a
  location: class Max
Main.java:8: error: cannot find symbol
      int[] S = {a+b,a-b,a*b};
                           ^
  symbol:   variable b
  location: class Max
7 errors
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(void){
  int A,B;
  cin>>A>>B;
  cout<<max(A+B,A-B,A*B)<<endl;
  return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:12:   required from here
    7 |   cout<<max(A+B,A-B,A*B)<<endl;
      |         ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C

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

int main() {
  int a,b;
  cin>>a>>b;
  cout<<max(a+b, max(a-b, a*b))<<endl;
}

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

#include <iostream>
using namespace std;

int main(){
	int a,b;
  	cin >> a;
  	cin >> b;
  	int c = a+b,d=a-b,e=a*b;
  	cout << max(c,d,e) << endl;
  	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:15:   required from here
    9 |         cout << max(c,d,e) << endl;
      |                 ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

int main() {
    int a,b; scanf("%d %d", &a, &b);
    int res = a + b;
    res = max(res, a-b);
    res = max(res, a*c);
    printf("%d\n", res);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'c' was not declared in this scope
    8 |     res = max(res, a*c);
      |                      ^
Language: C

int main(void)
{
	int A,B,max;
	scanf("%d",A);
	scanf("%d",B);
	max=A+B;
	if(max<A-B)
	{
		max=A-B;
		printf("%d\n",max)
	}
	else if(max<A*B)
	{
		max=A*B;
		printf("%d\n",max)
	}
	else
	printf("%d\n",max)
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d",A);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d",A);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |                 printf("%d\n",max)
      |                 ^~~~~~
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:35: error: expected ';' before '}' token
   10 |                 printf("%d\n",max)
      |                                   ^
      |                                   ;
   11 |         }
      |         ~                          
main.c:15:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |                 printf("%d\n",max)
      |                 ^~~~~~
main.c:15:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:35: error: expected ';' before '}' token
   15 |                 printf("%d\n",max)
      |                                   ^
      |                                   ;
   16 |         }
      |         ~                          
main.c:18:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |         printf("%d\n",max)
      |         ^~~~~~
main.c:18:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:27: error: expected ';' before 'return'
   18 |         printf("%d\n",max)
      |                           ^
      |                           ;
   19 |         return 0;
      |         ~~~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int A,B,max;
	scanf("%d",A);
	scanf("%d",B);
	max=A+B;
	if(max<A-B)
	max=A-B;
	printf("%d\n",max)
	else if(max<A*B)
	max=A*B;
	printf("%d\n",max)
	else
	printf("%d\n",max)
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:27: error: expected ';' before 'else'
   10 |         printf("%d\n",max)
      |                           ^
      |                           ;
   11 |         else if(max<A*B)
      |         ~~~~               
main.c:13:27: error: expected ';' before 'else'
   13 |         printf("%d\n",max)
      |                           ^
      |                           ;
   14 |         else
      |         ~~~~
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  cout<<*max_element({a+b,a-b,a*b});
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: no matching function for call to 'max_element(<brace-enclosed initializer list>)'
    7 |   cout<<*max_element({a+b,a-b,a*b});
      |          ~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5641:5: note: candidate: 'template<class _FIter> constexpr _FIter std::max_element(_FIter, _FIter)'
 5641 |     max_element(_ForwardIterator __first, _ForwardIterator __last)
      |     ^~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5641:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:5666:5: note: candidate: 'template<class _FIter, class _Compare> constexpr _FIter std::max_element(_FIter, _FIter, _Compare)'
 5666 |     max_element(_ForwardIterator __first, _ForwardIterator __last,
      |     ^~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5666:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:524:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::max_element(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _Compare)'
  524 | max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp);
      | ^~~~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:524:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:528:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::max_element(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator)'
  528 | max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
      | ^~~~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:528:1: note:   candidate expects 3 arguments, 1 provided
Language: C

#include <stdio.h>

int main(void){
  
  int A;
  int B;
  
  int num1 = A + B;
  int num2 = A - B;
  int num3 = A * B;
  
  scanf("%d",&A);
  scanf("%d",&B);
  
  if (num1 > num2 && num3){
    printf("%d",num1);
  }
  else if(num2 > num1 && num3){
    printf("%d",&num2);
  }
  else if(num3 > numn1 && num2){
    printf("%d",&num3);
  }
  
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:21:18: error: 'numn1' undeclared (first use in this function); did you mean 'num1'?
   21 |   else if(num3 > numn1 && num2){
      |                  ^~~~~
      |                  num1
main.c:21:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c:38:3: error: expected identifier or '(' before 'return'
   38 |   return 0;
      |   ^~~~~~
main.c:39:1: error: expected identifier or '(' before '}' token
   39 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <functional>
#include <cstring>
#include <cmath>

using namespace std;
#define inputInt(a) int a; cin >> a; 
#define inputInt2(a,b) int a; int b; cin >> a >> b; 
#define inputInt3(a,b,c) int a; int b; int c; cin >> a >> b >> c;
#define inputLong(a) long a;cin >> a; 
#define inputIntArray(a,N) int a[N];for(int i=0;i<N;i++){cin >> a[i];}
#define inputIntArray2(a,b,N) int a[N]; int b[N]; for(int i=0;i<N;i++){cin >> a[i] >> b[i];}
#define output(answer) cout << answer << endl;
#define fN(i,N)    for(int i=0; i<N; i++)
#define fSE(i,s,e) for(int i=s; i<=e; i++)

int main() {
  
  //input
  inputInt2(a,b);
  
  //main
  int ans = max(a+b, a-b, a*b);
  // 出力
  
  output(ans);
    
  return 0;
}


Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:27:16:   required from here
   27 |   int ans = max(a+b, a-b, a*b);
      |             ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C

#include<stdio.h>

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

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstring> //memset
using namespace std;


//int main()
//{
//	long N;
//
//	cin >> N;
//
//	vector<int> v;
//
//	for (long long iN = 0; iN < N; iN++) {
//		int value;
//
//		cin >> value;
//
//		v.push_back(value);
//	}
//
//	std::sort(v.begin(), v.end());
//
//	double result = 0.0;
//	result = (v[0] + v[1]) / 2.0;
//	for (long long iN = 2; iN < N; iN++) {
//		result = (result + v[iN]) / 2.0;
//	}
//
//	cout << result << endl;
//}


//int main()
//{
//	long N;
//
//	cin >> N;
//
//	vector<int> v;
//
//	for (long long iN = 0; iN < N; iN++) {
//		int value;
//
//		cin >> value;
//
//		v.push_back(value);
//	}
//
//	std::sort(v.begin(), v.end());
//
//	double result = 0.0;
//	result = (v[0] + v[1]) / 2.0;
//	for (long long iN = 2; iN < N; iN++) {
//		result = (result + v[iN]) / 2.0;
//	}
//
//	cout << result << endl;
//}


//int main()
//{
//	long N;
//
//	cin >> N;
//
//	double sum = 0.0;
//
//	for (long long iN = 0; iN < N; iN++) {
//		double value;
//
//		cin >> value;
//
//		sum += 1.0 / value;
//	}
//
//	double result = 1.0 / sum;
//
//	cout << result << endl;
//}


//int main()
//{
//	long a;
//	string s;
//
//	cin >> a >> s;
//
//	if (a >= 3200) {
//		cout << s << endl;
//	}
//	else {
//		cout << "red" << endl;
//	}
//
//}


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

include <iostream>
include <algorithm>
using namespace std;
 
int main() {
  int A, B;
  cin >> A >> B;
  
  int s = max({A + B, A - B, A * B});
  cout << s << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> A >> B;
      |   ^~~
a.cc:9:11: error: 'max' was not declared in this scope
    9 |   int s = max({A + B, A - B, A * B});
      |           ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << s << endl;
      |   ^~~~
a.cc:10:16: error: 'endl' was not declared in this scope
   10 |   cout << s << endl;
      |                ^~~~