제출 #746154

#제출 시각아이디문제언어결과실행 시간메모리
7461547as__7밀림 점프 (APIO21_jumps)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define all(x) x.begin(),x.end() int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n,q; cin >> n >> q; vector<int>v(n); for (int i = 0; i < n; i++) { cin >> v[i]; } init(n, v); while (q--) { cout << minimum_jumps(1, 1, 1, 1) << endl; } }

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

jumps.cpp: In function 'int32_t main()':
jumps.cpp:14:5: error: 'init' was not declared in this scope; did you mean 'int'?
   14 |     init(n, v);
      |     ^~~~
      |     int
jumps.cpp:16:17: error: 'minimum_jumps' was not declared in this scope
   16 |         cout << minimum_jumps(1, 1, 1, 1) << endl;
      |                 ^~~~~~~~~~~~~