Runtime Error NZEC in C code

#include <stdio.h>

void main()
{
int i;
int j;
int count = 1;
int n;
scanf("%d",&n);
if (n == 1) {
printf(“2”);
}
else {
for(i = 3; i < 1000; i++) {
for(j = i-1; j > 1; j–) {
if(i%j == 0) {
break;
}
if(i%j != 0 && j == 2) {
count++;
if(count == n) {
printf("%d",i);
}
}
}
}
}
}

use int main and return 0

//