Submission #1006423

#TimeUsernameProblemLanguageResultExecution timeMemory
1006423kebineGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") typedef long long ll; const ll INF = 1e9; const ll MOD = 998244353; const ll MAXN = 2e5 + 5; const ll LOG = 30; #define vll vector <ll> #define pll pair <ll, ll> #define fi first #define se second #define endl '\n' #define lc (pos+1) #define rc (pos+2*(mid-l+1)) #define mid ((l+r)/2) ll n, m, d; ll a [MAXN]; void solve(){ cin >> n; for(ll i = 1; i <= (n*(n-1))/2; i++){ ll x, y; cin >> x >> y; a[x]++, a[y]++; if(a[x] == n-1 || a[y] == n-1) cout << "yes" << endl; else cout << "no" << endl; } } int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); // ll t; cin >> t; // while(t--){ solve(); // } }

Compilation message (stderr)

/usr/bin/ld: /tmp/cchDUfST.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc9HADoW.o:game.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cchDUfST.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