#include using namespace std; int foo() { return 0; } int main() { int x = 3; if (int x = foo()) { x = 1; } else { x = 2; } cout << "x = " << x << endl; return 0; }