제출 #226402

#제출 시각아이디문제언어결과실행 시간메모리
226402AaronNaiduVision Program (IOI19_vision)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void add_and(vector<int> v) { } void add_or(vector<int> v) { } void construct_network(int h, int w, int k) { int totSum = 0; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { for (int x = i; x < h; x++) { for (int y = 0; y < w; y++) { if (abs(i-x) + abs(j-y) == k) { totSum++; add_and({i*w + j, x*w + y}); } } } } } vector<int> last; for (int i = 0; i < totSum; i++) { last.push_back(i + h * w); } add_or(last); }

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

/tmp/cch6DHpS.o: In function `add_and(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x490): multiple definition of `add_and(std::vector<int, std::allocator<int> >)'
/tmp/ccsiLIsW.o:vision.cpp:(.text+0x0): first defined here
/tmp/cch6DHpS.o: In function `add_or(std::vector<int, std::allocator<int> >)':
grader.cpp:(.text+0x810): multiple definition of `add_or(std::vector<int, std::allocator<int> >)'
/tmp/ccsiLIsW.o:vision.cpp:(.text+0x10): first defined here
collect2: error: ld returned 1 exit status