Language: Java

/*
 * zyrch - Rupanshu Yadav
 */
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <fstream>
#include <queue>
#include <deque>
#include <bitset>
#include <iterator>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <functional>
#include <utility>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <cassert>
using namespace std;
 
typedef long long ll;
typedef long double ld;
typedef double db;
typedef string str;
 
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;
 
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<ld> vd;
typedef vector<str> vs;
typedef vector<pi> vpi;
typedef vector<pl> vpl;
 
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)
 
#define forn(i,a,b) for (int i = (a); i < ll(b); ++i)
#define fo(i,a) forn(i,0,ll(a))
#define rforn(i,a,b) for (int i = (b)-1; i >= (a); --i)
#define ro(i,a) rforn(i,0,a)
#define trav(a,x) for (auto& a: x)
 
#define sz(x) (int)x.size()
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
#define rsz resize
#define ins insert
 
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define f first

ll mod = 1000000007;
inline int fast_expo(int base,int power,int modulo=mod){
    base%=modulo;
    if (base<0) base+=modulo;
    ll x=base,cnt=power,ans=1;
    while(cnt){
        if (cnt&1) ans=(ans*x)%modulo;
        x=(x*x)%modulo;
        cnt>>=1;
    }
    return ans;
}
 
void __print(int x) {cerr << x;}
void __print(long x) {cerr << x;}
void __print(long long x) {cerr << x;}
void __print(unsigned x) {cerr << x;}
void __print(unsigned long x) {cerr << x;}
void __print(unsigned long long x) {cerr << x;}
void __print(float x) {cerr << x;}
void __print(double x) {cerr << x;}
void __print(long double x) {cerr << x;}
void __print(char x) {cerr << '\'' << x << '\'';}
void __print(const char *x) {cerr << '\"' << x << '\"';}
void __print(const string &x) {cerr << '\"' << x << '\"';}
void __print(bool x) {cerr << (x ? "true" : "false");}
 
template<typename T, typename V>
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
template<typename T>
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";}
void _print() {cerr << "]\n";}
template <typename T, typename... V>
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
#ifndef ONLINE_JUDGE
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
 
const ll INF = 1e9;
//=========================CODE STARTS HERE=============================//

int main() {
	
	fast_cin();
 
	ll n, k;
	cin >> n >> k;
	
	vl arr(n);
	
	fo(i, n) {
		cin >> arr[i];
	}
	
	vi dp(k + 1, 0);
	
	dp[0] = 0;
	
	fo(i, k + 1) {
		fo(j , n) {
			if (dp[i] != 0) continue;
			
			if (i + arr[j] < k + 1) {
				dp[i + arr[j]] = 1;
			}
		}
	}
	
	if (dp[k] == 1) {
		cout << "First" << endl;
	}else {
		cout << "Second" << endl;
	}			  
	
    return 0;
}


Compiler output:
Main.java:4: error: illegal character: '#'
#include <iostream>
^
Main.java:5: error: illegal character: '#'
#include <string>
^
Main.java:6: error: illegal character: '#'
#include <vector>
^
Main.java:7: error: illegal character: '#'
#include <algorithm>
^
Main.java:8: error: illegal character: '#'
#include <fstream>
^
Main.java:9: error: illegal character: '#'
#include <queue>
^
Main.java:10: error: illegal character: '#'
#include <deque>
^
Main.java:11: error: illegal character: '#'
#include <bitset>
^
Main.java:12: error: illegal character: '#'
#include <iterator>
^
Main.java:13: error: illegal character: '#'
#include <list>
^
Main.java:14: error: illegal character: '#'
#include <stack>
^
Main.java:15: error: illegal character: '#'
#include <map>
^
Main.java:16: error: illegal character: '#'
#include <set>
^
Main.java:17: error: illegal character: '#'
#include <functional>
^
Main.java:18: error: illegal character: '#'
#include <utility>
^
Main.java:19: error: illegal character: '#'
#include <climits>
^
Main.java:20: error: illegal character: '#'
#include <cmath>
^
Main.java:21: error: illegal character: '#'
#include <cstdio>
^
Main.java:22: error: illegal character: '#'
#include <cstring>
^
Main.java:23: error: illegal character: '#'
#include <iomanip>
^
Main.java:24: error: illegal character: '#'
#include <cassert>
^
Main.java:27: error: class, interface, enum, or record expected
typedef long long ll;
^
Main.java:28: error: class, interface, enum, or record expected
typedef long double ld;
^
Main.java:29: error: class, interface, enum, or record expected
typedef double db;
^
Main.java:30: error: class, interface, enum, or record expected
typedef string str;
^
Main.java:32: error: class, interface, enum, or record expected
typedef pair<int, int> pi;
^
Main.java:33: error: class, interface, enum, or record expected
typedef pair<ll,ll> pl;
^
Main.java:34: error: class, interface, enum, or record expected
typedef pair<ld,ld> pd;
^
Main.java:36: error: class, interface, enum, or record expected
typedef vector<int> vi;
^
Main.java:37: error: class, interface, enum, or record expected
typedef vector<ll> vl;
^
Main.java:38: error: class, interface, enum, or record expected
typedef vector<ld> vd;
^
Main.java:39: error: class, interface, enum, or record expected
typedef vector<str> vs;
^
Main.java:40: error: class, interface, enum, or record expected
typedef vector<pi> vpi;
^
Main.java:41: error: class, interface, enum, or record expected
typedef vector<pl> vpl;
^
Main.java:43: error: illegal character: '#'
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)
^
Main.java:43: error: class, interface, enum, or record expected
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)
        ^
Main.java:43: error: class, interface, enum, or record expected
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)
                                                     ^
Main.java:45: error: illegal character: '#'
#define forn(i,a,b) for (int i = (a); i < ll(b); ++i)
^
Main.java:45: error: class, interface, enum, or record expected
#define forn(i,a,b) for (int i = (a); i < ll(b); ++i)
                                      ^
Main.java:45: error: class, interface, enum, or record expected
#define forn(i,a,b) for (int i = (a); i < ll(b); ++i)
                                                 ^
Main.java:46: error: illegal character: '#'
#define fo(i,a) forn(i,0,ll(a))
^
Main.java:47: error: illegal character: '#'
#define rforn(i,a,b) for (int i = (b)-1; i >= (a); --i)
^
Main.java:47: error: class, interface, enum, or record expected
#define rforn(i,a,b) for (int i = (b)-1; i >= (a); --i)
                                         ^
Main.java:47: error: class, interface, enum, or record expected
#define rforn(i,a,b) for (int i = (b)-1; i >= (a); --i)
                                                   ^
Main.java:48: error: illegal character: '#'
#define ro(i,a) rforn(i,0,a)
^
Main.java:49: error: illegal character: '#'
#define trav(a,x) for (auto& a: x)
^
Main.java:51: error: illegal character: '#'
#define sz(x) (int)x.size()
^
Main.java:52: error: illegal character: '#'
#define all(x) begin(x), end(x)
^
Main.java:53: error: illegal character: '#'
#define rall(x) rbegin(x), rend(x)
^
Main.java:54: error: illegal character: '#'
#define rsz resize
^
Main.java:55: error: illegal character: '#'
#define ins insert
^
Main.java:57: error: illegal character: '#'
#define mp make_pair
^
Main.java:58: error: illegal character: '#'
#define pb push_back
^
Main.java:59: error: illegal character: '#'
#define eb emplace_back
^
Main.java:60: error: illegal character: '#'
#define f first
^
Main.java:63: error: class, interface, enum, or record expected
inline int fast_expo(int base,int power,int modulo=mod){
^
Main.java:65: error: class, interface, enum, or record expected
    if (base<0) base+=modulo;
    ^
Main.java:66: error: unnamed classes are a preview feature and are disabled by default.
    ll x=base,cnt=power,ans=1;
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:67: error: class, interface, enum, or record expected
    while(cnt){
    ^
Main.java:69: error: class, interface, enum, or record expected
        x=(x*x)%modulo;
        ^
Main.java:70: error: class, interface, enum, or record expected
        cnt>>=1;
        ^
Main.java:71: error: class, interface, enum, or record expected
    }
    ^
Main.java:73: error: class, interface, enum, or record expected
}
^
Main.java:75: error: class, interface, enum, or record expected
void __print(int x) {cerr << x;}
                               ^
Main.java:76: error: class, interface, enum, or record expected
void __print(long x) {cerr << x;}
                                ^
Main.java:77: error: class, interface, enum, or record expected
void __print(long long x) {cerr << x;}
                                     ^
Main.java:78: error: class, interface, enum, or record expected
void __print(unsigned x) {cerr << x;}
                                    ^
Main.java:79: error: class, interface, enum, or record expected
void __print(unsigned long x) {cerr << x;}
                                         ^
Main.java:80: error: class, interface, enum, or record expected
void __print(unsigned long long x) {cerr << x;}
                                              ^
Main.java:81: error: class, interface, enum, or record expected
void __print(float x) {cerr << x;}
                                 ^
Main.java:82: error: class, interface, enum, or record expected
void __print(double x) {cerr << x;}
                                  ^
Main.java:83: error: class, interface, enum, or record expected
void __print(long double x) {cerr << x;}
                                       ^
Main.java:84: error: class, interface, enum, or record expected
void __print(char x) {cerr << '\'' << x << '\'';}
                                                ^
Main.java:85: error: class, interface, enum, or record expected
void __print(const char *x) {cerr << '\"' << x << '\"';}
                                                       ^
Main.java:86: error: class, interface, enum, or record expected
void __print(const string &x) {cerr << '\"' << x << '\"';}
                                                         ^
Main.java:87: error: class, interface, enum, or record expected
void __print(bool x) {cerr << (x ? "true" : "false");}
                                                     ^
Main.java:90: error: class, interface, enum, or record expected
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
                                                ^
Main.java:90: error: class, interface, enum, or record expected
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
                                                                  ^
Main.java:90: error: class, interface, enum, or record expected
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
                                                                               ^
Main.java:90: error: class, interface, enum, or record expected
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
                                                                                                  ^
Main.java:90: error: class, interface, enum, or record expected
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
                                                                                                              ^
Main.java:92: error: class, interface, enum, or record expected
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";}
                                     ^
Main.java:92: error: class, interface, enum, or record expected
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";}
                                                  ^
Main.java:92: error: class, interface, enum, or record expected
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";}
                                                                                                         ^
Main.java:92: error: class, interface, enum, or record expected
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";}
                                                                                                                     ^
Main.java:93: error: class, interface, enum, or record expected
void _print() {cerr << "]\n";}
                             ^
Main.java:95: error: class, interface, enum, or record expected
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
                                      ^
Main.java:95: error: class, interface, enum, or record expected
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << "