prog.c: In function ‘main’:
prog.c:7:18: error: ‘d’ undeclared (first use in this function)
scanf("%d", &i);d
^
prog.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
prog.c:8:2: error: expected ‘;’ before ‘for’
for(i=0; i<=x; i++)
^~~