Submission #1107751

#TimeUsernameProblemLanguageResultExecution timeMemory
1107751kaopjGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
/********************
 * what  the  sigma *
 ********************/
#include <iostream>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update>
using namespace std;
#define lgm cin.tie(0)->sync_with_stdio(0);
#define be(x) x.begin(),x.end()
#define ve vector
#define ll long long
#define f first
#define s second
#define pii pair<int, int>
#define tii tuple<int,int,int>
#define pll pair<ll,ll>
#define sz(x) (int)x.size()
#define pb push_back
const int mod = 1e9+7,maxn=100005;
void initialize(int n) {}
ll cnt[1501];
bool hasEdge(ll u,ll v) {
    return ++cnt[max(u,v)]==max(u,v);
}

Compilation message (stderr)

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