For this Question: Given a morse code, Your task is to figure out the exact words from it.
Morse Code Dictionary : 
dict = {".-": "A", "-...": "B", "-.-.": "C", "-..": "D", ".": "E", "..-.": "F", "--.": "G", "....": "H", "..": "I", ".---": "J", "-.-": "K", ".-..", "L": "--", "M": "-.", "N": "---", "O": ".--.": "P", "--.-": "Q", ".-.": "R", "...": "S", "-": "T", "..-": "U", "...-": "V", ".--": "W", "-..-": "X", "-.--": "Y", "--..": "Z"};

<img src="https://maker.pro/storage/sKEFbex/sKEFbexA2iF4ZvxgtvPaWXGHxMiwohU6FvxJgkCC.jpeg" height="100px" width="100px">The first line of the input contains the morse string.

<b>Constraints </b>
1<= Total Words <= 1000Print the English Alphabets from the given codeSample Input 1:
<pre>
.-- --- --.- - . .-. -..-
</pre>
Sample Output 1:
WOQTERX, I have written this Solution Code: /**
 *      Author : tourist1256
 *      Time   : 2022-01-18 01:39:40
 **/

#include <bits/stdc++.h>

using namespace std;

#ifdef LOCAL
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define debug(...) 2351
#endif

float calculateSD(vector<float> a, int n) {
    float sum = 0.0, mean, SD = 0.0;
    for (int i = 0; i < n; ++i) {
        sum += a[i];
    }
    mean = sum / n;
    for (int i = 0; i < n; ++i) {
        SD += pow(a[i] - mean, 2);
    }
    return sqrt(SD / n);
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    // Morse Code
    {
        char str[100000];
        cin.getline(str, sizeof(str), '\n');
        string temp = "";
        vector<string> words;
        for (int i = 0; str[i] != '\0'; i++) {
            if (str[i] == ' ') {
                if (temp.length() > 0) {
                    words.push_back(temp);
                }
                temp = "";
            } else {
                temp += str[i];
            }
        }
        if (temp.length() > 0) {
            words.push_back(temp);
        }
        // debug(words);
        map<string, string> dict = {
            {".-", "A"},
            {"-...", "B"},
            {"-.-.", "C"},
            {"-..", "D"},
            {".", "E"},
            {"..-.", "F"},
            {"--.", "G"},
            {"....", "H"},
            {"..", "I"},
            {".---", "J"},
            {"-.-", "K"},
            {".-..", "L"},
            {"--", "M"},
            {"-.", "N"},
            {"---", "O"},
            {".--.", "P"},
            {"--.-", "Q"},
            {".-.", "R"},
            {"...", "S"},
            {"-", "T"},
            {"..-", "U"},
            {"...-", "V"},
            {".--", "W"},
            {"-..-", "X"},
            {"-.--", "Y"},
            {"--..", "Z"}};
        for (auto &it : words) {
            cout << dict[it];
        }
        cout << "\n";
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?