0_0_21098420_19301.cpp: In function 'int main(int, char**)': 0_0_21098420_19301.cpp:21:23: error: cannot convert 'double' to 'void*' for argument '1' to 'void* memset(void*, int, size_t)' memset(a,0,sizeof(q)); ^