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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int A,B;cin>>A>>B;
      |           ^~~
      |           std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:14: error: 'Ans' was not declared in this scope; did you mean 'ans'?
    5 |   if(ans<A-B)Ans=A-B;
      |              ^~~
      |              ans
a.cc:6:14: error: 'Ans' was not declared in this scope; did you mean 'ans'?
    6 |   if(ans<A*B)Ans=A*B;
      |              ^~~
      |              ans
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<ans<<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:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<ans<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/iostream:41:
/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, max(a-b, a*b)); <<endl;
  return 0;
}

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

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

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

  




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

#include <bits/stdc++.h>
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define repr(i, a, n) for (int i = (n); i >= (a); --i)
#define ifaxb(a, x, b) if (a < x && x < b)
#define toInt(x) (x - '0')
#define vi vector<int>
#define vvi vector<vi>
#define vs vector<string>
#define vvs vector<vs>
#define all(x) x.begin(), x.end()
#define INF 2147483647
#define _INF -2147483647
#define pi 3.1415926536
#define MAXN 100004
using namespace std;
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'a' was not declared in this scope
   21 |   int ans=max({a+b,a-b,a*b});
      |                ^
a.cc:21:18: error: 'b' was not declared in this scope
   21 |   int ans=max({a+b,a-b,a*b});
      |                  ^
a.cc:21:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   21 |   int ans=max({a+b,a-b,a*b});
      |           ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

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

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


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

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

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


Compiler output:
In file included from /usr/include/c++/14/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:12:   required from here
    9 |   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 <iostream>

using namespace std;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(NULL);

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

    int add = A + B;
    int subtract = A - B;
    int multiply = A * B;

    cout << max(add, subtract, multiply) << 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:16:16:   required from here
   16 |     cout << max(add, subtract, multiply) << 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(){
  signed int a, b;
  cin >> a >> b;
  signed int outNumber = a + b;
  if(outNumber < a - b){outNumber = a - b}
  if(outNumber < a * b){outNumber = a * b}
  cout << outNumber << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: expected ';' before '}' token
    8 |   if(outNumber < a - b){outNumber = a - b}
      |                                          ^
      |                                          ;
a.cc:9:42: error: expected ';' before '}' token
    9 |   if(outNumber < a * b){outNumber = a * b}
      |                                          ^
      |                                          ;
Language: C

#include<stdio.h>
int main(void)
{
  int num1,num2;
  double add,sub,mul;
  char str[16];
  
  fgets(str,sizeof(str),stdin);
  sscanf(str,"%d %d",&num1,&num2);
  
  add = (double)num1 + (double)num2;
  sub = (double)num1 - (double)num2;
  mul = (double)num1 * (double)num2;
  
  ans1 = fmax(add,sub);
  ans = fmax(ans1,mul);
  
  printf("%d",(int)ans);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:3: error: 'ans1' undeclared (first use in this function)
   15 |   ans1 = fmax(add,sub);
      |   ^~~~
main.c:15:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:10: error: implicit declaration of function 'fmax' [-Wimplicit-function-declaration]
   15 |   ans1 = fmax(add,sub);
      |          ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fmax'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main(void)
main.c:15:10: warning: incompatible implicit declaration of built-in function 'fmax' [-Wbuiltin-declaration-mismatch]
   15 |   ans1 = fmax(add,sub);
      |          ^~~~
main.c:15:10: note: include '<math.h>' or provide a declaration of 'fmax'
main.c:16:3: error: 'ans' undeclared (first use in this function)
   16 |   ans = fmax(ans1,mul);
      |   ^~~
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: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<iostream>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  cout << max({a+b, a-b, a*b}) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc: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 <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
using namespace std;

int main() {
	int a, b;
  　cin>>a>>b;
	vector<int> o(3);
	o[0] = a + b;
	o[1] = a - b;
	o[2] = a * b;
	sort(o.begin(), o.end());
	cout << o[2] << endl;
}

Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　cin>>a>>b;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000cin' was not declared in this scope
    7 |   　cin>>a>>b;
      |   ^~~~~
Language: C++

+-- 15 行:"include" --------------------------------------------------------------------------------------------------------------using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define reps(i,n) for(int i=1;i<=(n);++i)
#define all(x) (x).begin(),(x).end()
#define pii pair<int,int>
#define int long long
#define setout(n,x) setw(n) << setfill(x)
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
const long long mod = 1000000007;


signed main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b;
    cin >> a >>b;
    cout << max({a+b,a-b,a*b}) << '\n';
    return 0;
}


Compiler output:
a.cc:1:1: error: expected unqualified-id before '+' token
    1 | +-- 15 行:"include" --------------------------------------------------------------------------------------------------------------using namespace std;
      | ^
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin.tie(0);
      |     ^~~
a.cc:15:5: error: 'ios' has not been declared
   15 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << max({a+b,a-b,a*b}) << '\n';
      |     ^~~~
a.cc:18:13: error: 'max' was not declared in this scope
   18 |     cout << max({a+b,a-b,a*b}) << '\n';
      |             ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'minnum' was not declared in this scope; did you mean 'maxnum'?
    9 |   cout<<max(minnum,z)<<endl;
      |             ^~~~~~
      |             maxnum
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <cmath>
typedef long long ll;
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:14:7: error: redeclaration of 'int ans'
   14 |   int ans = max(ans, A*B);
      |       ^~~
a.cc:13:7: note: 'int ans' previously declared here
   13 |   int ans = 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,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: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++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    6 |   int ans=max{(a+b,a-b,a*b)};
      |           ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  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: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 <stdio.h>
int main(){
	int a,b;
	int x, y,z;
	scanf("%d %d %d", &a, &b, &c);
	x=a+b;
	y=a-b;
	z=a*b;
	
	if(x<=y && x<=z ){
		printf("%d", x);
	}
	else if(y<=x && y<=z ){
		printf("%d", y);
	}
	else if(z<=y && z<=x ){
		printf("%d", z);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:36: error: 'c' undeclared (first use in this function)
    5 |         scanf("%d %d %d", &a, &b, &c);
      |                                    ^
main.c:5:36: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

public class main {
    public static void main(String[] args){

        Scanner sc =new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        int sum = A +  B;
        int hiku = A - B;
        int seki = A * B;

        System.out.println(Math.max(seki,Math.max(sum,hiku)));
    }
}


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: C++

#include<stdio.h>
#include <cstdlib>

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

	int temp=0;
	if(a*b>temp)
		temp=a*b;
	if(a+b>temp)
		temp=a+b;
	if(a-b>temp)
		temp=a-b
	
	printf("%d\n",temp);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected ';' before 'printf'
   15 |                 temp=a-b
      |                         ^
      |                         ;
   16 | 
   17 |         printf("%d\n",temp);
      |         ~~~~~~
Language: C++

#include<iostream>
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<vector>
#include<cstdlib>
#include<map>
#include<fstream>
#include<string>
#include<sstream>
#include<iomanip>
#include<iostream>
#include<numeric>
using namespace std;

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

}

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

namespace ABC098A
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);
       
            max = a + b;

            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;
            
    
            Console.WriteLine(max);
      
            Console.ReadKey();
        }
    }
}

Compiler output:
a.cc:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:24:6: error: expected ';' after class definition
   24 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC098A::Program::Main(int*)':
a.cc:9:13: error: 'var' was not declared in this scope
    9 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:12:17: error: expected primary-expression before 'int'
   12 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:20:13: error: 'Console' was not declared in this scope
   20 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

  class Program
    {
        private static bool max;

        static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);
            max = a + b;

            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;

            Console.WriteLine(max);      
            Console.ReadKey();

      

            
        }
    }

Compiler output:
a.cc:3:16: error: expected ':' before 'static'
    3 |         private static bool max;
      |                ^~~~~~~
      |                :
a.cc:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:9:13: error: 'var' was not declared in this scope
    9 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:12:17: error: expected primary-expression before 'int'
   12 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:18:13: error: 'Console' was not declared in this scope
   18 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC098A
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, x;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);

            x = a + b;

            if (x < a - b) x = a - b;
            if (x < a * b) x = a * b;


            Console.WriteLine(x);

            Console.ReadKey();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:30:6: error: expected ';' after class definition
   30 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC098A::Program::Main(int*)':
a.cc:15:13: error: 'var' was not declared in this scope
   15 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:18:17: error: expected primary-expression before 'int'
   18 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:26:13: error: 'Console' was not declared in this scope
   26 |             Console.WriteLine(x);
      |             ^~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC098A
{
    class Program
    {
        static void Main(string[] args)
        {
            int a,b,c,d,e,f;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);
            c = a * b;
            d = a + b;
            e = a - b;

            f = c;
            if (c < e) f = e;
            if (e < d) f = d;

            Console.WriteLine(f);

            Console.ReadKey();

            
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:33:6: error: expected ';' after class definition
   33 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC098A::Program::Main(int*)':
a.cc:15:13: error: 'var' was not declared in this scope
   15 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:18:17: error: expected primary-expression before 'int'
   18 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:27:13: error: 'Console' was not declared in this scope
   27 |             Console.WriteLine(f);
      |             ^~~~~~~
Language: C++

{
            int a, b, max;
            var word = Console.ReadLine().Split(' ');
            a = int.Parse(word[0]);

            b = int.Parse(word[1]);
            max = a + b;
            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;
            Console.WriteLine(max);
            Console.ReadKey();
        }

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

namespace ABC098A
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);
       
            max = a + b;

            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;
            
    
            Console.WriteLine(max);
      
            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:24:6: error: expected ';' after class definition
   24 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC098A::Program::Main(int*)':
a.cc:9:13: error: 'var' was not declared in this scope
    9 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:12:17: error: expected primary-expression before 'int'
   12 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:20:13: error: 'Console' was not declared in this scope
   20 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b;
  cin a >> b;
  int add = a + b;
  int sub = a - b;
  int mul = a * b;
  int ans = add > sub ? (add > mul ? add : mul) : (sub > mul ? sub : mul);
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected ';' before 'a'
    8 |   cin a >> b;
      |      ^~
      |      ;
Language: C++

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

  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'elsse' was not declared in this scope
   13 |   elsse
      |   ^~~~~
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int x = a-b;
        int y = b-a;
        int z = a*b;

        if(x >= y && x >= z){
            System.out.println(x);
        }else if(y >= x && y >= z){
            System.out.println(y);
        }else if(a == b && a == c){
            System.out.println(z);
        }else{
            System.out.println(z);
        }
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
        }else if(a == b && a == c){
                                ^
  symbol:   variable c
  location: class Main
1 error
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC098
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);

            max = a + b;
            if (max < a - b)
                max = a - b;
            else if (max < a * b)
                max = a * b;
            Console.WriteLine(max);

            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:29:6: error: expected ';' after class definition
   29 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC098::Program::Main(int*)':
a.cc:15:13: error: 'var' was not declared in this scope
   15 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:18:17: error: expected primary-expression before 'int'
   18 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:25:13: error: 'Console' was not declared in this scope
   25 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC098A
{
    class Program
    {
        static void Main(string[] args)
        {
            int A, B, max;

            var word = Console.ReadLine().Split(' ');

            A = int.Parse(word[0]);
            B = int.Parse(word[1]);

            max = A + B;

            if (max < A - B) max = A - B;
            if (max < A * B) max = A * B;

            Console.WriteLine(max);

            Console.ReadKey();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:29:6: error: expected ';' after class definition
   29 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC098A::Program::Main(int*)':
a.cc:15:13: error: 'var' was not declared in this scope
   15 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             A = int.Parse(word[0]);
      |                 ^~~
a.cc:18:17: error: expected primary-expression before 'int'
   18 |             B = int.Parse(word[1]);
      |                 ^~~
a.cc:25:13: error: 'Console' was not declared in this scope
   25 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

int a, b,max;

			var word = Console.ReadLine().Split(' ');

			a = int.Parse(word[0]);
			b = int.Parse(word[1]);

            max = a + b;
            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;
			Console.WriteLine(max);

			Console.ReadKey();

Compiler output:
a.cc:3:25: error: 'var' does not name a type
    3 |                         var word = Console.ReadLine().Split(' ');
      |                         ^~~
a.cc:5:25: error: 'a' does not name a type
    5 |                         a = int.Parse(word[0]);
      |                         ^
a.cc:6:25: error: 'b' does not name a type
    6 |                         b = int.Parse(word[1]);
      |                         ^
a.cc:8:13: error: 'max' does not name a type
    8 |             max = a + b;
      |             ^~~
a.cc:9:13: error: expected unqualified-id before 'if'
    9 |             if (max < a - b) max = a - b;
      |             ^~
a.cc:10:13: error: expected unqualified-id before 'if'
   10 |             if (max < a * b) max = a * b;
      |             ^~
a.cc:11:25: error: 'Console' does not name a type
   11 |                         Console.WriteLine(max);
      |                         ^~~~~~~
a.cc:13:25: error: 'Console' does not name a type
   13 |                         Console.ReadKey();
      |                         ^~~~~~~
Language: C++

static void Main(string[] args)
		{
			int a, b,max;

			var word = Console.ReadLine().Split(' ');

			a = int.Parse(word[0]);
			b = int.Parse(word[1]);

            max = a + b;
            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;
			Console.WriteLine(max);

			Console.ReadKey();
			 
		}

Compiler output:
a.cc:1:13: error: variable or field 'Main' declared void
    1 | static void Main(string[] args)
      |             ^~~~
a.cc:1:18: error: 'string' was not declared in this scope
    1 | static void Main(string[] args)
      |                  ^~~~~~
a.cc:1:25: error: expected primary-expression before ']' token
    1 | static void Main(string[] args)
      |                         ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  int a,b,c[3];
  scanf("%d,%d",&a,&b);
  c[0]=a+b;
  c[1]=a-b;
  c[2]=a*b;
  if((c[1]>=c[2])||(c[1]>=[c3]))printf("%d",c[1]);
    else if((c[2]>=c[1])||(c[2]>=[c3]))printf("%d",c[2]);
  else printf("%d",c[3]);
return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:27: error: expected expression before '[' token
    9 |   if((c[1]>=c[2])||(c[1]>=[c3]))printf("%d",c[1]);
      |                           ^
main.c:9:28: error: 'c3' undeclared (first use in this function); did you mean 'c'?
    9 |   if((c[1]>=c[2])||(c[1]>=[c3]))printf("%d",c[1]);
      |                            ^~
      |                            c
main.c:9:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:34: error: expected expression before '[' token
   10 |     else if((c[2]>=c[1])||(c[2]>=[c3]))printf("%d",c[2]);
      |                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
  int main() {
    int a,b;
    cin >> a >>b;
    int c,d,e,;
    c =a+b;
    d =a-b;
    e=a*b;
    vector<int> vec ={c,d,e};
    sort(vec.begin(),vec.end());
    cout << vec.at(2) <<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected unqualified-id before ';' token
    7 |     int c,d,e,;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
  int main() {
    int a,b;
    cin >> a >>b;
    int c,d,e,
    c =a+b;
    d =a-b;
    e=a*b;
    vector<int> vec ={c,d,e};
    sort(vec.begin(),vec.end());
    cout << vec.at(2) <<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: redeclaration of 'int c'
    8 |     c =a+b;
      |     ^
a.cc:7:9: note: 'int c' previously declared here
    7 |     int c,d,e,
      |         ^
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected '}' at end of input
   10 |   cout << max({X,Y,Z}) << endl;
      |                                ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

namespace ABC098A
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);
            //最大値maxを決める。
            max = a + b;

            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;
            

            //最大値を出力（表示）    
            Console.WriteLine(max);
            //入力待ちに
            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC098A::Program::Main(int*)':
a.cc:9:13: error: 'var' was not declared in this scope
    9 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:12:17: error: expected primary-expression before 'int'
   12 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:21:13: error: 'Console' was not declared in this scope
   21 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

namespace ACBO098
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);

            max = a + b;
            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;


            Console.WriteLine(max);

            Console.ReadKey();

        }
    }
}


Compiler output:
a.cc:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:24:6: error: expected ';' after class definition
   24 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ACBO098::Program::Main(int*)':
a.cc:9:13: error: 'var' was not declared in this scope
    9 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:12:17: error: expected primary-expression before 'int'
   12 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:19:13: error: 'Console' was not declared in this scope
   19 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

       static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);

            max = a + b;
            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;


            Console.WriteLine(max);

            Console.ReadKey();

        }
    }
}


Compiler output:
a.cc:1:20: error: variable or field 'Main' declared void
    1 |        static void Main(string[] args)
      |                    ^~~~
a.cc:1:25: error: 'string' was not declared in this scope
    1 |        static void Main(string[] args)
      |                         ^~~~~~
a.cc:1:32: error: expected primary-expression before ']' token
    1 |        static void Main(string[] args)
      |                                ^
a.cc:20:5: error: expected declaration before '}' token
   20 |     }
      |     ^
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ACBO098
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, max;

            var word = Console.ReadLine().Split(' ');

            a = int.Parse(word[0]);
            b = int.Parse(word[1]);

            max = a + b;
            if (max < a - b) max = a - b;
            if (max < a * b) max = a * b;


            Console.WriteLine(max);

            Console.ReadKey();

        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:30:6: error: expected ';' after class definition
   30 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ACBO098::Program::Main(int*)':
a.cc:15:13: error: 'var' was not declared in this scope
   15 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:18:17: error: expected primary-expression before 'int'
   18 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:25:13: error: 'Console' was not declared in this scope
   25 |             Console.WriteLine(max);
      |             ^~~~~~~
Language: C++

 static void Main(string[] args)
        {
            int a,b,c;

            var word = Console.ReadLine()
                .Split(' ');
            a = int.Parse(word[0]);
            b = int.Parse(word[1]);

            c = a + b;
            if (a - b >c) c = a;
            if (c < a * b) c = a * b;

            Console.WriteLine(c);

            Console.ReadKey();
        }

Compiler output:
a.cc:1:14: error: variable or field 'Main' declared void
    1 |  static void Main(string[] args)
      |              ^~~~
a.cc:1:19: error: 'string' was not declared in this scope
    1 |  static void Main(string[] args)
      |                   ^~~~~~
a.cc:1:26: error: expected primary-expression before ']' token
    1 |  static void Main(string[] args)
      |                          ^
Language: C++

 int a,b,c;

            var word = Console.ReadLine()
                .Split(' ');
            a = int.Parse(word[0]);
            b = int.Parse(word[1]);

            c = a + b;
            if (a - b >c) c = a;
            if (c < a * b) c = a * b;

            Console.WriteLine(c);

            Console.ReadKey();

Compiler output:
a.cc:3:13: error: 'var' does not name a type
    3 |             var word = Console.ReadLine()
      |             ^~~
a.cc:5:13: error: 'a' does not name a type
    5 |             a = int.Parse(word[0]);
      |             ^
a.cc:6:13: error: 'b' does not name a type
    6 |             b = int.Parse(word[1]);
      |             ^
a.cc:8:13: error: 'c' does not name a type
    8 |             c = a + b;
      |             ^
a.cc:9:13: error: expected unqualified-id before 'if'
    9 |             if (a - b >c) c = a;
      |             ^~
a.cc:10:13: error: expected unqualified-id before 'if'
   10 |             if (c < a * b) c = a * b;
      |             ^~
a.cc:12:13: error: 'Console' does not name a type
   12 |             Console.WriteLine(c);
      |             ^~~~~~~
a.cc:14:13: error: 'Console' does not name a type
   14 |             Console.ReadKey();
      |             ^~~~~~~