prog.c: In function 'main':
prog.c:8:2: warning: implicit declaration of function 'isPrimeNumber' [-Wimplicit-function-declaration]
if(isPrimeNumber(songuyento)){
^
prog.c: In function 'isPrimeNumber':
prog.c:21:3: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
long b = (long)sqrt(a);//trong 1 chuong trinh kiem tra so nguyen t thi chi can kiem tra tu 2 -> can bac 2 cua so do
^
prog.c:21:18: warning: incompatible implicit declaration of built-in function 'sqrt'
long b = (long)sqrt(a);//trong 1 chuong trinh kiem tra so nguyen t thi chi can kiem tra tu 2 -> can bac 2 cua so do
^
prog.c:22:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(long i=2; i <b ; i++){
^
prog.c:22:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
prog.c:26:4: error: 'else' without a previous 'if'
else{
^
prog.c: At top level:
prog.c:31:1: error: expected identifier or '(' before '}' token
}
^