prog.cpp:7:2: error: stray ‘#’ in program
}#include<bits/stdc++.h>
^
prog.cpp:7:3: error: ‘include’ does not name a type
}#include<bits/stdc++.h>
^~~~~~~
prog.cpp: In function ‘int main()’:
prog.cpp:9:5: error: redefinition of ‘int main()’
int main()
^~~~
prog.cpp:4:5: note: ‘int main()’ previously defined here
int main() {
^~~~
prog.cpp:21:26: error: ‘sqrt’ was not declared in this scope
for(i=2;i<=sqrt(n);i++){
^