제출 #1107751

#제출 시각아이디문제언어결과실행 시간메모리
1107751kaopj게임 (IOI14_game)C++17
컴파일 에러
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); }

컴파일 시 표준 에러 (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