fork(2) download
  1. #include <iostream>
  2.  
  3.  
  4. #define Round(x) (x > 0) ? (int) (x + 0.5) : (int) (x - 0.5)
  5.  
  6.  
  7. int main() {
  8. std::cout << Round(0.7) << std::endl;
  9. }
Compilation error #stdin compilation error #stdout 0s 3296KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:34: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
  std::cout << Round(0.7) << std::endl; 
                                  ^
stdout
Standard output is empty