Language: C++

#include <iostream>
using namespace sd;

long long minMulti(int A, int B)
{
    long long result = A;
    i = 1;
    while(1) {
        int tmp = A * i;
        if (tmp % B == 0) {
            return tmp;
        }
        i++;
    }
    return result;
}   


int main()
{
    int A,B;
    cin >> A >> B;
    if (A < B) {
        cout << minMulti(B,A) << endl;
    } else if (A > B) {
        cout << minMulti(A,B) << endl;
    } else {
        cout << A << endl;
    }
    return 0;
}  

Compiler output:
a.cc:2:17: error: 'sd' is not a namespace-name
    2 | using namespace sd;
      |                 ^~
a.cc: In function 'long long int minMulti(int, int)':
a.cc:7:5: error: 'i' was not declared in this scope
    7 |     i = 1;
      |     ^
a.cc: In function 'int main()':
a.cc:22:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   22 |     cin >> A >> B;
      |     ^~~
      |     std::cin
In file included 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:24:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |         cout << minMulti(B,A) << 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:24:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |         cout << minMulti(B,A) << 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:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |         cout << minMulti(A,B) << 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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |         cout << minMulti(A,B) << endl;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:28:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |         cout << A << 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:28:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   28 |         cout << A << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~