foo.cc:19:2: error: expected initializer before 'cin'
19 | cin>>N>>M;
| ^~~
foo.cc:21:2: error: expected unqualified-id before 'for'
21 | for(int i = 1; i <= M; i++)
| ^~~
foo.cc:21:17: error: 'i' does not name a type
21 | for(int i = 1; i <= M; i++)
| ^
foo.cc:21:25: error: 'i' does not name a type
21 | for(int i = 1; i <= M; i++)
| ^
foo.cc:25:6: error: expected constructor, destructor, or type conversion before '(' token
25 | sort(p+1,p+M+1,cmp);
| ^
foo.cc:26:2: error: expected unqualified-id before 'for'
26 | for(int i=N,j=M; i>=1; i--)
| ^~~
foo.cc:26:19: error: 'i' does not name a type
26 | for(int i=N,j=M; i>=1; i--)
| ^
foo.cc:26:25: error: 'i' does not name a type
26 | for(int i=N,j=M; i>=1; i--)
| ^
foo.cc:39:2: error: 'cout' does not name a type
39 | cout<<f[1]<<endl;
| ^~~~
foo.cc:40:2: error: expected unqualified-id before 'return'
40 | return 0;
| ^~~~~~
foo.cc:41:1: error: expected declaration before '}' token
41 | }
| ^
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务