/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:18: error: 'true' undeclared (first use in this function)
   for (int n = 1;true;n++) {
                  ^~~~
foo.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:18: error: expected expression before 'double'
       sum += 1.0/double(i);
                  ^~~~~~
foo.c:4:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&k);
   ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1127 级数求和
语言
C
递交时间
2021-11-24 21:36:05
评测时间
2021-11-24 21:36:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes