제출 #553738

#제출 시각아이디문제언어결과실행 시간메모리
553738Zhora_004밀림 점프 (APIO21_jumps)C++17
컴파일 에러
0 ms0 KiB
#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;
}

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

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;
      |             ^