记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:5: error: 'cin' undeclared (first use in this function)
    6 |     cin>>k;
      |     ^~~
foo.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:13: error: expected ';' before 's'
    9 |         n+=1
      |             ^
      |             ;
   10 |         s+=1.0/n;
      |         ~    
foo.c:14:13: error: expected ';' before '}' token
   14 |     return 0
      |             ^
      |             ;
   15 | }
      | ~            
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1001 级数求和
语言
C
递交时间
2022-08-20 01:21:12
评测时间
2022-08-20 01:21:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes