Main.c:1:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
include
^
Main.c: In function ‘isPrime’:
Main.c:8:17: warning: implicit declaration of function ‘sqrt’ [-Wimplicit-function-declaration]
for(int i=2;i<=sqrt(x);i++)
^~~~
Main.c:8:17: warning: incompatible implicit declaration of built-in function ‘sqrt’
Main.c:8:17: note: include ‘’ or provide a declaration of ‘sqrt’
Main.c: In function ‘main’:
Main.c:19:8: error: ‘cin’ undeclared (first use in this function); did you mean ‘main’?
while(cin>>n)
^~~
main
Main.c:19:8: note: each undeclared identifier is reported only once for each function it appears in
Main.c:34:3: error: ‘cout’ undeclared (first use in this function)
cout<