1 2 3 4 5 6 | int main() { goto lol; int x = 0; lol: return 0; } |
aW50IG1haW4oKSB7CiAgIGdvdG8gbG9sOwogICBpbnQgeCA9IDA7CmxvbDoKICAgcmV0dXJuIDA7Cn0=
prog.cpp: In function ‘int main()’: prog.cpp:4: error: jump to label ‘lol’ prog.cpp:2: error: from here prog.cpp:3: error: crosses initialization of ‘int x’ prog.cpp:3: warning: unused variable ‘x’
-
result: Compilation error (maybe you wish to see an example for C++ 4.7.2)


