fork download
  1. bool isallPalyerDead() {
  2. return p1->dead && p2->dead;
  3. }
  4.  
  5. // so !isallPalyerDead() mean :
  6. !(p1->dead && p2->dead) == !p1->dead || !p1->dead
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘bool isallPalyerDead()’:
prog.cpp:2:12: error: ‘p1’ was not declared in this scope
     return p1->dead && p2->dead;
            ^~
prog.cpp:2:24: error: ‘p2’ was not declared in this scope
     return p1->dead && p2->dead;
                        ^~
prog.cpp: At global scope:
prog.cpp:6:2: error: expected unqualified-id before ‘!’ token
  !(p1->dead && p2->dead) == !p1->dead || !p1->dead
  ^
stdout
Standard output is empty