#include <stdio.h> int main(void) { for (int i=0; i<10; ++i); //<== printf("yeah right %d\n", i); return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:6:29: error: ‘i’ was not declared in this scope
printf("yeah right %d\n", i);
^
Standard output is empty