/in/foo.c: In function 'main':
/in/foo.c:6:2: error: expected ',' or ';' before 'int'
int temp=num;
^~~
/in/foo.c:7:8: error: 'temp' undeclared (first use in this function)
while(temp!=0)
^~~~
/in/foo.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(temp!=0);
^~~~~
/in/foo.c:15:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
{
^
/in/foo.c:16:3: error: 'dight' undeclared (first use in this function)
dight=temp%10;
^~~~~
/in/foo.c:29:2: error: label at end of compound statement
return0:
^~~~~~~
/in/foo.c:29:2: warning: label 'return0' defined but not used [-Wunused-label]