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

package atCoder.ABC137.A;

import java.util.Scanner;

public class plusMinusTimes {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        final int A = sc.nextInt();
        final int B = sc.nextInt();

        int add = numAdds(A, B);
        int minus = numMinus(A, B);
        int times = numTimes(A, B);

        int result1 = compareNumber(add, minus);
        int result2 = compareNumber(add, times);
        int result3 = compareNumber(result1, result2);

        System.out.println("A + B = " + add + ", A - B = " + minus + ", A * B = " + times + "の中で最大の数は" + result3 + "です。");
    }

    static int numAdds(int A, int B) {
        return A + B;
    }

    static int numMinus(int A, int B) {
        return A - B;
    }

    static int numTimes(int A, int B) {
        return A * B;
    }

    static int compareNumber(int A, int B) {
        if (A > B) {
            return A;
        } else if (B > A) {
            return B;
        } else {
            return A;
        }
    }
}


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


public class Main

    public static void main(String[] args) {
        System.out.println(":D");
    }
}


Compiler output:
Main.java:2: error: '{' expected
public class Main
                 ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

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

int main(){
  int A,B;
  cin >> A >> B;
  int p,m,mu,max_1,max_2;
  
  p=A+B;
  m=A-B;
  mu=A*B;
  
  max_1=max(p,m);
  max_2=max(max_1,mu);
  
  cout << max_2 << endl;
  
  return 0;
}

Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> A >> B;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:9: error: 'max' was not declared in this scope; did you mean 'std::max'?
   13 |   max_1=max(p,m);
      |         ^~~
      |         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:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout << max_2 << 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:16:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout << max_2 << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

int main() {
	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:10:11:   required from here
   10 |         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,temp;
  cin >>a >> b;
  temp=max(a+b,a-b);
  temp=max(temp,a*b);
  cout << temp;
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'return0' was not declared in this scope
   11 | return0;
      | ^~~~~~~
Language: C++

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

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:14:   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++

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

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

//be name Khoda
#include <bits\stdc++.h>
using namespace std;

int main() {
  int n, m;
  cin >> n >> m;
  cout << max(max(a + b, a - b), a * b);
  return 0;
}
  

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

#include <iostream>
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:
a.cc: In function 'int main()':
a.cc:7:16: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |     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++

#inclde<bits/stdc++.h>
using namespace std;
int main()
{
  int A,B;
  cin>>A>>B;
  if(A+B>A*B and A+B>A-B)
    cout<<A+B;
  if(A*B>A+B and A*B>A-B)
    cout<<A*B;
  if(A-B>A*B and A-B>A+B)
    cout<<A-B;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>A>>B;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde<bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<A+B;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<A*B;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<A-B;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'b' was not declared in this scope
    8 |   int m = max(A+b, A-B);
      |                 ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'b' was not declared in this scope
    8 |   int m = max(A+b, A-B);
      |                 ^
Language: C++

#include <iostream>

int main(int argc, char** argv) {
  int a;
  int b;
  std::cin >> a >> b;
  int result = max(a+b, max(a-b, a*b));
  std::count << result;
  return 0; 
}

int max(int x, int y) {
  return x > y ? x : y;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:7:25: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   int result = max(a+b, max(a-b, a*b));
      |                         ^~~
      |                         std::max
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:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:7:16: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   int result = max(a+b, max(a-b, a*b));
      |                ^~~
      |                std::max
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:8:8: error: 'count' is not a member of 'std'; did you mean 'cout'?
    8 |   std::count << result;
      |        ^~~~~
      |        cout
Language: Java

/**
 * @author derrick20
 */
import java.io.*;
import java.util.*;

public class Ax {
    public static void main(String args[]) throws Exception {
        FastScanner sc = new FastScanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int A = sc.nextInt();
        int B = sc.nextInt();
        out.println(Math.max(A * B, Math.max(A + B, A - B)));
        out.close();
    }

    static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        FastScanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        FastScanner(FileReader s) {
            br = new BufferedReader(s);
        }

        String next() throws IOException {
            while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        String nextLine() throws IOException { return br.readLine(); }

        double nextDouble() throws IOException { return Double.parseDouble(next()); }

        int nextInt() throws IOException { return Integer.parseInt(next()); }

        long nextLong() throws IOException { return Long.parseLong(next()); }
    }
}

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

#include<stdio.h>
void max(int x,int y);

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

void max(int x,int y)
{
  int m;
  
  if((x-y)>=(x+y)){
    if((x-y)>=(x*y)){
      m = x-y;
    }
    else if((x-y)<(x*y)){
      m = x*y;
  }
  }
  else{
    if((x+y)>=(x*y)){
      m = x+y;
    }
    
    else if((x+y)<(x*y)){
      m = x*y;
    }
  }
    
    return m;
  }
    

Compiler output:
main.c: In function 'main':
main.c:10:15: error: invalid use of void expression
   10 |   printf("%d",max(A,B));
      |               ^~~~~~~~
main.c: In function 'max':
main.c:37:12: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   37 |     return m;
      |            ^
main.c:15:6: note: declared here
   15 | void max(int x,int y)
      |      ^~~
Language: C++

#include <bits/stdc++.h>

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

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

#include <bits/stdc++.h>

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

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

#include <bits/stdc++.h>

int main(){
  int a,b;
  std::cin >> a >> b;
  std::out << max({a+b, a-b, a*b}) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'out' is not a member of 'std'; did you mean 'oct'?
    6 |   std::out << max({a+b, a-b, a*b}) << endl;
      |        ^~~
      |        oct
a.cc:6:15: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |   std::out << max({a+b, a-b, a*b}) << endl;
      |               ^~~
      |               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)
      |     ^~~
a.cc:6:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   std::out << max({a+b, a-b, a*b}) << endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main(){
  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:14:   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<iostream>
using namespace std;
int main(){
  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:6:14:   required from here
    6 |   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<iostream>
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:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a, b;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> a >> b;
      |   ^~~
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout << max(a+b, a*b, a-b) << endl;
      |   ^~~~
a.cc:7:3: error: expected unqualified-id before 'return'
    7 |   return 0;
      |   ^~~~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<iostram>
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:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

import math
import sys
import collections

# imgur.com/Pkt7iIf.png

def getdict(n):
    d = {}
    if type(n) is list:
        for i in n:
            if i in d:
                d[i] += 1
            else:
                d[i] = 1
    else:
        for i in range(n):
            t = ii()
            if t in d:
                d[t] += 1
            else:
                d[t] = 1
    return d
def cdiv(n, k): return n // k + (n % k != 0)
def ii(): return int(input())
def mi(): return map(int, input().split())
def li(): return list(map(int, input().split()))
def lcm(a, b): return abs(a*b) // math.gcd(a, b)

a, b = mi()
print(max(a*b, a-b, a+b))

Compiler output:
a.cc:5:3: error: invalid preprocessing directive #imgur
    5 | # imgur.com/Pkt7iIf.png
      |   ^~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:9:5: error: expected unqualified-id before 'if'
    9 |     if type(n) is list:
      |     ^~
Language: C++

#include <cstdio>

int main() {
	int k, x;
  	scanf("%d %d", &k, &x);
  	int minVal = (x - k + 1 < −1000000) ? -1000000 : x - k;
  	int maxVal = (x + k - 1 > 1000000) ? 1000000 : x + k;
  
  	for (int i = minVal; i <= maxVal; ++i)
      	printf("%d%c", i, i < maxVal ? ' ' : '\n');
	
  	return 0;
}


Compiler output:
a.cc:6:35: error: extended character − is not valid in an identifier
    6 |         int minVal = (x - k + 1 < −1000000) ? -1000000 : x - k;
      |                                   ^
a.cc: In function 'int main()':
a.cc:6:35: error: '\U000022121000000' was not declared in this scope
    6 |         int minVal = (x - k + 1 < −1000000) ? -1000000 : x - k;
      |                                   ^~~~~~~~
Language: C++

#define sp ' '
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
 
int main(){
	int a,b,i;
	cin >> a >>b;
  for(i=-a+1;i<a;i++){
    cout << b+i << sp;
  }
	cout << end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'end1' was not declared in this scope
   12 |         cout << end1;
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
 
int main(){
	int a,b,i;
	cin >> a >>b;
  for(i=-a+1;i<a;i++){
    cout << b+i << sp;
  }
	cout << end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'sp' was not declared in this scope
    9 |     cout << b+i << sp;
      |                    ^~
a.cc:11:17: error: 'end1' was not declared in this scope
   11 |         cout << end1;
      |                 ^~~~
Language: C++

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

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


    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope
    6 |       cin>>a>>b;
      |       ^~~
a.cc:8:10: error: 'max' was not declared in this scope; did you mean 'mx'?
    8 |       mx=max(mx,(a-b));
      |          ^~~
      |          mx
a.cc:10:7: error: 'cout' was not declared in this scope
   10 |       cout<<mx<<endl;
      |       ^~~~
a.cc:10:17: error: 'endl' was not declared in this scope
   10 |       cout<<mx<<endl;
      |                 ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: 'end1' was not declared in this scope
    8 |   cout << max(a+b,a-b,a*b) << end1;
      |                               ^~~~
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 = int; _Compare = int]':
a.cc:8:14:   required from here
    8 |   cout << max(a+b,a-b,a*b) << end1;
      |           ~~~^~~~~~~~~~~~~
/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,a-b,a*b) << end1;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: 'end1' was not declared in this scope
    7 |   cout << max(a+b,a-b,a*b) << end1;
      |                               ^~~~
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 = int; _Compare = int]':
a.cc:7:14:   required from here
    7 |   cout << max(a+b,a-b,a*b) << end1;
      |           ~~~^~~~~~~~~~~~~
/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,a-b,a*b) << end1;
  return 0;
}

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

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: found ':' in nested-name-specifier, expected '::'
    8 |   c=a+b; d=a-b;e=a:b;
      |                   ^
      |                   ::
a.cc:8:18: error: 'a' is not a class, namespace, or enumeration
    8 |   c=a+b; d=a-b;e=a:b;
      |                  ^
Language: C

#include<stdio.h>
int main(void)
{
  int a,b,i,max;
  scanf("%d%d",&a,&b);
  int c[3]=[a+b,a-b,a*b];
  max=c[0];
  for(i=1;i<3;i++){
    if(max<c[i]){
      max=c[i];
    }
  }
  printf("%d",max);
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected expression before '[' token
    6 |   int c[3]=[a+b,a-b,a*b];
      |            ^
Language: C++

use std::collections::HashSet;

#[allow(dead_code)]
fn read<T: std::str::FromStr>() -> T {
    let mut buf = String::new();
    std::io::stdin().read_line(&mut buf).unwrap();
    buf.trim().parse().ok().unwrap()
}

#[allow(dead_code)]
fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    let mut buf = String::new();
    std::io::stdin().read_line(&mut buf).unwrap();
    buf.trim().split_whitespace()
        .map(|x| x.parse().ok().unwrap()).collect()
}

fn main() {
    let AB = read_vec::<i64>();
    println!("{}", i64::max(AB[0] + AB[1], i64::max(AB[0] - AB[1], AB[0] * AB[1])));
}


Compiler output:
a.cc:3:2: error: invalid preprocessing directive #[
    3 | #[allow(dead_code)]
      |  ^
a.cc:10:2: error: invalid preprocessing directive #[
   10 | #[allow(dead_code)]
      |  ^
a.cc:1:1: error: 'use' does not name a type
    1 | use std::collections::HashSet;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn read<T: std::str::FromStr>() -> T {
      | ^~
a.cc:11:1: error: 'fn' does not name a type
   11 | fn read_vec<T: std::str::FromStr>() -> Vec<T> {
      | ^~
a.cc:18:1: error: 'fn' does not name a type
   18 | fn main() {
      | ^~
Language: C

#include <stdio.h>

int main(void) {
	int a,b,max;
	scanf("%d%d",&a,&b)
	a+b=max;
	if(a-b>max)
	{
	max=a-b;
	}
	if(a*b>max){
		max=a*b;
	}
	printf("%d\n",max);
	return0;
   
}


Compiler output:
main.c: In function 'main':
main.c:5:28: error: expected ';' before 'a'
    5 |         scanf("%d%d",&a,&b)
      |                            ^
      |                            ;
    6 |         a+b=max;
      |         ~                   
main.c:15:9: error: 'return0' undeclared (first use in this function)
   15 |         return0;
      |         ^~~~~~~
main.c:15:9: 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 max;
	scanf("%d%d",&A,&B)
	A+B=max;
	if(A-B>max)
	{
	max=A-B;
	}
	if(A*B>max){
		max=A*B;
	}
	printf("%d",max);
return0;
   
}


Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'B'
    4 |         int A B max;
      |               ^
main.c:4:15: error: unknown type name 'B'
main.c:5:23: error: 'A' undeclared (first use in this function)
    5 |         scanf("%d%d",&A,&B)
      |                       ^
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:26: error: 'B' undeclared (first use in this function)
    5 |         scanf("%d%d",&A,&B)
      |                          ^
main.c:5:28: error: expected ';' before 'A'
    5 |         scanf("%d%d",&A,&B)
      |                            ^
      |                            ;
    6 |         A+B=max;
      |         ~                   
main.c:15:1: error: 'return0' undeclared (first use in this function)
   15 | return0;
      | ^~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   scanf_s("%d %d",&a,&b);
      |   ^~~~~~~
      |   scanf
Language: C++

#include<stdio.h>
#include<stdlib.h>
int main(void){
  int a,b;
  scanf_s("%d %d",&a,&b);
  int max;
  max = a+b;
  if(max < a-b)max = a-b;
  if(max < a*b)max = a*b;
  printf("%d",max);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |   scanf_s("%d %d",&a,&b);
      |   ^~~~~~~
      |   scanf
Language: C++

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

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

#define AC return 0;
#include<iostream>
#include <algorithm>
#include <string>

using namespace std;

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

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:2:
/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:13:   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++

#define ACしろ return 0;
#include<iostream>
#include <algorithm>
#include <string>

using namespace std;

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

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:2:
/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:13:   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<stdio.h>
#include<conio.h>
void main()
{
  int A,B;
  scanf("%d %d",&A,&B);
  if((A-B)>(A+B))
  {
    if((A-B)>(A*B))
      printf("%d",A-B);
    else
      printf("%d",A*B);
  }
  else
  {
    if((A+B)>(A*B))
      printf("%d",A+B);
    else
      printf("%d",A*B);
  }
  getch();
}

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

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




Compiler output:
main.c:14:2: error: expected identifier or '(' before 'else'
   14 |  else{
      |  ^~~~
main.c:17:2: error: expected identifier or '(' before 'return'
   17 |  return 0;
      |  ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C++

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



Compiler output:
a.cc:14:2: error: expected unqualified-id before 'else'
   14 |  else{
      |  ^~~~
a.cc:17:2: error: expected unqualified-id before 'return'
   17 |  return 0;
      |  ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: Java

public class Test{
  public static void main(String[] args){
    int a=13,b=3;
    int c=a+b,d=a-b,e=a*b;
    if(c<d) c=d;
    if(c<e) c=e;
    System.out.print(c);
  }
}

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

#include <stdio.h>
2.int main(){
3.  int A,B,x,y,z;
4.  x=A+B;
5.  y=A-B;
6.  z=A*B;
7. scanf("%d %d",&A,&B);
8.  if(x>y && x>z){
9.    printf("%d",x);
10.  }
11.  else if(y>z && y>x);
12.  printf("%d",y);
13.}
14. else{
15.  printf("%d",z);
16.}
17. return 0;
18.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.int main(){
      | ^~~~~
a.cc:14:1: error: expected unqualified-id before numeric constant
   14 | 14. else{
      | ^~~
a.cc:17:1: error: expected unqualified-id before numeric constant
   17 | 17. return 0;
      | ^~~
a.cc:18:1: error: expected unqualified-id before numeric constant
   18 | 18.}
      | ^~~
a.cc:18:4: error: expected declaration before '}' token
   18 | 18.}
      |    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
   int a,b;cin>>a>>b;
   int ans=max(a+b,a*b);
   ans=(ans,a-b);
   cout<<ans<<endl;
   }
   
}

Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <stdio.h>
2. int main(void){
3.  int A,B,x,y,z;
4.  x=A+B;
5.  y=A-B;
6.  z=A*B;
7.  scanf("%d %d",&A,&B);
8.  if(x>y && x>z){
9.    printf("%d",x);
10.  }
11.  else if(y>z && y>x){
12.  printf("%d",y);
13.}
14. else{
15.  printf("%d",z);
16.}
17. return 0;
18.}



Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2. int main(void){
      | ^~
Language: C++

#include <stdio.h>
2.2. int main(void){
3.3.  int A,B,x,y,z;
4.4.  x=A+B;
5.5.  y=A-B;
6.6.  z=A*B;
7.7.  scanf("%d %d",&A,&B);
8.8.  if(x>y && x>z){
9.9.    printf("%d",x);
10.10.  }
11.11.  else if(y>z && y>x);
12.12.  printf("%d",y);
13.13.}
14.14. else{
15.15.  printf("%d",z);
16.16.}
17.17. return 0;
18.18.}


Compiler output:
a.cc:2:1: error: too many decimal points in number
    2 | 2.2. int main(void){
      | ^~~~
a.cc:3:1: error: too many decimal points in number
    3 | 3.3.  int A,B,x,y,z;
      | ^~~~
a.cc:4:1: error: too many decimal points in number
    4 | 4.4.  x=A+B;
      | ^~~~
a.cc:5:1: error: too many decimal points in number
    5 | 5.5.  y=A-B;
      | ^~~~
a.cc:6:1: error: too many decimal points in number
    6 | 6.6.  z=A*B;
      | ^~~~
a.cc:7:1: error: too many decimal points in number
    7 | 7.7.  scanf("%d %d",&A,&B);
      | ^~~~
a.cc:8:1: error: too many decimal points in number
    8 | 8.8.  if(x>y && x>z){
      | ^~~~
a.cc:9:1: error: too many decimal points in number
    9 | 9.9.    printf("%d",x);
      | ^~~~
a.cc:10:1: error: too many decimal points in number
   10 | 10.10.  }
      | ^~~~~~
a.cc:11:1: error: too many decimal points in number
   11 | 11.11.  else if(y>z && y>x);
      | ^~~~~~
a.cc:12:1: error: too many decimal points in number
   12 | 12.12.  printf("%d",y);
      | ^~~~~~
a.cc:13:1: error: too many decimal points in number
   13 | 13.13.}
      | ^~~~~~
a.cc:14:1: error: too many decimal points in number
   14 | 14.14. else{
      | ^~~~~~
a.cc:15:1: error: too many decimal points in number
   15 | 15.15.  printf("%d",z);
      | ^~~~~~
a.cc:16:1: error: too many decimal points in number
   16 | 16.16.}
      | ^~~~~~
a.cc:17:1: error: too many decimal points in number
   17 | 17.17. return 0;
      | ^~~~~~
a.cc:18:1: error: too many decimal points in number
   18 | 18.18.}
      | ^~~~~~
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.2. int main(void){
      | ^~~~
a.cc:14:1: error: expected unqualified-id before numeric constant
   14 | 14.14. else{
      | ^~~~~~
a.cc:17:1: error: expected unqualified-id before numeric constant
   17 | 17.17. return 0;
      | ^~~~~~
a.cc:18:1: error: expected unqualified-id before numeric constant
   18 | 18.18.}
      | ^~~~~~
a.cc:18:7: error: expected declaration before '}' token
   18 | 18.18.}
      |       ^
Language: C++

#include <stdio.h>
2.int main(void){
3.  int A,B,x,y,z;
4.  x=A+B;
5.  y=A-B;
6.  z=A*B;
7.  scanf("%d %d",&A,&B);
8.  if(x>y && x>z){
9.    printf("%d",x);
10.  }
11.  else if(y>z && y>x);
12.  printf("%d",y);
13.}
14. else{
15.  printf("%d",z);
16.}
17. return 0;
18.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.int main(void){
      | ^~~~~
a.cc:14:1: error: expected unqualified-id before numeric constant
   14 | 14. else{
      | ^~~
a.cc:17:1: error: expected unqualified-id before numeric constant
   17 | 17. return 0;
      | ^~~
a.cc:18:1: error: expected unqualified-id before numeric constant
   18 | 18.}
      | ^~~
a.cc:18:4: error: expected declaration before '}' token
   18 | 18.}
      |    ^
Language: C++

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

Compiler output:
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else{
      | ^~~~
a.cc:17:1: error: expected unqualified-id before 'return'
   17 | return 0;
      | ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: Java

import java.util.*;

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

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

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    }

}


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

import java.util.*;

public class ABC137_A_Main {

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

        int a = s.nextInt();
        int b = s.nextInt();
        int r1, r2, r3, out;

        r1 = a + b;
        r2 = a - b;
        r3 = a * b;

        out = r1;
        if (out < r2) out = r2;
        if (out < r3) out = r3;
        System.out.print(out);
    }

}


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    5 |   cout << max({A+B, A-B, A*B});
      |           ~~~^~~~~~~~~~~~~~~~~
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 <bits/stdc++.h>
using namespace std;

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

 int main(){
   int A, B;
   cin >> A >> B;
   int ans = max(A * B max(A + B, A - B));
   print(ans);
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:36:23: error: expected ')' before 'max'
   36 |    int ans = max(A * B max(A + B, A - B));
      |                 ~     ^~~~
      |                       )
a.cc:36:17: error: no matching function for call to 'max(int)'
   36 |    int ans = max(A * B max(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:
a.cc:36:17: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   36 |    int ans = max(A * B max(A + B, A - B));
      |              ~~~^~~~~~~~~~
/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: C++

#include <iostream>
#include <algorithm>
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: In function 'int main()':
a.cc:10:49: error: expected '}' at end of input
   10 |   cout << max(a * b, max(a + b, a - b)) << endl;
      |                                                 ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

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

int main(){
  int a, b;
  int c[3];
  
  cin >> a >> b;
  c[0] = a + b;
  c[1] = a - b;
  c[2] = a * b;
  
  cout << max(c[0], c[1], c[2]) << 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:14:14:   required from here
   14 |   cout << max(c[0], c[1], c[2]) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~