Language: C++

#include <iostream>
#include <string>
using namespace std::
int main(){
  string str;
  string res = "";
  cin >> str;

  string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

  for (int i = 0; i <(int)s.size() ++i) {
      char s  = str[i];
     for (int j = 0; i < (int)alphabet.size();
     res += alphabet[(size + j -3) % size];
  }
 }
}
cout << res << end];



}

Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:3:22: error: expected ';' before 'int'
    3 | using namespace std::
      |                      ^
      |                      ;
    4 | int main(){
      | ~~~                   
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string str;
      |   ^~~~~~
a.cc:5:3: 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:6:9: error: expected ';' before 'res'
    6 |   string res = "";
      |         ^~~~
      |         ;
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> str;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   cin >> str;
      |          ^~~
      |          std
a.cc:9:9: error: expected ';' before 'alphabet'
    9 |   string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
      |         ^~~~~~~~~
      |         ;
a.cc:11:27: error: 's' was not declared in this scope
   11 |   for (int i = 0; i <(int)s.size() ++i) {
      |                           ^
a.cc:11:38: error: expected ';' before 'i'
   11 |   for (int i = 0; i <(int)s.size() ++i) {
      |                                      ^
      |                                      ;
a.cc:13:31: error: 'alphabet' was not declared in this scope
   13 |      for (int j = 0; i < (int)alphabet.size();
      |                               ^~~~~~~~
a.cc:14:6: error: 'res' was not declared in this scope
   14 |      res += alphabet[(size + j -3) % size];
      |      ^~~
a.cc:14:23: error: 'size' was not declared in this scope; did you mean 'std::size'?
   14 |      res += alphabet[(size + j -3) % size];
      |                       ^~~~
      |                       std::size
In file included from /usr/include/c++/14/string:53:
/usr/include/c++/14/bits/range_access.h:272:5: note: 'std::size' declared here
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
a.cc:14:43: error: expected ')' before ';' token
   14 |      res += alphabet[(size + j -3) % size];
      |                                           ^
      |                                           )
a.cc:13:10: note: to match this '('
   13 |      for (int j = 0; i < (int)alphabet.size();
      |          ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
a.cc:18:1: error: 'cout' does not name a type
   18 | cout << res << end];
      | ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^