#include "../test.h" oriented_cube_t compose_oriented(oriented_cube_t, oriented_cube_t); void run(void) { char str[STRLENMAX]; oriented_cube_t c1, c2, c3; fgets(str, STRLENMAX, stdin); c1 = readcube(str); fgets(str, STRLENMAX, stdin); c2 = readcube(str); c3 = compose_oriented(c1, c2); if (iserror(c3)) { printf("Error composing cubes\n"); } else if (!issolvable(c3)) { printf("Composed cube is not solvable\n"); } else { writecube(c3, NISSY_SIZE_CUBE, str); printf("%s\n", str); } }