Submission #1196982

#TimeUsernameProblemLanguageResultExecution timeMemory
1196982b00legenMagic Show (APIO24_show)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; vector<pair<int, int> > Alice(){ ll x = setN(5000); vector<pair<int, int> >res; for (int i = 1; i <= 5000; i++) { if (x == i) continue; else res.push_back({i, x}); } return res; }
#include <bits/stdc++.h> using namespace std; using ll = long long; ll Bob(vector<pair<int, int> >V) { int cnt[5001]; for (int i = 0; i <= 5000; i++) cnt[i] = 0; for (size_t i = 0; i < V.size(); i++) { cnt[V[i].first]++; cnt[V[i].second]++; } ll res = 0; for (int i = 1; i <= 5000; i++) if (cnt[res] < cnt[i]) res = i; return res; }

Compilation message (stderr)

# 1번째 컴파일 단계

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:6:16: error: 'setN' was not declared in this scope
    6 |         ll x = setN(5000);
      |                ^~~~