Language: C++

#include <set>
#include <string>
#include <iostream>
int main(){
	typedef set<string>
	set_t A;
	int counter;
	string order, word;
	cin >> counter;
	for (int i = 0; i < counter; i++){
		cin >> order;
		if(order == "insert"){
			cin >> word;
			A.inset(word);
		}
		else if(order == "find"){
			cin >> word;
			if(A.count(word) == 0)
				cout << "no" << endl;					
			else
				cout << "yes" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'set' does not name a type
    5 |         typedef set<string>
      |                 ^~~
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string order, word;
      |         ^~~~~~
a.cc:8:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:2:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin >> counter;
      |         ^~~
      |         std::cin
In file included from a.cc:3:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:24: error: 'order' was not declared in this scope
   11 |                 cin >> order;
      |                        ^~~~~
a.cc:13:32: error: 'word' was not declared in this scope
   13 |                         cin >> word;
      |                                ^~~~
a.cc:14:25: error: 'A' was not declared in this scope
   14 |                         A.inset(word);
      |                         ^
a.cc:17:32: error: 'word' was not declared in this scope
   17 |                         cin >> word;
      |                                ^~~~
a.cc:18:28: error: 'A' was not declared in this scope
   18 |                         if(A.count(word) == 0)
      |                            ^
a.cc:19:33: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |                                 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:19:49: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |                                 cout << "no" << endl;
      |                                                 ^~~~
      |                                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:21:33: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |                                 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:21:50: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |                                 cout << "yes" << endl;
      |                                                  ^~~~
      |                                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~