foo.c:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
foo.c:4:1: warning: return type defaults to 'int' [-Wimplicit-int]
main()
^~~~
foo.c: In function 'main':
foo.c:11:20: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
x=(long)((n-d)*pow(10,8)+0.5);
^~~
foo.c:11:20: warning: incompatible implicit declaration of built-in function 'pow'
foo.c:11:20: note: include '<math.h>' or provide a declaration of 'pow'
foo.c:21:5: warning: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
getch();
^~~~~
getc
foo.c:9:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf",&n);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务