Submission #553738

# Submission time Handle Problem Language Result Execution time Memory
553738 2022-04-26T18:00:00 Z Zhora_004 Rainforest Jumps (APIO21_jumps) C++17
Compilation error
0 ms 0 KB
#include "jumps.h"

#include <vector>

using namespace std;
int n;
vector<int> h;

void init(int N, std::vector<int> H) {
	n = N;
	h = H;
}

int minimum_jumps(int A, int B, int C, int D) {
	return c - b;
}

Compilation message

jumps.cpp: In function 'int minimum_jumps(int, int, int, int)':
jumps.cpp:15:9: error: 'c' was not declared in this scope
   15 |  return c - b;
      |         ^
jumps.cpp:15:13: error: 'b' was not declared in this scope
   15 |  return c - b;
      |             ^