criyle/codenet-compile-errors huggingface dataset:
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:16: error: expected ')' before 'max'
   11 |   cout << max(a max (b ,c ) ) }
      |              ~ ^~~~
      |                )
a.cc:11:14: error: no matching function for call to 'max(int&)'
   11 |   cout << max(a max (b ,c ) ) }
      |           ~~~^~~~~~
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:11:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   11 |   cout << max(a max (b ,c ) ) }
      |           ~~~^~~~~~
/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;
  cin >> a;
  int b;
  cin >> b;
  int c = a + b;
  int d = a -b ;
  int e = a * b;
  cout << max(max(a , b) c ) ; }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected ')' before 'c'
   11 |   cout << max(max(a , b) c ) ; }
      |              ~          ^~
      |                         )
a.cc:11:14: error: no matching function for call to 'max(const int&)'
   11 |   cout << max(max(a , b) c ) ; }
      |           ~~~^~~~~~~~~~~~~
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:11:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   11 |   cout << max(max(a , b) c ) ; }
      |           ~~~^~~~~~~~~~~~~
/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 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:7:16:   required from here
    7 |   int ans = max(a+b, a-b, a*b);
      |             ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: 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();
       
		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: 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 c = Math.max(a+b,a-b);
       
		System.out.println(Math.max(c,a*b);
	}
}


Compiler output:
Main.java:9: error: ')' or ',' expected
		System.out.println(Math.max(c,a*b);
		                                  ^
1 error
Language: C++

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

int main() {
  int A,B;
  cin >> A >> B;
  
  int a = A+B, b = A-B, c =  A*B;
  
  vector<int> vec = {a,b,c};
  sort(vec.begin(),vec.end());
  cout << vec.at(2) << endl;
}


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

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

int main() {
  int A,B;
  cin >> A >> B;
  
  int a = A+B, b = A-B, 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:10:19:   required from here
   10 |   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 <bitd/stdc++.h>
using namespace std;

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


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

#include <iostream>
#include <math.h>

int main() {
	long A, B;
	std::cin >> A >> B;
	long mul = A*B;
	long sum = A+B;
	long sub = A-B;
	std::cout << std::max(sum > sub ? add : sub, mul);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:43: error: 'add' was not declared in this scope; did you mean 'fadd'?
   10 |         std::cout << std::max(sum > sub ? add : sub, mul);
      |                                           ^~~
      |                                           fadd
Language: C++

#include <iostream>
#include <math.h>

int main() {
	long A, B;
	std::cin >> A >> B;
	long mul = A*B;
	long sum = A+B;
	long sub = A-B;
	std::cout << std::max(add > sub ? add : sub, mul);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: 'add' was not declared in this scope; did you mean 'fadd'?
   10 |         std::cout << std::max(add > sub ? add : sub, mul);
      |                               ^~~
      |                               fadd
Language: C++

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:5:14:   required from here
    5 |   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 <cstdio>

using namespace std;

int a, b;

int main() {

	scanf("%d %d", &a, &b);

	printf("%d\n", max(a + b, max(a - b, a * b)));

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: 'max' was not declared in this scope
   11 |         printf("%d\n", max(a + b, max(a - b, a * b)));
      |                                   ^~~
a.cc:11:24: error: 'max' was not declared in this scope
   11 |         printf("%d\n", max(a + b, max(a - b, a * b)));
      |                        ^~~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
int main(){
  int a,b, plus , minus, multiply;
  cin >> a >> b;
  plus = a+b;
  minus = a-b;
  multiply = a * b;
  cout << max({plus, minus, multiply});
  return 0;
}

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

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

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

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

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

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

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

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

int main(){

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

#include <iostream>
using namespace std;

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


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

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

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

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

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

}

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

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
using Map = map<string,ll>;



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

　　ll ans=A+B;
    ans=max(ans,A-B);
	ans=max(ans,A*B);
	cout<<ans<<endl;
return 0;
}  



Compiler output:
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　ll ans=A+B;
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:15:1: error: '\U00003000\U00003000ll' was not declared in this scope
   15 | 　　ll ans=A+B;
      | ^~~~~~
a.cc:16:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |     ans=max(ans,A-B);
      |     ^~~
      |     abs
Language: C++

using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int A,B;
  cin>>A>>B;
  if(A+B>=A-B)
    int ans=A+B;
  else
    int ans=A-B;
  if(ans>=A*B)
    cout<<ans<<endl;
  else
    cout<<A*B<<endl;
}


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

using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int A,B;
  cin>>A>>B;
  if(A+B>=A-B)
    int ans=A+B
  else
    int ans=A-B
  if(ans>=A*B)
    cout<<ans<<endl;
  else
    cout<<A*B<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:3: error: expected ',' or ';' before 'else'
   37 |   else
      |   ^~~~
Language: C++

using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N,M;
  cin>>N>>M;
  if(A+B>=A-B)
    int ans=A+B
  else
    int ans=A-B
  if(ans>=A*B)
    cout<<ans<<endl;
  else
    cout<<A*B<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:6: error: 'A' was not declared in this scope
   35 |   if(A+B>=A-B)
      |      ^
a.cc:35:8: error: 'B' was not declared in this scope
   35 |   if(A+B>=A-B)
      |        ^
Language: C++

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

int main()
{
	int k, x;
  	cin >> k >> x;
  	for(int i = x-(k-1); i <= x+k-1; i++)
    {
    	cout << i << '';
    }
}


Compiler output:
a.cc:10:22: error: empty character constant
   10 |         cout << i << '';
      |                      ^~
Language: C++

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

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> a >> b;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << max({a+b, a-b, a*b}) << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:17: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |         cout << max({a+b, a-b, a*b}) << endl;
      |                 ^~~
      |                 std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         cout << max({a+b, a-b, a*b}) << endl;
      |                                         ^~~~
      |                                         std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
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:8:30: error: expected '}' before ';' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                     ~        ^
a.cc:8:30: error: expected ')' before ';' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                    ~         ^
      |                              )
a.cc:8:35: error: expected ';' before '}' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                                   ^
      |                                   ;
a.cc: At global scope:
a.cc:8:36: error: expected unqualified-id before ')' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                                    ^
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> a >> b;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:30: error: expected '}' before ';' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                     ~        ^
a.cc:8:30: error: expected ')' before ';' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                    ~         ^
      |                              )
a.cc:8:35: error: expected ';' before '}' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                                   ^
      |                                   ;
a.cc: At global scope:
a.cc:8:36: error: expected unqualified-id before ')' token
    8 |         cout << max({a+b, a-b; a*b}) << endl;
      |                                    ^
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin >> a >> b;
      | ^~~
a.cc:4:1: error: 'cout' does not name a type
    4 | cout << max({a+b, a-b; a*b}) << endl;
      | ^~~~
a.cc:4:28: error: expected unqualified-id before ')' token
    4 | cout << max({a+b, a-b; a*b}) << endl;
      |                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(long long i = 0;i < n;i++)
#define repr(i, n) for(int i = n;i >= 0;i--)
#define Sort(v, n) sort(v, v+n);
#define VSort(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
#define cY cout<<"Yes";
#define cN cout<<"No";
#define cA(a) cout<<a;
const ll MOD = 1000000007;



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



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

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

int main() {
  int a,b;
  cin >> a >> b;
  int ans;
  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:12:   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 <bits/stdc++.h>
using namespace std;

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

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

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

int main(){
    int plus,minus,kakeru
    cin >> int a >> int b ;

    plus = a+b;
    minus = a - b;
    kakeru = a*b;
    cout << max({plus,minus,kakeru}) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> int a >> int b ;
      |     ^~~
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     plus = a+b;
      |            ^
a.cc:9:14: error: 'b' was not declared in this scope
    9 |     plus = a+b;
      |              ^
a.cc:11:5: error: 'kakeru' was not declared in this scope
   11 |     kakeru = a*b;
      |     ^~~~~~
a.cc:12:16: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   12 |     cout << max({plus,minus,kakeru}) << 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:2:
/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<string>
#include<iostream>
#include <algorithm>
#include<vector>
#include<functional>
#include <cstdlib>
#include <iomanip>
#include <cmath>
#define ll long long
using namespace std;



int main(){
  ll 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 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 = long long int; _Compare = long long int]':
a.cc:17:12:   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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'c' was not declared in this scope
   14 |   cout << max(a,max(b,c));
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
#define ALLR(v) b.rbegin(),v.rend()
typedef long long ll;
//isPrime
//modpow modinv
//getDigit
int main() {
  cout << fixed << setprecision(10);
  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: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<stdio.h>
#include<string.h>
#include<stdlib.h>
int tmp(const void* a,const void* b){
  return *(char*)a-*(char*)b;
}
int main(void){
  int n,i,num,ans;
  scanf("%d",&n);
  char a[n][10];
  for(i=0;i<n;i++){
    scanf("%s",a[i]);
    qsort(a[i],10,sizeof(char),tmp);
  }
  qsort(a,n,sizeof(a[0]),tmp);
  for(i=0;i<n;i++){
    if(strcmp(s[i],s[i+1])==0){
      num++;
    }
    else{
      ans+=(num-1)*num/2;
      num=1;
    }
  }
  ans+=(num-1)*num/2;
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:15: error: 's' undeclared (first use in this function)
   17 |     if(strcmp(s[i],s[i+1])==0){
      |               ^
main.c:17:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

using namespace std;

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

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

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

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc: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++

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define dump(x) cout << x << endl
typedef int64_t Int;

using namespace std;
using Graph = vector<vector<Int>>;

const double pi = M_PI;
const Int MOD = 1000000007;

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

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

    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:16:16:   required from here
   16 |     cout << max(a + b, a - b, a * b) << endl;
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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

int A,B;

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

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

int A,B;

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

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

int main() {
	int A,B,ans1,ans2,ans3;
	
	cin >> A >> B;
	
	ans1 = A + B;
	ans2 = A - B;
	ans3 = A * B;
	
	cout << max(ans1, ans2, ans3) << 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:15:13:   required from here
   15 |         cout << max(ans1, ans2, ans3) << 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++

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

int main() {
	int A,B,ans1,ans2,ans3;
	
	cin >> A >> B;
	
	ans1 = A + B;
	ans2 = A - B;
	ans3 = A * B;
	

	if (ans1 > ans2 && ans1>ans3) cout << ans1 << endl;
	if (ans2 > ans1 && ans2 > ans3) cout << ans2 << endl;
	if (ans3 > ans1 && ans3 > ans2) cout << ans3 << endl;

	return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <iostream>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> A >> B;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:15:39: error: 'cout' was not declared in this scope
   15 |         if (ans1 > ans2 && ans1>ans3) cout << ans1 << endl;
      |                                       ^~~~
a.cc:15:39: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:55: error: 'endl' was not declared in this scope
   15 |         if (ans1 > ans2 && ans1>ans3) cout << ans1 << endl;
      |                                                       ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string.h>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:16:41: error: 'cout' was not declared in this scope
   16 |         if (ans2 > ans1 && ans2 > ans3) cout << ans2 << endl;
      |                                         ^~~~
a.cc:16:41: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:57: error: 'endl' was not declared in this scope
   16 |         if (ans2 > ans1 && ans2 > ans3) cout << ans2 << endl;
      |                                                         ^~~~
a.cc:16:57: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:41: error: 'cout' was not declared in this scope
   17 |         if (ans3 > ans1 && ans3 > ans2) cout << ans3 << endl;
      |                                         ^~~~
a.cc:17:41: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:57: error: 'endl' was not declared in this scope
   17 |         if (ans3 > ans1 && ans3 > ans2) cout << ans3 << endl;
      |                                                         ^~~~
a.cc:17:57: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int A,B,Z,O,M;
	cin >> A >> B;
	Z=A+B;
	O=A-B;
	M=A*B;
	if (Z>=O and Z>=M)
	cout << Z;
	else if (O>M and O>Z)
	cout << O;
	else if
	cout << M;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected '(' before 'cout'
   16 |         cout << M;
      |         ^~~~
      |         (
Language: C++

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

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


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

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


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