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

#include<iostream>
#include<algorithm>
int main()
{
	int a, b;
	std::cin >> a >> b;
	std::cout << std::max(a + b, a - b, a*b);
	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:23:   required from here
    7 |         std::cout << std::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: Java

public void main (int A, int B){
  C = A + B;
  D = A - B;
  E = A * B;
  if( C>=D && C>=E ){
     System.out.println(C);
  }
  if( D>=C && D>=E ){
     System.out.println(D);
  }  
  if( E>=D && E>=C ){
     System.out.println(E);
  }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public void main (int A, int B){
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <iostream>
#include<algorithm>
int main(){
  int x,y;
  cin >> x >> y;
  cout << max{x+y,x-y,x*y};
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> x >> y;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << max{x+y,x-y,x*y};
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |   cout << max{x+y,x-y,x*y};
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
main.c: At top level:
main.c:17:8: error: expected declaration specifiers or '...' before string constant
   17 | printf("%d",d);
      |        ^~~~
main.c:17:13: error: unknown type name 'd'
   17 | printf("%d",d);
      |             ^
main.c:18:1: error: expected identifier or '(' before 'return'
   18 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'i' was not declared in this scope
   11 |         for(i=1; i<3; i++){
      |             ^
a.cc:14:15: error: expected '}' at end of input
   14 |   cout << max;
      |               ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main() {
  int A,B;
   x = A+ B
   y = A- B
   z = A* B
     
 if(x>=y && x>=z)
   cout << x << endl;
  if(y>=x && x>=z)
   cout << y << endl;
  if(z>=x && z>=y)
   cout << z << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: 'x' was not declared in this scope
    6 |    x = A+ B
      |    ^
a.cc:12:6: error: 'y' was not declared in this scope
   12 |   if(y>=x && x>=z)
      |      ^
a.cc:12:17: error: 'z' was not declared in this scope
   12 |   if(y>=x && x>=z)
      |                 ^
a.cc:14:6: error: 'z' was not declared in this scope
   14 |   if(z>=x && z>=y)
      |      ^
a.cc:14:17: error: 'y' was not declared in this scope
   14 |   if(z>=x && z>=y)
      |                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |   scanf("%d %d",&A,&B);
      |   ^~~~~
main.c:8:3: error: 'mai' undeclared (first use in this function); did you mean 'main'?
    8 |   mai=A-B;
      |   ^~~
      |   main
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	cout << max(a + b, a - b, a*b);
	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:8:13:   required from here
    8 |         cout << 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: Java

import java.util.Scanner; 
public class Main {
    
    public static void main (String [] args) {
        
        // Scannerをインスタンス化
        Scanner sc = new Scanner(System.in);
        
        // 入力値の格納
        int A = sc.nextInt();
        int B = sc.newtInt();
        
        // 数値の計算
        int plus = A + B;
        int minus = A - B;
        int multiple = A * B;
        
        // 条件分岐
        if (plus > minus && plus > multiple){
           System.out.println(plus); 
        } else if (minus > plus && minus > multiple) {
            System.out.println(minus);
        } else{
            System.out.println(multiple);
        }
        sc.close();
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
        int B = sc.newtInt();
                  ^
  symbol:   method newtInt()
  location: variable sc of type Scanner
1 error
Language: C++

I'm not sure how I understand it.

Compiler output:
a.cc:1:2: warning: missing terminating ' character
    1 | I'm not sure how I understand it.
      |  ^
a.cc:1:2: error: missing terminating ' character
    1 | I'm not sure how I understand it.
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'I' does not name a type
    1 | I'm not sure how I understand it.
      | ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
  int A;
  int B;
  int C;
  int D;
  int E;
  C = A + B;
  D = A - B;
  E = A * B;
  
  cin >> A;
  cin >> 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:17:14:   required from here
   17 |   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: Java

import java.util.Scanner;

public class practice {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

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

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	}
}

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

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

Compiler output:
main.c: In function 'main':
main.c:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
main.c: At top level:
main.c:18:8: error: expected declaration specifiers or '...' before string constant
   18 | printf("%d",&d);
      |        ^~~~
main.c:18:13: error: expected declaration specifiers or '...' before '&' token
   18 | printf("%d",&d);
      |             ^
main.c:19:3: error: expected identifier or '(' before 'return'
   19 |   return 0;
      |   ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	cout << max(a + b, a - b, a*b);
	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:13:   required from here
    9 |         cout << 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<iostream>a+b a-b a*b
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	if((a+b>=a-b)&&(a+b>=a*b))
	cout<<a+b;
	else if(a-b>=a*b)
	cout<<a-b;
	else
	cout<<a*b;
	return 0;
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream>a+b a-b a*b
      |                    ^
a.cc:1:9: fatal error: iostream>: No such file or directory
    1 | #include<iostream>a+b a-b a*b
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){

  int A, B;
  cin >> A >> B;

  vector<int> ans;
  ans.push_back(A+B);
  ans.push_back(A-B);
  ans.push_back(A*B);

  sort(ans.begin(), ans.end(), stg::greater<int>());

  cout << ans[0] << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: 'stg' has not been declared
   14 |   sort(ans.begin(), ans.end(), stg::greater<int>());
      |                                ^~~
a.cc:14:45: error: expected primary-expression before 'int'
   14 |   sort(ans.begin(), ans.end(), stg::greater<int>());
      |                                             ^~~
Language: C++

#include<iostream>
#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: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++

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

    int ar[] = {a+b, a-b, a*b};
    int max = ar[0];
    for(int i=1; i<3; i++){
        if(ar[i] > max){
            max = ar[i];
        }
    }
    cout << max;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << max;
      |     ^~~~
Language: C++

package main
import (
  "fmt"
)

func main() {
  A := 0
  B := 0
  fmt.Scan(&A)
  fmt.Scan(&B)
  ans := A + B
  if ans < A-B {
    if A * B < A - B {
      ans = A - B
    } else {
      ans = A * B
    }
  }
  fmt.Println(ans)
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

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

    vector<int> pmn;
    pmn.push_back(a+b);
    pmn.push_back(a-b);
    pmn.push_back(a*b);

    decltype(v)::iterator max = std::max_element(pmn.begin(), pmn.end());
    cout << *max;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: 'v' was not declared in this scope
   16 |     decltype(v)::iterator max = std::max_element(pmn.begin(), pmn.end());
      |              ^
a.cc:16:27: error: expected initializer before 'max'
   16 |     decltype(v)::iterator max = std::max_element(pmn.begin(), pmn.end());
      |                           ^~~
a.cc:17:14: error: overloaded function with no contextual type information
   17 |     cout << *max;
      |              ^~~
Language: C

#include<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    int tasu,hiku,kakeru;
    tasu=a+b;hiku=a-b;kakeru=a*b;
    if(tasu>hiku && tasu>kakeru){
        printf("%d",tasu);
    }
    if(hiku>tasu && hiku>kakeru){
        printf("%d",hiku);
    }
    if(kakeru>tasu && kakeru>hiku){
        printf("%d",kekru);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:21: error: 'kekru' undeclared (first use in this function); did you mean 'kakeru'?
   18 |         printf("%d",kekru);
      |                     ^~~~~
      |                     kakeru
main.c:18:21: note: each undeclared identifier is reported only once for each function it appears in
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);
}

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 = int; _Compare = int]':
a.cc:7:12:   required from here
    7 |   cout<<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<iostream>
int main()
{ int a,b;
 long long sum,mul,sub=0;
 cin>>a;
 cin>>b;
 sum=a+b;
 sub=a-b;
 mul=a*b;
 if(sum>sub)
 {
   if(sum>mul)
     cout<<sum;
 }
 else if(sub>sum)
 {  if(sub>mul)
    cout<<sub;
 }
 else
   cout<<mul;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  cin>>a;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |      cout<<sum;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout<<sub;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |    cout<<mul;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

#include <stdio.h>
using namespace std;
int main(){
	int a,b,result;
	scanf("%d%d",&a,&b);
	if(b>0){
		int p=a+b;
		int q=a*b;
		printf("%d\n",p>q?p:q);
	}
	else if(a<0){
		int p=a-b;
		int q=a*b;
		printf("%d\n",p>q?p:q);
	}
	else
		printf("%d\n",a-b);
	return 0;
} 

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int answer'
    7 |   int answer = max(max(a + b, a - b), a * b);
      |       ^~~~~~
a.cc:5:13: note: 'int answer' previously declared here
    5 |   int a, b, answer;
      |             ^~~~~~
a.cc:8:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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


Compiler output:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:31:17: error: no matching function for call to 'max(<unresolved overloaded function type>, int&)'
   31 |     maxAns = max(max, z);
      |              ~~~^~~~~~~~
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: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:20: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const int&'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |         ~~~~~~~~~~~^~~
/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, 2 provided
a.cc: At global scope:
a.cc:35:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   35 | 提出情報
      | ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:23:5: error: implicit declaration of function 'prtinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   23 |     prtinf("%d", e);
      |     ^~~~~~
      |     printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: no matching function for call to 'max(<unresolved overloaded function type>, int&)'
   14 |     maxAns = max(max, z);
      |              ~~~^~~~~~~~
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: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:20: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const int&'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |         ~~~~~~~~~~~^~~
/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, 2 provided
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

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

    vector<int> pmn;
    pmn.push_back(a+b);
    pmn.push_back(a-b);
    pmn.push_back(a*b);

    int max = max_element(pmn.begin(), pmn.end());
    cout << max;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
   16 |     int max = max_element(pmn.begin(), pmn.end());
      |               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
      |                          |
      |                          __gnu_cxx::__normal_iterator<int*, std::vector<int> >
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
a.cc:9:8: note: to match this '{'
    9 | if(a<b){
      |        ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'Swap' was not declared in this scope
   14 |          Swap(c,d);
      |          ^~~~
a.cc:16:10: error: 'Swap' was not declared in this scope
   16 |          Swap(e,d);
      |          ^~~~
a.cc:18:10: error: 'Swap' was not declared in this scope
   18 |          Swap(c,d);
      |          ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A , B;
  cin >> A >> B ;
  if ((A+B)>=(A-B)||(A-B)>=(A*B)) {
    cout << A+B << endl;
  }
  else if ((A-B)>=(A+B)||(A+B)>=(A*B)) {
    cout << A-B << nedl;
  }
  else cout << A*B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'nedl' was not declared in this scope
   11 |     cout << A-B << nedl;
      |                    ^~~~
Language: C++

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

Compiler output:
a.cc:1:9: fatal error: bits/stdcc++.h: No such file or directory
    1 | #include<bits/stdcc++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
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();
        int answer = Math.max(a+b,a-b);
        answer =Math.max(answer,a*b);
        System.out.println(answer);
    }
}

Compiler output:
Main.java:1: error: '.' expected
import java,util.*;
           ^
Main.java:2: error: illegal character: '\u3000'
class?Main{
     ^
2 errors
Language: C++

#include <iostream>
#include <vector>

using namespace std;

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

    vector<int> pmn;
    pmn.push_back(a+b);
    pmn.push_back(a-b);
    pmn.push_back(a*b);

    int max = *max_element(pmn.begin(), pmn.end());
    cout << max;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: 'max_element' was not declared in this scope
   15 |     int max = *max_element(pmn.begin(), pmn.end());
      |                ^~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'c' was not declared in this scope
    9 |   if(a>=b||a>=c){
      |               ^
Language: C++

#include <iostream>

using namespace std;

int main (){
  int A, B;
  
  cin >> A >> B;
  
  if((A+B < A-B)&&(A*B < A-B)){cout << A-B << endl;}
  else((A-B < A*B)&&(A+B < A*B)){cout << A*B << endl;}
  else((A-B < A+B)&&(A*B < A+B)){cout << A+B << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected ';' before '{' token
   11 |   else((A-B < A*B)&&(A+B < A*B)){cout << A*B << endl;}
      |                                 ^
      |                                 ;
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else((A-B < A+B)&&(A*B < A+B)){cout << A+B << endl;}
      |   ^~~~
a.cc:12:33: error: expected ';' before '{' token
   12 |   else((A-B < A+B)&&(A*B < A+B)){cout << A+B << endl;}
      |                                 ^
      |                                 ;
Language: Java

static Scanner scan = new Scanner(System.in);
	
public static void main(String[] args) {
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int n1 = a-b;
		int n2 = a+b;
		int n3 = a*b;
		
		int m = Math.max(n1, n2);
		m = Math.max(m, n3);
		
		System.out.println(m);
}



Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
static Scanner scan = new Scanner(System.in);
       ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

Compiler output:
a.cc:3:1: error: 'll' does not name a type
    3 | ll func(ll a,ll b,ll c)
      | ^~
a.cc: In function 'int main()':
a.cc:9:9: error: 'll' was not declared in this scope
    9 |         ll a,b;
      |         ^~
a.cc:10:8: error: 'a' was not declared in this scope
   10 |   cin>>a>>b;
      |        ^
a.cc:10:11: error: 'b' was not declared in this scope
   10 |   cin>>a>>b;
      |           ^
a.cc:11:9: error: 'func' was not declared in this scope
   11 |   cout<<func(a-b,a+b,a*b)<<endl;
      |         ^~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

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

    vector<int> pmn;
    pmn.push_back(a+b);
    pmn.push_back(a-b);
    pmn.push_back(a*b);

    int max = *std::max_element(pmn.begin(), pmn.end());
    cout << max;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'?
   15 |     int max = *std::max_element(pmn.begin(), pmn.end());
      |                     ^~~~~~~~~~~
      |                     tuple_element
Language: C++

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

int main() {
	int A, B;
	cin >> A >> B;
	int c = A + B;
	int d = A - B;
	int e = A * B;

	int f = max( c, d, e );

	cout << f << 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:12:13:   required from here
   12 |         int f = max( c, d, e );
      |                 ~~~^~~~~~~~~~~
/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 e, f;
int a,b,c,d;
scanf("%d %d",&e, &f);
a=e+f;
b=e-f;
c=e*f;
if(a<b){
if(b<c){
d=c;
}else{
d=b;
}else{
d=a;
}
printf("%d",&d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' before 'else'
   14 | }else{
      |  ^~~~
a.cc:9:8: note: to match this '{'
    9 | if(a<b){
      |        ^
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << max;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include <string>
int main(){
    cin >> a >> b;
    int t=a+b;
    int h=a-b;
    int k=a*b;
    int ans = max(t,h);
    ans = max(ans,k);
    cout << ans <<endl;
    return 0;
}


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

#include <bits/stdc++.h>

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

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

#include<bits/stdc++.h>
using namespace std;
 
int main()
{
    int a,b;
  cin>>a>>b;
  int t=(a+b);
  int v=(a-b);
  int w=(a*b)
  if(t>v && t>w) cout<<t;
  if(v>w && v>t) cout<<v;
  if(w>v && w>t) cout<<w;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if(t>v && t>w) cout<<t;
      |   ^~
Language: C

#include<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    int tasu,hiku,kakeru;
    tasu=a+b;hiku=a-b;kakeru=a*b;
    if(tasu>hiku ){
        if(hiku>kakeru){
            printf("%d",tasu);
        }
        if(tasu>kakeru){
            printf("%d",tasu);
        }
        else{
            print("%d",kakeru);
        }
    if(hiku>tasu){
        if(tasu>kakeru){
            printf("%d",hiku);
        }
        if(hiku>kakeru){
            printf("%d",hiku);
        }
        else{
            printf("%d",kakeru);
        }
    if(kakeru>tasu){
        if(tasu>hiku){
            printf("%d",kakeru);
        }
        if(kakeru>hiku){
            printf("%d",kakeru);
        }
        else{
            printf("%d",hiku);
        }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:13: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   19 |             print("%d",kakeru);
      |             ^~~~~
      |             lrint
main.c:42:1: error: expected declaration or statement at end of input
   42 | }
      | ^
main.c:42:1: error: expected declaration or statement at end of input
main.c:42:1: error: expected declaration or statement at end of input
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include <string>
int main(){
    cin >> a >> b;
    int t=a+b;
    int h=a-b;
    int k=a*b;
    ans = max(t,h);
    ans = max(ans,k);
    cout << ans <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'a' was not declared in this scope
    5 |     cin >> a >> b;
      |            ^
a.cc:5:17: error: 'b' was not declared in this scope
    5 |     cin >> a >> b;
      |                 ^
a.cc:9:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     ans = max(t,h);
      |     ^~~
      |     abs
Language: C++

#include <iostream>

using namespace std;

int main (){
  int A, B;
  
  cin >> A >> B;
  
  if((A+B < A-B)&&(A*B < A-B)) {cout << A-B << endl;}
  else((A-B < A*B)&&(A+B < A*B)) {cout << A*B << endl;}
  else((A-B < A+B)&&(A*B < A+B)) {cout << A+B << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected ';' before '{' token
   11 |   else((A-B < A*B)&&(A+B < A*B)) {cout << A*B << endl;}
      |                                 ^~
      |                                 ;
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else((A-B < A+B)&&(A*B < A+B)) {cout << A+B << endl;}
      |   ^~~~
a.cc:12:33: error: expected ';' before '{' token
   12 |   else((A-B < A+B)&&(A*B < A+B)) {cout << A+B << endl;}
      |                                 ^~
      |                                 ;
Language: C

#include<stdio.h>

int main (){

  int a,b,t,y,u;
  
  scanf("%d %d" ,a,b);
  
  t=a+b;
  y=a-b;
  u=a*b;
  
  if(t>y){
    if(t>u)printf("%d",t);
    else{printf("%d",u);}
  }
  
  else if(t<y){
    if(y>u)printf("%d",y);
    else{printf("%d",u);
  }
  
  return 0;
    
  }

Compiler output:
main.c: In function 'main':
main.c:25:3: error: expected declaration or statement at end of input
   25 |   }
      |   ^
Language: C++

#include <iostream>
#include<math.h>
#include<algorithm>
using namespace std;
int main()
{
   
	int a;
	int b;
	cin >> a;
	cin >> b;
	int d, e, f;
	d = a + b;
	e = a - b;
	f = a * b;
	int u;
	u = max(d, e, f);
	cout << u;
}

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:17:9:   required from here
   17 |         u = max(d, e, f);
      |             ~~~^~~~~~~~~
/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;
  
  if((A+B < A-B)&&(A*B < A-B)) {cout << A-B << endl};
  else((A-B < A*B)&&(A+B < A*B)) {cout << A*B << endl};
  else((A-B < A+B)&&(A*B < A+B)) {cout << A+B << endl};
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:52: error: expected ';' before '}' token
   10 |   if((A+B < A-B)&&(A*B < A-B)) {cout << A-B << endl};
      |                                                    ^
      |                                                    ;
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else((A-B < A*B)&&(A+B < A*B)) {cout << A*B << endl};
      |   ^~~~
a.cc:11:33: error: expected ';' before '{' token
   11 |   else((A-B < A*B)&&(A+B < A*B)) {cout << A*B << endl};
      |                                 ^~
      |                                 ;
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else((A-B < A+B)&&(A*B < A+B)) {cout << A+B << endl};
      |   ^~~~
a.cc:12:33: error: expected ';' before '{' token
   12 |   else((A-B < A+B)&&(A*B < A+B)) {cout << A+B << endl};
      |                                 ^~
      |                                 ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define fileio freopen("in.in", "r", stdin),freopen("out.out", "w", stdout);
#define ll long long int
#define FF first
#define SS second
#define mp make_pair
#define pb push_back
#define pii pair<int,int>
#define pll pair<long long int,long long int>
#define sd(x) scanf("%d",&x)
#define slld(x) scanf("%lld",&x)
#define pd(x) printf("%d\n",x)
#define plld(x) printf("%lld\n",x)
#define pss printf
#define MOD 1000000007
#define INF 1e18
#define eps 0.00001
#define endl '\n'
#define debug(n1) cout<<n1<<endl
const int N = 1e5;  // limit for array size
ll n;  // array size

/*template<typename T>
using ordered_set = tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int rand(int l, int r){
    uniform_int_distribution<int> uid(l, r);
    return uid(rng);
}
*/
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:36:35: error: expected ')' before ';' token
   36 |   cout<<max(a+b,max(a-b,a*b)<<endl;
      |            ~                      ^
Language: C++

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

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

#include <iostream>

int main(){
  
  int a,b;
  cin >> a >>b;
 
  int pl=a+b;
  int mi=a-b;
  int ml=a*b;
  
  if(pl>mi){
	if(pl>ml)cout<<pl;
	else cout<<ml;
  }
  
  if(mi>=pl){
	if(ml>mi)cout<<ml;
	else cout<<mi;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >>b;
      |   ^~~
      |   std::cin
In file included from 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:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         if(pl>ml)cout<<pl;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         else cout<<ml;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         if(ml>mi)cout<<ml;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |         else cout<<mi;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>

int main(void)
{
  int a;
  int b;
  int c;
  int d;
  int e;
  
  scanf("%d", &a);
  scanf("%d", &b);
  
  c = a + b;
  d = a - b;
  e = a * b;
  
  if(c < d && e < d)
  {
    printf("%d", d);
  }else if(d < c && e < c);
  	printf("%d", c);
  } else {
  	printf("%d", e);
}
return 0;
}
  
  
  

Compiler output:
main.c:23:5: error: expected identifier or '(' before 'else'
   23 |   } else {
      |     ^~~~
main.c:26:1: error: expected identifier or '(' before 'return'
   26 | return 0;
      | ^~~~~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int ans'
    7 |   int ans = 0;
      |       ^~~
a.cc:5:13: note: 'int ans' previously declared here
    5 |   int a, b, ans;
      |             ^~~
a.cc:8:7: error: redeclaration of 'int ans'
    8 |   int ans = max(max(a+b, a-b), a*b);
      |       ^~~
a.cc:5:13: note: 'int ans' previously declared here
    5 |   int a, b, ans;
      |             ^~~
Language: C++

#include<stdio.h>

int main(void){
    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
        prinrf("%d",a-b);  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'prinrf' was not declared in this scope; did you mean 'printf'?
   11 |         prinrf("%d",a-b);
      |         ^~~~~~
      |         printf