/in/foo.c: In function 'main':
/in/foo.c:33:5: warning: implicit declaration of function 'Hanoi' [-Wimplicit-function-declaration]
Hanoi(0,1,1,k);
^~~~~
/in/foo.c:34:29: error: 'count' undeclared (first use in this function)
printf("共移动%d次",count);
^~~~~
/in/foo.c:34:29: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c: At top level:
/in/foo.c:44:5: error: redefinition of 'main'
int main()
^~~~
/in/foo.c:29:5: note: previous definition of 'main' was here
int main()
^~~~