Help me in solving SQUIRREL problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin t;
	while(t--){
	    //idk pls help
	}
	return 0;
}

Problem Link: SQUIRREL Problem - CodeChef