criyle/codenet-compile-errors huggingface dataset:
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:11:   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>
#include <vector>
#include <algorithm>

bool isAnagram(std::vector<char>& s1, std::vector<char>& s2)
{
    for (int i = 0; i < 10; i++) {
        if (s1[i] != s2[i]) return false;
    }

    return true;
}

int main(int argc, char** argv)
{
    int N;
    std::cin >> N;

    std::vector<std::string> strs;
    std::vector<std::vector<char>> parsed;

    for (int i = 0; i < N; i++) {
        std::string S;
        std::cin >> S;
        strs.push_back(S);
        std::vector<char> line;
        for (int j = 0; j < 10; j++) {
            line.push_back(std::to_int(S[j]);
        }
        std::sort(std::begin(line), std::end(line));
        parsed.push_back(line);
    }

    int ans = 0;
    for (int i = 0; i < N-1; i++) {
        for (int j = i+1; j < N; j++) {
            if (isAnagram(parsed[i], parsed[j])) {
                ans++;
            }
        }
    }

    std::cout << ans << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:29:33: error: 'to_int' is not a member of 'std'
   29 |             line.push_back(std::to_int(S[j]);
      |                                 ^~~~~~
Language: C++

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

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

        #include <bits/stdc++.h>
        using namespace std;
         
        int main() {
          int A, B;
          cin >> A >> B;

          cout<< max( A+B, max(A-B, A*B) ) << endl;}
        }

Compiler output:
a.cc:9:9: error: expected declaration before '}' token
    9 |         }
      |         ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:18: error: 'B' undeclared (first use in this function)
    9 |   else if(a-b>=a+B&&a-b>=a*b)
      |                  ^
main.c:9:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'B' was not declared in this scope
    8 |   else if(a-b>=a+B&&a-b>=a*b)
      |                  ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'B' was not declared in this scope
    8 |   else if(a-b>=a+B&&a-b>=a*b)
      |                  ^
Language: C

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

Compiler output:
main.c: In function 'max':
main.c:10:17: error: expected ';' before '}' token
   10 |         return b
      |                 ^
      |                 ;
   11 |     }
      |     ~
Language: C++

int max(int a,int b,int c)
{
if(a>b && a>c)
  return a;
  else if(b>c && b>a)
    return b;
	else
      return c;
}
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:13:3: error: 'cin' was not declared in this scope
   13 |   cin>>a>>b;
      |   ^~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout<<max(a+b,a-b,a*b);
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // スペース区切りの整数の入力
    int A, B;
    cin >> A >> B;
    // 文字列の入力
	sum = A + B;
    dif = A - B;
    prd = A * B;
    if (sum - dif > 0 && sum - prd > 0){
    cout << sum << endl;
    }
    else if ( dif - sum > 0 && dif - prd > 0){
    cout << dif << endl;
    }
    else {
    cout << prd << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'sum' was not declared in this scope
    9 |         sum = A + B;
      |         ^~~
a.cc:10:5: error: 'dif' was not declared in this scope; did you mean 'div'?
   10 |     dif = A - B;
      |     ^~~
      |     div
a.cc:11:5: error: 'prd' was not declared in this scope
   11 |     prd = A * B;
      |     ^~~
Language: C++

次の問題はお前がやりたいやつか、この前のqiita記事をやるか、ワイが適当に取ってくるかどれがええかね？

Compiler output:
a.cc:1:1: error: extended character 、 is not valid in an identifier
    1 | 次の問題はお前がやりたいやつか、この前のqiita記事をやるか、ワイが適当に取ってくるかどれがええかね？
      | ^
a.cc:1:1: error: extended character 、 is not valid in an identifier
a.cc:1:1: error: '\U00006b21\U0000306e\U0000554f\U0000984c\U0000306f\U0000304a\U0000524d\U0000304c\U00003084\U0000308a\U0000305f\U00003044\U00003084\U00003064\U0000304b\U00003001\U00003053\U0000306e\U0000524d\U0000306eqiita\U00008a18\U00004e8b\U00003092\U00003084\U0000308b\U0000304b\U00003001\U000030ef\U000030a4\U0000304c\U00009069\U00005f53\U0000306b\U000053d6\U00003063\U00003066\U0000304f\U0000308b\U0000304b\U00003069\U0000308c\U0000304c\U00003048\U00003048\U0000304b\U0000306d\U0000ff1f' does not name a type
    1 | 次の問題はお前がやりたいやつか、この前のqiita記事をやるか、ワイが適当に取ってくるかどれがええかね？
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll MOD = 1e9+7;

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

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

Compiler output:
main.c: In function 'main':
main.c:7:24: error: expected ')' before ';' token
    7 |   else(printf("%d",A*B);)
      |       ~                ^
      |                        )
main.c:7:26: error: expected ';' before 'return'
    7 |   else(printf("%d",A*B);)
      |                          ^
      |                          ;
    8 | 
    9 |     return 0
      |     ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:24: error: expected ')' before ';' token
    7 |   else(printf("%d",A*B);)
      |       ~                ^
      |                        )
main.c:7:26: error: expected ';' before 'return'
    7 |   else(printf("%d",A*B);)
      |                          ^
      |                          ;
    8 | 
    9 |     return 0;
      |     ~~~~~~
Language: C

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

Compiler output:
main.c:1:9: fatal error: stdio,h: No such file or directory
    1 | #include<stdio,h>
      |         ^~~~~~~~~
compilation terminated.
Language: C

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

Compiler output:
main.c:1:9: fatal error: stdio,h: No such file or directory
    1 | #include<stdio,h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: expected initializer before 'c'
    4 |     int a, b c[3];
      |              ^
a.cc:5:5: error: 'c' was not declared in this scope
    5 |     c[0] = a+b;
      |     ^
a.cc:5:14: error: 'b' was not declared in this scope
    5 |     c[0] = a+b;
      |              ^
Language: C++

int main() {

    cin >> A;
    cin >> B;
    int c = A - B;
    int d = A + B;
    int e = A * B;
    if (c < d and e < d){
        cout << d;
    } else if (d < c and e < c) {
        cout << c;
    } else {
        cout << e;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> A;
      |     ^~~
a.cc:3:12: error: 'A' was not declared in this scope
    3 |     cin >> A;
      |            ^
a.cc:4:12: error: 'B' was not declared in this scope
    4 |     cin >> B;
      |            ^
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << d;
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << c;
      |         ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << e;
      |         ^~~~
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

int main(){
    int a, b, c;
    cin >> a >> b >> c;
    if (c - (a - b)) < 0){
        cout << 0 << endl;
    }else{
        cout << c - (a - b) << endl;
    }return 0;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before '<' token
    9 |     if (c - (a - b)) < 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;
  return 0;
  ｝

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: '\U0000ff5d' was not declared in this scope
    9 |   ｝
      |   ^~
a.cc:9:5: error: expected '}' at end of input
    9 |   ｝
      |     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<cstdlib>
#include<cstdio>
#include<iostream>
#include<vector>
#include <algorithm>
#include <sstream>
#include <iomanip>
#include <map>

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:16:36: error: expected ';' before 'endl'
   16 |     cout << max(max(a+b, a-b), a*b) endl;
      |                                    ^~~~~
      |                                    ;
Language: C++

// abc137_a
#include <bits/stdc++.h>
#ifdef LOCAL
#include "../cxx-prettyprint/prettyprint.hpp"
#endif
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;

#define REP(i, n) for (int (i) = 0 ; (i) < (int)(n) ; ++(i))
#define REPN(i, m, n) for (int (i) = m ; (i) < (int)(n) ; ++(i))
#define REP_REV(i, n) for (int (i) = (int)(n) - 1 ; (i) >= 0 ; --(i))
#define REPN_REV(i, m, n) for (int (i) = (int)(n) - 1 ; (i) >= m ; --(i))
#define ALL(x) x.begin(), x.end()

#define INF ((1 << 29)-1)
#define MOD (1000000007)

#define print2D(h, w, arr) REP(i, h) { REP(j, w) cout << arr[i][j] << " "; cout << endl; }
template<class T> void print(const T& x){cout << x << endl;}
template<class T, class... A> void print(const T& first, const A&... rest) { cout << first << " "; print(rest...); }
struct PreMain {PreMain(){cin.tie(0);ios::sync_with_stdio(false);cout<<fixed<<setprecision(20);}} premain;

int main() {
#ifdef LOCAL
    ifstream in("../arg.txt"); cin.rdbuf(in.rdbuf());
#endif

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

    print(max(A+B, A-B, A*B));

    return 0;
}


Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc: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:34:14:   required from here
   34 |     print(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 x, y;
    cin >> x >> y;
    cout << max({x+y, x-y, x*y}) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |     cout << max({x+y, x-y, x*y}) << 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 n = max(A+B, A-B);
  int answer = max(n, A*B);
  cout << anawer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'anawer' was not declared in this scope; did you mean 'answer'?
    9 |   cout << anawer << endl;
      |           ^~~~~~
      |           answer
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: 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/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<algorithm>
using namespace std;
main()
{
    int a,b;
    cin>>a>>b;
    cout<<max(max(a+b,a-b),a*b));
    
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before ')' token
    8 |     cout<<max(max(a+b,a-b),a*b));
      |                                ^
      |                                ;
Language: C++

#include<iostream>
#include<algotithm>

using namespace std;

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

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

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

int main() {
  int A, B, sumsub, mul;
  cin >> A >> B;
  sumsub = (B>0)?(A+B):(A-B);
  mul = A*B;
  cout << (mul>sumsub)?mul:sumsub) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: expected ';' before ')' token
   10 |   cout << (mul>sumsub)?mul:sumsub) << endl;
      |                                  ^
      |                                  ;
Language: C++

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

int main(){
  int A,B,max;
  cin >> A >> B;
  vector<int> A(3);
  A[0] = A+B;
  A[1] = A-B;
  A[2] = A*B;
  max = A[0]
  for(i = 1; i<3; i++){
   if(A[i] > max) max = A[i]; 
  }
  
  cout << max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: conflicting declaration 'std::vector<int> A'
    7 |   vector<int> A(3);
      |               ^
a.cc:5:7: note: previous declaration as 'int A'
    5 |   int A,B,max;
      |       ^
a.cc:8:4: error: invalid types 'int[int]' for array subscript
    8 |   A[0] = A+B;
      |    ^
a.cc:9:4: error: invalid types 'int[int]' for array subscript
    9 |   A[1] = A-B;
      |    ^
a.cc:10:4: error: invalid types 'int[int]' for array subscript
   10 |   A[2] = A*B;
      |    ^
a.cc:11:10: error: invalid types 'int[int]' for array subscript
   11 |   max = A[0]
      |          ^
a.cc:12:14: error: 'i' was not declared in this scope
   12 |   for(i = 1; i<3; i++){
      |              ^
Language: C

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

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

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

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

#include<stdio.h>
int main(void){
  int a,b;
  int wa;
  int seki;
  int sa;
  int ret;
  scanf("%d %d",a,b);
  wa = a+b;
  sa = a-b;
  seki = a*b;
  
  if(wa > sa){
    if(wa > seki){
      ret = wa;
    }else{
      ret = seki;
    }
  }else{
    if(sa > seki){
      ret = sa;
    }else{
      ret = seki;
  }
    printf("%d",ret);
    return 0;
  }

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

// @supudo
// g++ -O2 -std=gnu++14 -Wall -Wextra -Wfatal-errors -Wshadow -Wno-vla-extension -pedantic -o ./build/abc137_a abc137_a.cpp -DLOCALHOST -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
// ./build/abc137_a

#include <iostream>

using namespace std;

#define _ ios::sync_with_stdio(false); cin.tie(nullptr); cout.precision(10);
#define forto(var, from, to) for (int var=from; var<to; ++var)
#define forfrom(var, from, to) for (int var=from; var>to; --var)

typedef long long ll;
typedef long long int lli;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<lli> vlli;
typedef vector<string> vs;

int main() { _

  int m1, m2;
  cin >> m1 >> m2;

  cout << max(m1 + m2, max(m1 - m2, m1 * m2));

#ifdef LOCALHOST
  cout << "Time elapses:" << (1.0 * clock() / CLOCKS_PER_SEC)  << " seconds!" << '\n';
#endif

  return 0;
}


Compiler output:
a.cc:15:9: error: 'vector' does not name a type
   15 | typedef vector<int> vi;
      |         ^~~~~~
a.cc:16:9: error: 'vector' does not name a type
   16 | typedef vector<ll> vll;
      |         ^~~~~~
a.cc:17:9: error: 'vector' does not name a type
   17 | typedef vector<lli> vlli;
      |         ^~~~~~
a.cc:18:9: error: 'vector' does not name a type
   18 | typedef vector<string> vs;
      |         ^~~~~~
Language: C++

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

int main(){
  int a,b,maxn;
  int c[3];
  cin >> a >> b;

  c[0] = a+b;
  c[1] = a-b;
  c[2] = a*b;

  for(int i=0;i<3+i++){
    maxn = max(maxn,c[i]);
  }
  
  cout << maxn << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected ';' before ')' token
   14 |   for(int i=0;i<3+i++){
      |                      ^
      |                      ;
Language: C++

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'M' was not declared in this scope
    6 |   M=max({a+b,a-b,a*b});
      |   ^
Language: C++

import collections
from scipy.sparse import lil_matrix
from scipy.sparse.csgraph import bellman_ford

N, M, P = [int(_) for _ in input().split()]
#for multiple edges
ABC = sorted([[int(_) for _ in input().split()] for _ in range(M)], key=lambda xs:xs[2])
cd = collections.defaultdict
Ga = cd(set)
Gb = cd(set)
ok = cd(int)
for a, b, c in ABC:
    Ga[a].add(b)
    Gb[b].add(a)
#dfs
for pair in [[1, Ga], [N, Gb]]:
    S = pair
    Gn = pair.pop()
    visited = [0] * (N + 1)
    while S:
        s = S.pop()
        if not visited[s]:
            visited[s] = 1
            ok[s] += 1
            for ns in Gn[s]:
                S += [ns]
G = lil_matrix((N + 1, N + 1))
for a, b, c in ABC:
    if ok[a] == ok[b] == 2:
        G[a, b] = P - c

dist_matrix = bellman_ford(G, directed=True, indices=[1])
print(max(-int(dist_matrix[0][-1]), 0))


Compiler output:
a.cc:6:2: error: invalid preprocessing directive #for
    6 | #for multiple edges
      |  ^~~
a.cc:15:2: error: invalid preprocessing directive #dfs
   15 | #dfs
      |  ^~~
a.cc:1:1: error: 'import' does not name a type
    1 | import collections
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

class Main {
  
  public static void main(){
    
    Scanner sc = new Scanner(System.in);
	int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
    
    int max = n*m;
    
    if(max < n+m) {
      max = n+m;
    }
    
    if(max < n-m) {
      max = n-m;
    }
    
    System.out.println(max);
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c,d,e;

  cin >> a;
  cin >> b;

  c = a * b;
  d = a + b;
  e = a - b;

  if (c >= d){
    if(c >= e){
      cout << c;
    }else {
      cout << e;
    }
    else if(d >= e){
      cout << d;
    }else{
      cout << e;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: expected '}' before 'else'
   20 |     else if(d >= e){
      |     ^~~~
a.cc:14:14: note: to match this '{'
   14 |   if (c >= d){
      |              ^
a.cc: At global scope:
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  int b;

  cin >> a;
  cin >> b;

  c = a * b;
  d = a + b;

  if (c >= d){
    cout << c;
  }else{
    cout << b;
  }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'x' undeclared (first use in this function)
    5 |   x=a+b;
      |   ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'y' undeclared (first use in this function)
    6 |   y=a-b;
      |   ^
main.c:7:3: error: 'z' undeclared (first use in this function)
    7 |   z=a*b;
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
#define LLINF 9223372036854775807
#define MOD ll(1e9+7)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cerr<<#x<<": "<<x<<endl


int main(){
    ll k, x;
    cin >> k >> x;

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

}


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

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        int a = s.nextInt(), b = s.nextInt();
        int sum = a + b, c = a - b, d = a * b;
        int max = sum;
        if(sum < c){
            if(c < d){
                sum = d;
            } else{
                sum = c;
            }
        } else if(sum < d){
            max = d;
    }
    System.out.println(max);
}

Compiler output:
Main.java:18: error: reached end of file while parsing
}
 ^
1 error
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:12:   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/stdc++.h>
using namespace std;
int main () {
int A , B;

cin >> A >> B ;


if ( A + B > A - B ) && ( A + B > A * B ) {
cout << A + B << endl;
}

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

else {
cout << A * B << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected identifier before '(' token
    9 | if ( A + B > A - B ) && ( A + B > A * B ) {
      |                         ^
a.cc:13:30: error: expected identifier before '(' token
   13 | else if ( A - B > A + B ) && ( A - B > A * B ){
      |                              ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <bitset>
#include <map>
#include <tuple>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <numeric>
#include <utility>
#include <iterator>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <ctime>
#include <cassert>
#include <random>
#include <cstring>

#define rep(i,n) for(int i=0;i<int(n);i++)
#define all(x) (x).begin(),x.end()
#define pb push_back

using namespace std;
using ll = long long;

const ll mod = 1000000007;

int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
int ddx[8]={-1,-1,0,1,1,1,0,-1};
int ddy[8]={0,1,1,1,0,-1,-1,-1};
// bool debug=false;
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <bitset>
#include <map>
#include <tuple>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <numeric>
#include <utility>
#include <iterator>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <ctime>
#include <cassert>
#include <random>
#include <cstring>

#define rep(i,n) for(int i=0;i<int(n);i++)
#define all(x) (x).begin(),x.end()
#define pb push_back

using namespace std;
using ll = long long;

const ll mod = 1000000007;

int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
int ddx[8]={-1,-1,0,1,1,1,0,-1};
int ddy[8]={0,1,1,1,0,-1,-1,-1};
// bool debug=false;

/*---------------------------------------------------*/

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

/*---------------------------------------------------*/

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


Compiler output:
a.cc:74:10: error: redefinition of 'const ll mod'
   74 | const ll mod = 1000000007;
      |          ^~~
a.cc:34:10: note: 'const ll mod' previously defined here
   34 | const ll mod = 1000000007;
      |          ^~~
a.cc:76:5: error: redefinition of 'int dx [4]'
   76 | int dx[4]={1,0,-1,0};
      |     ^~
a.cc:36:5: note: 'int dx [4]' previously defined here
   36 | int dx[4]={1,0,-1,0};
      |     ^~
a.cc:77:5: error: redefinition of 'int dy [4]'
   77 | int dy[4]={0,1,0,-1};
      |     ^~
a.cc:37:5: note: 'int dy [4]' previously defined here
   37 | int dy[4]={0,1,0,-1};
      |     ^~
a.cc:78:5: error: redefinition of 'int ddx [8]'
   78 | int ddx[8]={-1,-1,0,1,1,1,0,-1};
      |     ^~~
a.cc:38:5: note: 'int ddx [8]' previously defined here
   38 | int ddx[8]={-1,-1,0,1,1,1,0,-1};
      |     ^~~
a.cc:79:5: error: redefinition of 'int ddy [8]'
   79 | int ddy[8]={0,1,1,1,0,-1,-1,-1};
      |     ^~~
a.cc:39:5: note: 'int ddy [8]' previously defined here
   39 | int ddy[8]={0,1,1,1,0,-1,-1,-1};
      |     ^~~
a.cc:93:5: error: redefinition of 'int main()'
   93 | int main() {
      |     ^~~~
a.cc:84:5: note: 'int main()' previously defined here
   84 | int main() {
      |     ^~~~
Language: C++

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

#define ll long long
#define pb push_back
#define endl '\n'
#define fcin ios::sync_with_stdio(false); cin.tie(nullptr);
#define inf 0x3f3f3f3f
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

/* 
* stuff you should look for
* int overflow, array bounds
* special cases (n=1?), set tle
*/

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



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

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

a = input()
b = input()

wa = int(a) + int(b)
sa = int(a) - int(b)
seki = int(a) * int(b)

if wa < sa:
    if sa < seki:
        print(seki)
    print(sa)
elif wa < seki:
    if seki < sa:
        print(sa)
    print(seki)
elif sa < seki:
    if seki < wa:
        print(wa)
    print(seki)


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | a = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'b'
    2 | b = input()
      | ^
Language: C

a = input()
b = input()

wa = a + b
sa = a - b
seki = a * b

if wa < sa:
    if sa < seki:
        print(seki)
    print(sa)
elif wa < seki:
    if seki < sa:
        print(sa)
    print(seki)
elif sa < seki:
    if seki < wa:
        print(wa)
    print(seki)


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | a = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'b'
    2 | b = input()
      | ^
Language: C

a = input()
b = input()

wa = a + b
sa = a - b
seki = a * b

if wa < sa:
    if sa < seki:
        print(seki)
    print(sa)
elif wa < seki:
    if seki < sa:
        print(sa)
    print(seki)
elif sa < seki:
    if seki < wa:
        print(wa)
    prit(seki)
    

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | a = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'b'
    2 | b = input()
      | ^
Language: C++

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

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

#include <iostream>
using namespace std;

int a, b;

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

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


if ( A + B > A - B && A + B > A * B ) {
cout << A + B << endl;
}

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

else {
cout << A * B << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
    4 | int A , B , ;
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int ANS'
    7 |   int ANS = max(ANS, A*B);
      |       ^~~
a.cc:6:7: note: 'int ANS' previously declared here
    6 |   int ANS = max(A+B, A-B);
      |       ^~~
Language: C++

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

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


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

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

int main(){
  int A, B; cin >> A >> B;
  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:6:14:   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/stdc++.h>
using namespace std;

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


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

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

Compiler output:
a.cc:1:10: 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;
  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: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 <iostream>
#include <algorithm>
using namespace std;

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


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Mian {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(max);
		
	} 
}

Compiler output:
Main.java:3: error: class Mian is public, should be declared in a file named Mian.java
public class Mian {
       ^
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();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
    System.out.println(best);
  }
 }
    

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
       ^
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();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
  }
 }
    

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
       ^
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();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
  }
 }
    

Compiler output:
Main.java:4: error: ',', ')', or '[' expected
  public static void main(String[] args]{
                                       ^
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();
    sc.close();
    int best = a;
    int[] arr = new int{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
  }
 }
    
    

Compiler output:
Main.java:4: error: ',', ')', or '[' expected
  public static void main(String[] args]{
                                       ^
Main.java:11: error: '[' expected
    int[] arr = new int{ a + b, a - b, a * b};
                       ^
2 errors