제출 #1223656

#제출 시각아이디문제언어결과실행 시간메모리
1223656SpyrosAliv육각형 영역 (APIO21_hexagon)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int draw_terrirory(int N, int A, int B, vector<int> D, vector<int> L) { return L[0] * (L[0] + 1) / 2; }

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

/usr/bin/ld: /tmp/cc3WJBgU.o: in function `main':
grader.cpp:(.text.startup+0x220): undefined reference to `draw_territory(int, int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status