제출 #1283234

#제출 시각아이디문제언어결과실행 시간메모리
1283234LM1Festival (IOI25_festival)C++20
컴파일 에러
0 ms0 KiB
#include "festival.h" #include <cassert> #include <cstdio> std::vector<int> max_coupons(int A, std::vector<int> P, std::vector<int> T) { return {}; } int main() { int N, A; assert(2 == scanf("%d %d", &N, &A)); std::vector<int> P(N), T(N); for (int i = 0; i < N; i++) assert(2 == scanf("%d %d", &P[i], &T[i])); fclose(stdin); std::vector<int> R = max_coupons(A, P, T); int S = R.size(); printf("%d\n", S); for (int i = 0; i < S; i++) printf("%s%d", (i == 0 ? "" : " "), R[i]); printf("\n"); fclose(stdout); return 0; }

컴파일 시 표준 에러 (stderr) 메시지

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