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

#include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

typedef long long ll;

#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
#define repd(i, n) for (ll i = (n)-1; i >= 0; --i)
#define INF 10e12
#define MOD 1000000000 + 7
#define MAX 51000
#define all(x) (x).begin(), (x).end()
#define MX(x) *max_element(all(x))
#define MN(x) *min_element(all(x))

using namespace std;

int main(void)
{
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);
    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 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:41:18:   required from here
   41 |     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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'cout'
   11 |   f = a*b
      |          ^
      |          ;
   12 | 
   13 |     cout << max( max(d,e),max(e,f) ) << endl;
      |     ~~~~
Language: C++

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

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


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

#include<iostream>
using namespace std;

int A;
int B;
int plus;
int minus;
int multiply;

int main(){
  cin >> A >> B;
  plus = A + B;
  minus = A - B;
  multiply = A * B;
  cout <<< max(plus, max(minus, multiply));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: reference to 'plus' is ambiguous
   12 |   plus = A + B;
      |   ^~~~
In file included from /usr/include/c++/14/string:49,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_function.h:160:12: note: candidates are: 'template<class _Tp> struct std::plus'
  160 |     struct plus;
      |            ^~~~
a.cc:6:5: note:                 'int plus'
    6 | int plus;
      |     ^~~~
a.cc:13:3: error: reference to 'minus' is ambiguous
   13 |   minus = A - B;
      |   ^~~~~
/usr/include/c++/14/bits/stl_function.h:163:12: note: candidates are: 'template<class _Tp> struct std::minus'
  163 |     struct minus;
      |            ^~~~~
a.cc:7:5: note:                 'int minus'
    7 | int minus;
      |     ^~~~~
a.cc:15:10: error: expected primary-expression before '<' token
   15 |   cout <<< max(plus, max(minus, multiply));
      |          ^
a.cc:15:16: error: reference to 'plus' is ambiguous
   15 |   cout <<< max(plus, max(minus, multiply));
      |                ^~~~
/usr/include/c++/14/bits/stl_function.h:160:12: note: candidates are: 'template<class _Tp> struct std::plus'
  160 |     struct plus;
      |            ^~~~
a.cc:6:5: note:                 'int plus'
    6 | int plus;
      |     ^~~~
a.cc:15:26: error: reference to 'minus' is ambiguous
   15 |   cout <<< max(plus, max(minus, multiply));
      |                          ^~~~~
/usr/include/c++/14/bits/stl_function.h:163:12: note: candidates are: 'template<class _Tp> struct std::minus'
  163 |     struct minus;
      |            ^~~~~
a.cc:7:5: note:                 'int minus'
    7 | int minus;
      |     ^~~~~
Language: C++

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

void solve(long long A, long long B)
{
    //cout << ((A + B >= A - B) ? ((A + B >= A * B) ? (A + B) : (A * B)) : A - B) << endl;
    long long maxa = -1000000000;
    long long add = A + B;
    long long mn = A - B;
    long long ab = A * B;

    maxa = max(add, mn);
    maxa = max(max, ab);

    cout << maxa << endl;
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main()
{
    long long A;
    scanf("%lld", &A);
    long long B;
    scanf("%lld", &B);
    solve(A, B);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int)':
a.cc:13:15: error: no matching function for call to 'max(<unresolved overloaded function type>, long long int&)'
   13 |     maxa = max(max, ab);
      |            ~~~^~~~~~~~~
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: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = long long 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 long long 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
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:   candidate expects 1 argument, 2 provided
/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:   template argument deduction/substitution failed:
a.cc:13:15: note:   couldn't deduce template parameter '_Tp'
   13 |     maxa = max(max, ab);
      |            ~~~^~~~~~~~~
Language: C++

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

void solve(long long A, long long B)
{
    //cout << ((A + B >= A - B) ? ((A + B >= A * B) ? (A + B) : (A * B)) : A - B) << endl;
    long long max = -1000000000;
    long long add = A + B;
    long long mn = A - B;
    long long ab = A * B;

    max = max(add, mn);
    max = max(max, ab);

    cout << max << endl;
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main()
{
    long long A;
    scanf("%lld", &A);
    long long B;
    scanf("%lld", &B);
    solve(A, B);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int)':
a.cc:12:14: error: 'max' cannot be used as a function
   12 |     max = max(add, mn);
      |           ~~~^~~~~~~~~
a.cc:13:14: error: 'max' cannot be used as a function
   13 |     max = max(max, ab);
      |           ~~~^~~~~~~~~
Language: C++

#include<stdio.h>
#include<iostream>
#include<string>
using namespace std;

int main() {
	/*
	int a = 0;//整数変数aを作る
	int b = 0;//整数変数bを作る

	cin >> a >> b;//2つの数字を受け取り、a,bに代入

	cout << a * b << endl;//a*bを出力
	*/
	/*
	string S;
	cin >> S;
	if (S[0]=='7'||S[1]=='7'||S[2]=='7') {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	*/
	int a = 0;
	int b = 0;
	int ans = 0;

	cin >> a >> b;

	int apb = a + b;
	int akb = a * b;
	int amb = a - b;
	ans = apb;
	if (ans < a - b) {
		ans = a - b;
	}


	if (ans < a * b) {
		ans = a * b;
	}




	return 0;




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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> P;
typedef pair<ll, ll> Pll;
#define rep(i,n) for(int (i) = 0; (i) < (int)(n); (i)++)
#define debug(var)  do{std::cout << #var << " : ";view(var);}while(0)
template<typename T> void view(T e){std::cout << e << std::endl;}
template<typename T> void view(const std::vector<T>& v){for(const auto& e : v){ std::cout << e << " "; } std::cout << std::endl;}
template<typename T> void view(const std::vector<std::vector<T> >& vv){ for(const auto& v : vv){ view(v); } }
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
void Yes(){cout << "Yes" << endl;}
void No(){cout << "No" << endl;}
void YES(){cout << "YES" << endl;}
void NO(){cout << "NO" << endl;}
void err() {cout << -1 << endl;}
#define all(x) x.begin(), x.end()

const int MOD = 1000000007;
const int INF = 1e9;

#define PI acos(-1);
int dx[4] = {1,-1,0,0};
int dy[4] = {0,0,1,-1};
int ddx[8] = {1,1,1,-1,-1,-1,0,0};
int ddy[8] = {0,1,-1,0,1,-1,1,-1};


int main(){
    int a, b, c, s, k,  t;
    cin >> a >> b >> c >> s >> k >> t;
    ans = a*s+t*b;
    if(s+t<=k) ans-=c*(s+t);
    cout << ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 |     ans = a*s+t*b;
      |     ^~~
      |     abs
Language: C++

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


{
    typedef int ll;
    ll a,b;
    cin>>a>>b;
    ll s=a+b;
    ll bs=a-b;
    ll m=a*b;

    ll ans=max(s,max(bs,m));

    cout<<ans<<endl;

}


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

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

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

    cout << max(max(a + b, a - b), a * b) << endl;
    return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:52: error: expected '}' before ')' token
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b,greater<int>())};
      |                         ~                          ^
a.cc:6:24: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b,greater<int>())};
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:6:24: note:   deduced conflicting types for parameter '_Tp' ('int' and 'std::greater<int>')
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b,greater<int>())};
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:7:3: error: 'cout' does not name a type
    7 |   cout<<ans<<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
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,greater<int> ())};
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:53: error: expected '}' before ')' token
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b,greater<int> ())};
      |                         ~                           ^
a.cc:6:24: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b,greater<int> ())};
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:6:24: note:   deduced conflicting types for parameter '_Tp' ('int' and 'std::greater<int>')
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b,greater<int> ())};
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:7:3: error: 'cout' does not name a type
    7 |   cout<<ans<<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
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:
a.cc: In function 'int main()':
a.cc:6:21: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    6 |   cin>>a>>b;int ans=max{(a+b,a*b,a-b)};
      |                     ^~~
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:
a.cc: In function 'int main()':
a.cc:6:37: error: expected '}' before ')' token
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b)};
      |                         ~           ^
a.cc:6:38: error: expected ',' or ';' before '}' token
    6 |   cin>>a>>b;int ans=max({a+b,a*b,a-b)};
      |                                      ^
a.cc: At global scope:
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout<<ans<<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
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:
a.cc: In function 'int main()':
a.cc:6:21: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    6 |   cin>>a>>b;int ans=max{(a+b,a*b,a-b)}
      |                     ^~~
Language: C

#include <stdio.h>

int main(void)
{
        int a,b,s1,s2,s3;
        scanf("%d%d",&a,&b);

        s1=a+b;
        s2=a-b;
        s3=a*b;

        if(s1>s2){
                if(a1>s3) printf("%d\n",s1);
                else printf("%d\n",s3);
        }
        else if(s1<s2)
                if(s2>s3) printf("%d\n",s2);
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:20: error: 'a1' undeclared (first use in this function); did you mean 's1'?
   13 |                 if(a1>s3) printf("%d\n",s1);
      |                    ^~
      |                    s1
main.c:13:20: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;
public class Main {
 	public static void main(String[] args) {
	         Scanner sc = new Scanner(System.in);
             int a = sc.nextInt();
              int b = sc.nextInt();

      System.out.println(Math.max(a+b,a-b,a*b));
               }
	 }

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

#include <bits/stdc++.h> 
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/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:6:14:   required from here
    6 |   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 <bits/stdc++.h>
using namespace std;

int a,b;

int main(){
    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:8:16:   required from here
    8 |     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<bits/stdc++.h>
using namespace std;
using ll=long long;
#define fr(i,n) for(long long i=0;i<(n);++i)
#define Fr(i,n) for(long long i=1;i<=(n);++i)
#define ifr(i,n) for(long long i=(n)-1;i>=0;--i)
#define iFr(i,n) for(long long i=(n);i>0;--i)

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int x,y;
  cin>>x>>y;
  cout<<max(x+y,x=y,x*y);
}

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:14:12:   required from here
   14 |   cout<<max(x+y,x=y,x*y);
      |         ~~~^~~~~~~~~~~~~
/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>


//      DEEP


using namespace std;
#define boost ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define fwd(i,a,n) for(int i=a;i<=n;i++)
#define bak(i,a,n) for(int i=a;i>=n;i--)
#define all(v) v.begin(),v.end()
#define pb push_back

typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<long long> vll;
typedef pair<int,int> pi;
typedef set<int> si;
const ll mod = 1e9 + 7;
ull power(ull x,ull y){
   if(y==0) return 1;
   else{
     if(y%2==0) return power(x*x,y/2);
     else return x*power(x*x,(y-1)/2);
   }
}
ull gcd(ull x,ull y){
   if(y==0)return x;
   return gcd(y,x%y);
}
int main(){
    boost;
    int TESTS=1;
    //cin>>TESTS;
    while(TESTS--){
        ll a,b;
      cin>>a>>b;
      ll x,y,x;
      x=a+b;
      y=a-b;
      z=a*b;
      cout<<max(x,max(y,z))<<endl;
    }
}
/* Be careful about integer ranges;
   Check the corner cases before submitting.
*/




Compiler output:
a.cc: In function 'int main()':
a.cc:39:14: error: redeclaration of 'll x'
   39 |       ll x,y,x;
      |              ^
a.cc:39:10: note: 'll x' previously declared here
   39 |       ll x,y,x;
      |          ^
a.cc:42:7: error: 'z' was not declared in this scope
   42 |       z=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,AxB)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: 'AxB' was not declared in this scope
    7 |     cout << max(A+B,max(A-B,AxB)) << endl;
      |                             ^~~
Language: C++

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

int main() {
    int A,B;
    cin >> A >> B;
    cout << max(A+B,max(A-B,AxB));    
}

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

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

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

Compiler output:
a.cc:2:21: error: expected unqualified-id before ':' token
    2 | using namespace std;:
      |                     ^
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;
}

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:16:   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;
int  main(){
int A,B;
cin>>A>>B;
int a=A+B;
int b=A-B;
int c=A*B;
int r=max(a,b);
int answer=max(r.c);
cout<<answer<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: request for member 'c' in 'r', which is of non-class type 'int'
   10 | int answer=max(r.c);
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int  main(){
int A,B;
cin>>A>>B;
int a=A+B;
int b=A-B;
int c=A*B;
int answer=max(a,b,c);
cout<<answer<<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:15:   required from here
    9 | int answer=max(a,b,c);
      |            ~~~^~~~~~~
/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<n; i++);
using ll=long long;
int  main(){
int A,B;
cin>>A>>B;
int a=A+B;
int b=A-B;
int c=A*B;
int answer=max(a,b,c);
cout<<answer<<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:11:15:   required from here
   11 | int answer=max(a,b,c);
      |            ~~~^~~~~~~
/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<n; i++);
using ll=long long;
int  main(){
int A,B;
cin>>A>>B;
int a=A+B;
int b=A-B;
int c=A*B;
cout<<max(a,b,c)<<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:11:10:   required from here
   11 | cout<<max(a,b,c)<<endl;
      |       ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc:1:1: error: '\U0000ff03include' does not name a type
    1 | ＃include <bits/stdc++.h>
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << max(a + b, max(a - b, a * b));
      |   ^~~~
a.cc:8:22: error: 'max' was not declared in this scope
    8 |   cout << max(a + b, max(a - b, a * b));
      |                      ^~~
a.cc:8:11: error: 'max' was not declared in this scope
    8 |   cout << max(a + b, max(a - b, a * b));
      |           ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ')' before ';' token
    6 | do(a+b==c;a-b==d;a*b==e){
      |   ~      ^
      |          )
a.cc:6:11: error: expected 'while' before 'a'
    6 | do(a+b==c;a-b==d;a*b==e){
      |           ^
a.cc:6:11: error: expected '(' before 'a'
    6 | do(a+b==c;a-b==d;a*b==e){
      |           ^
      |           (
a.cc:6:17: error: expected ')' before ';' token
    6 | do(a+b==c;a-b==d;a*b==e){
      |           ~     ^
      |                 )
a.cc:6:24: error: expected ';' before ')' token
    6 | do(a+b==c;a-b==d;a*b==e){
      |                        ^
      |                        ;
a.cc:16:3: error: expected '}' at end of input
   16 |  }
      |   ^
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;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: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<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b>>;
  cout<<max(a-b,max(a+b,a*b));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before ';' token
    6 |   cin>>a>>b>>;
      |              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'if'
    5 |   scanf("%d",&B)
      |                 ^
      |                 ;
    6 |   if(A+B<A-B && A-B<A*B){printf("%d",A-B);}
      |   ~~
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 if(A+B<A*B && A*B<A-B){printf("%d",A*B);}
  else if(A-B<A*B && A*B<A+B){printf("%d",A*B);}
  else if(A-b<A+B && A+B<A*B){printf("%d",A+B);}
  else if(A*B<A+B && A+B<A-B){printf("%d",A+B);}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'b' undeclared (first use in this function)
    9 |   else if(A-b<A+B && A+B<A*B){printf("%d",A+B);}
      |             ^
main.c:9:13: 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 n;
  cin>>n;
  string s;
  map<string, int> mapa;
  for(int i=0; i<n; i++){
    cin>>s;
    sort(s.begin(), s.end());
    mapa[s]++;
  }
  lli contador=0;
  for(auto a:mapa){
    contador+=(1LL*a.second*(a.second-1))/2;
  }
  cout<<contador<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'lli' was not declared in this scope
   14 |   lli contador=0;
      |   ^~~
a.cc:16:5: error: 'contador' was not declared in this scope
   16 |     contador+=(1LL*a.second*(a.second-1))/2;
      |     ^~~~~~~~
a.cc:18:9: error: 'contador' was not declared in this scope
   18 |   cout<<contador<<endl;
      |         ^~~~~~~~
Language: C++

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

int main(){
  int n;
  cin>>n;
  string s;
  map<string, int> mapa;
  for(int i=0; i<n; i++){
    cin>>s;
    sort(s.begin(), s.end());
    mapa[s]++;
  }
  int contador=0;
  for(auto a:mapa){
    contador+=(a.second*(a.second-1))/2;
  cout<<contador<<endl;
}


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

#include <bits/stdc++.h>
#define MAXN 200100
#define pii pair<int,int>
#define ff first
#define ss second
#define ll long long
#define in_range(x, y, n) (x >= 0 and x<n and y >=0 and y<n)
using namespace std;
const ll mod = 1e9 + 7;


int main (){
    ios_base::sync_with_stdio(false);
    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: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:18:16:   required from here
   18 |     cout << max(a+b, a*b, a-b) << endl;
      |             ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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


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

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

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


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

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

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inckude; did you mean #include?
    2 | #inckude <vector>
      |  ^~~~~~~
      |  include
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'long'
    6 |   long long a,b;cin >> a >> b;
      |   ^~~~
a.cc:6:3: error: expected '}' before 'long'
a.cc:5:10: note: to match this '{'
    5 | int main {
      |          ^
a.cc:6:17: error: 'cin' does not name a type
    6 |   long long a,b;cin >> a >> b;
      |                 ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << max(a+b,max(a-b,a*b)) << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:3: error: break statement not within loop or switch
   12 |   break;
      |   ^~~~~
main.c:17:3: error: break statement not within loop or switch
   17 |   break;
      |   ^~~~~
main.c:22:3: error: break statement not within loop or switch
   22 |   break;
      |   ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:3: error: break statement not within loop or switch
   11 |   break;
      |   ^~~~~
main.c:12:3: error: 'else' without a previous 'if'
   12 |   else if(d>=c&&d>=e)
      |   ^~~~
main.c:14:3: error: break statement not within loop or switch
   14 |   break;
      |   ^~~~~
main.c:15:3: error: 'else' without a previous 'if'
   15 |   else if(e>=c&&e>=d)
      |   ^~~~
main.c:17:3: error: break statement not within loop or switch
   17 |   break;
      |   ^~~~~
Language: C

#include <stdio.h>
int main(){
  int a,b,c,d,e;
  scanf("%d %d",&a,&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(e>=c && e>=d){
    printf("%d",e);
  }
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:14:21: error: expected ';' before '{' token
   14 |   else(e>=c && e>=d){
      |                     ^
      |                     ;
Language: C

#include<stdio.h>
#include<math.h>
int main(){
  int a,b;
  scanf("%d %d",&a,&b);
  int c=fmax(a+b,a-b);
  int d=fmax(c,a*b);
  printf("%d",d);
  return 0;
  ]
  


Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected statement before ']' token
   10 |   ]
      |   ^
main.c:10:3: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<math.h>
int main(){
  int a,b;
  scanf("%d %d",a,b);
  int c=fmax(a+b,a-b);
  int d=fmax(c,a*b);
  printf("%d",d);
  return 0;
  ]
  

Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected statement before ']' token
   10 |   ]
      |   ^
main.c:10:3: error: expected declaration or statement at end of input
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:5: error: expected '(' before '-' token
   11 |   if-else(d>c&&d>e)
      |     ^
      |     (
main.c:13:5: error: expected '(' before '-' token
   13 |   if-else(e>c&&e>d)
      |     ^
      |     (
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |   int a,b,c,d,e:
      |                ^
main.c:8:3: error: 'e' undeclared (first use in this function)
    8 |   e=a*b;
      |   ^
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:5: error: expected '(' before '-' token
   11 |   if-else(d>c&&d>e)
      |     ^
      |     (
main.c:13:5: error: expected '(' before '-' token
   13 |   if-else(e>c&&e>d)
      |     ^
      |     (
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |   int a,b,c,d,e:
      |                ^
main.c:8:3: error: 'e' undeclared (first use in this function)
    8 |   e=a*b;
      |   ^
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define inf 1e18
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define pb push_back
#define ff first
#define ss second
#define vll vector<ll>
#define pii pair<ll,ll>
#define sz(v) (v).size()
#define srt(v) sort(v.begin(),v.end())
#define ull unsigned long long
#define tell(a) cout<<a<<" "
#define el cout<<endl
#define rev(v) reverse(v.begin(),v.end())
#define rep(i,a,n) for(int i=a;i<n;i++)
#define M 1000000007
ll power(ll x, ll y, ll p){ll res = 1;x = x % p;while (y > 0){   if (y & 1)res = (res*x) % p;y = y>>1;
x = (x*x) % p;}return res;}



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



Compiler output:
a.cc: In function 'int main()':
a.cc:28:18: error: expected ';' before 'cout'
   28 |         cin>>a>>b
      |                  ^
      |                  ;
   29 |         cout<<max(a+b,max(a-b,a*b));
      |         ~~~~
Language: Java

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


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

# include <iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  int c = fmax(a+b,a-b);
  int d = fmax(c,a*b);
  cout << d;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'fmax' was not declared in this scope
    6 |   int c = fmax(a+b,a-b);
      |           ^~~~
Language: C++

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

int ans(int x,int y) {
  p=x+y;
  q=x-y;
  r=x*y;
  int s=0;
  if(p>=q && p>=r) s=p;
  if(q>=p && q>=r) s=q;
  if(r>=p && r>=q) s=r;
  return s;
}
int main() {
  int a,b;
  cin >> a >> b;
  cout << ans(a,b) << endl;
  return 0;
}
  
    

Compiler output:
a.cc: In function 'int ans(int, int)':
a.cc:5:3: error: 'p' was not declared in this scope
    5 |   p=x+y;
      |   ^
a.cc:6:3: error: 'q' was not declared in this scope
    6 |   q=x-y;
      |   ^
a.cc:7:3: error: 'r' was not declared in this scope
    7 |   r=x*y;
      |   ^
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;
  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:6:14:   required from here
    6 |   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 <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;
  return 0;
}

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include <climits>
#include <iomanip>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
int main(){
  int a,b;
  cin >> a >> b;
  cout << max({a + b,a - b,a * b});
  return0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected ';' before '}' token
   11 |   cout << max(c, max(d ,e )) }
      |                             ^~
      |                             ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected ';' before '}' token
   11 |   cout << max(a, max(b ,c )) }
      |                             ^~
      |                             ;
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a;
      |   ^~~
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << max(a, max(b ,c )) }
      |   ^~~~
a.cc:11:18: error: 'max' was not declared in this scope
   11 |   cout << max(a, max(b ,c )) }
      |                  ^~~
a.cc:11:11: error: 'max' was not declared in this scope
   11 |   cout << max(a, max(b ,c )) }
      |           ^~~