foo.cc: In function 'int main()':
foo.cc:13:20: warning: unused variable 'maxn' [-Wunused-variable]
13 | long n,i,j,x,y,l,k,maxn;
| ^~~~
foo.cc: At global scope:
foo.cc:38:1: error: 'maxn' does not name a type; did you mean 'main'?
38 | maxn=f[k];
| ^~~~
| main
foo.cc:39:1: error: 'cout' does not name a type
39 | cout<<k;//先输出起始点
| ^~~~
foo.cc:40:1: error: 'k' does not name a type
40 | k=suf[k];
| ^
foo.cc:41:1: error: expected unqualified-id before 'while'
41 | while(k!=0)//向后的链表
| ^~~~~
foo.cc:46:1: error: 'cout' does not name a type
46 | cout<<endl;
| ^~~~
foo.cc:47:1: error: 'cout' does not name a type
47 | cout<<maxn<<endl;
| ^~~~
foo.cc:48:1: error: expected unqualified-id before 'return'
48 | return 0;
| ^~~~~~
foo.cc:49:1: error: expected declaration before '}' token
49 | }
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务