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

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include <tuple>
#include <stack>

#define rep(i,n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(),x.end()
#define print(s) cout << s << endl
typedef long long ll;
using namespace std;

int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}

int main() {
	int a, b; cin >> a >> b;
	int vector<int> v;
	v.push_back(a-b);
	v.push_back(a+b);
	v.push_back(a*b);
	print(*max_element(all(v)));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: invalid declarator before 'v'
   26 |         int vector<int> v;
      |                         ^
a.cc:27:9: error: 'v' was not declared in this scope
   27 |         v.push_back(a-b);
      |         ^
Language: C++

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

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

    maxn=max(max(a+b,a-b),a*b);

    cout<<max<<endl;
    
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
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:7:12:   required from here
    7 |   cout<<max(A+B,A-B,A*B)<<endl;
      |         ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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


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

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

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

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:10:   required from here
    8 |   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 <iostream>
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:18: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |     int ans = max({A + B,A - B,A * B});
      |               ~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

int main(){
    int A, B, max;
    cin >> A >> B;
    wa = A + B;
    sa = A - B;
    seki = A * B;

    max = wa;
    if(max < sa){
        max = sa;
    }
    if(max < seki){
        max = seki;
    }

    cout << max << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'wa' was not declared in this scope
    9 |     wa = A + B;
      |     ^~
a.cc:10:5: error: 'sa' was not declared in this scope
   10 |     sa = A - B;
      |     ^~
a.cc:11:5: error: 'seki' was not declared in this scope
   11 |     seki = A * B;
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #incllude; did you mean #include?
    1 | # incllude <bits/stdc++.h>
      |   ^~~~~~~~
      |   include
a.cc: In function 'int main()':
a.cc:5:13: error: 'cin' was not declared in this scope
    5 |   int A, B; cin >> A >> B;
      |             ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | # incllude <bits/stdc++.h>
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << ans << endl;
      |   ^~~~
a.cc:14:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | # incllude <bits/stdc++.h>
Language: C

int main(){
  int a, b;
  scanf("%d%d",&a,&b);
  printf("%d

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d",&a,&b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |   printf("%d
      |   ^~~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:10: warning: missing terminating " character
    4 |   printf("%d
      |          ^
main.c:4:10: error: missing terminating " character
    4 |   printf("%d
      |          ^~~
main.c:4:3: error: expected expression at end of input
    4 |   printf("%d
      |   ^~~~~~
main.c:4:3: error: expected declaration or statement at end of input
Language: C++

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

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

    cout<<saidai<<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'cout'
   12 |     cout<<saidai<<endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define INIT std::ios::sync_with_stdio(false);std::cin.tie(0);
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

using namespace std;

int main() {
  INIT;
  
  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:17:14:   required from here
   17 |   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 p = a + b;
  int q = a - b;
  int r = a * b;
  cout << max({p, q, r}) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |   cout << max({p, q, r}) << 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<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:6:16: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    6 |   printf("%d", max(a + b, max(a * b, a - b)));
      |                ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d", &a, &b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d", &a, &b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |   printf("%d", max(a + b, max(a * b, a - b)));
      |   ^~~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:16: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    4 |   printf("%d", max(a + b, max(a * b, a - b)));
      |                ^~~
Language: C++

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <array>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

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:
a.cc: In function 'int main()':
a.cc:21:38: error: expected ';' before 'return'
   21 |     cout<<max(max(A+B,A-B),A*B)<<endl
      |                                      ^
      |                                      ;
   22 |     return 0;
      |     ~~~~~~
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:
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before '.' token
    4 |   int a.b;
      |        ^
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b;
      |        ^
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cin>>a>>b;
      |           ^
a.cc:6:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |   cout<<max({a+b,a-b,a*b})<<endl;
      |         ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

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

int main() {
	int A,B;
  	cin >> A >> B;
  
  	int wa = A + B, sa = A - B, se = A * B;
  	
  	cout << max(wa,sa,se) << 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:10:15:   required from here
   10 |         cout << max(wa,sa,se) << 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 wa = A + B, sa = A - B; se = A * B;
  	
  	cout << max(wa,(sa,se)) << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:37: error: 'se' was not declared in this scope; did you mean 'sa'?
    8 |         int wa = A + B, sa = A - B; se = A * B;
      |                                     ^~
      |                                     sa
Language: Java

import java.util.*;

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

Compiler output:
Main.java:14: error: package Sytem does not exist
            Sytem.out.println(y);
                 ^
1 error
Language: Java

import java.util.*

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C++

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<iomanip>



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

using namespace std;
int a,b,c;
int k1,k2,k3;

int main(){
  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/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:21:16:   required from here
   21 |   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 x,y,z,ans; 
  x=a+b; y=a-b; z=a*b;
  //vector
    vector<int> vec = {x,y,z};
    sort(vec.begin(), vec.end())
  
  cout << vec.at(2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected ';' before 'cout'
   11 |     sort(vec.begin(), vec.end())
      |                                 ^
      |                                 ;
   12 | 
   13 |   cout << vec.at(2) << endl;
      |   ~~~~
Language: C++

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

int main() {
	int A, B;
	int max, wa,sa,seki;
	
	wa = A + B;
	sa = A - B;
	max = max(wa, sa);
	
	seki= A * B;
	
	max = max(max,seki);
	
	cout << max << endl;
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: 'max' cannot be used as a function
   11 |         max = max(wa, sa);
      |               ~~~^~~~~~~~
a.cc:15:18: error: 'max' cannot be used as a function
   15 |         max = max(max,seki);
      |               ~~~^~~~~~~~~~
Language: C++

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

int main() {
	int A, B;
	int max, wa,sa,seki,
	
	wa = A + B;
	sa = A - B;
	max = max(wa, sa);
	
	seki= A * B;
	
	max = max(max,seki);
	
	cout << max << endl;
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: redeclaration of 'int wa'
    9 |         wa = A + B;
      |         ^~
a.cc:7:18: note: 'int wa' previously declared here
    7 |         int max, wa,sa,seki,
      |                  ^~
a.cc:11:18: error: 'max' cannot be used as a function
   11 |         max = max(wa, sa);
      |               ~~~^~~~~~~~
a.cc:15:18: error: 'max' cannot be used as a function
   15 |         max = max(max,seki);
      |               ~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <deque>
#define range(i, r) for(int i=0;i<r;i++)
#define ranges(i, l, r) for(int i=l;i<r;i++)
#define vv(a, b, c, d) vector<vector<d> >(a, vector<d>(b, c))
#define vvi std::vector<std::vector<int> >
#define vvl std::vector<std::vector<ll> >
#define MODs 1000000007;
#define MODn 1000000009;
typedef long long int ll;
using namespace std;

int main(int argc, char const *argv[]) {
  int A, B;
  std::cin >> A >> B;
  std::cout << max(A+B, A-B, A*B) << '\n';
  return 0;
}


Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:18:19:   required from here
   18 |   std::cout << max(A+B, A-B, A*B) << '\n';
      |                ~~~^~~~~~~~~~~~~~~
/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 <string>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

int main()
{
    auto tmp = IntArray(2);
    int a, b;
    a = tmp[0];
    b = tmp[1];
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int ans;
    if (max(x, y) > max(y, z))
    {
        ans = max(x, y);
    }
    else
    {
        ans = max(y, z);
    }
    cout << ans;
}

static vector<int> IntArray(int l)
{
    vector<int> result(l);
    for (int i(0); i < l; i++)
    {
        cin >> result[i];
    }
    return std::move(result);
}

static vector<vector<int>> IntMatrix(int h, int w)
{
    vector<vector<int>> result(h);
    for (int i(0); i < h; i++)
    {
        result[i] = vector<int>(w);
        for (int j(0); j < w; j++)
        {
            cin >> result[i][j];
        }
    }
    return std::move(result);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'IntArray' was not declared in this scope
   11 |     auto tmp = IntArray(2);
      |                ^~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

class Procon
{
    int main()
    {
        auto tmp = IntArray(2);
        int a, b;
        a = tmp[0];
        b = tmp[1];
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int ans;
        if (max(x, y) > max(y, z))
        {
            ans = max(x, y);
        }
        else
        {
            ans = max(y, z);
        }
        cout << ans;
    }

    static vector<int> IntArray(int l)
    {
        vector<int> result(l);
        for (int i(0); i < l; i++)
        {
            cin >> result[i];
        }
        return std::move(result);
    }

    static vector<vector<int>> IntMatrix(int h, int w)
    {
        vector<vector<int>> result(h);
        for (int i(0); i < h; i++)
        {
            result[i] = vector<int>(w);
            for (int j(0); j < w; j++)
            {
                cin >> result[i][j];
            }
        }
        return std::move(result);
    }
};

Compiler output:
a.cc: In member function 'int Procon::main()':
a.cc:30:5: warning: no return statement in function returning non-void [-Wreturn-type]
   30 |     }
      |     ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <string>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

class Procon
{
    int main()
    {
        auto tmp = IntArray(2);
        int a, b;
        a = tmp[0];
        b = tmp[1];
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int ans;
        if (max(x, y) > max(y, z))
        {
            ans = max(x, y);
        }
        else
        {
            ans = max(y, z);
        }
        cout << ans;
    }

    static vector<int> IntArray(int l)
    {
        vector<int> result(l);
        for (int i(0); i < l; i++)
        {
            cin >> result[i];
        }
        return std::move(result);
    }

    static vector<vector<int>> IntMatrix(int h, int w)
    {
        vector<vector<int>> result(h);
        for (int i(0); i < h; i++)
        {
            result[i] = vector<int>(w);
            for (int j(0); j < w; j++)
            {
                cin >> result[i][j];
            }
        }
    }
};

Compiler output:
a.cc: In member function 'int Procon::main()':
a.cc:30:5: warning: no return statement in function returning non-void [-Wreturn-type]
   30 |     }
      |     ^
a.cc: In static member function 'static std::vector<std::vector<int> > Procon::IntMatrix(int, int)':
a.cc:53:5: warning: no return statement in function returning non-void [-Wreturn-type]
   53 |     }
      |     ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <string>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

class Procon
{
    int main()
    {
        auto tmp = IntArray(2);
        int a, b;
        a = tmp[0];
        b = tmp[1];
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int ans;
        if (max(x, y) > max(y, z))
            ans = max(x, y);
        else
            ans = max(y, z);
    }

    static vector<int> IntArray(int l)
    {
        vector<int> result(l);
        for (int i(0); i < l; i++)
        {
            cin >> result[i];
        }
        return std::move(result);
    }

    static vector<vector<int>> IntMatrix(int h, int w)
    {
        vector<vector<int>> result(h);
        for (int i(0); i < h; i++)
        {
            result[i] = vector<int>(w);
            for (int j(0); j < w; j++)
            {
                cin >> result[i][j];
            }
        }
    }
};

Compiler output:
a.cc: In member function 'int Procon::main()':
a.cc:25:5: warning: no return statement in function returning non-void [-Wreturn-type]
   25 |     }
      |     ^
a.cc: In static member function 'static std::vector<std::vector<int> > Procon::IntMatrix(int, int)':
a.cc:48:5: warning: no return statement in function returning non-void [-Wreturn-type]
   48 |     }
      |     ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <string>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

class Procon
{
    int main()
    {
        auto tmp = IntArray(2);
        int a, b;
        a = tmp[0];
        b = tmp[1];
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int ans;
        if (max(x, y) > max(y, z))
            ans = max(x, y);
        else
            ans = max(y, z);
    }

    static vector<int> IntArray(int l)
    {
        vector<int> result(l);
        for (int i(0); i < l; i++)
        {
            cin >> result[i];
        }
        return std::move(result);
    }

    static vector<vector<int>> IntMatrix(int h, int w)
    {
        vector<vector<int>> result(h);
        for (int i(0); i < h; i++)
        {
            result[i] = vector<int>(w);
            for (int j(0); j < w; j++)
            {
                cin >> result[i][j];
            }
        }
    }
}

Compiler output:
a.cc:49:2: error: expected ';' after class definition
   49 | }
      |  ^
      |  ;
a.cc: In member function 'int Procon::main()':
a.cc:25:5: warning: no return statement in function returning non-void [-Wreturn-type]
   25 |     }
      |     ^
a.cc: In static member function 'static std::vector<std::vector<int> > Procon::IntMatrix(int, int)':
a.cc:48:5: warning: no return statement in function returning non-void [-Wreturn-type]
   48 |     }
      |     ^
Language: C++

#include <iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<algorithm>

using namespace std;
int main() {
    auto tmp = IntArray(2);
    int a, b;
    a = tmp[0];
    b = tmp[1];
    int x = a + b;
    int y = a- b;
    int z = a * b;
    int ans;
    if(max(x, y) > max(y, z)) ans = max(x, y);
    else ans = max(y, z);
}

static vector<int> IntArray(int l){
    vector<int> result(l);
    for(int i(0); i < l; i++)
    {
        cin >> result[i];
    }
    return std::move(result);
}

static vector<vector<int>> IntMatrix(int h, int w){
    vector<vector<int>> result(h);
    for(int i(0); i < h; i++)
    {
        result[i] = vector<int>(w);
        for(int j(0); j < w; j++)
        {
            cin >> result[i][j];
        }    
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'IntArray' was not declared in this scope
    9 |     auto tmp = IntArray(2);
      |                ^~~~~~~~
a.cc: In function 'std::vector<std::vector<int> > IntMatrix(int, int)':
a.cc:40:1: warning: no return statement in function returning non-void [-Wreturn-type]
   40 | }
      | ^
Language: C++

#include <iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<algorithm>

using namespace std;
int main() {
    auto tmp = IntArray(2);
    int a, b;
    a = tmp[0];
    b = tmp[1];
    int x = a + b;
    int y = a- b;
    int z = a * b;
    int max = max({x, y, z});
    cout << max;
}

static vector<int> IntArray(int l){
    vector<int> result(l);
    for(int i(0); i < l; i++)
    {
        cin >> result[i];
    }
    return std::move(result);
}

static vector<vector<int>> IntMatrix(int h, int w){
    vector<vector<int>> result(h);
    for(int i(0); i < h; i++)
    {
        result[i] = vector<int>(w);
        for(int j(0); j < w; j++)
        {
            cin >> result[i][j];
        }    
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'IntArray' was not declared in this scope
    9 |     auto tmp = IntArray(2);
      |                ^~~~~~~~
a.cc:16:18: error: 'max' cannot be used as a function
   16 |     int max = max({x, y, z});
      |               ~~~^~~~~~~~~~~
a.cc: In function 'std::vector<std::vector<int> > IntMatrix(int, int)':
a.cc:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
   39 | }
      | ^
Language: C++

#include <iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<functoinal>

using namespace std;
int main() {
    auto tmp = IntArray(2);
    int a, b;
    a = tmp[0];
    b = tmp[1];
    int x = a + b;
    int y = a- b;
    int z = a * b;
    int max = max({x, y, z});
    cout << max;
}

static vector<int> IntArray(int l){
    vector<int> result(l);
    for(int i(0); i < l; i++)
    {
        cin >> result[i];
    }
    return std::move(result);
}

static vector<vector<int>> IntMatrix(int h, int w){
    vector<vector<int>> result(h);
    for(int i(0); i < h; i++)
    {
        result[i] = vector<int>(w);
        for(int j(0); j < w; j++)
        {
            cin >> result[i][j];
        }    
    }
}

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

#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <cstdio>
#include <algorithm>
using namespace std;
int main(){
    int a, b;
    cin >> a >> b;
    cout << max(a+b, a-b, a*b) << endl;
    return 0;
}


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

#include<iostream>
#include<algorithm>

using namespace std;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'ensl' was not declared in this scope
   11 |   cout<<max({a+b,a-b,a*b})<<ensl;
      |                             ^~~~
Language: C++

#include<iostream>

using namespace std;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   10 |   cout<<max({a+b,a-b,a*b})<<ensl;
      |         ~~~^~~~~~~~~~~~~~~
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
a.cc:10:29: error: 'ensl' was not declared in this scope
   10 |   cout<<max({a+b,a-b,a*b})<<ensl;
      |                             ^~~~
Language: C++

#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
#include <string>
#include <math.h>
#include <iomanip>
#include <limits>
#include <list>
#include <queue>
#include <tuple>
#include <map>
#include <set>
using namespace std;
#define MOD (long long int)(1e9+7)
#define ll long long int
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define reps(i,n) for(int i=1; i<=(int)(n); i++)
#define REP(i,n) for(int i=n-1; i>=0; i--)
#define REPS(i,n) for(int i=n; i>0; i--)
#define INF (int)(1123456789)
#define LINF (long long int)(112345678901234567)

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


Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |         ans = A + B;
      |         ^~~
      |         abs
Language: C++

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

int main()
{
    long long a, b;
    cin>>a>>b;
    if(!b)
        cout<<max(max(a+b, a-b),max(a-b,0)<<endl;
    else
        cout<<max(max(a+b, a-b),max(a-b,a/b)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: no matching function for call to 'max(long long int, int)'
    9 |         cout<<max(max(a+b, a-b),max(a-b,0)<<endl;
      |                                 ~~~^~~~~~~
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:   template argument deduction/substitution failed:
a.cc:9:36: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    9 |         cout<<max(max(a+b, a-b),max(a-b,0)<<endl;
      |                                 ~~~^~~~~~~
/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:9:36: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    9 |         cout<<max(max(a+b, a-b),max(a-b,0)<<endl;
      |                                 ~~~^~~~~~~
a.cc:11:45: error: invalid operands of types 'const long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |         cout<<max(max(a+b, a-b),max(a-b,a/b)<<endl;
      |                                 ~~~~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a,b;
  vector<int> c(3);
  cin >> a;
  cin >>b;
  c[0]=a+b;
  c[1]=a-b;
  c[2]=a*b;
  sort(c.begin(),c.end());
  cout << a[2] <<endl;
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: invalid types 'int[int]' for array subscript
   17 |   cout << a[2] <<endl;
      |            ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a,b;
  vector<int> c(3);
  cin >> a;
  cin >>b;
  c[0]=a+b;
  c[1]=a-b;
  c[2]=a*b;
  sort(a.begin(),a.end());
  cout << a[2] <<endl;
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: request for member 'begin' in 'a', which is of non-class type 'int'
   16 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:16:20: error: request for member 'end' in 'a', which is of non-class type 'int'
   16 |   sort(a.begin(),a.end());
      |                    ^~~
a.cc:17:12: error: invalid types 'int[int]' for array subscript
   17 |   cout << a[2] <<endl;
      |            ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a,b;
  vector<int> c;
  cin >> a;
  cin >>b;
  c[0]=a+b;
  c[1]=a-b;
  c[2]=a*b;
  sort(a.begin(),a.end());
  cout << a[2] <<endl;
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: request for member 'begin' in 'a', which is of non-class type 'int'
   16 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:16:20: error: request for member 'end' in 'a', which is of non-class type 'int'
   16 |   sort(a.begin(),a.end());
      |                    ^~~
a.cc:17:12: error: invalid types 'int[int]' for array subscript
   17 |   cout << a[2] <<endl;
      |            ^
Language: C++

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

using ll = int64_t;
#define int ll

#define FOR(i, a, b) for (int i = int(a); i < int(b); i++)
#define REP(i, b) FOR(i, 0, b)
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define ALL(x) x.begin(), x.end()

using pi = pair<int, int>;
using vi = vector<int>;
using ld = long double;

template <class T, class U>
ostream &operator<<(ostream &os, const pair<T, U> &p) {
  os << "(" << p.first << "," << p.second << ")";
  return os;
}

template <class T>
ostream &operator<<(ostream &os, const vector<T> &v) {
  os << "{";
  REP(i, (int)v.size()) {
    if (i) os << ",";
    os << v[i];
  }
  os << "}";
  return os;
}

ll read() {
  ll i;
  scanf("%" SCNd64, &i);
  return i;
}

void printSpace() { printf(" "); }

void printEoln() { printf("\n"); }

void print(ll x, int suc = 1) {
  printf("%" PRId64, x);
  if (suc == 1) printEoln();
  if (suc == 2) printSpace();
}

string readString() {
  static char buf[3341000];
  scanf("%s", buf);
  return string(buf);
}

char *readCharArray() {
  static char buf[3341000];
  static int bufUsed = 0;
  char *ret = buf + bufUsed;
  scanf("%s", ret);
  bufUsed += strlen(ret) + 1;
  return ret;
}

template <class T, class U>
void chmax(T &a, U b) {
  if (a < b) a = b;
}

template <class T, class U>
void chmin(T &a, U b) {
  if (b < a) a = b;
}

template <class T>
T Sq(const T &t) {
  return t * t;
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:88:13: error: expected ';' before '}' token
   88 |   print(ans)
      |             ^
      |             ;
   89 | }
      | ~
Language: C++

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

using ll = int64_t;
#define int ll

#define FOR(i, a, b) for (int i = int(a); i < int(b); i++)
#define REP(i, b) FOR(i, 0, b)
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define ALL(x) x.begin(), x.end()

using pi = pair<int, int>;
using vi = vector<int>;
using ld = long double;

template <class T, class U>
ostream &operator<<(ostream &os, const pair<T, U> &p) {
  os << "(" << p.first << "," << p.second << ")";
  return os;
}

template <class T>
ostream &operator<<(ostream &os, const vector<T> &v) {
  os << "{";
  REP(i, (int)v.size()) {
    if (i) os << ",";
    os << v[i];
  }
  os << "}";
  return os;
}

ll read() {
  ll i;
  scanf("%" SCNd64, &i);
  return i;
}

void printSpace() { printf(" "); }

void printEoln() { printf("\n"); }

void print(ll x, int suc = 1) {
  printf("%" PRId64, x);
  if (suc == 1) printEoln();
  if (suc == 2) printSpace();
}

string readString() {
  static char buf[3341000];
  scanf("%s", buf);
  return string(buf);
}

char *readCharArray() {
  static char buf[3341000];
  static int bufUsed = 0;
  char *ret = buf + bufUsed;
  scanf("%s", ret);
  bufUsed += strlen(ret) + 1;
  return ret;
}

template <class T, class U>
void chmax(T &a, U b) {
  if (a < b) a = b;
}

template <class T, class U>
void chmin(T &a, U b) {
  if (b < a) a = b;
}

template <class T>
T Sq(const T &t) {
  return t * t;
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:85:14: error: expected ';' before 'chmax'
   85 |   ans = A + B chmax(ans, A - B);
      |              ^~~~~~
      |              ;
a.cc:87:13: error: expected ';' before '}' token
   87 |   print(ans)
      |             ^
      |             ;
   88 | }
      | ~
Language: C++

#include <bits/stdc++.h>

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

#include <iostream>
#include <algorithm>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |   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;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before 'max'
    7 |   int answer max(A+B,max(A-B,A*B));
      |              ^~~
a.cc:8:12: error: 'answer' was not declared in this scope
    8 |     cout <<answer<<endl;
      |            ^~~~~~