/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d",&n);
      |     ^~~~~
foo.cc:24:5: error: 'printf' was not declared in this scope
   24 |     printf("%d",ans);
      |     ^~~~~~
foo.cc:2:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
    1 | #include<cstdlib>
  +++ |+#include <cstdio>
    2 | int n, arr[4005];
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1236 上帝的爱好
语言
C++
递交时间
2023-12-10 20:24:50
评测时间
2023-12-10 20:24:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes