prog.cpp:1:1: error: ‘include’ does not name a type
include <bits/stdc++>
^~~~~~~
prog.cpp: In function ‘int main()’:
prog.cpp:9:5: error: ‘cin’ was not declared in this scope
cin>>n;
^~~
prog.cpp:19:5: error: ‘cout’ was not declared in this scope
cout<<x;
^~~~