diff --git a/greedy_algorithms/jumpgame.cpp b/greedy_algorithms/jumpgame.cpp index f61e93d13..2c33b9141 100644 --- a/greedy_algorithms/jumpgame.cpp +++ b/greedy_algorithms/jumpgame.cpp @@ -3,7 +3,9 @@ Each element in the array represents your maximum jump length at that position. Determine if you are able to reach the last index.*/ -#include +#include +#include +using namespace std; bool canJump(vector& nums) { int lastPos = nums.size() - 1; for (int i = nums.size() - 1; i >= 0; i--) {