제출 #982767

#제출 시각아이디문제언어결과실행 시간메모리
982767vjudge1Game (APIO22_game)C++17
컴파일 에러
0 ms0 KiB
#include "game.h" // #pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math") // #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define f first #define s second #define fore(i,a,b) for(int i = (a), ThxMK = (b); i < ThxMK; ++i) #define pb push_back #define all(s) begin(s), end(s) #define _ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define sz(s) int(s.size()) #define ENDL '\n' using namespace std; typedef long double ld; typedef long long lli; typedef pair<lli,lli> ii; typedef vector<lli> vi; typedef vector<ii> vii; #define deb(x) cout << #x": " << (x) << endl; lli N, K; void init(lli n, lli k){ N = n, K = k; } int add_teleporter(lli u, lli v){ if (v < u) return 1; else return 0; } // int main(){ _ // // freopen("file.in","r",stdin); // // freopen("file.out","w",stdout); // lli n, m, k; cin >> n >> m >> k; // init(n, k); // fore(i,0,m){ // lli a, b; cin >> a >> b; // cout << a << ' ' << b << ' '; // if (add_teleporter(a, b)) {cout << 1 << ENDL; return 0; } // else cout << 0 << ENDL; // } // return 0; // }

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

/usr/bin/ld: /tmp/cclfzf7U.o: in function `main':
stub.cpp:(.text.startup+0x64): undefined reference to `init(int, int)'
/usr/bin/ld: stub.cpp:(.text.startup+0xda): undefined reference to `add_teleporter(int, int)'
collect2: error: ld returned 1 exit status