제출 #1227534

#제출 시각아이디문제언어결과실행 시간메모리
1227534lance0Gap (APIO16_gap)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll st1(ll N) { vector<ll> small, large; ll x = 0, y = 1e18; while (x < y) { MinMax(x, y, x, y); small.push_back(x); large.push_back(y); } for (int i = large.size()-1; i >= 0; i--) { small.push_back(large[i]); } ll ans = 0; for (int i = 0; i < small.size()-1; i++) { ans = max(ans, small[i+1]-small[i]); } return ans; } ll findGap(ll T, ll N) { if (T == 1) { return st1(N); } else { return st2(N); } }

컴파일 시 표준 에러 (stderr) 메시지

gap.cpp: In function 'll st1(ll)':
gap.cpp:8:17: error: 'MinMax' was not declared in this scope
    8 |                 MinMax(x, y, x, y);
      |                 ^~~~~~
gap.cpp: In function 'll findGap(ll, ll)':
gap.cpp:25:24: error: 'st2' was not declared in this scope; did you mean 'std'?
   25 |                 return st2(N);
      |                        ^~~
      |                        std