prog.c: In function ‘main’:
prog.c:5:2: error: ‘cin’ undeclared (first use in this function)
cin>>n;
^~~
prog.c:5:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:15:3: error: ‘cout’ undeclared (first use in this function)
cout<<a[(i+k)%n]<<endl;
^~~~
prog.c:15:21: error: ‘endl’ undeclared (first use in this function)
cout<<a[(i+k)%n]<<endl;
^~~~