Getting input as 0 from stdin in code chef IDE

Every time I’m taking input from stdin it is reading as 0 in code chef ide, but it is working correct in vs code.
Can anyone tell me why it is reading as 0.
Because of this issue i was unable to submit my solution in yesterday’s competition

#include < iostream >
using namespace std;

int main() {
// your code goes here

int t;
scanf("%d",&t);

while(t--){
    long long num;
    cin>>num;
    
    cout<<num<<endl;
}

return 0;

}