fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b;
  6. a = 1;
  7. b = 1;
  8. std::cout << b << '\n';
  9. int c = a ? b-- : b++;
  10. std::cout << b << '\n';
  11. // your code goes here
  12. return 0;
  13. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
1
0