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);
^