/in/foo.cc:5:1: error: expected ',' or ';' before 'double'
5 | double ans = 0.0000;
| ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:19: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'long long int' [-Wformat=]
14 | scanf("%lld", x);
| ~~~^ ~
| | |
| | long long int
| long long int*
/in/foo.cc:15:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
15 | ans = calculate(x);
| ^~~
| abs
/in/foo.cc:16:26: error: 'setpricision' was not declared in this scope
16 | cout << fixed << setpricision(4) << ans << endl;
| ^~~~~~~~~~~~