fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int y = 1;
  6. int x = (y=1/0, 2);
  7. std::cout << x << std::endl;
  8. //std::cout << y << std::endl;
  9. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
2