fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define PP( expr ) std::cout<<#expr<<" "<<expr<<std::endl;
  5.  
  6. int main() {
  7. // your code goes here
  8. int i = 42;
  9. float f = 3.14;
  10.  
  11. PP(i);
  12. PP(f);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
i 42
f 3.14