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

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

Compiler output:
a.cc:4:21: error: extended character 　 is not valid in an identifier
    4 |         int a,b,max;　scanf("%d%d",&a,&b);max=a+b;
      |                     ^
a.cc: In function 'int main()':
a.cc:4:21: error: '\U00003000scanf' was not declared in this scope
    4 |         int a,b,max;　scanf("%d%d",&a,&b);max=a+b;
      |                     ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<int(n);i++)
#define rep1(i,n) for(int i=1;i<=int(n);i++)
#define per(i,n) for(int i=int(n)-1;i>=0;i--)
#define per1(i,n) for(int i=int(n);i>0;i--)
#define foreach(i,n) for(auto &&i:n)
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort(all(x))
#define GSORT(x) sort(all(x), greater<int>())
#define REV(x) reverse(all(x))
#define MAX(x) *max_element(all(x))
#define MIN(x) *min_element(all(x))
#define LOWitr(x, n) lower_bound(all(x), n)
#define UPRitr(x, n) upper_bound(all(x), n)
#define cii(x) int x;cin >> x
#define cill(x) LL x;cin >> x
#define cis(x) string x;cin >> x
#define co(x) cout << x << endl
#define dump(x)  cout << #x << " = " << (x) << endl
#define truecheck assert
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define fastcin() cin.tie(0);ios::sync_with_stdio(false)
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef long long int64;
template<class T,class U>bool chmax(T &a, const U &b) { if (a<b) { a=b; return true; } return false; }
template<class T,class U>bool chmin(T &a, const U &b) { if (b<a) { a=b; return true; } return false; }
const int INF = 1e9, MOD = 1e9 + 7;
const LL LLINF = 1e16;

int main() {
    fastcin();
    cout << fixed << setprecision(10);
    cii(a);
    cii(b);
    int ans = max(a + b, a - b, a * b);
    co(ans);
    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:43:18:   required from here
   43 |     int ans = max(a + b, a - b, a * b);
      |               ~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: 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();
		System.out.println(Math.(Math.max(A+B, A-B), A*B));
	}
}

Compiler output:
Main.java:8: error: <identifier> expected
		System.out.println(Math.(Math.max(A+B, A-B), A*B));
		                        ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define REPR(i,n) for(int i=n; i>-1; --i)
#define ALL(a) (a).begin(),(a).end()
#define INIT(a,n,x); REP(i,(n)){ (a)[i]=(x); }
#define CINA(a,n); REP(i,(n)){ cin >> (a)[i]; }
#define INIT2(a,n,m,x); REP(i,(n)){ REP(j,(m)){(a)[i][j]=(x);} }
#define CINA2(a,n,m); REP(i,(n)){ REP(j,(m)){cin >> (a)[i][j];} }
#define Liny "Yes\n"
#define Linn "No\n"
#define LINY "YES\n"
#define LINN "NO\n"

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:19:27: error: expected '}' before ')' token
   19 |   cout << max({A+B,A-B,A*B)});
      |               ~           ^
a.cc:19:28: error: expected ';' before '}' token
   19 |   cout << max({A+B,A-B,A*B)});
      |                            ^
      |                            ;
a.cc: At global scope:
a.cc:19:29: error: expected unqualified-id before ')' token
   19 |   cout << max({A+B,A-B,A*B)});
      |                             ^
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define REPR(i,n) for(int i=n; i>-1; --i)
#define ALL(a) (a).begin(),(a).end()
#define INIT(a,n,x); REP(i,(n)){ (a)[i]=(x); }
#define CINA(a,n); REP(i,(n)){ cin >> (a)[i]; }
#define INIT2(a,n,m,x); REP(i,(n)){ REP(j,(m)){(a)[i][j]=(x);} }
#define CINA2(a,n,m); REP(i,(n)){ REP(j,(m)){cin >> (a)[i][j];} }
#define Liny "Yes\n"
#define Linn "No\n"
#define LINY "YES\n"
#define LINN "NO\n"

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:19:24: error: request for member 'A' in 'B', which is of non-class type 'int'
   19 |   cout << max({A+B,A-B.A*B)});
      |                        ^
a.cc:19:27: error: expected '}' before ')' token
   19 |   cout << max({A+B,A-B.A*B)});
      |               ~           ^
a.cc:19:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   19 |   cout << max({A+B,A-B.A*B)});
      |           ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
a.cc: At global scope:
a.cc:19:29: error: expected unqualified-id before ')' token
   19 |   cout << max({A+B,A-B.A*B)});
      |                             ^
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
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)<< endl;

	
}


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: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 <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  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/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:9:12:   required from here
    9 |   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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a,b;
  cout<<max(a+b,a-b,a*b)<<endl;
}


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:9:12:   required from here
    9 |   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>
#include<algorithm>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
	
		int a1 = a + b;
		int a2 = a - b;
		int a3 = a * b;
		int max1 = max(a1, a2);
		max1 = max(max1, a3);
		cout << max1 << endl << endl;
		
	
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected '}' at end of input
   18 |         return 0;
      |                  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
	
		int a1 = a + b;
		int a2 = a - b;
		int a3 = a * b;
		int max1 = max(a1, a2);
		max1 = max(max1, a3);
		cout << max1 << endl << endl;
		printf("The largest number among A + B = %d,A - B = %d, and A * B = %d is %d.\n", a1, a2, a3, max1);
	
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected '}' at end of input
   18 |         return 0;
      |                  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
	
		if (a > 100 || b > 100 || a < -100 || b < -100)
			break;
		int a1 = a + b;
		int a2 = a - b;
		int a3 = a * b;
		int max1 = max(a1, a2);
		max1 = max(max1, a3);
		cout << max1 << endl << endl;
		printf("The largest number among A + B = %d,A - B = %d, and A * B = %d is %d.\n", a1, a2, a3, max1);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: break statement not within loop or switch
   11 |                         break;
      |                         ^~~~~
Language: C++

#include <iostream>
#include<algorithm>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b
	
		int a1 = a + b;
		int a2 = a - b;
		int a3 = a * b;
		int max1 = max(a1, a2);
		max1 = max(max1, a3);
		cout << max1 << endl;
		printf("The largest number among A + B = %d,A - B = %d,and A * B = %d is %d.\n", a1, a2, a3, max1);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'int'
    8 |         cin >> a >> b
      |                      ^
      |                      ;
    9 | 
   10 |                 int a1 = a + b;
      |                 ~~~   
a.cc:13:32: error: 'a1' was not declared in this scope; did you mean 'a3'?
   13 |                 int max1 = max(a1, a2);
      |                                ^~
      |                                a3
Language: C++

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

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:14:   required from here
    7 |   int ans=max(A+B,A-B,A*B);
      |           ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <cstdio>
#include <vector>
#include <iostream>
using namespace std;

char incrementChar(char x){
    return static_cast<char>(x + 1);
}

int weekToInt(string x){
    int num;
    if(x == "SUN"){
        num = 1;
    }else if(x == "MON"){
        num = 2;
    }else if(x == "TUE"){
        num = 3;
    }else if(x == "WED"){
        num = 4;
    }else if(x == "THU"){
        num = 5;
    }else if(x == "FRI"){
        num = 6;
    }else if(x == "SAT"){
        num = 7;
    }else{
        num = 0;
    }

    return num;
}

int main(){
    int A, B;
    cin >> A >> B;

    vector<int> v;
    auto it = v.begin();

    it = v.insert(it, A + B);
    it = v.insert(it, A - B);
    it = v.insert(it, A * B);

    int max = *max_element(v.begin(), v.end());
    cout << max << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:16: error: 'max_element' was not declared in this scope
   44 |     int max = *max_element(v.begin(), v.end());
      |                ^~~~~~~~~~~
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:
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}) << endl;
      |           ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<iostream>
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:5:14:   required from here
    5 |   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;

    int sum = A + B;
    int subtract = A - B;
    int multi = A * B;

    if (sum>subtract && sum>multi) {cout << sum << endl;}
    else if (subtract>sum && subtract>multi) {cout << subtract << endl;}
    else if {multi>sum && multi>subtract} {cout << multi << endl;}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected '(' before '{' token
   16 |     else if {multi>sum && multi>subtract} {cout << multi << endl;}
      |             ^
      |             (
Language: C++

#pragma once
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>

typedef long long ll;
#define all(x) (x).begin(), (x).end()  // sortなどの引数を省略
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

#ifdef _MSC_FULL_VER  //デバッグ出力
#define dout cout
#define debug() if (true)
#define check(x) std::cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) std::cout << "☆" << x << endl
#else
#define dout \
  if (false) cout
#define debug() if (false)
#define check(x) \
  if (false) cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) \
  if (false) cout << "☆" << x << endlhttps:  // stopwatch.onl.jp/#
#endif
using namespace std;
int main() {
  int a,b;
  cin >> a >> b;
  if (a + b>a*b) {
    if (a + b > a - b) {
      cout << a+b;
    } else {
      cout << a-b
    }
  } else if (a - b > a * b) {
    cout<<a-b;
  }
  cout << a;
  return 0;
}
/*
//よく使うやつ
int N;
cin >> N;
vector<int> list(N);
for (int i = 0; i < N; i++) {
  cin >> list[i];
}
// for文
for (int i = 0; i < N; i++) {
}
//配列
vector<int> vec;
vec.at(i)
vector<vector<int>> vec(10, vector<int>(10));
sort(all(vec));
sort(all(vec), greater<int>());
    //配列の内容表示
dout << "====vecの内容====\n";
for (int i = 0; i < N; i++) dout << vec[i] << endl;
dout << "====ここまで====\n";
*/

Compiler output:
a.cc:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
a.cc: In function 'int main()':
a.cc:33:18: error: expected ';' before '}' token
   33 |       cout << a-b
      |                  ^
      |                  ;
   34 |     }
      |     ~
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    System.out.pritnln(Math.max(Math.max(a+b,a-b),a*b));
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    System.out.pritnln(Math.max(Math.max(a+b,a-b),a*b));
              ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: C++

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

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:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<c<<endl;
      |         ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |         cout<<c<<endl;
      |                  ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<d<<endl;
      |         ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |         cout<<d<<endl;
      |                  ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<e<<endl;
      |         ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |         cout<<e<<endl;
      |                  ^~~~
a.cc:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:1:12: note: to match this '{'
    1 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main() {
    int a,b,c,d,e;
    cin>>a>>b;
    c=a+b;
    d=a-b;
    e=a*b;
    if(c>d&&c>e){
        cout<<c<<endl<<"The largest number among A + B = "<<c<<", A - B = "<<d<<", and A x B = "<<e<<"is "<<c<<".";
    }
    else if(d>c&&d>e){
        cout<<d<<endl<<"The largest number among A + B = "<<c<<", A - B = "<<d<<", and A x B = "<<e<<"is "<<d<<".";
    }
    else if(e>c&&e>d){
        cout<<e<<endl<<"The largest number among A + B = "<<c<<", A - B = "<<d<<", and A x B = "<<e<<"is "<<e<<".";
    }
    system("pause");


Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: expected '}' at end of input
   18 |     system("pause");
      |                     ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <functional>
#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <queue>
#include <string>
#include <cstring>
#include <math.h>
using namespace std;


int main() {
   int a;
   int b;
   int c;
 
   cin >> a >> b >> c;
  
   int a1 = a+b;
   int a2 = a-b;
   int a3 = a*b;
  
   if(a1>=a2&&a2>=a3){
     cout << a1 << endl;
   }else if(a1<=a2&&a2=>a3){
     cout << a2 << endl;
   }else{
      cout << a3 << endl;
   }
     
   
   
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:24: error: expected primary-expression before '>' token
   26 |    }else if(a1<=a2&&a2=>a3){
      |                        ^
Language: C++

#include <iostream>
#unclude <algorithm>
using namespace std;
typedef long long ll;


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

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

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

#define dump(x) cout << (x) << '\n'
#define Int int64_t
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()

Int INF = 1e18;
int inf = 1e9;
Int mod = 1e9+7;

int main() {
    Int a, b;
    cin >> a >> b;
    dump(max{a + b, a - b, a * b});

    return 0;
}


Compiler output:
a.cc:17:34: error: macro "dump" passed 3 arguments, but takes just 1
   17 |     dump(max{a + b, a - b, a * b});
      |                                  ^
a.cc:4:9: note: macro "dump" defined here
    4 | #define dump(x) cout << (x) << '\n'
      |         ^~~~
a.cc: In function 'int main()':
a.cc:17:5: error: 'dump' was not declared in this scope
   17 |     dump(max{a + b, a - b, a * b});
      |     ^~~~
Language: C++

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

#define dump(x) cout << (x) << '\n'
#define Int int64_t
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()

Int INF = 1e18;
int inf = 1e9;
Int mod = 1e9+7;

int main() {
    Int a, b;
    cin >> a >> b;
    dump(max{a + b, a - b, a * b})
    return 0;
}


Compiler output:
a.cc:17:34: error: macro "dump" passed 3 arguments, but takes just 1
   17 |     dump(max{a + b, a - b, a * b})
      |                                  ^
a.cc:4:9: note: macro "dump" defined here
    4 | #define dump(x) cout << (x) << '\n'
      |         ^~~~
a.cc: In function 'int main()':
a.cc:17:5: error: 'dump' was not declared in this scope
   17 |     dump(max{a + b, a - b, a * b})
      |     ^~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'max' cannot be used as a function
   12 |   max = (max(a, b), c);
      |          ~~~^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:35: error: expected ',' or ';' before 'c'
    5 |   int A, B, max = 0, a = 0, b = 0 c = 0;
      |                                   ^
a.cc:10:3: error: 'c' was not declared in this scope
   10 |   c = A * B;
      |   ^
a.cc:12:13: error: 'max' cannot be used as a function
   12 |   max = (max(a, b), c);
      |          ~~~^~~~~~
Language: C++

//Transfer
#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/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:8:14:   required from here
    8 |     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;
    int c = max( a + b, a - b);
    cout << max (c, a * b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> a >> b;
      |     ^~~
a.cc:8:22: error: 'b' was not declared in this scope
    8 |     int c = max( a + b, a - b);
      |                      ^
Language: C++

#include <iostream>
using namespace srd;

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

Compiler output:
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from 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:8:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   int c = 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:
/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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << max(c,a + b);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
     int a,b,sum,sub,mult;
     cin>>a>>b;
     sum= a + b;
     sub= a - b;
     mult= a * b;
     if(sum>sub && sum>mult) {
          cout<<sum<<endl; 
          break;

     }else if(sub>sum && sub>mult){
          cout<<sub<<endl;
          break;
     }else if(mult>sum && mult>sub){ 
          cout<<mult<<endl;
          break;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: break statement not within loop or switch
   12 |           break;
      |           ^~~~~
a.cc:16:11: error: break statement not within loop or switch
   16 |           break;
      |           ^~~~~
a.cc:19:11: error: break statement not within loop or switch
   19 |           break;
      |           ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
     int A,B,sum,sub,mult;
     cin>>a>>b;
     sum= a + b;
     sub= a - b;
     mult= a * b;
     if(sum>sub && sum>mult) {
          cout<<sum<<endl;

     }else if(sub>sum && sub>mult){
          cout<<sub<<endl;
     }else if(mult>sum && mult>sub){ cout<<mult<<endl;
}
}


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

#include <iostream>

using namespace std;

int main()
{
    int a , b,max,multi,sum,diff;
    cin>>a>>b;
sum=a+b;
diff=a-b;
multi=a*b;
max=sum
    if((max)>(diff)&&(max)>(multi)) cout<< (max) ;
    else if((diff)>(sum)&&(diff)>(multi)) {
max=diff;
cout<< (max) ;
    else cout<< (multi) ;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before 'if'
   12 | max=sum
      |        ^
      |        ;
   13 |     if((max)>(diff)&&(max)>(multi)) cout<< (max) ;
      |     ~~  
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else if((diff)>(sum)&&(diff)>(multi)) {
      |     ^~~~
a.cc:17:5: error: expected '}' before 'else'
   17 |     else cout<< (multi) ;
      |     ^~~~
a.cc:14:43: note: to match this '{'
   14 |     else if((diff)>(sum)&&(diff)>(multi)) {
      |                                           ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int a , b;
    cin>>a>>b;
    sum=a+b;
    diff=a-b;
    mult=a*b;
    if((sum)>(diff)&&(sum)>=(mult)) cout<< (sum) ;
    else if((diff)>(sum)&&(diff)>(mult)) cout<< (diff) ;
    else cout<< (mult) ;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'sum' was not declared in this scope
    9 |     sum=a+b;
      |     ^~~
a.cc:10:5: error: 'diff' was not declared in this scope
   10 |     diff=a-b;
      |     ^~~~
a.cc:11:5: error: 'mult' was not declared in this scope
   11 |     mult=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) ;
    else if((a-b)>(a+b)&&(a-b)>(a*b)) cout<< (a-b) ;
    else<cout<< (a*b) ;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before '<' token
   11 |     else<cout<< (a*b) ;
      |         ^
Language: C++

{
    int A , B ;
   float sum,sub,mult;
    cin>> A>> B ;
    sum=A+B;
    sub=A-B;
    mult=A*B;
 if (sum>=sub && sum>= mult){
    cout<< sum;
}else if (sub>= sum && sub >= mult){
    cout<<sub;
}else{
    cout<< mult;
       }

return 0;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A , B ;
   float sum,sub,mult;
    cin>> A>> B ;
    sum=A+B;
    sub=A-B;
    mult=A*B;
 if (sum>sub && sum> mult){
    cout<< sum;
}else if (sub> sum &&sub > mult){
    cout<<sub;
}else{
    cout<< mult;
       }

return 0;
}

return 0;
}



Compiler output:
a.cc:24:1: error: expected unqualified-id before 'return'
   24 | return 0;
      | ^~~~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A , B ;
   float sum,sub,mult;
    cin>> A>> B ;
    sum=a+b;
    sub=a-b;
    mult=a*b;
 if (sum>sub && sum> mult){
    cout<< sum;
}else if (sub> sum &&sub > mult){
    cout<<sub;
}else{
    cout<< mult;
       }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'a' was not declared in this scope
   10 |     sum=a+b;
      |         ^
a.cc:10:11: error: 'b' was not declared in this scope
   10 |     sum=a+b;
      |           ^
Language: C++

#include <bits/stdc++.h>

int main()
{
  int a,b;
  scanf("%d%d",&a,&b);
  int x[3]={a+b,a-b,a*b};
  sort(x,x+3);
  printf("%d",x[2]);
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |   sort(x,x+3);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

///"    "\\\

# include <bits/stdc++.h>

# define pb push_back

using namespace std;

int k , z = 0 , o , p = 0 ;

	
int main() {

	int a , b 
	cin >> a >> b ;
	cout << max(max((a-b),(a+b)),(a*b));

}

///"    "\\\

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected initializer before 'cin'
   15 |         cin >> a >> b ;
      |         ^~~
a.cc:16:28: error: 'b' was not declared in this scope
   16 |         cout << max(max((a-b),(a+b)),(a*b));
      |                            ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int X,Y,a,b,c ;
 cin >> X>>Y ;
 b= X+Y ;
 a= X-Y ;
 c= X*Y ;
 if (a>=b && a>=c)
    cout << a<< endl ;
 else if (b>=a && b>=c)
    cout << b<<endl ;
 else
    cout << c <<endl;
  return 0 ;
}
    return 0;
}

Compiler output:
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
 int X,Y,a,b,c ;
 cin >> X>>Y ;
 b= A+B ;
 a= A-B ;
 c= A*B ;
 if (a>=b && a>=c)
    cout << a<< endl ;
 else if (b>=a && b>=c)
    cout << b<<endl ;
 else
    cout << c <<endl;
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'A' was not declared in this scope
    9 |  b= A+B ;
      |     ^
a.cc:9:7: error: 'B' was not declared in this scope
    9 |  b= A+B ;
      |       ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A ,B ,n,o,c;
    cin >> A >> B ;
    n= A+B ;
    o= A-b ;
    c=A*b ;
    if (n>o && n >c)
        cout << n ;
    else if (o>n && o>c)
        cout << o ;
    else 
        cout << c ;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'b' was not declared in this scope
   10 |     o= A-b ;
      |          ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A ,B ,n,o,c;
    cin >> A >> B ;
    n= A+B ;
    o= A-b ;
    c=A*b ;
    if (n>o && n >c)
        cout << n ;
    else if (o>n && o>c)
        cout << o
    else 
        cout << c 
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'b' was not declared in this scope
   10 |     o= A-b ;
      |          ^
a.cc:15:18: error: expected ';' before 'else'
   15 |         cout << o
      |                  ^
      |                  ;
   16 |     else
      |     ~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A , B ;
    cin>> A>> B ; 
    for(A && B >= -100 && A && B <=100){
       if (A + B > A - B && A + B > A * B){
          cout<< A +B;
       }else if (A -B > A + B && A - B > A * B){
          cout<<  A - B;
       }else{
          cout<<  A * B;
       }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: expected ';' before ')' token
    9 |     for(A && B >= -100 && A && B <=100){
      |                                       ^
      |                                       ;
a.cc:18:5: error: expected primary-expression before 'return'
   18 |     return 0;
      |     ^~~~~~
a.cc:17:6: error: expected ';' before 'return'
   17 |     }
      |      ^
      |      ;
   18 |     return 0;
      |     ~~~~~~
a.cc:18:5: error: expected primary-expression before 'return'
   18 |     return 0;
      |     ^~~~~~
a.cc:17:6: error: expected ')' before 'return'
   17 |     }
      |      ^
      |      )
   18 |     return 0;
      |     ~~~~~~
a.cc:9:8: note: to match this '('
    9 |     for(A && B >= -100 && A && B <=100){
      |        ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A , B ;
    cin>> A>> B ; 
    for(A && B >= -100 && A && B <=100)
    if (A + B > A - B && A + B > A * B){
        cout<< A +B;
    }else if (A -B > A + B && A - B > A * B){
        cout<<  A - B;
    }else{
        cout<<  A * B;
    }
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: expected ';' before ')' token
    9 |     for(A && B >= -100 && A && B <=100)
      |                                       ^
      |                                       ;
a.cc:12:6: error: expected primary-expression before 'else'
   12 |     }else if (A -B > A + B && A - B > A * B){
      |      ^~~~
a.cc:12:6: error: expected ';' before 'else'
   12 |     }else if (A -B > A + B && A - B > A * B){
      |      ^~~~
      |      ;
a.cc:12:6: error: expected primary-expression before 'else'
   12 |     }else if (A -B > A + B && A - B > A * B){
      |      ^~~~
a.cc:12:6: error: expected ')' before 'else'
   12 |     }else if (A -B > A + B && A - B > A * B){
      |      ^~~~
      |      )
a.cc:9:8: note: to match this '('
    9 |     for(A && B >= -100 && A && B <=100)
      |        ^
a.cc:12:6: error: expected primary-expression before 'else'
   12 |     }else if (A -B > A + B && A - B > A * B){
      |      ^~~~
a.cc:14:6: error: 'else' without a previous 'if'
   14 |     }else{
      |      ^~~~
a.cc:17:14: error: expected '}' at end of input
   17 |     return 0;
      |              ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
    int n,k,m,b,l;
    cin>>n>>k;
    m=n+k;
    b=n-k;
    l=n*k
    cout<<m<<b<<l;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'cout'
    9 |     l=n*k
      |          ^
      |          ;
   10 |     cout<<m<<b<<l;
      |     ~~~~
Language: C++


int a,b,add,sub,mul;
cin>>a>>b;

add = a+b;
sub = a-b;
mul = a*b;

if(add >= sub && add >= mul)
    cout<<add<<endl;
else if(sub >= add && sub >= mul)
    cout<<sub<<endl;
else
    cout<<mul<<endl;
return 0;
    }


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>a>>b;
      | ^~~
a.cc:5:1: error: 'add' does not name a type
    5 | add = a+b;
      | ^~~
a.cc:6:1: error: 'sub' does not name a type
    6 | sub = a-b;
      | ^~~
a.cc:7:1: error: 'mul' does not name a type
    7 | mul = a*b;
      | ^~~
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if(add >= sub && add >= mul)
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else if(sub >= add && sub >= mul)
      | ^~~~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else
      | ^~~~
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
a.cc:16:5: error: expected declaration before '}' token
   16 |     }
      |     ^
Language: C++

#include <iostream>

using namespace std;

int main()
{

if(add > sub && add > mul)
    cout<<"The larges number among A+B = "<<add<<", A-B = "<<sub<<", and A*B = "<<mul<<" is "<< add<<endl;
else if(sub > add && sub > mul)
    cout<<"The larges number among A+B = "<<add<<", A-B = "<<sub<<", and A*B = "<<mul<<" is "<< sub<<endl;
else
    cout<<"The larges number among A+B = "<<add<<", A-B = "<<sub<<", and A*B = "<<mul<<" is "<< mul<<endl;
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 'add' was not declared in this scope
    8 | if(add > sub && add > mul)
      |    ^~~
a.cc:8:10: error: 'sub' was not declared in this scope
    8 | if(add > sub && add > mul)
      |          ^~~
a.cc:8:23: error: 'mul' was not declared in this scope
    8 | if(add > sub && add > mul)
      |                       ^~~
Language: C++

	int A, B, sum, sub, mult;
	cin >> A >> B;
	sum = A + B;
	sub = A - B;
	mult = A * B;
	if (sum > sub && sum > mult) {
		cout << sum << endl;
	}
	else if (sub > sum && sub > mult) {
		cout << sub << endl;
	}
	else {
		cout << mult << endl;
	}
	return 0;
}

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> A >> B;
      |         ^~~
a.cc:3:9: error: 'sum' does not name a type
    3 |         sum = A + B;
      |         ^~~
a.cc:4:9: error: 'sub' does not name a type
    4 |         sub = A - B;
      |         ^~~
a.cc:5:9: error: 'mult' does not name a type
    5 |         mult = A * B;
      |         ^~~~
a.cc:6:9: error: expected unqualified-id before 'if'
    6 |         if (sum > sub && sum > mult) {
      |         ^~
a.cc:9:9: error: expected unqualified-id before 'else'
    9 |         else if (sub > sum && sub > mult) {
      |         ^~~~
a.cc:12:9: error: expected unqualified-id before 'else'
   12 |         else {
      |         ^~~~
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

	int A, B, sum, sub, mult;
	cin >> A >> B;
	sum = A + B;
	sub = A - B;
	mult = A * B;
	if (sum > sub&& sum > mult) {
		cout << sum << endl;
	}
	else if (sub > sum&& sub > mult) {
		cout << sub << endl;
	}
	else {
		cout << mult << endl;
	}
	return 0;
}

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> A >> B;
      |         ^~~
a.cc:3:9: error: 'sum' does not name a type
    3 |         sum = A + B;
      |         ^~~
a.cc:4:9: error: 'sub' does not name a type
    4 |         sub = A - B;
      |         ^~~
a.cc:5:9: error: 'mult' does not name a type
    5 |         mult = A * B;
      |         ^~~~
a.cc:6:9: error: expected unqualified-id before 'if'
    6 |         if (sum > sub&& sum > mult) {
      |         ^~
a.cc:9:9: error: expected unqualified-id before 'else'
    9 |         else if (sub > sum&& sub > mult) {
      |         ^~~~
a.cc:12:9: error: expected unqualified-id before 'else'
   12 |         else {
      |         ^~~~
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

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

#include <iostream>

using namespace std;

int main()
{
    int A,B,s,sub,m;
    cin>>A>>B;
    if((A>=-100 && A<=100) && (B>=-100 && B<=100))
    {
        s=A+B;
        sub=A-b;
        m=A*B;
        if(s>sub && s>m)
            cout<<s<<endl;
        else if(sub>s && sub>m)
                cout<<sub<<endl;
        else
            cout<<m<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'b' was not declared in this scope
   12 |         sub=A-b;
      |               ^
Language: C++

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

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

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

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

int main() {
  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/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) << 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.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner scan = new Scanner(System.in);
		int A, B;

		A = scan.nextInt();
		B = scan.nextInt();

		double pulus, minus, kakezan;

		pulus = A + B;
		minus = A - B;
		kakezan = A * B;

		double ans;

		if (pulus >= minus) {
			ans = pulus;
		} else {
			ans = minus;
		}

		if (kakezan > ans) {
			ans = kakezan;
		}

		return ans;

	}

	/**
	 * 余りを求める。
	 * @param a
	 * @param b
	 * @return 余り。余りがマイナスの時はプラスで返す。ｓ
	 */
	public static long myMod(long a, long b) {
		long ret = 0;

		ret = a % b;

		if (ret < 0) {
			ret += b;
		}

		return ret;
	}

	/**
	 * 乗数を求める ※mod対応
	 * @param a 基数
	 * @param n 乗数
	 * @param primeNumMod 法 mod値 使わない場合は「0」
	 * @return
	 */
	public static long myModPow(long a, long n, long primeNumMod) {

		long ans = 1;

		//乗数が0の場合→1
		if (n == 0)
			return 1;

		if (primeNumMod == 0) {
			//modを使わないとき

			while (n > 0) {

				if (n % 2 == 0) {
					//累乗が偶数の時

					a *= a;
					n = n / 2;
				} else {
					//累乗が奇数の時
					ans *= a;
					n--;
				}
			}

			return ans;

		} else {
			//modを使うとき

			while (n > 0) {

				if (n % 2 == 0) {
					//累乗が偶数の時

					a *= myMod(a, primeNumMod);
					n = n / 2;

				} else {
					//累乗が奇数の時
					ans *= myMod(a, primeNumMod);
					n--;

				}
			}

			return myMod(ans, primeNumMod);

		}

	}

}


Compiler output:
Main.java:34: error: incompatible types: unexpected return value
		return ans;
		       ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main() {

    int a,b,big;
    cin>>a>>b;
    int add=a+b;
    int m=a*b;
    int s=a-(b);
    if (add>m&&add>s)
    {big=add;}
    else if (m>s&&m>add)
    {big=m;}
    else if (s>add&&sub>m)
    {big=s;}
    cout<<big;
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: 'sub' was not declared in this scope
   14 |     else if (s>add&&sub>m)
      |                     ^~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,big;
    cin>>a>>b;
    int add=a+b;
    int m=a*b;
    int sub=a-b;

    if (add>m&&add>sub)
    {big=add;}
    else if (m>sub&&m>add)
    {big=m;}
    else if (sub>add&&sub>m)
    {big=sub;}
    cout<<big;
    return 0;
}

}

Compiler output:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^