Language: C++

#include<stdio.h>
#include <iostream>
#include<string>
#include<algorithm>
#include<sstream>
#include<math.h>
using namespaec std;
int main() {
	/*
	int n, a, b;
	cin >> n >> a >> b;
	cout << min(n*a, b) << endl;
	*/
	int n;
	cin >> n;
	int num = 0;
	stringstream ss;
	string s;
	ss << n;
	ss >> s;
	int size = s.size();
	for (int i = 0; i < size; i++) {
		stringstream ss1;
		ss << s[i];
		int a = 0;
		ss >> a;
		num += a;
	}
	if (n%num == 0)cout << "Yes"<<endl;
	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc:7:7: error: expected nested-name-specifier before 'namespaec'
    7 | using namespaec std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:15:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   15 |         cin >> n;
      |         ^~~
      |         std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:9: error: 'stringstream' was not declared in this scope; did you mean 'std::stringstream'?
   17 |         stringstream ss;
      |         ^~~~~~~~~~~~
      |         std::stringstream
In file included from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/iosfwd:158:41: note: 'std::stringstream' declared here
  158 |   typedef basic_stringstream<char>      stringstream;
      |                                         ^~~~~~~~~~~~
a.cc:18:9: error: 'string' was not declared in this scope
   18 |         string s;
      |         ^~~~~~
a.cc:18:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:19:9: error: 'ss' was not declared in this scope
   19 |         ss << n;
      |         ^~
a.cc:20:15: error: 's' was not declared in this scope
   20 |         ss >> s;
      |               ^
a.cc:23:29: error: expected ';' before 'ss1'
   23 |                 stringstream ss1;
      |                             ^~~~
      |                             ;
a.cc:29:24: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |         if (n%num == 0)cout << "Yes"<<endl;
      |                        ^~~~
      |                        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:29:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   29 |         if (n%num == 0)cout << "Yes"<<endl;
      |                                       ^~~~
      |                                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:30:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   30 |         else cout << "No" << endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:30:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   30 |         else cout << "No" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~