0_0_37899010_10935.cpp: In function 'int main()': 0_0_37899010_10935.cpp:14:17: error: 'n' was not declared in this scope for(int i=1;i<n;i++) ^ 0_0_37899010_10935.cpp:24:18: error: 'n' was not declared in this scope for(int i=0;i<n;i++) ^