Language: Java

#include <bits/stdc++.h>
#define IOS                                                                    \
  ios::sync_with_stdio(0);                                                     \
  cin.tie(0);                                                                  \
  cout.tie(0)
#define pb push_back
#define ff first
#define ss second
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define repl(i, a, b) for (ll i = a; i < (b); ++i)
#define repd(i, a, b) for (int i = b; i >= (a); --i)
#define repdl(i, a, b) for (ll i = b; i >= (a); --i)
using namespace std;
using ll = long long;
using vi = vector<int>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fLL;
const ll MOD = 1'000'000'007LL;
ll bpow(ll b, ll p, ll m = 1000000007LL) {
  ll rt = 1;
  for (; p; p >>= 1, b = b * b % m)
    if (p & 1)
      rt = rt * b % m;
  return rt;
}
int main() {
  IOS;
  ll a, b, c, d; cin >> a >> b >> c >> d;
  cout << max(a*c, max(max(a*d, b*c), b*d)) << endl;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:2: error: illegal character: '#'
#define IOS                                                                    \
^
Main.java:2: error: illegal character: '\'
#define IOS                                                                    \
                                                                               ^
Main.java:3: error: illegal character: '\'
  ios::sync_with_stdio(0);                                                     \
                                                                               ^
Main.java:4: error: class, interface, enum, or record expected
  cin.tie(0);                                                                  \
     ^
Main.java:4: error: illegal character: '\'
  cin.tie(0);                                                                  \
                                                                               ^
Main.java:5: error: class, interface, enum, or record expected
  cout.tie(0)
      ^
Main.java:6: error: illegal character: '#'
#define pb push_back
^
Main.java:7: error: illegal character: '#'
#define ff first
^
Main.java:8: error: illegal character: '#'
#define ss second
^
Main.java:9: error: illegal character: '#'
#define all(x) (x).begin(), (x).end()
^
Main.java:10: error: illegal character: '#'
#define sz(x) (int)(x).size()
^
Main.java:11: error: illegal character: '#'
#define rep(i, a, b) for (int i = a; i < (b); ++i)
^
Main.java:11: error: class, interface, enum, or record expected
#define rep(i, a, b) for (int i = a; i < (b); ++i)
                                     ^
Main.java:11: error: class, interface, enum, or record expected
#define rep(i, a, b) for (int i = a; i < (b); ++i)
                                              ^
Main.java:12: error: illegal character: '#'
#define repl(i, a, b) for (ll i = a; i < (b); ++i)
^
Main.java:12: error: class, interface, enum, or record expected
#define repl(i, a, b) for (ll i = a; i < (b); ++i)
                                     ^
Main.java:12: error: class, interface, enum, or record expected
#define repl(i, a, b) for (ll i = a; i < (b); ++i)
                                              ^
Main.java:13: error: illegal character: '#'
#define repd(i, a, b) for (int i = b; i >= (a); --i)
^
Main.java:13: error: class, interface, enum, or record expected
#define repd(i, a, b) for (int i = b; i >= (a); --i)
                                      ^
Main.java:13: error: class, interface, enum, or record expected
#define repd(i, a, b) for (int i = b; i >= (a); --i)
                                                ^
Main.java:14: error: illegal character: '#'
#define repdl(i, a, b) for (ll i = b; i >= (a); --i)
^
Main.java:14: error: class, interface, enum, or record expected
#define repdl(i, a, b) for (ll i = b; i >= (a); --i)
                                      ^
Main.java:14: error: class, interface, enum, or record expected
#define repdl(i, a, b) for (ll i = b; i >= (a); --i)
                                                ^
Main.java:16: error: unnamed classes are a preview feature and are disabled by default.
using ll = long long;
^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: '.class' expected
using ll = long long;
                ^
Main.java:17: error: '.class' expected
using vi = vector<int>;
                     ^
Main.java:17: error: illegal start of expression
using vi = vector<int>;
                      ^
Main.java:18: error: '.class' expected
using pii = pair<int, int>;
                    ^
Main.java:18: error: <identifier> expected
using pii = pair<int, int>;
                     ^
Main.java:19: error: ';' expected
using pll = pair<ll, ll>;
                       ^
Main.java:20: error: class, interface, enum, or record expected
const int INF = 0x3f3f3f3f;
^
Main.java:21: error: class, interface, enum, or record expected
const ll LINF = 0x3f3f3f3f3f3f3f3fLL;
^
Main.java:22: error: class, interface, enum, or record expected
const ll MOD = 1'000'000'007LL;
^
Main.java:22: error: unclosed character literal
const ll MOD = 1'000'000'007LL;
                ^
Main.java:22: error: unclosed character literal
const ll MOD = 1'000'000'007LL;
                    ^
Main.java:22: error: unclosed character literal
const ll MOD = 1'000'000'007LL;
                        ^
Main.java:23: error: ',', ')', or '[' expected
ll bpow(ll b, ll p, ll m = 1000000007LL) {
                        ^
Main.java:31: error: not a statement
  IOS;
  ^
Main.java:32: error: not a statement
  ll a, b, c, d; cin >> a >> b >> c >> d;
                                    ^
Main.java:33: error: not a statement
  cout << max(a*c, max(max(a*d, b*c), b*d)) << endl;
                                            ^
42 errors