fork download
  1. <>;
  2. # Translate to Perl and evaluate:
  3. eval join ';',
  4. map {
  5. s {(?=\b[a-z]\b)} '$'g;
  6. s {\b int} 'local'x; # local(izing) on stack until block ends
  7. s {(print.*)} {$1,"\n"};
  8. $_
  9. } <STDIN>
Success #stdin #stdout 0s 3564KB
stdin
10
int a 
int x
{
a=50
int a
a=60
x=a
print x
}
print a
stdout
60
50