Submission #948500

#TimeUsernameProblemLanguageResultExecution timeMemory
948500vjudge1Rainforest Jumps (APIO21_jumps)C++17
Compilation error
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; }

Compilation message (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;
      |          ^