Unable to take inputs

Guys I am new to codechef and I’m unable to take input in any language can anyone please help me out with this problem

link: https://www.codechef.com/LRNDSA01/submit/TEST

#include <stdio.h>

int main(void) {
int n;

while(1)
{
    	scanf("%d",&n);
    if(n!=42)
    {
        printf("%d\n",n);
    }
    else
    {
        break;
    }
}
return 0;

}

Still its not working

show what r u upto

Try this:
#include

using namespace std;

int main(){

long long int n;

while(cin>>n){

    if(n!=42) cout<<n<<endl;

    else return 0;

}

return 0;

}