Code doesn't work

code does not output anything
any help would be appreciated

link to code

hello @pewpiyu

your code was correct.
u forgot to comment cin>>t;

My code doesnt show any output in sublime
also when i was using cin for ‘t’ i put that in input too.

this should work now