0_0_31118373_32689.c: In function 'main':
0_0_31118373_32689.c:6:11: error: 'cin' undeclared (first use in this function)
while(cin>>n && n!=0)
^
0_0_31118373_32689.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
0_0_31118373_32689.c:8:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<n;i++)
^
0_0_31118373_32689.c:8:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_31118373_32689.c:12:17: error: redefinition of 'i'
for(int i=0;i<n;i++)
^
0_0_31118373_32689.c:8:17: note: previous definition of 'i' was here
for(int i=0;i<n;i++)
^
0_0_31118373_32689.c:12:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<n;i++)
^
0_0_31118373_32689.c:15:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=i+1;j<n;j++)
^
0_0_31118373_32689.c:25:17: error: redefinition of 'i'
for(int i=0;i<n;i++)
^
0_0_31118373_32689.c:12:17: note: previous definition of 'i' was here
for(int i=0;i<n;i++)
^
0_0_31118373_32689.c:25:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<n;i++)
^
0_0_31118373_32689.c:28:22: error: 'cout' undeclared (first use in this function)
cout<<a[i]<<endl;
^
0_0_31118373_32689.c:28:34: error: 'endl' undeclared (first use in this function)
cout<<a[i]<<endl;
^
|