For this Question: Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(101)=1+0+1=2.
Given an integer N, determine if S(N) divides N.The input consists of a single integer.
N

<b>Constraints</b>
1&le;N&le;10^9If S(N) divides N, print Yes; if it does not, print No.<b>Sample Input 1</b> 
12
<b>Sample Output 1</b> 
Yes

<b>Sample Input 2</b> 
101
<b>Sample Output 2</b> 
No

<b>Sample Input 3</b> 
999999999
<b>Sample Output 3</b> 
Yes, I have written this Solution Code: #include <bits/stdc++.h>
 
using namespace std;
 
int main(){
	int n;
	cin>>n;
	
	int x = n;
	int ans = 0;
	
	while(x){
		ans += x%10;
		x /= 10;	
	}
	
	if(n % ans == 0)
		cout<<"Yes";
	else
		cout<<"No";
	return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?