/ Vijos /

记录详情

Compile Error

foo.cc:9:14: error: expected ')' before 'x'
    9 | inline LL (LL x){return (x>0)?x:-x;}
      |           ~  ^~
      |              )
foo.cc: In function 'int main()':
foo.cc:23:4: error: 'scanf' was not declared in this scope
   23 |    scanf("%lld%lld%lld",&n,&m,&S);
      |    ^~~~~
foo.cc:28:30: error: 'abs' was not declared in this scope; did you mean 'ans'?
   28 |      t=Solve();  ans=min(ans,abs(t));
      |                              ^~~
      |                              ans
foo.cc:31:5: error: 'printf' was not declared in this scope
   31 |     printf("%lldn",ans);
      |     ^~~~~~
foo.cc:3:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
    2 | #include<cstring>
  +++ |+#include <cstdio>
    3 | #define N 200010
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2022-08-10 16:59:05
评测时间
2022-08-10 16:59:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes