0_0_39659257_491.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include <iostream>
| ^
0_0_39659257_491.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
2 | #include <cstring>
| ^
0_0_39659257_491.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
3 | #include <algorithm>
| ^
0_0_39659257_491.cpp: In function 'int main()':
0_0_39659257_491.cpp:17:15: error: 'scanf' was not declared in this scope
17 | while(scanf("%d %d",&n,&m)!=EOF){
| ^~~~~
0_0_39659257_491.cpp:17:37: error: 'EOF' was not declared in this scope
17 | while(scanf("%d %d",&n,&m)!=EOF){
| ^~~
0_0_39659257_491.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | #include <iostream>
0_0_39659257_491.cpp:21:25: error: expected primary-expression before ')' token
21 | sort(a,a+n,Rule1);
| ^
0_0_39659257_491.cpp:21:9: error: 'sort' was not declared in this scope; did you mean 'short'?
21 | sort(a,a+n,Rule1);
| ^~~~
| short
0_0_39659257_491.cpp:23:17: error: 'printf' was not declared in this scope
23 | printf("%d",a[i]);
| ^~~~~~
0_0_39659257_491.cpp:23:17: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
|