Help me in solving CHEFGRD problem

My issue

sol.c: In function ‘main’:
sol.c:4:4: error: ‘cin’ undeclared (first use in this function)
4 | cin>>t;
| ^~~
sol.c:4:4: note: each undeclared identifier is reported only once for each function it appears in
sol.c:8:19: error: ‘count’ undeclared (first use in this function)
8 | if((x+y)&1)count<<“1\n”;
| ^~~~~

My code

#include <stdio.h>
int main() {
   int t;
   cin>>t;
   while(t--){
       int n,x,y;
       cin>>n>>x>>y;
       if((x+y)&1)count<<"1\n";
       else count<<"0\n";
   }
return 0;
}


Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP302/problems/CHEFGRD