/in/foo.c: In function 'judgehuiwenshu':
/in/foo.c:5:13: error: 'num' redeclared as different kind of symbol
5 | int num;
| ^~~
/in/foo.c:3:24: note: previous definition of 'num' with type 'int'
3 | int judgehuiwenshu(int num)
| ~~~~^~~
/in/foo.c:7:12: error: expected '(' before 'reversed'
7 | if reversed(num !=0)
| ^~~~~~~~
| (
/in/foo.c:7:12: error: called object 'reversed' is not a function or function pointer
7 | if reversed(num !=0)
| ^~~~~~~~
/in/foo.c:6:13: note: declared here
6 | int reversed=0;
| ^~~~~~~~
/in/foo.c:7:29: error: expected ';' before '{' token
7 | if reversed(num !=0)
| ^
| ;
8 | {
| ~
/in/foo.c:13:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
13 | if(num=reversed)
| ^~~
/in/foo.c: In function 'main':
/in/foo.c:20:1: error: expected declaration specifiers before 'scanf'
20 | scanf("%d",&x);
| ^~~~~
/in/foo.c:21:1: error: expected declaration specifiers before 'judgehuiwenshu'
21 | judgehuiwenshu(x);
| ^~~~~~~~~~~~~~
/in/foo.c:22:1: error: expected declaration specifiers before 'return'
22 | return 0;
| ^~~~~~
/in/foo.c:23:1: error: expected declaration specifiers before '}' token
23 | }
| ^
/in/foo.c:19:13: error: declaration for parameter 'x' but no such parameter
19 | int x;
| ^
/in/foo.c:31: error: expected '{' at end of input
/in/foo.c: In function 'judgehuiwenshu':
/in/foo.c:17:1: warning: control reaches end of non-void function [-Wreturn-type]
17 | }
| ^