제출 #399212

#제출 시각아이디문제언어결과실행 시간메모리
399212daanolav카니발 티켓 (IOI20_tickets)C++14
컴파일 에러
0 ms0 KiB
#include <iostream> #include <vector> /* 2 3 2 0 2 5 1 1 3 */ using namespace std; #define INF 1<<29 #define MAXN 301 #define MAXM 301 typedef vector<int> vi; typedef vector<vi> vvi; int n,m,k,temp; vvi x; long find_maximum(int k, vvi x) { return 1; } void allocate_tickets(vvi s) { } /* int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cin >> n >> m >> k; for(int i = 0; i < n; ++i) { x.push_back(vi()); for(int j = 0; j < m; ++j) { cin >> temp; x[i].push_back(temp); } } cout << find_maximum(k,x); return 0; } */

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

/tmp/ccoH2ncf.o: In function `allocate_tickets(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)':
grader.cpp:(.text+0x1f0): multiple definition of `allocate_tickets(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)'
/tmp/ccwSXQDL.o:tickets.cpp:(.text+0x10): first defined here
collect2: error: ld returned 1 exit status