Submission #569823

#TimeUsernameProblemLanguageResultExecution timeMemory
569823DarkMatterRainforest Jumps (APIO21_jumps)C++14
Compilation error
0 ms0 KiB
#include "jumps.h" #include <vector> void init(int N, std::vector<int> H) { } int minimum_jumps(Cint A, int B, int C, int D) { return C - B; }

Compilation message (stderr)

jumps.cpp:9:19: error: 'int minimum_jumps' redeclared as different kind of entity
    9 | int minimum_jumps(Cint A, int B, int C, int D) {
      |                   ^~~~
In file included from jumps.cpp:1:
jumps.h:4:5: note: previous declaration 'int minimum_jumps(int, int, int, int)'
    4 | int minimum_jumps(int A, int B, int C, int D);
      |     ^~~~~~~~~~~~~
jumps.cpp:9:19: error: 'Cint' was not declared in this scope; did you mean 'int'?
    9 | int minimum_jumps(Cint A, int B, int C, int D) {
      |                   ^~~~
      |                   int
jumps.cpp:9:27: error: expected primary-expression before 'int'
    9 | int minimum_jumps(Cint A, int B, int C, int D) {
      |                           ^~~
jumps.cpp:9:34: error: expected primary-expression before 'int'
    9 | int minimum_jumps(Cint A, int B, int C, int D) {
      |                                  ^~~
jumps.cpp:9:41: error: expected primary-expression before 'int'
    9 | int minimum_jumps(Cint A, int B, int C, int D) {
      |                                         ^~~