Submission #1084839

#TimeUsernameProblemLanguageResultExecution timeMemory
1084839TimoshMagic Show (APIO24_show)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; // #include "september.h" vector<pair<int, int>> Alice() { vector<pair<int, int>> res; long long x = setN(5000); for (int i = 1; i <= 5000; i++) { if (i != x) res.push_back({i, x}); } return res; }
#include <bits/stdc++.h> using namespace std; long long Bob(vector<pair<int, int>> V) { int mx = 1; map<int, int> mp; for (auto &[x, y] : V) { mp[x]++; mp[y]++; } for (auto &[x, y] : mp) { if (mp[mx] < y) mx = x; } return mx; }

Compilation message (stderr)

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