Submission #632069

#TimeUsernameProblemLanguageResultExecution timeMemory
6320694123xr4323Thousands Islands (IOI22_islands)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define mp make_pair #define all(a) a.begin(),a.end() #define X first #define Y second using namespace std; using pii = pair <long long, long long>; constexpr int maxn = 2e5 + 10; constexpr int mod = 1000002022; constexpr long long inf = 1e17 + 10; int n, m; vector <pii> graph [maxn]; int g [444][444]; variant <bool, vector <int>> find_journey (int N, int M, vector <int> U, vector <int> V) { n = N, m = M; if (n == 2) return false; for (int i = 0; i < m; ++i) { graph[U[i]].push_back (mp (V[i], i)); g[U[i]][V[i]] = i; } vector <int> res = {g[0][1], g[1][0], g[0][2], g[2][0], g[1][0], g[0][1], g[2][0], g[0][2]}; return res; } int main () { return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cccmQK9Z.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccrX6nK2.o:islands.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status