제출 #465808

#제출 시각아이디문제언어결과실행 시간메모리
465808habibaissaHandcrafted Gift (IOI20_gift)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #define int long long using namespace std; vector<vector<int> > l; vector<int> memo; int test=0; vector<set<int> > res; void craft (string s); int construct(int n, int r, int a, int b, int x) { string s; for(int i=0;i<n;i++) { s.push_back('B'); } craft(s); return 1; }

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

/usr/bin/ld: /tmp/ccE2GtRf.o: in function `construct(long long, long long, long long, long long, long long)':
gift.cpp:(.text+0x10c): undefined reference to `craft(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: /tmp/ccnw0U8h.o: in function `main':
grader.cpp:(.text.startup+0x272): undefined reference to `construct(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status