0_0_36420755_7693.cpp: In function 'void getprime()': 0_0_36420755_7693.cpp:15:13: error: 'prime' was not declared in this scope prime[cnt++] = i ; ^