#include <iostream> using namespace std; int main() { while (false) { int i = 3; } i = 2; //no, this will not work return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:7:7: warning: unused variable ‘i’ [-Wunused-variable] int i = 3; ^ prog.cpp:9:2: error: ‘i’ was not declared in this scope i = 2; //no, this will not work ^
Standard output is empty