Submission #1054332

#TimeUsernameProblemLanguageResultExecution timeMemory
1054332GangstaRainforest Jumps (APIO21_jumps)C++14
0 / 100
1 ms344 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){ cout << C-B << '\n'; } } 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: no return statement in function returning non-void [-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...