제출 #993222

#제출 시각아이디문제언어결과실행 시간메모리
993222dagii마술쇼 (APIO24_show)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include "Alice.h" #define pii pair<int, int> #define all(v) v.begin(), v.end() using namespace std; using ll=long long; ll setN(ll n) { ll x; cin >> x; return x; } std::vector<std::pair<int,int>> Alice() { ll x = setN(5000); vector<pii> tree; for(int i=1; i<5000; i++) tree.push_back({x%i+1, i+1}); sort(all(tree)); return tree; }

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

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