tw4162.pp 211 B

123456789101112
  1. Var
  2. S: ansistring;
  3. SS: shortstring;
  4. Begin
  5. SS := 'find';
  6. SetLength(S, 300);
  7. S := S + SS;
  8. Writeln(Pos(SS, S)); // This will not find the occurance of 'find'
  9. if pos(ss,s)<>301 then
  10. halt(1);
  11. End.