fork download
  1. pii comb(pii a, pii b) {
  2. /* {the number that remains, count of the number} */
  3. if (a.f == b.f) { return mp(a.f, a.s+b.s); }
  4. if (a.s > b.s) {
  5. return mp(a.f, a.s-b.s);
  6. }
  7. return mp(b.f, b.s-a.s);
  8. }
  9.  
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: 'pii' does not name a type
 pii comb(pii a, pii b) {
 ^
stdout
Standard output is empty