记录详情

Compile Error

foo.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
foo.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
foo.c: In function 'main':
foo.c:6:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 | scanf("%d%d",&n,&Q);
      | ^~~~~
foo.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
foo.c:10:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 | printf("%d\n",s[r]-s[l-1]);
      | ^~~~~~
foo.c:10:1: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:10:1: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务

信息

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