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)提供评测服务