Problem:
Score : 100 points

Problem Statement

Given is a lowercase English letter C that is not z. Print the letter that follows C in alphabetical order.

Constraints

C is a lowercase English letter that is not z.

Input

Input is given from Standard Input in the following format:

C

Output

Print the letter that follows C in alphabetical order.

Sample Input 1

a

Sample Output 1

b

a is followed by b.

Sample Input 2

y

Sample Output 2

z

y is followed by z.

Solution in C (Clang 3.8.0) (judge verdict: Runtime Error)

#include <stdio.h>
#include<string.h>

typedef long long ll;

int main(void){
    ll n, m;

    scanf("%lld %lld", &n, &m);

    ll p[m+1];
    char s[10];
    ll a[n+1], w[n+1];
    ll adda=0, addw=0;
    char *ac = "AC";

    for(int i=0;i<n+1;i++){
        a[i]=0;
        w[i]=0;
    }

    for(int i=1;i<m+1;i++){
        scanf("%lld %s",&p[i], s);
        if(strcmp(s,ac)==0){
            a[p[i]] = 1;
        }else if(a[p[i]]==0){
            w[p[i]]++;
        }
    }

    for(int i=0;i<m+1;i++){
        adda += a[i];
        addw += w[i];
    }

    printf("%d %d", adda, addw);

    return 0;
}