记录详情

Compile Error

foo.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
foo.cc: In function 'int main()':
foo.cc:6:1: error: 'scanf' was not declared in this scope
    6 | scanf("%d%d",&n,&Q);
      | ^~~~~
foo.cc:10:1: error: 'printf' was not declared in this scope
   10 | printf("%d\n",s[r]-s[l-1]);
      | ^~~~~~
foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #include
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
【模板】序列前缀和
语言
C++
递交时间
2022-07-16 18:14:46
评测时间
2022-07-16 18:14:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes