Submission #1006452

#TimeUsernameProblemLanguageResultExecution timeMemory
1006452kebine게임 (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define pb push_back
#define pii pair<ll,ll>
#define fi first
#define sec second
#define endl '\n'
#define ordered_set tree<ll, null_type,less<ll>, rb_tree_tag, tree_order_statistics_node_update>
#define ordered_multiset tree<ll, null_type,  less_equal<ll>, rb_tree_tag, tree_order_statistics_node_update> 

const ll MOD = 998244353;
const ll N = 1505;
const ll INF = 1e18;

ll cnt[N];
ll n;

void initialize(ll N){
  N = n;
}

bool hasEdge(ll u, ll v){
  if(max(cnt[u],cnt[v]) == n-1) return true;
  else{
    cnt[u]++, cnt[v]++;
    return false;
  }
}
/*
6 5 4 3 2 1 0
*/

Compilation message (stderr)

/usr/bin/ld: /tmp/ccyRfE2y.o: in function `main':
grader.cpp:(.text.startup+0x2a): undefined reference to `initialize(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x94): undefined reference to `hasEdge(int, int)'
collect2: error: ld returned 1 exit status