Language: Java

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <numeric>
#include <string>
#include <cstdio>
#include <cstring>
#include <queue>
#include <stack>
#include <set>
#include <cmath>
#include <bitset>

typedef long long ll;
typedef unsigned long long ull;
using namespace std;

#define FALSE printf("false\n");
#define TRUE printf("true\n");
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(int i = 0;i < ((int)(n));++i)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
#define test(a) cout<<"line:"<<__LINE__<<"["<<(#a)<<": "<<(a)<<"]"<<endl

const int INF = 1e9+7;
const ll INFL = 9*1e18;

const int dx[4] = { 1, 0, -1, 0 };
const int dy[4] = { 0, 1, 0, -1 };

// const int dx[8] = {1, 1, 0,-1,-1,-1, 0, 1};
// const int dy[8] = {0, 1, 1, 1, 0,-1,-1,-1};

#define SUM(vec) accumulate(all(vec),0LL) // 配列の中身を全部足す
template<typename T>void print(T&& x){cout<<x<<endl;}// 改行付き出力
ll inline digit(ll num){int tmp = 0;while(num){tmp++;num/=10;}return tmp;} // 桁数
template<typename T>inline T digitSum(T num){T sum = 0;while(num){sum+=num%10;num/=10;}return sum;} // 各桁の和
template<typename T>inline T gcd(T a,T b){if(b == 0)return a;return gcd(b,a%b);} // 最大公約数
template<typename T>inline T lcm(T a, T b){T g = gcd(a,b);return a/g*b;} // 最小公倍数
template<typename T>inline T power(T a,T b){T tmp=1;rep(i,b){tmp*=a;}return tmp;} // 累乗
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int ctoi(char c){return c-'0';}



// TODO: write
int main() { 
  int a,b;cin>>a>>b;
  print(6 - a - b);
  return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <vector>
^
Main.java:3: error: illegal character: '#'
#include <algorithm>
^
Main.java:4: error: illegal character: '#'
#include <map>
^
Main.java:5: error: illegal character: '#'
#include <numeric>
^
Main.java:6: error: illegal character: '#'
#include <string>
^
Main.java:7: error: illegal character: '#'
#include <cstdio>
^
Main.java:8: error: illegal character: '#'
#include <cstring>
^
Main.java:9: error: illegal character: '#'
#include <queue>
^
Main.java:10: error: illegal character: '#'
#include <stack>
^
Main.java:11: error: illegal character: '#'
#include <set>
^
Main.java:12: error: illegal character: '#'
#include <cmath>
^
Main.java:13: error: illegal character: '#'
#include <bitset>
^
Main.java:16: error: class, interface, enum, or record expected
typedef unsigned long long ull;
^
Main.java:17: error: class, interface, enum, or record expected
using namespace std;
^
Main.java:19: error: illegal character: '#'
#define FALSE printf("false\n");
^
Main.java:20: error: illegal character: '#'
#define TRUE printf("true\n");
^
Main.java:19: error: unnamed classes are a preview feature and are disabled by default.
#define FALSE printf("false\n");
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:21: error: illegal character: '#'
#define all(x) (x).begin(),(x).end()
^
Main.java:21: error: class, interface, enum, or record expected
#define all(x) (x).begin(),(x).end()
        ^
Main.java:22: error: illegal character: '#'
#define rep(i,n) for(int i = 0;i < ((int)(n));++i)
^
Main.java:22: error: class, interface, enum, or record expected
#define rep(i,n) for(int i = 0;i < ((int)(n));++i)
                               ^
Main.java:22: error: class, interface, enum, or record expected
#define rep(i,n) for(int i = 0;i < ((int)(n));++i)
                                              ^
Main.java:23: error: illegal character: '#'
#define pb push_back
^
Main.java:24: error: illegal character: '#'
#define mp make_pair
^
Main.java:25: error: illegal character: '#'
#define fi first
^
Main.java:26: error: illegal character: '#'
#define se second
^
Main.java:27: error: illegal character: '#'
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
^
Main.java:28: error: illegal character: '#'
#define test(a) cout<<"line:"<<__LINE__<<"["<<(#a)<<": "<<(a)<<"]"<<endl
^
Main.java:28: error: class, interface, enum, or record expected
#define test(a) cout<<"line:"<<__LINE__<<"["<<(#a)<<": "<<(a)<<"]"<<endl
        ^
Main.java:28: error: illegal character: '#'
#define test(a) cout<<"line:"<<__LINE__<<"["<<(#a)<<": "<<(a)<<"]"<<endl
                                               ^
Main.java:31: error: class, interface, enum, or record expected
const ll INFL = 9*1e18;
^
Main.java:33: error: class, interface, enum, or record expected
const int dx[4] = { 1, 0, -1, 0 };
^
Main.java:34: error: class, interface, enum, or record expected
const int dy[4] = { 0, 1, 0, -1 };
^
Main.java:39: error: illegal character: '#'
#define SUM(vec) accumulate(all(vec),0LL) // ??????????
^
Main.java:39: error: class, interface, enum, or record expected
#define SUM(vec) accumulate(all(vec),0LL) // ??????????
        ^
Main.java:40: error: class, interface, enum, or record expected
template<typename T>void print(T&& x){cout<<x<<endl;}// ??????
                                                    ^
Main.java:41: error: class, interface, enum, or record expected
ll inline digit(ll num){int tmp = 0;while(num){tmp++;num/=10;}return tmp;} // ??
                                    ^
Main.java:41: error: class, interface, enum, or record expected
ll inline digit(ll num){int tmp = 0;while(num){tmp++;num/=10;}return tmp;} // ??
                                                     ^
Main.java:41: error: class, interface, enum, or record expected
ll inline digit(ll num){int tmp = 0;while(num){tmp++;num/=10;}return tmp;} // ??
                                                             ^
Main.java:41: error: class, interface, enum, or record expected
ll inline digit(ll num){int tmp = 0;while(num){tmp++;num/=10;}return tmp;} // ??
                                                                         ^
Main.java:42: error: class, interface, enum, or record expected
template<typename T>inline T digitSum(T num){T sum = 0;while(num){sum+=num%10;num/=10;}return sum;} // ????
                                                       ^
Main.java:42: error: class, interface, enum, or record expected
template<typename T>inline T digitSum(T num){T sum = 0;while(num){sum+=num%10;num/=10;}return sum;} // ????
                                                                              ^
Main.java:42: error: class, interface, enum, or record expected
template<typename T>inline T digitSum(T num){T sum = 0;while(num){sum+=num%10;num/=10;}return sum;} // ????
                                                                                      ^
Main.java:42: error: class, interface, enum, or record expected
template<typename T>inline T digitSum(T num){T sum = 0;while(num){sum+=num%10;num/=10;}return sum;} // ????
                                                                                                  ^
Main.java:43: error: class, interface, enum, or record expected
template<typename T>inline T gcd(T a,T b){if(b == 0)return a;return gcd(b,a%b);} // ?????
                                                             ^
Main.java:43: error: class, interface, enum, or record expected
template<typename T>inline T gcd(T a,T b){if(b == 0)return a;return gcd(b,a%b);} // ?????
                                                                               ^
Main.java:44: error: class, interface, enum, or record expected
template<typename T>inline T lcm(T a, T b){T g = gcd(a,b);return a/g*b;} // ?????
                                                          ^
Main.java:44: error: class, interface, enum, or record expected
template<typename T>inline T lcm(T a, T b){T g = gcd(a,b);return a/g*b;} // ?????
                                                                       ^
Main.java:45: error: class, interface, enum, or record expected
template<typename T>inline T power(T a,T b){T tmp=1;rep(i,b){tmp*=a;}return tmp;} // ??
                                                    ^
Main.java:45: error: class, interface, enum, or record expected
template<typename T>inline T power(T a,T b){T tmp=1;rep(i,b){tmp*=a;}return tmp;} // ??
                                                                    ^
Main.java:45: error: class, interface, enum, or record expected
template<typename T>inline T power(T a,T b){T tmp=1;rep(i,b){tmp*=a;}return tmp;} // ??
                                                                                ^
Main.java:46: error: '{' expected
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
                ^
Main.java:46: error: illegal start of type
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
                                                 ^
Main.java:46: error: > or ',' expected
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
                                                          ^
Main.java:46: error: illegal start of type
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
                                                                                 ^
Main.java:47: error: class, interface, enum, or record expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
^
Main.java:47: error: '{' expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
                ^
Main.java:47: error: illegal start of type
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
                                                 ^
Main.java:47: error: <identifier> expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
                                                      ^
Main.java:47: error: <identifier> expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
                                                          ^
Main.java:47: error: illegal start of type
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
                                                                                 ^
Main.java:54: error: not a statement
  int a,b;cin>>a>>b;
                ^
63 errors