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)提供评测服务