记录详情

Compile Error

/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;
      |                          ^~~~~~~~~~~~

信息

递交者
类型
自测
语言
C++
递交时间
2025-02-22 19:28:52
评测时间
2025-02-22 19:28:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes