#include #include #include #include #include struct CStorage; struct CPosition { int32_t _0; int32_t _1; }; extern "C" { CStorage *storage_new(uint32_t grid_size); bool storage_at(const CStorage *storage, int32_t i, int32_t j); void storage_deposit(CStorage *storage, int32_t i, int32_t j, uint8_t val); CPosition walk(uint32_t d, int32_t i, int32_t j); } // extern "C"