/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:29:10: error: 'scanf' was not declared in this scope
   29 |   while (scanf("%d", &x)==1) a[++n]=x;
      |          ^~~~~
foo.cc:32:3: error: 'printf' was not declared in this scope
   32 |   printf("%d\n", best);
      |   ^~~~~~
foo.cc:3:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
    2 | #include <algorithm>
  +++ |+#include <cstdio>
    3 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1303 导弹拦截
语言
C++
递交时间
2023-08-19 21:02:32
评测时间
2023-08-19 21:02:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes