/* * @topic T00024 Feb 14, 2013 -- arithmetic if operator * @brief *** This sample will not compile *** */ #include <iostream> int main() { int value = 1; if ( value > 0 ) { int dummy = value * 100; } else { int dummy = -1; } std::cout << dummy << "\n"; // Error: undefined variable dummy return 0; }