/ JoyAc /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:24:23: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
   24 |                 memset(a,sizeof(a),0);
      |                 ~~~~~~^~~~~~~~~~~~~~~
foo.cc:25:23: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
   25 |                 memset(b,sizeof(b),0);
      |                 ~~~~~~^~~~~~~~~~~~~~~
foo.cc: In function 'int search(int)':
foo.cc:55:1: warning: no return statement in function returning non-void [-Wreturn-type]
   55 | }
      | ^
foo.cc: In function 'int print()':
foo.cc:64:3: warning: no return statement in function returning non-void [-Wreturn-type]
   64 |   }
      |   ^
foo.cc: In function 'int search(int)':
foo.cc:36:5: warning: infinite recursion detected [-Winfinite-recursion]
   36 | int search(int t)
      |     ^~~~~~
foo.cc:43:23: note: recursive call
   43 |                 search(t+1);
      |                 ~~~~~~^~~~~
foo.cc:52:25: note: recursive call
   52 |              else search(t+1);
      |                   ~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1100ms ≥1.27 MiB
#2 Time Exceeded ≥1099ms ≥1.145 MiB
#3 Time Exceeded ≥1100ms ≥1.188 MiB
#4 Time Exceeded ≥1099ms ≥1.402 MiB
#5 Time Exceeded ≥1100ms ≥1.145 MiB
#6 Time Exceeded ≥1099ms ≥1.41 MiB
#7 Time Exceeded ≥1101ms ≥1.285 MiB
#8 Time Exceeded ≥1101ms ≥1.145 MiB
#9 Time Exceeded ≥1098ms ≥1.332 MiB
#10 Time Exceeded ≥1098ms ≥1.164 MiB

信息

递交者
类型
递交
题目
P1053 素数环
语言
C++
递交时间
2023-11-03 16:59:31
评测时间
2023-11-03 16:59:31
评测机
分数
0
总耗时
≥11000ms
峰值内存
≥1.41 MiB