Language: C++

#inlude <iostream>

using namespace std;

int main(){
  string S;

  cin >> S;

  int B = (S[0]-'0')*10 + S[1]-'0';
  int A = (S[2]-'0')*10 + S[3]-'0';

  if(1 <= B && B <= 12){
    if(1 <= A && A <= 12) cout << "AMBIGUOUS" << endl;
    else cout << "MMYY" << endl;
  }

  else if(1 <= A && A <= 12) cout << "YYMM" << endl;

  else cout << "NA" << endl;
}
  


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inlude <iostream>
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> S;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlude <iostream>
a.cc:8:10: error: 'S' was not declared in this scope
    8 |   cin >> S;
      |          ^
a.cc:14:27: error: 'cout' was not declared in this scope
   14 |     if(1 <= A && A <= 12) cout << "AMBIGUOUS" << endl;
      |                           ^~~~
a.cc:14:27: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:50: error: 'endl' was not declared in this scope
   14 |     if(1 <= A && A <= 12) cout << "AMBIGUOUS" << endl;
      |                                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlude <iostream>
a.cc:15:10: error: 'cout' was not declared in this scope
   15 |     else cout << "MMYY" << endl;
      |          ^~~~
a.cc:15:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:28: error: 'endl' was not declared in this scope
   15 |     else cout << "MMYY" << endl;
      |                            ^~~~
a.cc:15:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:18:30: error: 'cout' was not declared in this scope
   18 |   else if(1 <= A && A <= 12) cout << "YYMM" << endl;
      |                              ^~~~
a.cc:18:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:48: error: 'endl' was not declared in this scope
   18 |   else if(1 <= A && A <= 12) cout << "YYMM" << endl;
      |                                                ^~~~
a.cc:18:48: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:20:8: error: 'cout' was not declared in this scope
   20 |   else cout << "NA" << endl;
      |        ^~~~
a.cc:20:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:24: error: 'endl' was not declared in this scope
   20 |   else cout << "NA" << endl;
      |                        ^~~~
a.cc:20:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'