记录详情

Compile Error

/in/foo.cc:2:5: error: 'cin' does not name a type
     cin>>n;
     ^~~
/in/foo.cc:3:5: error: expected unqualified-id before 'for'
     for(int i=1;i<=n;i++)
     ^~~
/in/foo.cc:3:17: error: 'i' does not name a type
     for(int i=1;i<=n;i++)
                 ^
/in/foo.cc:3:22: error: 'i' does not name a type
     for(int i=1;i<=n;i++)
                      ^
/in/foo.cc:9:5: error: 'f' does not name a type
     f[1]=a[1];
     ^
/in/foo.cc:11:5: error: expected unqualified-id before 'for'
     for(int i=2;i<=n;i++)
     ^~~
/in/foo.cc:11:17: error: 'i' does not name a type
     for(int i=2;i<=n;i++)
                 ^
/in/foo.cc:11:22: error: 'i' does not name a type
     for(int i=2;i<=n;i++)
                      ^
/in/foo.cc:30:5: error: 'cout' does not name a type
     cout<<len;
     ^~~~
/in/foo.cc:31:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1204 水滴
语言
C++
递交时间
2021-01-31 11:56:19
评测时间
2021-01-31 11:56:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes