Language: C++

#include <iostream>
#include <string>

using namesapce std;

int main()
{
	string s; cin >> s;

  	string t = "";
  	if (s == "Sunny")  t = "Cloudy";
  	if (s == "Cloudy") t = "Rainy";
  	if (s == "Rainy")  t = "Sunny";

  	cout << t << endl;
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string s; cin >> s;
      |         ^~~~~~
a.cc:8:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/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:8:19: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         string s; cin >> s;
      |                   ^~~
      |                   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:26: error: 's' was not declared in this scope
    8 |         string s; cin >> s;
      |                          ^
a.cc:10:15: error: expected ';' before 't'
   10 |         string t = "";
      |               ^~
      |               ;
a.cc:11:28: error: 't' was not declared in this scope; did you mean 'tm'?
   11 |         if (s == "Sunny")  t = "Cloudy";
      |                            ^
      |                            tm
a.cc:12:28: error: 't' was not declared in this scope; did you mean 'tm'?
   12 |         if (s == "Cloudy") t = "Rainy";
      |                            ^
      |                            tm
a.cc:13:28: error: 't' was not declared in this scope; did you mean 'tm'?
   13 |         if (s == "Rainy")  t = "Sunny";
      |                            ^
      |                            tm
a.cc:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         cout << t << 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:15:17: error: 't' was not declared in this scope; did you mean 'tm'?
   15 |         cout << t << endl;
      |                 ^
      |                 tm
a.cc:15:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         cout << t << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~