CARDIAC › rust-cardiac › Message codes › RCE0021
RCE0021error
skip_cards() given the wrong arguments.
error[RCE0021]: skip_cards() takes the number of cards: skip_cards(n)
error[RCE0021]: skip_cards({n}): n is 0 to 999
skip_cards(n) called with something other than a number of cards from 0 to 999.
skip_cards(n) reads n cards and drops them, as for _ in 0..n { inp(); } does, with a jump into a row of INP instructions. The row covers 0 to 999 cards.
Give it one number, 0 to 999.
let n = inp();
skip_cards(n);
In a terminal: cargo cardiac help RCE0021.