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