fork download
  1. var s: string;
  2. j: integer;
  3. ch: char;
  4. begin
  5. s:='';
  6. repeat
  7. read(ch);
  8. s:=s+ch;
  9. until ch='/';
  10. for j:=1 to length(s)-1 do
  11. if ((s[j]='н') and (s[j+1]='н')) then delete(s,j,1);
  12. Write(s);
  13. end.
  14. 2
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 1
    var s: string;
        ^
SyntaxError: invalid syntax

stdout
Standard output is empty