#include <iostream>
#include <cmath> // Uses ::log, which would be the log() here if it were not in a namespace, see http://stackoverflow.com/questions/11892976/why-is-my-log-in-the-std-namespace
// Silently overrides std::log
//double log(double d) { return 420; }
namespace uniquename {
using namespace std; // So we don't have to waste space on std:: when not needed.
double log ( double d) {
return 42 ;
}
int main( ) {
cout << "Our log: " << log ( 4.2 ) << endl;
cout << "Standard log: " << std:: log ( 4.2 ) ;
return 0 ;
}
}
// Global wrapper for our contained code.
int main( ) {
return uniquename:: main ( ) ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+ICAvLyBVc2VzIDo6bG9nLCB3aGljaCB3b3VsZCBiZSB0aGUgbG9nKCkgaGVyZSBpZiBpdCB3ZXJlIG5vdCBpbiBhIG5hbWVzcGFjZSwgc2VlIGh0dHA6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvMTE4OTI5NzYvd2h5LWlzLW15LWxvZy1pbi10aGUtc3RkLW5hbWVzcGFjZQoKLy8gU2lsZW50bHkgb3ZlcnJpZGVzIHN0ZDo6bG9nCi8vZG91YmxlIGxvZyhkb3VibGUgZCkgeyByZXR1cm4gNDIwOyB9CgpuYW1lc3BhY2UgdW5pcXVlbmFtZSB7Cgl1c2luZyBuYW1lc3BhY2Ugc3RkOyAgLy8gU28gd2UgZG9uJ3QgaGF2ZSB0byB3YXN0ZSBzcGFjZSBvbiBzdGQ6OiB3aGVuIG5vdCBuZWVkZWQuCgkKCWRvdWJsZSBsb2coZG91YmxlIGQpIHsKCQlyZXR1cm4gNDI7Cgl9CgkKCWludCBtYWluKCkgewoJCWNvdXQgPDwgIk91ciBsb2c6ICIgPDwgbG9nKDQuMikgPDwgZW5kbDsKCQljb3V0IDw8ICJTdGFuZGFyZCBsb2c6ICIgPDwgc3RkOjpsb2coNC4yKTsKCQlyZXR1cm4gMDsKCX0KfQoKLy8gR2xvYmFsIHdyYXBwZXIgZm9yIG91ciBjb250YWluZWQgY29kZS4KaW50IG1haW4oKSB7CglyZXR1cm4gdW5pcXVlbmFtZTo6bWFpbigpOwp9