fork download
  1. int L(int x) {
  2. int lmax = min(x, r);
  3. int lmin = max(1LL, x + r - n);
  4. return lmax - lmin + 1;
  5. }
  6. int C(int x) {
  7. int lmax = min(x, r);
  8. int lmin = max(1LL, x + r - m);
  9. return lmax - lmin + 1;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int L(int)’:
prog.cpp:2:23: error: ‘r’ was not declared in this scope
     int lmax = min(x, r);
                       ^
prog.cpp:2:24: error: ‘min’ was not declared in this scope
     int lmax = min(x, r);
                        ^
prog.cpp:3:33: error: ‘n’ was not declared in this scope
     int lmin = max(1LL, x + r - n);
                                 ^
prog.cpp:3:34: error: ‘max’ was not declared in this scope
     int lmin = max(1LL, x + r - n);
                                  ^
prog.cpp: In function ‘int C(int)’:
prog.cpp:7:23: error: ‘r’ was not declared in this scope
     int lmax = min(x, r);
                       ^
prog.cpp:7:24: error: ‘min’ was not declared in this scope
     int lmax = min(x, r);
                        ^
prog.cpp:8:33: error: ‘m’ was not declared in this scope
     int lmin = max(1LL, x + r - m);
                                 ^
prog.cpp:8:34: error: ‘max’ was not declared in this scope
     int lmin = max(1LL, x + r - m);
                                  ^
stdout
Standard output is empty