Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
#include
#include
#include
using namespace std; int main() { string text = "hello"; map
count; for (char c : text) { count[c]++; } for (auto item : count) { cout << item.first << ": " << item.second << "\n"; } return 0; }
e: 1
h: 1
l: 2
o: 1