secret.cpp: In function 'void Init(int, int*)':
secret.cpp:10:19: error: invalid conversion from 'int (*)[1024]' to 'size_t' {aka 'long unsigned int'} [-fpermissive]
10 | memset(calc, -1, calc);
| ^~~~
| |
| int (*)[1024]
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:518,
from /usr/include/c++/10/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from secret.cpp:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: initializing argument 3 of 'void* memset(void*, int, size_t)'
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~
secret.cpp: In function 'int Query(int, int)':
secret.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type]
32 | }
| ^