Submission #560113

#TimeUsernameProblemLanguageResultExecution timeMemory
560113armashkaRainforest Jumps (APIO21_jumps)C++17
Compilation error
0 ms0 KiB
int n, a[200005]; void init(int N, int[] H) { n = N; for (int i = 1; i <= n; ++ i) { a[i] = H[i - 1]; } } int minimum_jumps(int A, int B, int C, int D) { return 0; }

Compilation message (stderr)

jumps.cpp:3:24: error: expected ',' or '...' before 'H'
    3 | void init(int N, int[] H) {
      |                        ^
jumps.cpp: In function 'void init(int, int*)':
jumps.cpp:6:10: error: 'H' was not declared in this scope
    6 |   a[i] = H[i - 1];
      |          ^