제출 #746076

#제출 시각아이디문제언어결과실행 시간메모리
746076MuntherCarrot밀림 점프 (APIO21_jumps)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "jumps.h"
using namespace std;
// #define ll long long
// #define endl '\n'
// #define all(x) x.begin(),x.end()
// const int MOD = 1e9 + 7, SZ = 1e5 + 10, MX = 1e9;
void init(int n, int arr[]){

}
int minimum_jumps(int a, int b, int c, int d){
    return c - b;
}
// int32_t main(){
//     ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
//     int n, q;
//     cin >> n >> q;
//     int arr[n];
//     for(int &i : arr)
//         cin >> i;
//     init(n, arr);
//     while(q--){
//         int a, b, c, d;
//         cin >> a >> b >> c >> d;
//         cout << minimum_jumps(a, b, c, d) << endl;
//     }
//     return 0;
// }

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

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