fork(3) download
  1. k,y,x,h;f(v,l)char**v;{
  2. k=y=x=h=0; //these are here because they are global variables and they change through tests
  3. h=strlen(v[0]);x=strcspn(v[0],"S");while(y<l,x<h)if(v[y][x]==69)return 0;else if(v[y][x+1]!=61)x++;else{if(v[y+1][x]==61)while(k<4)if(v[y+1][x-++k]!=61){x-=k;break;}y++;}return 1;}
  4.  
  5. main(){
  6. char*v1[]={
  7. " S=",
  8. "E= ="};
  9. printf("1 %s\n",f(v1,5)==0?"ye":"nu");
  10. }
Runtime error #stdin #stdout 0s 2152KB
stdin
Standard input is empty
stdout
Standard output is empty