For this Question: Given a string s, Find total number of characters excluding spaces.First line of the input contains the string s.

<b>Constraints</b>
1 <= s. size() <= 10<sup>5</sup>Print number of characters excluding spaceSample Input 1:
newton School

Sample Output 1:
12, 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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    {
        char str[100000];
        cin.getline(str, sizeof(str), '\n');
        int cnt = 0;
        for (int i = 0; str[i] != '\0'; i++) {
            if (str[i] == ' ') {
                continue;
            } else {
                cnt += 1;
            }
        }
        cout << cnt << "\n";
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?