记录详情

Compile Error

foo.cc:2:5: error: 'cin' does not name a type
     cin>>n;
     ^~~
foo.cc:3:5: error: expected unqualified-id before 'for'
     for(int i=1;i<=n;i++)
     ^~~
foo.cc:3:17: error: 'i' does not name a type
     for(int i=1;i<=n;i++)
                 ^
foo.cc:3:22: error: 'i' does not name a type
     for(int i=1;i<=n;i++)
                      ^
foo.cc:9:5: error: 'f' does not name a type
     f[1]=a[1];
     ^
foo.cc:11:5: error: expected unqualified-id before 'for'
     for(int i=2;i<=n;i++)
     ^~~
foo.cc:11:17: error: 'i' does not name a type
     for(int i=2;i<=n;i++)
                 ^
foo.cc:11:22: error: 'i' does not name a type
     for(int i=2;i<=n;i++)
                      ^
foo.cc:30:5: error: 'cout' does not name a type
     cout<<len;
     ^~~~
foo.cc:31:1: error: expected declaration before '}' token
 }
 ^
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1204 水滴
语言
C++
递交时间
2021-03-13 20:35:07
评测时间
2021-03-13 20:35:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes