fork download
  1. ll add(ll x, ll y) {
  2. x += y;
  3. if (x >= MOD) return x - MOD;
  4. return x;
  5. }
  6. ll sub(ll x, ll y) {
  7. x -= y;
  8. if (x < 0) return x + MOD;
  9. return x;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘ll’ does not name a type
 ll add(ll x, ll y) {
 ^~
prog.cpp:6:1: error: ‘ll’ does not name a type
 ll sub(ll x, ll y) {
 ^~
stdout
Standard output is empty