Submission #679158

#TimeUsernameProblemLanguageResultExecution timeMemory
679158tigarGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "gap.h" using namespace std; typedef long long ll; ll mn, mx; ll findGap(T, N) { if(T==1) { ll up_bound=LONG_LONG_MAX, low_bound=0; MinMAx(low_bound, up_bound, &mn, &mx); ll a=mn, b=mx; ll razlika=0; while(mn!=-1 and up_bound>=low_bound) { MinMAx(low_bound, up_bound, &mn, &mx); razlika=max(razlika, max(mn-a, b-mx)); low_bound=mn+1; up_bound=mx-1; } return razlika; } }

Compilation message (stderr)

gap.cpp:10:12: error: 'T' was not declared in this scope
   10 | ll findGap(T, N)
      |            ^
gap.cpp:10:15: error: 'N' was not declared in this scope
   10 | ll findGap(T, N)
      |               ^
gap.cpp:10:16: error: expression list treated as compound expression in initializer [-fpermissive]
   10 | ll findGap(T, N)
      |                ^