prog.cpp: In function ‘int main()’:
prog.cpp:6:11: error: ‘k’ was not declared in this scope
int j=k-1;
^
prog.cpp:7:13: error: ‘n’ was not declared in this scope
while(j<n){
^
prog.cpp:8:9: error: ‘set’ was not declared in this scope
set <int> s;
^~~
prog.cpp:8:14: error: expected primary-expression before ‘int’
set <int> s;
^~~
prog.cpp:10:13: error: ‘s’ was not declared in this scope
s.insert(A[m]);
^
prog.cpp:10:22: error: ‘A’ was not declared in this scope
s.insert(A[m]);
^
prog.cpp:12:15: error: ‘s’ was not declared in this scope
cout<<s.size()<<" ";
^