제출 #1319399

#제출 시각아이디문제언어결과실행 시간메모리
1319399lrnnz마술쇼 (APIO24_show)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "Alice.h" using namespace std; #define ll long long #define pb push_back vector<pair<int,int>> Alice(){ ll n = 100; ll x = setN(n); vector<pair<int,int>> tree; for (int i = 1; i < n; i++) { tree.pb({i+1, x % i + 1}); } return tree; }
#include <bits/stdc++.h> #include "Alice.h" using namespace std; #define ll long long #define pb push_back vector<pair<int,int>> Alice(){ ll n = 100; ll x = setN(n); vector<pair<int,int>> tree; for (int i = 2; i < n; i++) { tree.pb({i+1, x % i + 1}); } return tree; }

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

# 2번째 컴파일 단계

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