Submission #569029

#TimeUsernameProblemLanguageResultExecution timeMemory
569029kikokiRainforest Jumps (APIO21_jumps)C++17
Compilation error
0 ms0 KiB
#include "jumps.h" #include <bits/stdc++.h> using namespace std; int n; vector <int> a; void init(int N, vector<int> H) { n = N; a = H; } int minimum_jumps(int A, int B, int C, int D) { if (b < c) { return c - b; } else { return -1; } }

Compilation message (stderr)

jumps.cpp: In function 'int minimum_jumps(int, int, int, int)':
jumps.cpp:17:6: error: 'b' was not declared in this scope
   17 |  if (b < c)
      |      ^
jumps.cpp:17:10: error: 'c' was not declared in this scope
   17 |  if (b < c)
      |          ^