0_0_21630044_24202.cpp:5:11: error: '::main' must return 'int' void main() ^ 0_0_21630044_24202.cpp: In function 'int main()': 0_0_21630044_24202.cpp:19:29: error: 'memset' was not declared in this scope memset(ary,0,sizeof(ary)); ^