Help me in solving GSCP16 problem time limit exceeded

My issue time limit exceeded

My code

// Debug the given code

#include <stdio.h>

int main() {
    int t;
    int N;
    int i = 1;
    scanf("%d", &t );
    while ( i <= t) 
        scanf("%d", &N);
        printf("%d\n", 2*N );
        i = i+1;
  return 0;
}

Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

You should put code inside white in curly braces, below code will work. See curly brace after while statement.

#include <stdio.h>

int main() {
    int t;
    int N;
    int i = 1;
    scanf("%d", &t );
    while ( i <= t)  {
        scanf("%d", &N);
        printf("%d\n", 2*N );
        i = i+1;
    }
  return 0;
}