need help CHSERVE

#include
using namespace std;
int main()
{
int t;
int p1,p2,k;
cin>>t;
while(t–)
{
cin>>p1;
cin>>p2;
cin>>k;
if(p1>0)
{
p1%k==0;
cout<<“CHEF\n”;
}
else
cout<<“COOK\n”;
}
return 0;
}
what is the problem with this code

According to codechef rules it is not allowed to post answer of live events.
Delete your answer.

Hi,

Please read the below statement again and again.

“You are given the current number of points scored by Chef and Cook (P1 and P2 respectively). Find out whether Chef or Cook has to serve next.”

and for the information 3rd sample output is wrong.