Result

WA

Duration

556ms

Code [DL]

(module(import"env""memory"(memory 8192))(func(export"main")
i32.const 4096
call $m
set_local $a
i32.const 4105
call $m
get_local $a
i32.sub
set_local $d
i32.const 4114
call $m
get_local $a
i32.sub
set_local $g
i32.const 4123
call $m
get_local $a
i32.sub
set_local $j
i32.const 4099
call $m
set_local $a
i32.const 4108
call $m
get_local $a
i32.sub
set_local $e
i32.const 4117
call $m
get_local $a
i32.sub
set_local $h
i32.const 4126
call $m
get_local $a
i32.sub
set_local $k
i32.const 4102
call $m
set_local $a
i32.const 4120
call $m
get_local $a
i32.sub
set_local $i
i32.const 4129
call $m
get_local $a
i32.sub
set_local $l
i32.const 4111
call $m
get_local $a
i32.sub
get_local $g
get_local $k
i32.mul
get_local $j
get_local $h
i32.mul
i32.sub
i32.mul
get_local $h
get_local $l
i32.mul
get_local $k
get_local $i
i32.mul
i32.sub
get_local $d
i32.mul
i32.add
get_local $i
get_local $j
i32.mul
get_local $l
get_local $g
i32.mul
i32.sub
get_local $e
i32.mul
i32.add
i32.const 6
i32.div_u
set_local $a
i32.const 7
set_local $i(block $r(loop $s
get_local $i
get_local $a
get_local $a
i32.const 10
i32.div_s
i32.const 10
i32.mul
i32.sub
i32.const 48
i32.add
i32.store8
get_local $a
i32.const 10
i32.div_u
set_local $a
get_local $i
i32.eqz
br_if $r
get_local $i
i32.const 1
i32.sub
set_local $i
br $s))i32.const 0)(func $m(param $i i32)(result i32)get_local $i
i32.load8_s
i32.const 48
i32.sub
i32.const 10
i32.mul
i32.const 1
get_local $i
i32.add
i32.load8_s
i32.const 48
i32.sub
i32.add))

stdin

42 90 11
21 48 89
51 10 03
58 02 83

stdout

stderr

/tmp/code.wat:4:11: error: undefined local variable "$a"
set_local $a
          ^^
/tmp/code.wat:7:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:9:11: error: undefined local variable "$d"
set_local $d
          ^^
/tmp/code.wat:12:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:14:11: error: undefined local variable "$g"
set_local $g
          ^^
/tmp/code.wat:17:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:19:11: error: undefined local variable "$j"
set_local $j
          ^^
/tmp/code.wat:22:11: error: undefined local variable "$a"
set_local $a
          ^^
/tmp/code.wat:25:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:27:11: error: undefined local variable "$e"
set_local $e
          ^^
/tmp/code.wat:30:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:32:11: error: undefined local variable "$h"
set_local $h
          ^^
/tmp/code.wat:35:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:37:11: error: undefined local variable "$k"
set_local $k
          ^^
/tmp/code.wat:40:11: error: undefined local variable "$a"
set_local $a
          ^^
/tmp/code.wat:43:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:45:11: error: undefined local variable "$i"
set_local $i
          ^^
/tmp/code.wat:48:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:50:11: error: undefined local variable "$l"
set_local $l
          ^^
/tmp/code.wat:53:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:55:11: error: undefined local variable "$g"
get_local $g
          ^^
/tmp/code.wat:56:11: error: undefined local variable "$k"
get_local $k
          ^^
/tmp/code.wat:58:11: error: undefined local variable "$j"
get_local $j
          ^^
/tmp/code.wat:59:11: error: undefined local variable "$h"
get_local $h
          ^^
/tmp/code.wat:63:11: error: undefined local variable "$h"
get_local $h
          ^^
/tmp/code.wat:64:11: error: undefined local variable "$l"
get_local $l
          ^^
/tmp/code.wat:66:11: error: undefined local variable "$k"
get_local $k
          ^^
/tmp/code.wat:67:11: error: undefined local variable "$i"
get_local $i
          ^^
/tmp/code.wat:70:11: error: undefined local variable "$d"
get_local $d
          ^^
/tmp/code.wat:73:11: error: undefined local variable "$i"
get_local $i
          ^^
/tmp/code.wat:74:11: error: undefined local variable "$j"
get_local $j
          ^^
/tmp/code.wat:76:11: error: undefined local variable "$l"
get_local $l
          ^^
/tmp/code.wat:77:11: error: undefined local variable "$g"
get_local $g
          ^^
/tmp/code.wat:80:11: error: undefined local variable "$e"
get_local $e
          ^^
/tmp/code.wat:85:11: error: undefined local variable "$a"
set_local $a
          ^^
/tmp/code.wat:87:11: error: undefined local variable "$i"
set_local $i(block $r(loop $s
          ^^
/tmp/code.wat:88:11: error: undefined local variable "$i"
get_local $i
          ^^
/tmp/code.wat:89:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:90:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:99:11: error: undefined local variable "$a"
get_local $a
          ^^
/tmp/code.wat:102:11: error: undefined local variable "$a"
set_local $a
          ^^
/tmp/code.wat:103:11: error: undefined local variable "$i"
get_local $i
          ^^
/tmp/code.wat:106:11: error: undefined local variable "$i"
get_local $i
          ^^
/tmp/code.wat:109:11: error: undefined local variable "$i"
set_local $i
          ^^
fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/tmp/code.wasm'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.<anonymous> (/root/wasm-cli.js:8:17)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
rm: can't remove '/tmp/code.wasm': No such file or directory

strace