For this Question: Given a string, your task is to calculate the number of different characters in that string.The first line of the input contains length of string. Second line contains String.

Constraints
1 <= string length <= 100
String contains only lowercase english lettersOutput a single integer which is the number of different character in the string.Sample Input
3
abc

Sample Output
3

Sample Input
7
asbscsb

Sample Output
4, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
string s;
cin>>s;
unordered_map<int,int> m;
for(int i=0;i<n;i++){
m[s[i]]++;
}
cout<<m.size();}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?