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