제출 #1054332

#제출 시각아이디문제언어결과실행 시간메모리
1054332Gangsta밀림 점프 (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; // } // }

컴파일 시 표준 에러 (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...