Language: Java

#include<bits/stdc++.h>
#define ll long long
#define dl double
#define mp make_pair
#define pb push_back
using namespace std;

//***********************************************************************

// hash struct for unordered_map
struct hash_pair { 
    template <class T1, class T2> 
    size_t operator()(const pair<T1, T2>& p) const
    { 
        auto hash1 = hash<T1>{}(p.first); 
        auto hash2 = hash<T2>{}(p.second); 
        return hash1 ^ hash2; 
    } 
};

int MAXNUM = 5e3+5;
vector <int>vis(MAXNUM);
vector<int> pr;
void sieve() {
	pr.push_back(2);
	for(ll i=3;i<MAXNUM;i+=2) if(!vis[i]) {
		pr.push_back(i);
		for(ll j=i*i;j<MAXNUM;j+=2*i) vis[j]=true;
	}
}
//************************************************************************

ll mod=998244353;

void solve()
{
   ll n,s;
   cin >> n >> s;
   vector<ll> v(n);
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
   ll p=1;
   for(int i=0;i<n;i++)
   {
        cin >> v[i];
        p*=2;
        p%=mod;
        dp[i][0]=p;
   }
   dp[0][v[0]]=1;
   for(int i=1;i<n;i++)
   {
       for(int j=1;j<=s;j++)
       {
           dp[i][j]=(2*dp[i-1][j])%mod;
           if(j>=v[i])
           {
               dp[i][j]+=dp[i-1][j-v[i]];
               dp[i][j]%=mod;
           }
       }
   }
   cout << dp[n-1][s] << endl;
}


int main()
{ 
	ios_base::sync_with_stdio(false); 
    cin.tie(NULL);
	ll t;
	//cin >> t;
	t=1;
	while(t--)
	{
		solve();
	}

	return 0;
}

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 ll long long
^
Main.java:3: error: illegal character: '#'
#define dl double
^
Main.java:4: error: illegal character: '#'
#define mp make_pair
^
Main.java:5: error: illegal character: '#'
#define pb push_back
^
Main.java:11: error: class, interface, enum, or record expected
struct hash_pair { 
^
Main.java:12: error: '{' expected
    template <class T1, class T2> 
                      ^
Main.java:12: error: '{' expected
    template <class T1, class T2> 
                                ^
Main.java:13: error: class, interface, enum, or record expected
    size_t operator()(const pair<T1, T2>& p) const
                                ^
Main.java:16: error: unnamed classes are a preview feature and are disabled by default.
        auto hash2 = hash<T2>{}(p.second); 
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: illegal start of expression
        auto hash2 = hash<T2>{}(p.second); 
                             ^
Main.java:17: error: class, interface, enum, or record expected
        return hash1 ^ hash2; 
        ^
Main.java:18: error: class, interface, enum, or record expected
    } 
    ^
Main.java:22: error: <identifier> expected
vector <int>vis(MAXNUM);
                      ^
Main.java:38: error: not a statement
   cin >> n >> s;
            ^
Main.java:39: error: not a statement
   vector<ll> v(n);
                ^
Main.java:40: error: not a statement
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
                          ^
Main.java:40: error: not a statement
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
                                   ^
Main.java:40: error: not a statement
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
                                         ^
Main.java:44: error: not a statement
        cin >> v[i];
            ^
Main.java:62: error: not a statement
   cout << dp[n-1][s] << endl;
                      ^
Main.java:39: error: ';' expected
   vector<ll> v(n);
               ^
Main.java:39: error: ';' expected
   vector<ll> v(n);
                 ^
Main.java:40: error: ';' expected
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
                        ^
Main.java:40: error: ';' expected
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
                            ^
Main.java:40: error: ';' expected
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
                                       ^
Main.java:40: error: ';' expected
   vector<vector<ll>> dp(n+5,vector<ll>(s+5));
                                           ^
Main.java:68: error: not a statement
	ios_base::sync_with_stdio(false); 
	^
Main.java:68: error: ';' expected
	ios_base::sync_with_stdio(false); 
	                         ^
30 errors