prog.c: In function ‘main’:
prog.c:12:34: error: ‘i’ undeclared (first use in this function)
printf("case 2: %d\n", i); /* i is recognized as unknown identifier */
^
prog.c:12:34: note: each undeclared identifier is reported only once for each function it appears in