Language: C++

#include<bits/stdc++.h>
using namesapce std;
int main()
{
	char a,b,c,d;
	int a1,b1,c1,d1;
	cin>>a>>b>>c>>d;
	a1=a-'0'; 
	b1=b-'0'; 
	c1=c-'0'; 
	d1=d-'0'; 
	if(a11+b11+c11+d11==7)
	{
    	cout<<a1<<"+"<<b1<<"+"<<c1<<"+"<<d1<<"=7"<<endl;
	}
	if(a1+b1+c1-d1==7)
	{
    	cout<<a1<<"-"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<endl;
	}
	if(a1+b1-c1+d1==7)
	{
	    cout<<a1<<"+"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<endl;
	}
	if(a1-b1+c1+d1==7)
	{
    	cout<<a1<<"-"<<b1<<"+"<<c1<<"+"<<d1<<"=7"<<endl;
	}
	if(a1-b1+c1-d1==7)
	{
    	cout<<a1<<"-"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<endl;
	}
	if(a1+b1-c1-d1==7)
	{
	    cout<<a1<<"+"<<b1<<"-"<<c1<<"-"<<d1<<"=7"<<endl;
	}
	if(a1-b1-c1-d1==7)
	{
	    cout<<a1<<"-"<<b1<<"-"<<c1<<"-"<<d1<<"=7"<<endl;
	}
	return 0;
} 

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>a>>b>>c>>d;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:12: error: 'a11' was not declared in this scope; did you mean 'a1'?
   12 |         if(a11+b11+c11+d11==7)
      |            ^~~
      |            a1
a.cc:12:16: error: 'b11' was not declared in this scope; did you mean 'b1'?
   12 |         if(a11+b11+c11+d11==7)
      |                ^~~
      |                b1
a.cc:12:20: error: 'c11' was not declared in this scope; did you mean 'c1'?
   12 |         if(a11+b11+c11+d11==7)
      |                    ^~~
      |                    c1
a.cc:12:24: error: 'd11' was not declared in this scope; did you mean 'd1'?
   12 |         if(a11+b11+c11+d11==7)
      |                        ^~~
      |                        d1
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout<<a1<<"+"<<b1<<"+"<<c1<<"+"<<d1<<"=7"<<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:14:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout<<a1<<"+"<<b1<<"+"<<c1<<"+"<<d1<<"=7"<<endl;
      |                                                    ^~~~
      |                                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         cout<<a1<<"-"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<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:18:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         cout<<a1<<"-"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<endl;
      |                                                    ^~~~
      |                                                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:22:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |             cout<<a1<<"+"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<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:22:56: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |             cout<<a1<<"+"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<endl;
      |                                                        ^~~~
      |                                                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |         cout<<a1<<"-"<<b1<<"+"<<c1<<"+"<<d1<<"=7"<<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:26:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |         cout<<a1<<"-"<<b1<<"+"<<c1<<"+"<<d1<<"=7"<<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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   30 |         cout<<a1<<"-"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<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:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   30 |         cout<<a1<<"-"<<b1<<"+"<<c1<<"-"<<d1<<"=7"<<endl;
      |                                                    ^~~~
      |                                                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:34:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   34 |             cout<<a1<<"+"<<b1<<"-"<<c1<<"-"<<d1<<"=7"<<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:34:56: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   34 |             cout<<a1<<"+"<<b1<<"-"<<c1<<"-"<<d1<<"=7"<<endl;
      |                                                        ^~~~
      |                                                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:38:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   38 |             cout<<a1<<"-"<<b1<<"-"<<c1<<"-"<<d1<<"=7"<<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:38:56: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   38 |             cout<<a1<<"-"<<b1<<"-"<<c1<<"-"<<d1<<"=7"<<endl;
      |                                                        ^~~~
      |                                                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~