fork download
  1. def test(search,target):
  2. last_pos = 0
  3. next_pos = 0
  4. while True:
  5. last_pos = search.find(target,next_pos)
  6. if last_pos == -1:
  7. return last_pos
  8.  
  9.  
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Mozart Compiler 1.4.0 (20080704) playing Oz 3

%%% feeding file prog.oz

%*************************** parse error ************************
%**
%** syntax error, unexpected ':', expecting T_ENDOFFILE
%**
%** in file "./prog.oz", line 1, column 23
%** ------------------ rejected (1 error)
stdout
Standard output is empty