#include "cpp_headers/fcpp.hh" bool deck_check(int deck[], int n) { for (int i = 0; i < n; i++) { // compare deck with number at this position // because initial deck is [0,1,2,3,..., n-1] if (deck[i] != i) { // if a difference is found, return false return false; } } // if no problem was found, deck is the original deck return true; } int main() { // query the amount of cards that should be shuffled int size = enter_int("How many cards do you want to be shuffled? "); // only shuffle even number of cards if (size <= 0, size % 2 != 0) { print("Invalid input, please enter an even number >= 2"); return 0; } // initialize the deck of cards int deck[size]; for (int i = 0; i