记录详情

Compile Error

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

信息

递交者
类型
递交
题目
挖地雷
语言
C++
递交时间
2021-12-25 02:02:48
评测时间
2021-12-25 02:02:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes