Submission #746154

#TimeUsernameProblemLanguageResultExecution timeMemory
7461547as__7Rainforest Jumps (APIO21_jumps)C++17
Compilation error
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; } }

Compilation message (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;
      |                 ^~~~~~~~~~~~~