제출 #474756

#제출 시각아이디문제언어결과실행 시간메모리
474756AnasBenMoussaDetecting Molecules (IOI16_molecules)C++14
컴파일 에러
0 ms0 KiB
#include "molecules.h" #include <bits/stdc++.h> typedef double db ; using namespace std; #define all(x) begin(x), end(x) #define pb push_back #define int long long #define doub(k) printf("%.1lf\n", k) // setprecision(5) typedef pair<int ,int > pll;typedef map<int , int > mll;typedef vector<int > vll;typedef vector<pll>vpll; typedef set<int > sll; const int nx[4] = {0, 0, 1, -1}, ny[4] = {1, -1, 0, 0}; const int dr[8] = {1,1,0,-1,-1,-1, 0, 1}, dc[8] = {0,1,1, 1, 0,-1,-1,-1}; std::vector<int> find_subset(int l, int u, std::vector<int> w) { int df=u-l; int n=w.size(); vector<int>v(df/w[0]); if(df/w[0]>n){ v.pb(0); return v; } else{ for(int i=0;i<df/w[0];i++){ v[i]=i; } } return v; }

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

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