1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/arrays/cube.zok
2022-06-28 19:23:45 +02:00

13 lines
241 B
Text

def main(field[2][2][2] cube) -> field {
field mut res = 0;
for u32 i in 0..2 {
for u32 j in 0..2 {
for u32 k in 0..2 {
res = res + cube[i][j][k];
}
}
}
return res;
}