제출 #632069

#제출 시각아이디문제언어결과실행 시간메모리
6320694123xr4323수천개의 섬 (IOI22_islands)C++17
컴파일 에러
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; }

컴파일 시 표준 에러 (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