Submission #1054336

#TimeUsernameProblemLanguageResultExecution timeMemory
1054336GangstaRainforest Jumps (APIO21_jumps)C++14
4 / 100
596 ms1964 KiB
#include <bits/stdc++.h> #define pb push_back using namespace std; const int N = 2e5 + 1; bool sub1 = 0; int minimum_jumps(int A, int B, int C, int D){ if(sub1 == 0){ return C-B; } } void init(int n, vector <int> h){ for(int i = 1; i <= n; i++){ if(h[i] != i+1) sub1 = 1; } } // int main(){ // int n, q; // vector <int> v; // cin >> n; // for(int i = 0; i < n; i++){ // int x; // cin >> x; // v.pb(x); // } // init(n, v); // cin >> q; // while(q--){ // int a, b, c, d; // cin >> a >> b >> c >> d; // } // }

Compilation message (stderr)

jumps.cpp: In function 'int minimum_jumps(int, int, int, int)':
jumps.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...