1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/compile_errors/div_by_zero.zok
2022-04-06 20:23:58 +02:00

4 lines
117 B
Text

def main(field input) -> field {
field divisor = [input, 0] != [input, 1] ? 0 : 1;
return input / divisor;
}