fork download
  1. #include <iostream>
  2. using namespace std;
  3. static constexpr bool value = true;
  4. static constexpr int actual_value = value?1:0;
  5. #define MY_FLAG (actual_value)
  6. int main() {
  7. // your code goes here
  8. #if(MY_FLAG==1)
  9. cout<<" 1"<<" "<<MY_FLAG<<endl;
  10. #else
  11. cout<<" 0"<<" "<<MY_FLAG<<endl;
  12. #endif
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
 0 1