#include #include #include int main() { int d=0; char a,*b,*c,*e; b=&a; b=malloc (10000000*sizeof(char)); c=b; if(b==NULL) { printf("ne e"); return 0; } while (scanf("%c",c)==1) c++; *c=0; e=*c; c=b; while(1) { c=strstr (c,"God"); if(c==NULL) break; d++; c++; } printf("d: %d\n",d); free(b); return 0; }