Submission #668413

#TimeUsernameProblemLanguageResultExecution timeMemory
668413mychecksedadInside information (BOI21_servers)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; const int N = 200001; #define pb push_back int n, q; bitset<N> b[N]; void solve(){ cin >> n >> q; q += n - 1; for(int i = 1; i <= n; ++i) b[i][i] = 1; for(int i = 0; i < q; ++i){ char s; cin >> s; if(s == 'S'){ int u, v; cin >> u >> v; b[u] = b[u] | b[v]; b[v] = b[u]; }else if(s == 'Q'){ int u, d; cin >> u >> d; cout << (b[u][d] ? "yes" : "no") << '\n'; }else{ int u; cin >> u; cout << 0 << '\n'; } } } int main(){ solve(); return 0; }

Compilation message (stderr)

/usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
collect2: error: ld returned 1 exit status