#include <iostream> #define Round(x) (x > 0) ? (int) (x + 0.5) : (int) (x - 0.5) int main() { std::cout << Round(0.7) << std::endl; }
Standard input is empty
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;
^
Standard output is empty