/in/foo.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
main(){
^~~~
/in/foo.c: In function 'main':
/in/foo.c:6:8: error: incompatible type for argument 1 of 'scanf'
scanf(x,n)
^
In file included from /usr/include/features.h:364:0,
from /usr/include/stdio.h:27,
from /in/foo.c:1:
/usr/include/stdio.h:448:12: note: expected 'const char * restrict' but argument is of type 'double'
extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
^
/in/foo.c:7:1: error: expected ';' before 'result'
result=pow(x,n);
^~~~~~