0_0_36619089_8211.cpp: In function 'int main()': 0_0_36619089_8211.cpp:26:24: error: 'cnt' was not declared in this scope for(int j=1;j<=cnt&&i*p[j]<=n;j++) ^