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

#include<bits/stdc++.h>
#define watch(x) cerr << #x << " = " << x << endl 

using namespace std;

#ifndef LOCAL
#define cerr false 
#endif 

int main(){
	int n , k ; 
	cin >> n >> k ; 
	int arr[n] ; 
	for(int& i : arr) cin >> i ;

	vector<bool>dp(k+1,false);
	for(int i=0;i<=k;i++){
		for(int stones : arr){
			if( i-stones >= 0 and dp[i-stones] == false){
				dp[i] = true;
			}
			watch(dp[i]);
		}
	}

	cout << ( dp[k]?"First":"Second" ) << endl ;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:23: error: invalid operands of types 'bool' and 'const char [6]' to binary 'operator<<'
    2 | #define watch(x) cerr << #x << " = " << x << endl
      |                       ^
a.cc:22:25: note: in expansion of macro 'watch'
   22 |                         watch(dp[i]);
      |                         ^~~~~
Language: C++

#include<bits/stdc++.h>
#define watch(x) cerr << (#x) << " = " << x << endl 

using namespace std;

#ifndef LOCAL
#define cerr false 
#endif 

int main(){
	int n , k ; 
	cin >> n >> k ; 
	int arr[n] ; 
	for(int& i : arr) cin >> i ;

	vector<bool>dp(k+1,false);
	for(int i=0;i<=k;i++){
		for(int stones : arr){
			if( i-stones >= 0 and dp[i-stones] == false){
				dp[i] = true;
			}
			watch(dp[i]);
		}
	}

	cout << ( dp[k]?"First":"Second" ) << endl ;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:23: error: invalid operands of types 'bool' and 'const char [6]' to binary 'operator<<'
    2 | #define watch(x) cerr << (#x) << " = " << x << endl
      |                       ^
a.cc:22:25: note: in expansion of macro 'watch'
   22 |                         watch(dp[i]);
      |                         ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std; 
 
long long int n,k,a[1000], dp[1000009];
// dp[k][turn];
 
int main(){
  
  cin>>n>>k;
  for(int i = 1; i<=n;i++)
    cin>>a[i];

  if(k == 0)
  dp[k] = 2;


  for(int i = 1; i<=k; i++){
    for(int j = 1; j<=n; j++){
      if(i-a[j]>=0){
          // dependencies of dynamic relation 
         // dp[i]|=!(dp[i-a[j]]);
         if(dp[i-a[j]] == 1){
          dp[i] = 2;
         else 
           dp[i] = 1;
         }
         
      }
    }
  }
  
  if(dp[k]== 1) cout<<"First"<<endl;
  else 
    cout<<"Second"<<endl;
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:10: error: expected '}' before 'else'
   24 |          else
      |          ^~~~
a.cc:22:29: note: to match this '{'
   22 |          if(dp[i-a[j]] == 1){
      |                             ^
a.cc: At global scope:
a.cc:32:3: error: expected unqualified-id before 'if'
   32 |   if(dp[k]== 1) cout<<"First"<<endl;
      |   ^~
a.cc:33:3: error: expected unqualified-id before 'else'
   33 |   else
      |   ^~~~
a.cc:36:3: error: expected unqualified-id before 'return'
   36 |   return 0;
      |   ^~~~~~
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

nclude<bits/stdc++.h>
using namespace std; 
 
long long int n,k,a[1000], dp[100009];
// dp[k][turn];
 
int main(){
  
  cin>>n>>k;
  for(int i = 1; i<=n;i++)
    cin>>a[i];
  
  for(int i = 1; i<=k; i++){
    for(int j = 1; j<=n; j++){
      if(i>=a[j]){
          // dependencies of dynamic relation 
         dp[i]|=!(dp[i-a[j]]);
      }
    }
  }
  
  if(dp[k]) cout<<"First"<<endl;
  else 
    cout<<"Second"<<endl;
 
  return 0;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin>>n>>k;
      |   ^~~
a.cc:22:13: error: 'cout' was not declared in this scope
   22 |   if(dp[k]) cout<<"First"<<endl;
      |             ^~~~
a.cc:22:28: error: 'endl' was not declared in this scope
   22 |   if(dp[k]) cout<<"First"<<endl;
      |                            ^~~~
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout<<"Second"<<endl;
      |     ^~~~
a.cc:24:21: error: 'endl' was not declared in this scope
   24 |     cout<<"Second"<<endl;
      |                     ^~~~
Language: C++

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

const int MAXN = 1e55555+5;

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0);
		cout.tie(0);

	vector<int>kamienie;
	bool dp[MAXN];
	int n ,k;
	cin >> n >> k;
	for(int i=0; i<n; i++)	{
		int a;	cin >> a;
		kamienie.push_back(a);
	}
	
	for(int i=0; i<=k; i++)
		for(int j : kamienie)
			if(i >= j and !dp[i-j])
				dp[i] = true;
	if (dp[k])
		cout << "First";
	else	
		cout << "Second";
	return 0;
}


Compiler output:
a.cc:4:1: warning: floating constant exceeds range of 'double' [-Woverflow]
    4 | const int MAXN = 1e55555+5;
      | ^~~~~
a.cc:4:25: warning: overflow in conversion from 'double' to 'int' changes value from '+Inf' to '2147483647' [-Woverflow]
    4 | const int MAXN = 1e55555+5;
      |                  ~~~~~~~^~
a.cc: In function 'int main()':
a.cc:12:17: error: size of array 'dp' exceeds maximum object size '9223372036854775807'
   12 |         bool dp[MAXN];
      |                 ^~~~
Language: Java

#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
	int n,k;
	cin >> n >> k;
	vector<int> a(n);
	for(int i = 0;i < n; ++i) cin >> a[i];	
	// dp[i] true only if i can gaurantee i can come here
	vector<bool> dp(k + 1);
	for(int i = 1;i <= k; ++i){
		for(int j = 0;j < n; ++j){
			// suppose i - a[j] is true then i cannot come here
			// if false then i can come here 
			if(i - a[j] >= 0){
				if(dp[i - a[j]] == false)dp[i] = true;
			}
		}
	}
	cout << (dp[k] == true ? "First":"Second");
}

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:3: error: illegal character: '#'
#define int long long
^
Main.java:3: error: class, interface, enum, or record expected
#define int long long
        ^
Main.java:6: error: class, interface, enum, or record expected
	cin >> n >> k;
	^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
	vector<int> a(n);
	^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: <identifier> expected
	vector<int> a(n);
	               ^
Main.java:8: error: class, interface, enum, or record expected
	for(int i = 0;i < n; ++i) cin >> a[i];	
	^
Main.java:8: error: class, interface, enum, or record expected
	for(int i = 0;i < n; ++i) cin >> a[i];	
	              ^
Main.java:8: error: class, interface, enum, or record expected
	for(int i = 0;i < n; ++i) cin >> a[i];	
	                     ^
Main.java:10: error: <identifier> expected
	vector<bool> dp(k + 1);
	                 ^
Main.java:11: error: class, interface, enum, or record expected
	for(int i = 1;i <= k; ++i){
	^
Main.java:11: error: class, interface, enum, or record expected
	for(int i = 1;i <= k; ++i){
	              ^
Main.java:11: error: class, interface, enum, or record expected
	for(int i = 1;i <= k; ++i){
	                      ^
Main.java:12: error: class, interface, enum, or record expected
		for(int j = 0;j < n; ++j){
		              ^
Main.java:12: error: class, interface, enum, or record expected
		for(int j = 0;j < n; ++j){
		                     ^
Main.java:17: error: class, interface, enum, or record expected
			}
			^
Main.java:21: error: class, interface, enum, or record expected
}
^
18 errors
Language: C++


using namespace std;

int main()
{
    int n,k;
    cin>>n>>k;
    int a[n];
    for(int i=0;i<n;i++)
    cin>>a[i];
    int b[k+1]={0};
    for(int i=1;i<k+1;i++)
    {
        for(int j=0;j<n;j++)
        {
            if(a[j]<=i)
            {
                if(b[i-a[j]]==0)
                {
                    b[i]=1;
                    break;
                }
            }
        }
    }
    if(b[k])
    cout<<"First"<<endl;
    else cout<<"Second"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>n>>k;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:27:5: error: 'cout' was not declared in this scope
   27 |     cout<<"First"<<endl;
      |     ^~~~
a.cc:27:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:20: error: 'endl' was not declared in this scope
   27 |     cout<<"First"<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | 
a.cc:28:10: error: 'cout' was not declared in this scope
   28 |     else cout<<"Second"<<endl;
      |          ^~~~
a.cc:28:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:26: error: 'endl' was not declared in this scope
   28 |     else cout<<"Second"<<endl;
      |                          ^~~~
a.cc:28:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

//#define int             long long int
#define ld              long double
#define ff              first
#define ss              second
#define mp              make_pair
#define pb              push_back
#define endl            "\n"


int main()
{
    int n, k;
    cin >> n >> k;

    int a[n+1];
    for(int i = 1; i <= n; i++)
        cin >> a[i];

    vector <int> dp(k + 1, 2);
    for(int i = 1; i <= k; i++)
    {
        for(int j = 1; j <= n; j++)
        {
            if(a[j] > i) continue;

            if(dp[i - a[j]] == 2)
                dp[i] = 1;
        }
    }

    cout << (dp[no_of_stones] == 1 ? "First\n" : "Second\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:17: error: 'no_of_stones' was not declared in this scope
   34 |     cout << (dp[no_of_stones] == 1 ? "First\n" : "Second\n");
      |                 ^~~~~~~~~~~~
Language: C++

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

const int MAXN = 1e5+5;
const int MAXNN = 1e5+7;
const int INF = 1e9+7;
#define ll long long
#define pb push_back
#define endl '\n'
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL);
#define F first
#define S second

ll poww(ll a, ll b, ll md) {
    return (!b ? 1 : (b & 1 ? a * poww(a * a % md, b / 2, md) % md : poww(a * a % md, b / 2, md) % md));
}

ll MOD(ll a){
    return ((a%INF)+INF)%INF;
}

ll inv(ll a){
    return poww(a,INF-2,INF);
}

bool dp[MAXN][2];
int a[MAXN];

int main()
{
    fast_io;
    //cout << fixed << setprecision(15);

    int n,k;cin >> n >> k;
    for(int i=1;i<=n;++i) cin >> a[i];

    dp[0][1] = 1,dp[0][0] = 1;
    for(int i=1;i<=k;++i){
        for(int j=0;j<2;++j){
            for(int f=1;f<=n;++f){
                if(i >= a[f]) dp[i][j] |= !dp[i-a[f]][!j];
            }
        }
    }
    if(dp[k][0]) cout << "First";
    else cout << "Second"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:26: error: expected ';' before '}' token
   46 |     else cout << "Second"
      |                          ^
      |                          ;
   47 | }
      | ~
Language: C++

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

const int MAXN = 1e5+5;
const int MAXNN = 1e5+7;
const int INF = 1e9+7;
#define ll long long
#define pb push_back
#define endl '\n'
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL);
#define F first
#define S second

ll poww(ll a, ll b, ll md) {
    return (!b ? 1 : (b & 1 ? a * poww(a * a % md, b / 2, md) % md : poww(a * a % md, b / 2, md) % md));
}

ll MOD(ll a){
    return ((a%INF)+INF)%INF;
}

ll inv(ll a){
    return poww(a,INF-2,INF);
}

bool dp[MAXN][2];
int a[MAXN];

int main()
{
    fast_io;
    //cout << fixed << setprecision(15);

    int n,k;cin >> n >> k;
    for(int i=1;i<=n;++i) cin >> a[i];

    for(int i=1;i<=k;++i){
        for(int j=0;j<2;++j){
            for(int f=1;f<=n;++f){
                if(i >= a[f]) dp[i][j] |= !dp[i-a[f]][!j];
            }
        }
    }
    if(dp[k][0]) cout << "First";
    else cout << "Second"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:26: error: expected ';' before '}' token
   45 |     else cout << "Second"
      |                          ^
      |                          ;
   46 | }
      | ~
Language: C++

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

int main(){
  int n,k;
  cin>>n>>k;
  for(int i =0;i<n;i++){
    int x;
    cin>>x;
  }
  if(rand%2)cout<<"First";
  else cout<<"Second";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid operands of types 'int() noexcept' and 'int' to binary 'operator%'
   11 |   if(rand%2)cout<<"First";
      |      ~~~~^~
      |      |    |
      |      |    int
      |      int() noexcept
Language: C++

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

int main()
{
    int n,k;
    cin>>n>>k;
int arr[n];
for(int i=0;i<n;i++)
{
    cin>>arr[i];
}
int a=0;
    while(true)
    {
       if(k-arr[n-1]<arr[0])
       {
           if(a==0)
           {
               cout<<"First";
              
           }
           else
           cout<<"Second";
            return 0;
       }
       else
       {
           a=1-a;
           k=k-arr[0];
       }
    }
  
    
    
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:37:14: error: expected '}' at end of input
   37 |     return 0;
      |              ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    
    ll n,k,i,j;
    vector<ll> v;
    cin>>n>>k;
    for(i=0;i<n;i++){
        cin>>j;
        v.push_back(j);
    }
    bool dp[k+1];
    for(i=0;i<n;i++){
        for(j=0;j<=k;j++){
           if(j>=v[i] && !dp[j-v[i]])
           dp[j]=true;
            
        }
        
    }
    
    if(dp[n-1][k]==false)
    cout<<"Second"<<endl;
    else
    cout<<"First"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:15: error: invalid types 'bool[ll {aka long long int}]' for array subscript
   23 |     if(dp[n-1][k]==false)
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int mod = 1000000007;
 
int main(void){
    int N; cin >> N;
    long long K; cin >> K;
    int A[N]; rep(i, N) cin >> A[i];
    bool dp[K+1] = {};
    for(int i = A[0]; i <= K; i++){
        bool res = false;
        for(int j=0;j<N;j++){
            int val = i - A[j];
            if(val < 0) break;
            if(!dp[val]) res = true; 
        }
        dp[i] = res;
    }
    if(dp[K]) cout << "First" << endl;
    else cout << "Second" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'i' was not declared in this scope
    8 |     int A[N]; rep(i, N) cin >> A[i];
      |                   ^
a.cc:8:15: error: 'rep' was not declared in this scope
    8 |     int A[N]; rep(i, N) cin >> A[i];
      |               ^~~
Language: C++

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

int const N = 101, K = 1e5 + 1;

ll n, k;
ll arr[N];

ll dp[K][2];
bool vis[K][2];

int pound(int stones, int turn)
{
    if (stones < arr[0])
        return 1 - turn;
    
    if (vis[stones][turn])
        return dp[stones][turn];
        
    vis[stones][turn] = 1;
    
    dp[stones][turn] = 1 - turn;
    for (int i = 0; i < n; ++i)
    {
        if (turn)
            dp[stones][turn] = max(dp[stones][turn], pound(stones - arr[i], 1 - turn));
        else
            dp[stones][turn] = min(dp[stones][turn], pound(stones - arr[i], 1 - turn));
    }
    
    return dp[stones][turn];
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    cin >> n >> k;
    for (int i = 0; i < n; ++i)
        cin >> arr[i];
        
    if (pound(k, 1))
        cout << "First";
    else cout << "Second";
    
    return 0;
}


Compiler output:
a.cc:6:1: error: 'll' does not name a type
    6 | ll n, k;
      | ^~
a.cc:7:1: error: 'll' does not name a type
    7 | ll arr[N];
      | ^~
a.cc:9:1: error: 'll' does not name a type
    9 | ll dp[K][2];
      | ^~
a.cc: In function 'int pound(int, int)':
a.cc:14:18: error: 'arr' was not declared in this scope
   14 |     if (stones < arr[0])
      |                  ^~~
a.cc:18:16: error: 'dp' was not declared in this scope; did you mean 'dup'?
   18 |         return dp[stones][turn];
      |                ^~
      |                dup
a.cc:22:5: error: 'dp' was not declared in this scope; did you mean 'dup'?
   22 |     dp[stones][turn] = 1 - turn;
      |     ^~
      |     dup
a.cc:23:25: error: 'n' was not declared in this scope
   23 |     for (int i = 0; i < n; ++i)
      |                         ^
a.cc:26:69: error: 'arr' was not declared in this scope
   26 |             dp[stones][turn] = max(dp[stones][turn], pound(stones - arr[i], 1 - turn));
      |                                                                     ^~~
a.cc:28:69: error: 'arr' was not declared in this scope
   28 |             dp[stones][turn] = min(dp[stones][turn], pound(stones - arr[i], 1 - turn));
      |                                                                     ^~~
a.cc: In function 'int main()':
a.cc:39:12: error: 'n' was not declared in this scope
   39 |     cin >> n >> k;
      |            ^
a.cc:39:17: error: 'k' was not declared in this scope
   39 |     cin >> n >> k;
      |                 ^
a.cc:41:16: error: 'arr' was not declared in this scope
   41 |         cin >> arr[i];
      |                ^~~
Language: C++

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

int n, k, a[101], dp[N];

int main()
{
	memset(dp, -1, sizeof(dp));

	cin >> n >> k;
	for (int i = 0; i < n; i++)
	{
		scanf("%d", a + i);
	}
	

	for (int i = 0; i <= k; i++)
	{
		dp[i] = 0;
		for (int j = 0; j < n; j++)
		{
			if (i - a[j] == 0)
			{
				dp[i] |= 1;
			}
			else if (i - a[j] > 0)
			{
				dp[i] |= dp[i - a[j]] ^ 1;
			}
			else
			{
				dp[i] |= 0;
			}
		}
	}

	puts((dp[k] ? "First" : "Second"));
}

Compiler output:
a.cc:4:22: error: 'N' was not declared in this scope
    4 | int n, k, a[101], dp[N];
      |                      ^
a.cc: In function 'int main()':
a.cc:8:16: error: 'dp' was not declared in this scope; did you mean 'dup'?
    8 |         memset(dp, -1, sizeof(dp));
      |                ^~
      |                dup
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cstring>
#include <memory.h>
#include <math.h>
#include <vector>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <stdio.h>
#include <queue>
#include <stack>
#include <cstdio>
#include <bitset>

using namespace std;

#define nfs ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define f first
#define s second
#define m_p make_pair
#define pb push_back
#define ii pair<int,int>
#define iii pair<int,pair<int,int> >
#define ll long long
#define ull unsigned long long
#define ld long double
#define ef else if
#define loc(x) (x).begin(),(x).end() 
#define locR(x) (x).rbegin(),(x).rend()
#define no puts("NO")
#define yes puts("YES")
#define ex puts("-1")
#define en puts("")
#define _ cout  
#define __ <<
#define outV(v) for(int i = 0 ; i < v.size() ; i++)cout << v[i] << ' ';
#define outA(x,l,r) for(int i = l ; i < r ; i++)cout << x[i] << ' ';

#ifndef ONLINE_JUDGE
#define scanf scanf_s
#endif

const ld EPS = 1e-18;
const double DEPS = 1e-9;
const ld PI = 3.141592653589793238;
const ull MOD = 1e9 + 7;
const int N = (int)(5e5) + 1;

void inp()
{
#ifndef ONLINE_JUDGE
	FILE* stream;
	freopen_s(&stream, "inp.txt", "r", stdin);
#endif
}
void out()
{
#ifndef ONLINE_JUDGE
	FILE* stream;
	freopen_s(&stream, "out.txt", "w", stdout);
#endif
}

ll gcd(ll fx, ll fy)
{
	if (!fy) return fx;
	return gcd(fy, fx % fy);
}

inline void fill(int* ar, int sz, int val)
{
	for (int i = 0; i < sz; i++)
	{
		ar[i] = val;
	}
}

int n, k, a[101], dp[N];

int main()
{
	inp();
	memset(dp, -1, sizeof(dp));

	cin >> n >> k;
	for (int i = 0; i < n; i++)
	{
		scanf("%d", a + i);
	}
	

	for (int i = 0; i <= k; i++)
	{
		dp[i] = 0;
		for (int j = 0; j < n; j++)
		{
			if (i - a[j] == 0)
			{
				dp[i] |= 1;
			}
			else if (i - a[j] > 0)
			{
				dp[i] |= dp[i - a[j]] ^ 1;
			}
			else
			{
				dp[i] |= 0;
			}
		}
	}

	puts((dp[k] ? "First" : "Second"));
}

Compiler output:
a.cc: In function 'void inp()':
a.cc:56:9: error: 'freopen_s' was not declared in this scope; did you mean 'freopen64'?
   56 |         freopen_s(&stream, "inp.txt", "r", stdin);
      |         ^~~~~~~~~
      |         freopen64
a.cc: In function 'void out()':
a.cc:63:9: error: 'freopen_s' was not declared in this scope; did you mean 'freopen64'?
   63 |         freopen_s(&stream, "out.txt", "w", stdout);
      |         ^~~~~~~~~
      |         freopen64
a.cc: In function 'int main()':
a.cc:43:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   43 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:91:17: note: in expansion of macro 'scanf'
   91 |                 scanf("%d", a + i);
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>


using namespace std;

//#define push_back pb
int main()
{int n,k;
 cin>>n>>k;
 vector<int>v(n);
 for(int i=0;i<n;i++)
   cin>>v[i];
 vector<bool>dp(n+1);
 for(int stones=0;stones<=k;stones++)
  for(int x:v){
    if(stone>=x && !dp[stones-x])
      dp[stones]=1;
  }
 
    
 puts(dp[k]?"First":"Second");
  
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'stone' was not declared in this scope; did you mean 'stones'?
   16 |     if(stone>=x && !dp[stones-x])
      |        ^~~~~
      |        stones
Language: C++

#include <bits/stdc++.h>
using namespace std;
int n, k;
const int MAXN = 1e5 + 5;
int vis[MAXN];
vector < int > arr;
int main(){
    cin >> n >> k;
    arr.resize(n);
    for(int i = 0; i < n; i++) cin >> arr[i];
    for(int i = 0; i <= k; i++)
        for(auto val : arr)
            if(!vis[i - val] && i - val >= 0)
                vis[i] = true;
    cout << (vis[k] ? "First\n" : "Second\n");


Compiler output:
a.cc: In function 'int main()':
a.cc:15:47: error: expected '}' at end of input
   15 |     cout << (vis[k] ? "First\n" : "Second\n");
      |                                               ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
#define for0(i,n) for(int i=0;i<n;i++)
#define rep(i,s,n) for(int i=s;i<n;i++)
#define sp <<" "<<					// giving space
#define MOD 1000000007				// for mod
#define ll_max 1000000000000000000
#define ll long long
#define ld long double
#define BOOST ios_base::sync_with_stdio ( false ); cin.tie ( nullptr ); cout.tie ( nullptr );
using namespace std;
// Vector
#define vi vector<int>					//integer vector
#define vll vector<ll>
#define pb push_back				//vector element insertion
#define pf push_front
#define er(v,i) v.erase(v.begin()+i)			// erase ith element in a vector
#define erng(v,x) v.erase(v.begin(),v.begin()+x)       	// delete a range in array

//Stack
/*  stack<int> s;						//declaring stack
s.push(1)						// enter  element in stack
s.top()							//returns top element in stack
s.pop()							//removes top element in  stack
*/
// pair
#define pii pair<int,int>					//pair integers
#define ff first
#define ss second
#define mp(a,b) make_pair(a,b)			// entering pair element in vector(size not defined)

//Hashmap
/* map<string,string> a;				//declaration
a[“abc”]=”xyz”;					// element entry in map;
gquiz1.insert(pair<int, int>(1, 40));
map<string,string>::iterator itr;			//iterating map
for (itr = a.begin(); itr!=a.end(); itr++){
    cout <<(*itr).first  << itr->second <<endl;
  }
  itr = companies.find("abc");		//finding element in map
  cout << itz->second;

//*/



int main()
{
   map<int,int> dp[105];
   vector<pii> a;
   int n,k;
   cin>>n>>k;
   for0(i,n)
   {
       int u,v;
       cin>>u>>v;
       a.pb(mp(u,v));
   }
   sort(a.begin(),a.end());
   map<int,int>::iterator itr,gtr;
   int x,y;
   for(int i=1;i<=n;i++)
   {
       x=
       for(itr=dp[i-1].begin();itr!=dp[i-1].end();itr++)
       {
           x=(*itr).ff;
           y=(*itr).ss;
           if(x+a[i-1].)
           gtr=dp[i-1].find()
       }
   }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:64:8: error: expected primary-expression before 'for'
   64 |        for(itr=dp[i-1].begin();itr!=dp[i-1].end();itr++)
      |        ^~~
a.cc:64:56: error: expected ';' before ')' token
   64 |        for(itr=dp[i-1].begin();itr!=dp[i-1].end();itr++)
      |                                                        ^
      |                                                        ;
Language: C++

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

int main()
{
  int n,k;
  cin>>n>>k;
  int a[n];
  for(int i=0;i<n;i++)
   cin>>a[i];
  sort(a.begin(),a.end());
   vector<bool> dp(k+1,false);
  int j=0;int k1;
  for(int i=0;i<n;i++)
  { k1=a[i];j=0;
   while(j<k1)
   {
     
    if(dp[j]==false)
    dp[j+k1]=true;
     else
     dp[j+k1]=false;
    
   }
    
  }
  if(dp[k]==false)
  cout<<"Second";
  else
  cout<<"First";
  
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   12 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:12:20: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   12 |   sort(a.begin(),a.end());
      |                    ^~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int n, k;
  cin >> n >> k;
  int arr[n];
  for (int i = 0; i < n; ++i)
  {
    /* code */cin >> arr[i];
  }
  sort(arr, arr + n);
  int dp[k + 1];

  for (int i = 0; i < k + 1; ++i)
  {
    dp[i] = 0;
  }

  for (int i = 0; i < n; ++i)
  {
    dp[arr[i]] = 1;
  }

  for (int i = 0; i <= k; ++i)
  {
      if(dp[i] == 1) continue;
      bool fg = 0;
      for (int j = 0; j < n; ++j)
      {
         if(i - arr[j] >= 0)
         if(dp[i - arr[j]] == 2) {fg = 1; break; }
      }

      if(fg) dp[i] = 1;
      else dp[i] = 2;
  }

  if(dp[k] == 1) cout << "First";
  else cout << "Second";

  //cout << dp[k];




  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |   sort(arr, arr + n);
      |   ^~~~
      |   short
Language: C++

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

bool dp[100001], n, k; // how many stones are left

int main() {
    ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    cin >> n >> k;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    for (int i = 0; i <= k; i++) {
        for (int j = 0; j < n; j++) {
            if (dp[i - a[j]] == false && i - a[j] >= 0) {
                dp[i] = true;
            }
        }
    }
    puts(dp[k] ? "First" : "Second");
    return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:5: error: 'ios_base' has not been declared
    7 |     ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |     ^~~~~~~~
a.cc:7:39: error: 'cin' was not declared in this scope
    7 |     ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                       ^~~
a.cc:7:51: error: 'cout' was not declared in this scope
    7 |     ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                                   ^~~~
a.cc:9:5: error: 'vector' was not declared in this scope
    9 |     vector<int> a(n);
      |     ^~~~~~
a.cc:9:12: error: expected primary-expression before 'int'
    9 |     vector<int> a(n);
      |            ^~~
a.cc:11:16: error: 'a' was not declared in this scope
   11 |         cin >> a[i];
      |                ^
a.cc:15:24: error: 'a' was not declared in this scope
   15 |             if (dp[i - a[j]] == false && i - a[j] >= 0) {
      |                        ^
a.cc:20:5: error: 'puts' was not declared in this scope
   20 |     puts(dp[k] ? "First" : "Second");
      |     ^~~~
Language: C++

#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
class stoneProblemK
{
private:
	vector<bool> table;
	vector<int> moves;
	int stone_count;
	int set_size;
	void completeTable();
	void display();
public:
	stoneProblemK();

};

stoneProblemK::stoneProblemK() {
	cin >> set_size;
	cin >> stone_count;
	for (int i = 0; i < set_size; i++) {
		int move;
		cin >> move;
		moves.push_back(move);
	}
	completeTable();
	display();
	
}
void stoneProblemK::display() {
	if (table[stone_count]) {
		cout << "First";
	}
	else {
		cout << "Second";
	}
}
void stoneProblemK::completeTable() {
	for (int i = 0; i <= stone_count; i++) {
		if (i == 0) {
			table.push_back(false);
			continue;
		}
		bool can_win = false;
		for (auto x : moves) {
			if ((i - x) >= 0 && !table[i - x]) {
				can_win = true;
				break;
			}
		}
		table.push_back(can_win);
	}
}

int main(){
stoneProblemK* x = new stoneProblemK::stoneProblemK()
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:24: error: expected type-specifier
   59 | stoneProblemK* x = new stoneProblemK::stoneProblemK()
      |                        ^~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <set>
#include <tuple>
#include <functional>
#include <map>
#include <unordered_map>
#include <queue>
#include <tuple>
#include <random>
#include <stack>

using namespace std;

#define endl '\n'

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

using lld = long double;
using ull = unsigned long int;
using ll = long long;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  const int precision = 13;
  cout.precision(precision);
  cout.setf(ios_base::fixed);

  int n, k; cin >> n >> k;
  vector<int> a(n);
  for (auto& it : a) cin >> it;

  vector<bool> nim(k+1, false);
  for (int i = 1; i <= k; ++i) {
    bool win = false;
    for (int v : a) {
      if (i >= v and nim[i-v] == false) {
        win = true;
        break;
      }
    }
    nim[i] = win;
  }

  cout << (nim[k] ? "First" : "Second") << endl;

  return 0;
}


Compiler output:
a.cc:20:13: error: 'chrono' has not been declared
   20 | mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
      |             ^~~~~~
Language: C++

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

typedef long long ll ; 
typedef unsigned long long ull ; 
typedef vector<int> vi ; 
typedef vector<vi> vii ;
typedef vector<ll> vl ;
typedef vector<vl> vll ;
typedef set<int> si ; 
typedef map<int,int> mii ; 
typedef map<ll,ll>  mll ; 
typedef map<string,int> msi ;
typedef set<ll> sl ; 
typedef set<char> sc ; 
typedef pair<int,int> pii ;


#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<=(b);i++)
#define FORD(i,a,b) for(int i=(a);i>=(b);i--)
const int INF = 1 << 29 ; 
#define MOD (ll)(1e9+7)
#define eps 1e-6
#define pb push_back 
#define mp make_pair 
#define DEBUG(x)		cout << '>' << #x << ':' << x << endl;
#define F first 
#define S second 

int main() 
{
	ios::sync_with_stdio(0) ;
	

	int n ;
	cin >> n ;
	int k ;
	cin >> k;
	int a[n];
	REP(i,n) cin >> a[i];
	int dp[k+5];
	REP(i,k+5) dp[i] = -1 ;
	dp[0] = 1;
	for(int i = 0; i < n; ++i) {
		dp[a[i]] = 1;
	}
	sort(a , a + n);
	for(int i = 1; i <= k; ++i) {
		if(dp[i] == -1) {
			for(int j = 0; j < n; ++j) {
				if(i - a[j] < 0) break;
				if(dp[i-a[j]] == 1 && dp[i] != 1) {
					dp[i] = 0; 
				}
				if(dp[i-a[j]] == 0) {
					dp[i] = 1;
					break;
				}
			}
		}
	}
	if(dp[k] == 1) {
		cout << "First\n";
	}
	else {
		cout << "Second\n"
	}
	return 0 ; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:67:35: error: expected ';' before '}' token
   67 |                 cout << "Second\n"
      |                                   ^
      |                                   ;
   68 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>

using namespace std;

const int inf=1e9+5;
const int MOD=1e9+7;
const int MAX=1e5+5;

#define mp make_pair
#define pb push_back
#define ii pair<int,int>
#define ll long long
#define pll pair<ll,ll>
#define vl vector<vector<ll> >
#define eb emplace_back


int main(){
  int n.k;
  cin>>n>>k;
  int a[n];
  for(int i=0;i<n;i++){
  	cin>>a[i];
  }
  vector<bool> dp(k+1,false);
  for(int i=0;i<=k;i++){
  	for(int j=0;j<n;j++){
    	if(a[j]<=i && !dp[i-j]){
        	dp[i-j]=true;
        }
    }
  }
  if(dp[k]){
  	cout<<"First";
  }
  else{
    cout<<"Second";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: expected initializer before '.' token
   19 |   int n.k;
      |        ^
a.cc:20:8: error: 'n' was not declared in this scope; did you mean 'yn'?
   20 |   cin>>n>>k;
      |        ^
      |        yn
a.cc:20:11: error: 'k' was not declared in this scope
   20 |   cin>>n>>k;
      |           ^
a.cc:23:14: error: 'a' was not declared in this scope
   23 |         cin>>a[i];
      |              ^
a.cc:28:12: error: 'a' was not declared in this scope
   28 |         if(a[j]<=i && !dp[i-j]){
      |            ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

const int mx = 1e+5;

int a[105];
int dp[mx];
int main()
{	
	int n,k;
	cin>>n>>k;

	for(int i=1;i<=n;i++)cin>>a[i];


		for(int i=1;i<=k;i++)
		{	
			dp[i]=0;
			for(int j=1;j<=n;j++)
			{

				if(i<a[j])break;

				if(dp[i-a[j]]==0)dp[i]=1;

			}
		}

		if(dp[k]==1)cout<<"First"<<'\n';
		else
			cout<<"Second"<<'\n';

	return 0;	

Compiler output:
a.cc: In function 'int main()':
a.cc:34:24: error: expected '}' at end of input
   34 |         return 0;
      |                  ^      
a.cc:10:1: note: to match this '{'
   10 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,k;
  	int a[101]
    scanf("%d %d",&n,&k);
    //vector<int>a(n);
    for (int &x :a)
    {
        scanf("%d",&x);
    }
    //vector<bool>dp(k+1);
  	bool dp[100005];
    for(int stones=0;stones<=k;stones++)
    {
        for(int x:a)
        {
            if(stones>=x && !(dp[stones-x]))
            {
                dp[stones]=true;
            }
        }
    }
    (dp[k])? printf("First") : printf("Second");
    return 0; 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'scanf'
    7 |     scanf("%d %d",&n,&k);
      |     ^~~~~
a.cc:9:18: error: 'a' was not declared in this scope
    9 |     for (int &x :a)
      |                  ^
a.cc:17:19: error: 'a' was not declared in this scope
   17 |         for(int x:a)
      |                   ^
Language: C++

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
using namespace std;

int main(){
    int n, k; cin >> n >> k;
    vector<int> a(n);
    for(auto& v:a){
        cin >> v;
    }
    sort(a.begin(), a.end());
    int a_max = a[n-1];
    int a_min = a[0]; 
    bool a_dominate = false;
    int val = a_min - 1;
    while(val < k){
        if(a_dominate){
            val += a_min;
        }
        else{
            val += a_max;
        }
        a_dominate = !a_dominate;
    }
    if(a_dominate){
        cout << "First\n";
    }
    else{
        cout << "Second\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   13 |     sort(a.begin(), a.end());
      |     ^~~~
      |     short
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<string>
using namespace std;

int modd=1e9+7;

int main(){
  int n,k; cin>>n>>k;
  int ans[k+1];
  for(int i=0; i<=k; i++){
    ans[i]=0;
  }
  int arr[n];
  for(int i=0; i<n; i++) cin>>arr[i];

  int key;
  for(int i=1; i<n; i++){
    key=arr[i];
    for(int j=i-1; j>=0; j--){
        if(arr[j]>arr[j+1]) arr[j+1]=arr[j];
        else { arr[j+1]=key; break; }
    }
  }

  int r;
  for(int i=1; i<=n; i++){
    r=arr[i-1];
    ans[r]=1;
    for(int j=r+1; j<=k; j++){
        if(ans[j-r]==0) ans[j]=1;
        ans[j]=0;
    }
  }

  if(ans[k]==1) cout<<"First"<<endl;
  else cout<<"Second"<<endl;
}
#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<string>
using namespace std;

int modd=1e9+7;

int main(){
  int n,k; cin>>n>>k;
  int ans[k+1];
  for(int i=0; i<=k; i++){
    ans[i]=0;
  }
  int arr[n];
  for(int i=0; i<n; i++) cin>>arr[i];

  int key;
  for(int i=1; i<n; i++){
    key=arr[i]; int j=i-1;
    for( ; j>=0; j--){
        if(arr[j]>arr[j+1]) arr[j+1]=arr[j];
        else {  break; }
    }
    arr[j+1]=key;
  }

  int r;
  for(int i=1; i<=n; i++){
    r=arr[i-1];
    ans[r]=1;
    for(int j=r+1; j<=k; j++){
        if(ans[j-r]==0) ans[j]=1;
        ans[j]=0;
    }
  }

  if(ans[k]==1) cout<<"First"<<endl;
  else cout<<"Second"<<endl;
}


Compiler output:
a.cc:50:5: error: redefinition of 'int modd'
   50 | int modd=1e9+7;
      |     ^~~~
a.cc:9:5: note: 'int modd' previously defined here
    9 | int modd=1e9+7;
      |     ^~~~
a.cc:52:5: error: redefinition of 'int main()'
   52 | int main(){
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main(){
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int N = 110;
int a[N];
int xor = 0;
int n,k,x;
int main(){
  scanf("%d%d",&n,&k);
  for(int i=0;i<n;++i){
    cin>>x;
    xor = xor^x;
  }
  if(xor!=0){
    cout<<"First"<<endl;
  }else{
    cout<<"Second"<<endl;
  }
  return 0;
}

Compiler output:
a.cc:5:5: error: expected unqualified-id before 'xor' token
    5 | int xor = 0;
      |     ^~~
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before 'xor' token
   11 |     xor = xor^x;
      |     ^~~
a.cc:11:9: error: expected primary-expression before '=' token
   11 |     xor = xor^x;
      |         ^
a.cc:11:11: error: expected primary-expression before 'xor' token
   11 |     xor = xor^x;
      |           ^~~
a.cc:11:14: error: expected primary-expression before '^' token
   11 |     xor = xor^x;
      |              ^
a.cc:13:6: error: expected primary-expression before 'xor' token
   13 |   if(xor!=0){
      |      ^~~
a.cc:13:9: error: expected primary-expression before '!=' token
   13 |   if(xor!=0){
      |         ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int N = 110;
int a[N];
int xor = 0;
int n,k,x;
int main(){
  scanf("%d%d",&n,&k);
  for(int i=0;i<n;++i){
    cin>>x;
    xor ^= x;
  }
  if(xor!=0){
    cout<<"First"<<endl;
  }else{
    cout<<"Second"<<endl;
  }
  return 0;
}

Compiler output:
a.cc:5:5: error: expected unqualified-id before 'xor' token
    5 | int xor = 0;
      |     ^~~
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before 'xor' token
   11 |     xor ^= x;
      |     ^~~
a.cc:11:9: error: expected primary-expression before '^=' token
   11 |     xor ^= x;
      |         ^~
a.cc:13:6: error: expected primary-expression before 'xor' token
   13 |   if(xor!=0){
      |      ^~~
a.cc:13:9: error: expected primary-expression before '!=' token
   13 |   if(xor!=0){
      |         ^~
Language: C++

#include<bit/stdc++.h>
using namespace std;
const int N = 110;
int a[N];
int xor = 0;
int n,k,x;
int main(){
  scanf("%d%d",&n,&k);
  for(int i=0;i<n;++i){
    cin>>x;
    xor ^= x;
  }
  if(xor!=0){
    cout<<"First"<<endl;
  }else{
    cout<<"Second"<<endl;
  }
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory
    1 | #include<bit/stdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include<string.h>
using namespace std;
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define endl "\n"
#define Max(x,y,z) max(x,max(y,z))
#define Min(x,y,z) min(x,min(y,z))
#define fr(i,s,e) for(i=s;i<e;i++)
#define rf(i,s,e) for(i=s-1;i>=e;i--)
#define pb push_back
#define eb emblace_back
#define mp make_pair
#define ff first
#define ss second
//#define int   long long
#define ll   long long
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
#define trace4(a, b, c, d)       cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl
#define trace5(a, b, c, d, e)    cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<endl
#define trace6(a, b, c, d, e, f) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<" | "<<#f<<": "<<f<<endl
#define vl vector<long long>
#define inf (1LL<<61)
#define vi vector<int>
#define vii vector< vector<int> >
#define vll vector< vector<long long> >
#define vpi vector< pair<int,int> >
#define vpl vector< pair<ll,ll> >
#define viii vector< vector<vector<int> > >
typedef pair<pair<int, int>,int> P;
#define cd complex<double>
#define PI 4*atan(1)
#define mod %1000000007
#define pi 3.14159265358979323846//20 decimals
#define ld long double

ll a[101];
ll n, k;
ll dp[100005];
ll o[100005];

pro(ll c)
{
//	cout << "Hi" << c << endl;
	ll i;
	fr(i,0,n)
	{
		if(c >= a[i])
		{
			if((o[c-a[i]]))
				dp[c] = !dp[c-a[i]];
			else
			{
				pro(c-a[i]);
				dp[c] = !dp[c-a[i]];
			}
			if(dp[c])
				break;
		}
		else
			break;
	}
	o[c] = 1;
//	trace2(c, dp[c]);
}

int main()
{
	FAST;
	ll i, j;
	cin >> n >> k;
	fr(i,0,n)
		cin >> a[i];
//	cout << "Hi" << endl;
	pro(k);
	if(dp[k])
		cout << "First";
	else
		cout << "Second";
}


Compiler output:
a.cc:43:1: error: ISO C++ forbids declaration of 'pro' with no type [-fpermissive]
   43 | pro(ll c)
      | ^~~
a.cc: In function 'int pro(long long int)':
a.cc:66:1: warning: no return statement in function returning non-void [-Wreturn-type]
   66 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#include<string.h>
using namespace std;
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define endl "\n"
#define Max(x,y,z) max(x,max(y,z))
#define Min(x,y,z) min(x,min(y,z))
#define fr(i,s,e) for(i=s;i<e;i++)
#define rf(i,s,e) for(i=s-1;i>=e;i--)
#define pb push_back
#define eb emblace_back
#define mp make_pair
#define ff first
#define ss second
//#define int   long long
#define ll   long long
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
#define trace4(a, b, c, d)       cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl
#define trace5(a, b, c, d, e)    cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<endl
#define trace6(a, b, c, d, e, f) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<" | "<<#f<<": "<<f<<endl
#define vl vector<long long>
#define inf (1LL<<61)
#define vi vector<int>
#define vii vector< vector<int> >
#define vll vector< vector<long long> >
#define vpi vector< pair<int,int> >
#define vpl vector< pair<ll,ll> >
#define viii vector< vector<vector<int> > >
typedef pair<pair<int, int>,int> P;
#define cd complex<double>
#define PI 4*atan(1)
#define mod %1000000007
#define pi 3.14159265358979323846//20 decimals
#define ld long double

ll a[101];
ll n, k;
ll dp[100005];
ll o[100005];

pro(ll c)
{
//	cout << "Hi" << c << endl;
	ll i;
	fr(i,0,n)
	{
		if(c >= a[i])
		{
			if((o[c-a[i]]))
				dp[c] = !dp[c-a[i]];
			else
			{
				pro(c-a[i]);
				dp[c] = !dp[c-a[i]];
			}
			if(dp[c])
				break;
		}
		else
			break;
	}
	o[c] = 1;
//	trace2(c, dp[c]);
}

int main()
{
	FAST;
	ll i, j;
	cin >> n >> k;
	fr(i,0,n)
		cin >> a[i];
	cout << "Hi" << endl;
	pro(k);
	if(dp[k])
		cout << "First";
	else
		cout << "Second";
}


Compiler output:
a.cc:43:1: error: ISO C++ forbids declaration of 'pro' with no type [-fpermissive]
   43 | pro(ll c)
      | ^~~
a.cc: In function 'int pro(long long int)':
a.cc:66:1: warning: no return statement in function returning non-void [-Wreturn-type]
   66 | }
      | ^
Language: C++

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

int main()
{
    int n,k;
    int a[n];
    scanf("%d%d",&n,&k);
	for(i=1;i<=n;i++)
	scanf("%d",&a[i]);
    int p[k+1];
    for(int i=0;i<k+1;i++)p[i]=-1;
    int t=0;
    for(int i=0;i<k+1&&t<1;i++){
        for(int j=0;j<n&&t<1;j++){
            if(i+a[j]<=k)if(p[i+a[j]]!=1)p[i+a[j]]=-1*p[i];
            if(p[k]==1)t++;
        }
    }
    if(p[k]==1)cout<<"First"<<endl;
    else cout<<"Second"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         for(i=1;i<=n;i++)
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
	long long int n,k,i,j;
	cin>>n>>k;
	long long int a[n+10];
	long long int ans[k+10];
	for(i=0;i<n;i++)
	{
		cin>>a[i];
	}
	ans[0]=0;
	for(i=1;i<=k;i++)
	{
		ans[i]=0;
		for(j=0;j<n;j++)
		{
			if(a[j]>i)
			break;
			if(ans[i-a[j]]==0)
			{
				ans[i]=1;
				break;
			}
		}
	}
	if(ans[k])
	cout<<"First"<<endl;
	else
	cout<<"Second"<<endl;
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int n,k,i,j;
	cin>>n>>k;
	long long int a[n+10];
	long long int ans[k+10];
	for(i=0;i<n;i++)
	{
		cin>>a[i];
	}
	ans[0]=0;
	for(i=1;i<=k;i++)
	{
		ans[i]=0;
		for(j=0;j<n;j++)
		{
			if(a[j]>i)
			break;
			if(ans[i-a[j]]==0)
			{
				ans[i]=1;
				break;
			}
		}
	}
	if(ans[k])
	cout<<"First"<<endl;
	else
	cout<<"Second"<<endl;
}
//Submission Info

Compiler output:
a.cc:38:5: error: redefinition of 'int main()'
   38 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll n;
ll a[105],dp[100005];
solve(ll k)
{
    for(ll i=0;i<n;i++)
    {
        if(dp[k-a[i]]==0)
        {
            return 1;
        }
        else if(dp[k-a[i]]==-1)
        {
            dp[k-a[i]]=solve(k-a[i]);
            if(dp[k-a[i]]==0)
                return 1;
        }
    }
    return 0;
}

int main()
{
	
    ll k,i;
    cin>>n>>k;
    for(i=0;i<n;i++)
    {
        cin>>a[i];
    }
    dp[0]=0;
    for(i=1;i<=k;i++)
    {
        dp[i]=-1;
    }
    dp[k]=1;
    for(i=0;i<n;i++)
    {
        dp[a[i]]=1;
    }
    if(solve(k))
    {
        cout<<"First\n";
    }
    else
    {
        cout<<"Second\n";
    }
}

Compiler output:
a.cc:6:1: error: ISO C++ forbids declaration of 'solve' with no type [-fpermissive]
    6 | solve(ll k)
      | ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,k,i,j;
  memset(win,0,sizeof(win));
  cin>>n>>k;
  int ar[n];int win[k+1];
  for(i=0;i<n;i++)
  {
    cin>>ar[i];
    win[ar[i]]=1;
  }
  for(i=0;i<=k;i++)
  {
    if(win[i]==1)
      {
      	continue;
    }
    for(j=0;j<n;j++)
    {
      if(i-ar[j]<0)
      {
        continue;
      }
      if(win[i-ar[j]]==0)
      {
        win[i]=1;
        break;
      }
    }
  }
  if(win[k]==1)
  {
    cout<<"First";
  }
  else
  {
    cout<<"Second";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'win' was not declared in this scope; did you mean 'sin'?
    6 |   memset(win,0,sizeof(win));
      |          ^~~
      |          sin
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int n,k;
  cin>>n>>k;
  vector<int> arr(n);
  for(int i=0;i<n;i++)
    cin>>arr[i];
  cout<<"First";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<int> arr(n);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> arr(n);
      |          ^~~
a.cc:10:10: error: 'arr' was not declared in this scope
   10 |     cin>>arr[i];
      |          ^~~