Submission #569016

#TimeUsernameProblemLanguageResultExecution timeMemory
569016kikokiRainforest 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; } ll minimum_jumps(int A, int B, int C, int D) { ll cnt = 0, cur = A; if (A < C) { for (ll i = A; i <= C; i++) { if (a[cur] >= a[C]) { return -1; } if (a[cur] < a[i]) { cur = i; cnt++; } } return cnt; } else { for (ll i = A; i >= C; i--) { if (a[cur] >= a[C]) { return -1; } if (a[cur] < a[i]) { cur = i; cnt++; } } return cnt; } return -1; }

Compilation message (stderr)

jumps.cpp:16:1: error: 'll' does not name a type
   16 | ll minimum_jumps(int A, int B, int C, int D)
      | ^~