제출 #948500

#제출 시각아이디문제언어결과실행 시간메모리
948500vjudge1밀림 점프 (APIO21_jumps)C++17
컴파일 에러
0 ms0 KiB
#include "jumps.h"

#include <bits/stdc++.h>

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) {
  if (A > D) return -1;
  return 1;
}

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

jumps.cpp:6:1: error: 'vector' does not name a type
    6 | vector<int> h;
      | ^~~~~~
jumps.cpp: In function 'void init(int, std::vector<int>)':
jumps.cpp:9:10: error: 'h' was not declared in this scope
    9 |   n = N, h = H;
      |          ^