Language: C++

using namespace std;
typedef pair<int,int> pii;
typedef pair<int,tuple<int,int,int>> pti;
#define rep(i,s,n) for(int i=(int)(s);i<(int)(n);i++)

int S;
int main(){
  cin >> S;
  int xx = S%100;
  int yy = S/100;
  bool YYMM,MMYY;
  YYMM = (xx>=1&&xx<=12);
  MMYY = (yy>=1&&yy<=12);
  if(YYMM&&MMYY) cout << "AMBIGUOUS" << endl;
  if(YYMM&&!MMYY) cout << "YYMM" << endl;
  if(!YYMM&&MMYY) cout << "MMYY" << endl;
  if(!YYMM&&!MMYY) cout << "NA" << endl;
}

Compiler output:
a.cc:2:9: error: 'pair' does not name a type
    2 | typedef pair<int,int> pii;
      |         ^~~~
a.cc:3:9: error: 'pair' does not name a type
    3 | typedef pair<int,tuple<int,int,int>> pti;
      |         ^~~~
a.cc: In function 'int main()':
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 | using namespace std;
a.cc:14:18: error: 'cout' was not declared in this scope
   14 |   if(YYMM&&MMYY) cout << "AMBIGUOUS" << endl;
      |                  ^~~~
a.cc:14:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:41: error: 'endl' was not declared in this scope
   14 |   if(YYMM&&MMYY) 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 | using namespace std;
a.cc:15:19: error: 'cout' was not declared in this scope
   15 |   if(YYMM&&!MMYY) cout << "YYMM" << endl;
      |                   ^~~~
a.cc:15:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:37: error: 'endl' was not declared in this scope
   15 |   if(YYMM&&!MMYY) cout << "YYMM" << endl;
      |                                     ^~~~
a.cc:15:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:19: error: 'cout' was not declared in this scope
   16 |   if(!YYMM&&MMYY) cout << "MMYY" << endl;
      |                   ^~~~
a.cc:16:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:37: error: 'endl' was not declared in this scope
   16 |   if(!YYMM&&MMYY) cout << "MMYY" << endl;
      |                                     ^~~~
a.cc:16:37: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:20: error: 'cout' was not declared in this scope
   17 |   if(!YYMM&&!MMYY) cout << "NA" << endl;
      |                    ^~~~
a.cc:17:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:36: error: 'endl' was not declared in this scope
   17 |   if(!YYMM&&!MMYY) cout << "NA" << endl;
      |                                    ^~~~
a.cc:17:36: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'