记录详情

Time Exceeded

/in/foo.c: In function 'main':
/in/foo.c:8:22: warning: statement with no effect [-Wunused-value]
   for (i = 1; i++; i <= n)
                    ~~^~~~
/in/foo.c:10:15: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
  sum = sum + (pow(10, i) - 1) / 9;
               ^~~
/in/foo.c:10:15: warning: incompatible implicit declaration of built-in function 'pow'
/in/foo.c:10:15: note: include '<math.h>' or provide a declaration of 'pow'
/in/foo.c:8:16: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
   for (i = 1; i++; i <= n)
               ~^~
/in/foo.c:8:3: note: within this loop
   for (i = 1; i++; i <= n)
   ^~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1004ms ≥276.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2024-12-01 09:34:41
评测时间
2024-12-01 09:34:41
评测机
分数
0
总耗时
≥1004ms
峰值内存
≥276.0 KiB