Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

Nim

Compiler

nim 1.6.10

Options

Author

anonymous

over 2 years ago

$ nim c ./prog.nim
Hint: used config file '/opt/wandbox/nim-1.6.10/config/nim.cfg' [Conf]
Hint: used config file '/opt/wandbox/nim-1.6.10/config/config.nims' [Conf]
............................................................
CC: ../../opt/wandbox/nim-1.6.10/lib/std/private/digitsutils.nim
CC: ../../opt/wandbox/nim-1.6.10/lib/system/dollars.nim
CC: ../../opt/wandbox/nim-1.6.10/lib/system/io.nim
CC: ../../opt/wandbox/nim-1.6.10/lib/system.nim
CC: prog.nim
Hint:  [Link]
Hint: gc: refc; opt: none (DEBUG BUILD, `-d:release` generates faster code)
28749 lines; 0.366s; 31.668MiB peakmem; proj: /home/jail/prog.nim; out: /home/jail/prog [SuccessX]
set[int8]
set[uint16]
set[range 0..65535(int)]

a1={2, 3, 4, 5, 9}
a2={0, 3, 4, 5, 6, 7}

a1 + a2={0, 2, 3, 4, 5, 6, 7, 9}
a1 * a2={3, 4, 5}
a1 - a2={2, 9}

a1.card=5
a1.len=5
2 in a1=true
a1.contains(2)=true
0 notin a1=true

a2={0, 1, 3, 4, 5, 6, 7, 8, 9, 10}
a2={0, 1, 7, 8, 9, 10}
Exit Code:
0