dna.cpp: In function 'int main()':
dna.cpp:8:47: error: invalid conversion from 'int' to 'void*' [-fpermissive]
8 | int a[n + 1], b[n + 1], ccnt[n + 1]; memset(cnt, 0, sizeof(ccnt));
| ^~~
| |
| int
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 dna.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: initializing argument 1 of 'void* memset(void*, int, size_t)'
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~
dna.cpp:7:10: warning: unused variable 'k' [-Wunused-variable]
7 | int n, k, cnt;
| ^