Help me in solving RCPITCP149 problem

My issue

include <stdio.h>

int main() {
int N, m;

    scanf("%d %d", & N, & m);

    int result = 1;
    for (int i = 0; i < m; i++) {
            result *= N;
    }

    printf("%d", result);

    return 0;

}
decode the code

My code

#include <stdio.h>

int main() {
        int N, m;

        scanf("%d %d", & N, & m);

        int result = 1;
        for (int i = 0; i < m; i++) {
                result *= N;
        }

        printf("%d", result);

        return 0;
}

Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC22/problems/RCPITCP149