For this Question: In sheet each row is assigne as a string as shown:-
 A - > 1
 B - > 2
 C - > 3
. .
 Z - > 26
 AA - > 27
 AB - > 28 

Given the string S, your task is to find its row number.Input contains a single line containing the string S.

Constraints:-
1 < = |S| < = 100000

Note:- String will only contain uppercase english lettersPrint a single integer containing the row number since the ans can be quite large print you ans modulo 10^9 + 7.Sample Input:-
AB

Sample Output:-
28

Sample Input:-
A

Sample Output:-
1, I have written this Solution Code: 
#include <bits/stdc++.h>


using namespace std;

#define MEM(a, b) memset(a, (b), sizeof(a))

#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)

#define IN(A, B, C) assert( B <= A && A <= C)

#define MP make_pair
#define FOR(i,a) for(int i=0;i<a;i++)

#define FOR1(i,j,a) for(int i=j;i<a;i++)

#define EB emplace_back

#define INF (int)1e9

#define EPS 1e-9

#define PI 3.1415926535897932384626433832795
#define max1 10001
#define MOD 1000000007

#define read(type) readInt<type>()

#define out(x) cout<<x<<'\n'
#define out1(x) cout<<x<<" "
#define END cout<<'\n'
#define int long long
void fast(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}

signed  main()
{


string s;
cin>>s;
int ans=0;
FOR(i,s.length()){
ans*=26;
ans+=s[i]-'A'+1;
ans%=MOD;
}
out(ans);



}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?