Submission #404455

#TimeUsernameProblemLanguageResultExecution timeMemory
404455CursedCodeGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include "gap.h"
#include <bits/stdc++.h>

using namespace std;

inr findGap(int t, int n){
  long long L, R;
  MinMax(0LL, 1e18, &L, &R);
  long long x = (R - L + n - 2) / (n - 1);
  long long ans = x;
  long long last = L;
  for(long long i = L + 1; i < R; i += x){
    long long mn, mx;
    MinMax(i, min(i + x - 1, R), &mn, &mx);
    if(mn != -1){
      ans = max(ans, mn - last);
      last = mx;
    }
  }
}

Compilation message (stderr)

gap.cpp:6:1: error: 'inr' does not name a type; did you mean 'int'?
    6 | inr findGap(int t, int n){
      | ^~~
      | int