记录详情

Time Exceeded

foo.c: In function ‘main’:
foo.c:5:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    5 |         for (i = 1;i++;);
      |         ^~~
foo.c:6:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    6 |         {
      |         ^
foo.c:8:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    8 |                 for (j = 1; j <= i / 2; j++);
      |                 ^~~
foo.c:9:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    9 |                 {
      |                 ^
foo.c:4:17: warning: unused variable ‘sum’ [-Wunused-variable]
    4 |         int i,j,sum=0;
      |                 ^~~
foo.c:5:21: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
    5 |         for (i = 1;i++;);
      |                    ~^~
foo.c:5:20: note: within this loop
    5 |         for (i = 1;i++;);
      |                    ^
# 状态 耗时 内存占用
#1 Time Exceeded ≥1067ms ≥288.0 KiB

信息

递交者
类型
自测
题目
A3-1 素数专题:因子的和
语言
C
递交时间
2024-08-19 19:02:38
评测时间
2024-08-19 19:02:38
评测机
分数
0
总耗时
≥1067ms
峰值内存
≥288.0 KiB