0_0_15146575_32018.cpp: In function 'int main()': 0_0_15146575_32018.cpp:39:38: error: 'n' was not declared in this scope for(int i=0;i<num&&prime[i]<=n;i++) ^