0_0_21701344_9834.cpp: In function 'int main()': 0_0_21701344_9834.cpp:17:21: error: 'n' was not declared in this scope scanf("%d",&n); ^ 0_0_21701344_9834.cpp:19:30: error: 'sqrt' was not declared in this scope for(int j=1;j<=sqrt(n);j++) ^