0_0_20844475_24966.cpp: In function 'int main()': 0_0_20844475_24966.cpp:21:11: error: 'i' was not declared in this scope for(i=0;i<n;i++) ^