criyle/codenet-compile-errors huggingface dataset:
Language: C++

int main() {
  int n,a,b;
  cin>>n;
  a=n/100;
  b=n%100;
  if(a==0||a>12){
    if(b==0||b>12)
      cout<<"NA"<<endl;
    else if
      cout<<"YYMM"<<endl;
  }
  else{
    if(b==0||b>12)
      cout<<"MMYY"<<endl;
    else
      cout<<"AMBIGUOUS"<<endl;
  }
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>n;
      |   ^~~
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout<<"NA"<<endl;
      |       ^~~~
a.cc:8:19: error: 'endl' was not declared in this scope
    8 |       cout<<"NA"<<endl;
      |                   ^~~~
a.cc:10:7: error: expected '(' before 'cout'
   10 |       cout<<"YYMM"<<endl;
      |       ^~~~
      |       (
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout<<"MMYY"<<endl;
      |       ^~~~
a.cc:14:21: error: 'endl' was not declared in this scope
   14 |       cout<<"MMYY"<<endl;
      |                     ^~~~
a.cc:16:7: error: 'cout' was not declared in this scope
   16 |       cout<<"AMBIGUOUS"<<endl;
      |       ^~~~
a.cc:16:26: error: 'endl' was not declared in this scope
   16 |       cout<<"AMBIGUOUS"<<endl;
      |                          ^~~~
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:1:12: note: to match this '{'
    1 | int main() {
      |            ^
Language: C++

include<iostream>
using namespace std;
int main(){
    int a;
    cin >> a;
    int b = a / 100;
    a = a % 100;
    if(b<=12&&a<=12&&a>0&&b>0){
        cout << "AMBIGUOUS";
    }
    else if(a<=12&&b>12&&a>0){
        cout << "YYMM";
    }
    else if(b<=12&&a>12&&b>0){
        cout << "MMYY";
    }
    else{
        cout << "NA";
    }
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a;
      |     ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "AMBIGUOUS";
      |         ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "YYMM";
      |         ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "MMYY";
      |         ^~~~
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "NA";
      |         ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string S;
  cin>>S;
  string T=S.substr(0,2);
  string U=S.substr(2,2);
  bool a=false;
  bool b=false;
  if (T=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12") a=true;
  if (U=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12")b=true;
  if (a==true&&b==true) cout<<"AMBIGUOUS"<<endl;
   if (a==false && b==true) cout<<"YYMM"<<endl;
  if (a==true && b==false) cout<<"MMYY"<<endl;
 if(a==false && b==false cout<<"NA"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before 'cout'
   16 |  if(a==false && b==false cout<<"NA"<<endl;
      |                         ^~~~~
      |                         ;
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
a.cc:16:43: error: expected ')' before '}' token
   16 |  if(a==false && b==false cout<<"NA"<<endl;
      |    ~                                      ^
      |                                           )
   17 | }
      | ~                                          
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string S;
  cin>>S;
  string T=S.substr(2);
  string U=S.substr(2,2);
  bool a=false;
  bool b=false;
  if (T=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12") a=true;
  if (S=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12")b=true;
  if (a&&b) cout<<"AMBIGUOUS"<<endl;
  if (a=false && b=true) cout<<"YYMM"<<endl;
  if (a=true && b=false) cout<<"MMYY"<<endl;
  else cout<<"NA"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |   if (a=false && b=true) cout<<"YYMM"<<endl;
      |         ~~~~~~^~~~
a.cc:15:14: error: lvalue required as left operand of assignment
   15 |   if (a=true && b=false) cout<<"MMYY"<<endl;
      |         ~~~~~^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string S;
  cin>>S;
  string T=S.substr(2);
  string U=S.substr(2,2);
  bool a=false;
  bool b=false;
  if (T=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12") a=true;
  if (S=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12")b=true;
  if (a&&b) cout<<"AMBIGUOUS"<<endl;
  if (a=false & b=true) cout<<"YYMM"<<endl;
  if (a=true & b=false) cout<<"MMYY"<<endl;
  else cout<<"NA"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |   if (a=false & b=true) cout<<"YYMM"<<endl;
      |         ~~~~~~^~~
a.cc:15:14: error: lvalue required as left operand of assignment
   15 |   if (a=true & b=false) cout<<"MMYY"<<endl;
      |         ~~~~~^~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string S;
  cin>>S;
  string T=S.substr(2);
  string U=S.substr(2,2);
  bool a=false;
  bool b=false;
  if (T=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12";) a=true;
  if (S=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12";)b=true;
  if (a&b) cout<<"AMBIGUOUS"<<endl;
  if (a=false & b=true) cout<<"YYMM"<<endl;
  if (a=true & b=false) cout<<"MMYY"<<endl;
  else cout<<"NA"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:81: error: expected primary-expression before ')' token
   11 |   if (T=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12";) a=true;
      |                                                                                 ^
a.cc:12:81: error: expected primary-expression before ')' token
   12 |   if (S=="01"||"02"||"03"||"04"||"05"||"06"||"07"||"08"||"09"||"10"||"11"||"12";)b=true;
      |                                                                                 ^
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |   if (a=false & b=true) cout<<"YYMM"<<endl;
      |         ~~~~~~^~~
a.cc:15:14: error: lvalue required as left operand of assignment
   15 |   if (a=true & b=false) cout<<"MMYY"<<endl;
      |         ~~~~~^~~
Language: C++

#include<stdio.h>


int main(){
int a;scanf("%d",&a);
int L=a/100;
int R=a%100;
if(1<=L&&L<=12){
if(1<=R&&R<=12)printf("AMBIGUOUS\n");
else printf("MMYY\n");
}else{
if(1<=R&&R<=12)printf("YYMM\n");
else printf("NA\n");
}
}
return 0;}

Compiler output:
a.cc:16:1: error: expected unqualified-id before 'return'
   16 | return 0;}
      | ^~~~~~
a.cc:16:10: error: expected declaration before '}' token
   16 | return 0;}
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main(){
    int n;
    string s;
    cin >> n;
    int x = n / 100;
    int y = n % 100;
    if((1 <= x && x <= 12)){
        if(1 <= y && y <= 12){
            s = "AMBIGIOUS";
        }else(1 <= y && y <= 12){
            s = "MMYY";
        }
    }else if(1 <= y && y <= 12){
        s = "YYMM";
    }
    if(x == 0 || y == 0) s = "NA";
    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: expected ';' before '{' token
   14 |         }else(1 <= y && y <= 12){
      |                                 ^
      |                                 ;
Language: C++

/*
*          Name : chaitanya
*
*     Institute : ANITS,Visakhapatnam
*
*/
#include<cstdio>
#include<iostream>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<complex>
#include<cstring>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<bitset>
#include<numeric>
#include<limits>
#include<climits>
#include<cfloat>
#include<functional>
#include<iterator>
#include <random>
#define inf  1000000000
#define all(x) begin(x),end(x)
#define ll long long int
#define ff first
#define ss second
#define pb push_back
const ll mod = 1000000007;
#pragma GCC optimization ("O3")
using namespace std;
const int N = 100005;
int main()
{
 
  // freopen("input.txt","r",stdin);
  // freopen("output.txt","w",stdout);
  //ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
  string s;
  cin >> s;
  int a,c;
  a = (s[0]-'0')*10+(s[1]-'0');
  c = (s[2]-'0')*10+(s[3]-'0');
  if (1 <= a && a <= 12)
  {
    if (1 <= b && b <= 12)
      cout << "AMBIGUOUS";
    else
      cout << "MMYY";
  }
  else
  {
    if (1 <= b && b <= 12)
      cout << "YYMM";
    else
      cout << "NA";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:14: error: 'b' was not declared in this scope
   53 |     if (1 <= b && b <= 12)
      |              ^
a.cc:60:14: error: 'b' was not declared in this scope
   60 |     if (1 <= b && b <= 12)
      |              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

double getTime() {
  return clock() / (double) CLOCKS_PER_SEC;
}

void read() {};

template<typename T, typename... Args>
void read(T& a, Args&... args) {
  cin >> a;
  read(args...);
}

void print() {};

template <typename T, typename... Args>
void print(T a, Args... args) {
  cout << a << " \n"[sizeof...(args) == 0];
  print(args...);
}

bool can(ll x, ll p) {
  while(x % p == 0) {
    x /= p;
  }
  return x % p == 1;
}

double getSum(double x) {
  return x * (x + 1.0) / 2.0;
}

int main() {
  string s; cin >> s;
  string x = "";
  string y = "";
  for(int i = 0; i < 4; i++) {
    if(i <= 1) {
      x += s[i];
    }
    else y += s[i];
  }
  int X = stoint(x.c_str()), Y = stoint(y.c_str());
  if(1 <= X and X <= 12) {
    if(1 <= Y and Y <= 12) {
      print("AMBIGUOUS");
    }
    else {
      print("MMYY");
    }
  }
  else if(1 <= Y and Y <= 12) {
    print("YYMM");
  }
  else {
    print("NA");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:11: error: 'stoint' was not declared in this scope; did you mean 'stdin'?
   48 |   int X = stoint(x.c_str()), Y = stoint(y.c_str());
      |           ^~~~~~
      |           stdin
a.cc:50:13: error: 'Y' was not declared in this scope
   50 |     if(1 <= Y and Y <= 12) {
      |             ^
a.cc:57:16: error: 'Y' was not declared in this scope
   57 |   else if(1 <= Y and Y <= 12) {
      |                ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
    int s,a,b,YM,MY;
    cin >> s;
    a = s/100;
    b = s-(a*100);
    YM = 0;
    MY = 0;
    
    if(1<=a&&a<=99&&1<=b&&b<=12){
        YM++;
    }
    if(1<=a&&a<=12&&1<=b&&b<=99){
        MY++;
    }
    if(YM==1&&MY==1){
        cout << "AMBIGUOUS" << endl;
    }
　　if(YM==0&&MY==0){
        cout <<"NA" << endl;
    }
    if(YM==1&&MY==0){
        cout << "YYMM" << endl;
    }
    if(YM==0&&MY==1){
        cout << "MMYY" << endl;
    }
}

Compiler output:
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　if(YM==0&&MY==0){
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:21:1: error: '\U00003000\U00003000if' was not declared in this scope
   21 | 　　if(YM==0&&MY==0){
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int a;
  bool ans1 = false, ans2 = false;
  
  cin >> a;
  
  int format1 = a % 100;
  int format2 = (a / 100);
  
  if (1 <= format1 && format1 <= 12) {
    ans1 = true;
  }
  
  if (1 <= format2 && format2 <= 12) {
    ans2 = true;
  }
  
  if (ans1 && ans2) {
    cout << "AMBIGUOUS" << endl;
  } else {
    if (ans1) {
      cout << "YYMM" << endl;
    } else if (ans2) {
      cout << "MMYY" << endl;
    } else {
      cout << "NA" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>

#define ine long long

using namespace std;

int32_t main()
{
	string s;
	cin >> s;

	int x = (s[0]-'0')*10 + s[1]-'0';
	int y = (s[2]-'0')*10 + s[3]-'0';

	if(x > 12 && y > 12)
		cout << "NA";
	else if(x < 12 && y > 12)
		cout << "MMYY"
	else if(x > 12 && y < 12)
		cout << "YYMM";
	else
		cout << "AMBIGUOUS";
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:18:31: error: expected ';' before 'else'
   18 |                 cout << "MMYY"
      |                               ^
      |                               ;
   19 |         else if(x > 12 && y < 12)
      |         ~~~~
Language: C++

#include<bits/stdc++.h>
#include<map>

using namespace std;
typedef long long ll;
#define Inf 1 << 20
#define MInf -(1 << 20)


#define REP(n) for(int i = 0;i < (int)(n);i++)
#define rep(i,n) for(int i = 0;i < (int)(n);i++)
#define Rep(i,n,m) for(int i = (int)(n); i < (int)(m);i++)
#define rrep(i,n) for(int i = (int)(n - 1); i > -1;i--)
#define RRep(i,n,m) for(int i = (int)(n - 1); i > (int)(m);i--)
#define trav(a, x) for(auto& a : x)

#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V))
#define REVERSE(V) reverse(ALL(V))
#define RSORT(V) SORT(V);REVERSE(V)


#define Yes(n) cout << ((n) ? "Yes" : "No") << endl;
#define YES(n) cout << ((n) ? "YES" : "NO") << endl;
#define yes(n) cout << ((n) ? "yes" : "no") << endl;




int main()
{
    int s;
    cin >> s;
    int s1 = s/100;
    int s2 = s%100;
    if (1 <= s1 && s1 <= 12) {
        if (1 <= s2 && s2 <= 12)
            cout << "AMBIGUOUS" << endl;
        else
            cout << "MMYY" << emdl;
    }
    else {
        if (1 <= s2 && s2 <= 12)
            cout << "YYMM" << endl;
        else
            cout << "NA" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:31: error: 'emdl' was not declared in this scope
   40 |             cout << "MMYY" << emdl;
      |                               ^~~~
Language: C++

#include<bits/stdc++.h>
#include<map>

using namespace std;
typedef long long ll;
#define Inf 1 << 20
#define MInf -(1 << 20)


#define REP(n) for(int i = 0;i < (int)(n);i++)
#define rep(i,n) for(int i = 0;i < (int)(n);i++)
#define Rep(i,n,m) for(int i = (int)(n); i < (int)(m);i++)
#define rrep(i,n) for(int i = (int)(n - 1); i > -1;i--)
#define RRep(i,n,m) for(int i = (int)(n - 1); i > (int)(m);i--)
#define trav(a, x) for(auto& a : x)

#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V))
#define REVERSE(V) reverse(ALL(V))
#define RSORT(V) SORT(V);REVERSE(V)


#define Yes(n) cout << ((n) ? "Yes" : "No") << endl;
#define YES(n) cout << ((n) ? "YES" : "NO") << endl;
#define yes(n) cout << ((n) ? "yes" : "no") << endl;




int main()
{
    int s;
    cin >> s;
    int s1 = s　/　100;
    int s2 = s　%　100;
    if (1 <= s1 && s1 <= 12) {
        if (1 <= s2 && s2 <= 12)
            cout << "AMBIGUOUS" << endl;
        else
            cout << "MMYY" << emdl;
    }
    else {
        if (1 <= s2 && s2 <= 12)
            cout << "YYMM" << endl;
        else
            cout << "NA" << endl;
    }
}

Compiler output:
a.cc:34:14: error: extended character 　 is not valid in an identifier
   34 |     int s1 = s　/　100;
      |              ^
a.cc:34:18: error: extended character 　 is not valid in an identifier
   34 |     int s1 = s　/　100;
      |                  ^
a.cc:35:14: error: extended character 　 is not valid in an identifier
   35 |     int s2 = s　%　100;
      |              ^
a.cc:35:18: error: extended character 　 is not valid in an identifier
   35 |     int s2 = s　%　100;
      |                  ^
a.cc: In function 'int main()':
a.cc:34:14: error: 's\U00003000' was not declared in this scope
   34 |     int s1 = s　/　100;
      |              ^~~
a.cc:34:18: error: '\U00003000100' was not declared in this scope
   34 |     int s1 = s　/　100;
      |                  ^~~~~
a.cc:40:31: error: 'emdl' was not declared in this scope
   40 |             cout << "MMYY" << emdl;
      |                               ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int s,a,b;
  string s;
  cin >> s;
  b = s%100;
  a = s-b;
  if(a<12 || b<12){s = "AMBIGUOUS";}
  else if(a<12 && b>12){s = "MMYY";}
  else if(a>12 $$ b<12){s = "YYMM";}
  else  {s = "NA";}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: conflicting declaration 'std::string s'
    6 |   string s;
      |          ^
a.cc:5:7: note: previous declaration as 'int s'
    5 |   int s,a,b;
      |       ^
a.cc:10:24: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |   if(a<12 || b<12){s = "AMBIGUOUS";}
      |                        ^~~~~~~~~~~
      |                        |
      |                        const char*
a.cc:11:29: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |   else if(a<12 && b>12){s = "MMYY";}
      |                             ^~~~~~
      |                             |
      |                             const char*
a.cc:12:15: error: expected ')' before '$$'
   12 |   else if(a>12 $$ b<12){s = "YYMM";}
      |          ~    ^~~
      |               )
a.cc:12:29: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |   else if(a>12 $$ b<12){s = "YYMM";}
      |                             ^~~~~~
      |                             |
      |                             const char*
a.cc:13:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   13 |   else  {s = "NA";}
      |              ^~~~
      |              |
      |              const char*
a.cc:13:20: error: expected '}' at end of input
   13 |   else  {s = "NA";}
      |                    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(s,i, n) for (int i = (int)s; i < (int)(n); i++)
#define pb push_back
typedef long long ll;
  
int main(){
    string s;
    cin>>s;
    string ans="NA";
    string ss=substr(0,2);
    string sss=substr(2,2);
    int i=stoi(ss);
    int j=stoi(sss);
    if(0<i && i <13){
        if(0<j &&j<13){
            ans="AMBIGUOUS";
        }else{
            ans="MMYY";
        }


    }else{
        if(0<j &&j<13){
            ans="YYMM";
        }
    }

    cout<<ans<<endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'substr' was not declared in this scope; did you mean 'strstr'?
   12 |     string ss=substr(0,2);
      |               ^~~~~~
      |               strstr
Language: C++

#include <iostream>
using namespace std;

int main (){
    int S;
    cin >> S;

    int kami = S / 100;
    int simo = S % 100;

    if (kami > 12 ){
        if (simo > 12 || simo == 0){
            cout << NA << endl;
        }

        else {
            cout << "YYMM" << endl;
        }
    }

    if (kami <= 12){
        if (simo > 12 || simo == 0){
            cout << "MMYY" << endl;
        }

        else {
            cout << "AMBIGUOUS" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'NA' was not declared in this scope
   13 |             cout << NA << endl;
      |                     ^~
Language: C++

#include <iostream>
using namespace std;

int main (){
    int S;
    cin >> S;

    int kami = S / 100;
    int simo = S % 100;

    if (kami > 12 ){
        if (simo > 12 || simo == 0){
            cout << NA << endl;
        }

        else {
            cout << "YYMM" << endl;
        }
    }

    if (kami <= 12){
        if (simo > 12){
            cout << "MMYY" << endl;
        }

        else {
            cout << "AMBIGUOUS" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'NA' was not declared in this scope
   13 |             cout << NA << endl;
      |                     ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
   int a,b;
   scanf("%2d%2d",&a,&b);
   if((a>12 || a==0 )&& b>0 && b<=12)cout <<"YYMM";
   else if(a>0&&a<=12&&(b>12 ||b==0)cout <<"MMYY";
   else if(a>0&&b<=12&&a<=12&&b>0)cout<<"AMBIGUOUS";
   else if(a>12&&b>12 || a==0&&b==0)cout<<"NA";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: expected ';' before 'cout'
    9 |    else if(a>0&&a<=12&&(b>12 ||b==0)cout <<"MMYY";
      |                                     ^~~~
      |                                     ;
a.cc:10:4: error: expected primary-expression before 'else'
   10 |    else if(a>0&&b<=12&&a<=12&&b>0)cout<<"AMBIGUOUS";
      |    ^~~~
a.cc:9:51: error: expected ')' before 'else'
    9 |    else if(a>0&&a<=12&&(b>12 ||b==0)cout <<"MMYY";
      |           ~                                       ^
      |                                                   )
   10 |    else if(a>0&&b<=12&&a<=12&&b>0)cout<<"AMBIGUOUS";
      |    ~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using namespace std;


int main(){
   cin.tie(0);
   ios::sync_with_stdio(false);

   int s; cin >> s;
   int l=s/100; r=s%100;
   if(1<=l and l<=12){
   	if(r<=1 and r<=12) cout << "AMBIGUOUS" << endl;
   	else cout << "MMYY" << endl;
   }else{
   	if(1<=r and r <=12) cout << "YYMM" << endl;
   	else cout << "NA" << endl;
   }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'r' was not declared in this scope
   11 |    int l=s/100; r=s%100;
      |                 ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using namespace std;


int main(){
   cin.tie(0);
   ios::sync_with_stdio(false);

   int s; cin s;
   int l=s/100; r=s%100;
   if(1<=l and l<=12){
   	if(r<=1 and r<=12) cout << "AMBIGUOUS" << endl;
   	else cout << "MMYY" << endl;
   }else{
   	if(1<=r and r <=12) cout << "YYMM" << endl;
   	else cout << "NA" << endl;
   }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 's'
   10 |    int s; cin s;
      |              ^~
      |              ;
a.cc:11:17: error: 'r' was not declared in this scope
   11 |    int l=s/100; r=s%100;
      |                 ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using namespace std;


int main(){
   cin.tie(0);
   ios::sync_with_stdio(false);

   int s; c >> s;
   int l=a/100; r=a%100;
   if(1<=l and l<=12){
   	if(r<=1 and r<=12) cout << "AMBIGUOUS" << endl;
   	else cout << "MMYY" << endl;
   }else{
   	if(1<=r and r <=12) cout << "YYMM" << endl;
   	else cout << "NA" << endl;
   }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'c' was not declared in this scope
   10 |    int s; c >> s;
      |           ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |    int l=a/100; r=a%100;
      |          ^
a.cc:11:17: error: 'r' was not declared in this scope
   11 |    int l=a/100; r=a%100;
      |                 ^
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <map>
#include <cmath>
#include <string>
using namespace std;

#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i,a,b)for(int i=(int)(a);(i)<(int)(b);i++)
typedef long long ll;


ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
ll lcm(ll c, ll d) { return c / gcd(c, d) * d; }

int main() {
  string s;
  cin >> s;
  string s1 = s.substr(0, 2);
  string s2 = s.substr(2, 2);
  int former = stoi(s1);
  int latter = stoi(s2);
//   cout << former << latter << endl;
  
  string ans;
  if ((former >= 13 && latter >= 13) ||
      (former == 0 && latter == 0) ||
      (former == 0 && latter >= 13) ||
      (former >= 13 && latter == 0))
  {
      /* code */
      ans = "NA";
  }
  else if (former <= 12 && former >= 1 &&
           latter >= 1 && latter <= 12)
  {
      /* code */
      ans = "AMBIGUOUS";
  }
  else if ((former <= 12 && latter >= 13)||
           (former <= 12 && latter == 0))
  {
      /* code */
      ans = "MMYY";
  }
  else if ((former >= 13 && latter <= 12) ||
           (former == 0 && latter <= 12))
  {
      /* code */
      ans = "YYMM";
  }
  cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:53:23: error: expected '}' at end of input
   53 |   cout << ans << endl;
      |                       ^
a.cc:17:12: note: to match this '{'
   17 | int main() {
      |            ^
Language: Java

package SS;

import java.util.Scanner;

public class SSS {

	public static void main(String[] args) {
		int a,b,i,j,k,x,y;
		Scanner m= new Scanner(System.in);
			a=m.nextInt();
			x=a/100;
			y=a%100;
			if(x>=1 && x<=12 && y>=1 && y<=12)
			System.out.println("AMBIGUOUS");
			else if(x>=1 && x<=12)
		    System.out.println("MMYY");
			else if(y>=1 &&y<=12)
			System.out.println("YYMM");
			else
				System.out.println("NA");
	   
	}

}


Compiler output:
Main.java:5: error: class SSS is public, should be declared in a file named SSS.java
public class SSS {
       ^
1 error
Language: C

#include<stdio.h>
int main()
{
    int x;
    scanf("%d",&x);

    if(x/100<=12&&x%100>12&&x/100>0)
    {
        printf("MMYY");
    }
    else if(x/100<=12&&x%100==0&&x/100>0)
    {
        printf("MMYY");
    }
    else if(x/100>12&&x%100<=12&&x%100>0)
    {
        printf("YYMM");
    }
    else if(x%100<=12&&x/100==0&&x%100>0)
    {
        printf("YYMM");
    }
    else if(x/100<=12&&x%100<=12&&x/100>0&&x%100>0)
    {
        printf("AMBIGUOUS");
    }
    else
    {
        printf("NA");
    }
    return 0;

Compiler output:
main.c: In function 'main':
main.c:31:5: error: expected declaration or statement at end of input
   31 |     return 0;
      |     ^~~~~~
Language: C

#include<stdio.h>
int main()
{
    int a,b,m,n,i,j,k,l;
    scanf("%d",&n);

    a=n/100;
    b=n%100;
    if(n=>1000)
    {
        if((a>0 && a<=12) && b>12)
        printf("MMYY\n");
    else if((a>0 && a<=12) && (b>0 && b<=12))
        printf("AMBIGUOUS\n");
    else if((b<=12 && b>0) && a>0)
        printf("YYMM\n");

    else
        printf("NA\n");
    }}

Compiler output:
main.c: In function 'main':
main.c:9:10: error: expected expression before '>' token
    9 |     if(n=>1000)
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool YYMM = (1 <= B && B <= 12);
 bool MMYY = (1 <= A && A <= 12);
   
 if(YYMM){
  if(MMYY) puts("AMBIGUOUS");
  else puts("YYMM");
  }
  else {
  if(MMYY) puts("MMYY");
  else puts("NA");
  }
 

Compiler output:
a.cc: In function 'int main()':
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool YYMM = (1 <= B && B <= 12);
 bool MMYY = (1 <= A && A <= 12);
   
 if(YYMM){
  if(MMYY) {
  {
    puts("AMBIGUOUS");
  else {
    puts("YYMM");
  }
  else {
  if(MMYY) {
    puts("MMYY");
  }else {
    puts("NA");
  }
 }
  }
  }
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected '}' before 'else'
   18 |   else {
      |   ^~~~
a.cc:16:3: note: to match this '{'
   16 |   {
      |   ^
a.cc:18:3: error: expected '}' before 'else'
   18 |   else {
      |   ^~~~
a.cc:15:12: note: to match this '{'
   15 |   if(MMYY) {
      |            ^
a.cc:21:3: error: expected '}' before 'else'
   21 |   else {
      |   ^~~~
a.cc:14:10: note: to match this '{'
   14 |  if(YYMM){
      |          ^
a.cc: At global scope:
a.cc:29:3: error: expected declaration before '}' token
   29 |   }
      |   ^
a.cc:30:2: error: expected declaration before '}' token
   30 |  }
      |  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool YYMM = (1 <= B && B <= 12)
 bool MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) {
  {
    puts("AMBIGUOUS");
  else {
    puts("YYMM");
  }
  else {
  if(MMYY) {
    puts("MMYY");
  }else {
    puts("NA");
  }
 }
  }
  }
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected ',' or ';' before 'bool'
   12 |  bool MMYY = (1 <= A && A <= 12)
      |  ^~~~
a.cc:30:3: error: expected '}' at end of input
   30 |  }
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool = YYMM = (1 <= B && B <= 12)
 bool = MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) {
  {
    puts("AMBIGUOUS");
  else {
    puts("YYMM");
  }
  else {
  if(MMYY) {
    puts("MMYY");
  }else {
    puts("NA");
  }
 }
  }
  }
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected unqualified-id before '=' token
   11 |  bool = YYMM = (1 <= B && B <= 12)
      |       ^
a.cc:30:3: error: expected '}' at end of input
   30 |  }
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool = YYMM = (1 <= B && B <= 12)
 bool = MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) puts("AMBIGUOUS");
  else puts("YYMM");
                }
  else {
  if(MMYY) puts("MMYY");
  else puts("NA");
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected unqualified-id before '=' token
   11 |  bool = YYMM = (1 <= B && B <= 12)
      |       ^
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else {
      |   ^~~~
a.cc:19:6: error: 'MMYY' was not declared in this scope
   19 |   if(MMYY) puts("MMYY");
      |      ^~~~
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool = YYMM = (1 <= B && B <= 12)
 bool = MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) putS("AMBIGUOUS");
  else putS("YYMM");
                }
  else {
  if(MMYY) putS("MMYY");
  else putS("NA");
  }
#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool = YYMM = (1 <= B && B <= 12)
 bool = MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) puts("AMBIGUOUS");
  else puts("YYMM");
                }
  else {
  if(MMYY) puts("MMYY");
  else puts("NA");
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected unqualified-id before '=' token
   11 |  bool = YYMM = (1 <= B && B <= 12)
      |       ^
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else {
      |   ^~~~
a.cc:19:6: error: 'MMYY' was not declared in this scope
   19 |   if(MMYY) putS("MMYY");
      |      ^~~~
a.cc:19:12: error: 'putS' was not declared in this scope; did you mean 'puts'?
   19 |   if(MMYY) putS("MMYY");
      |            ^~~~
      |            puts
a.cc:20:8: error: 'putS' was not declared in this scope; did you mean 'puts'?
   20 |   else putS("NA");
      |        ^~~~
      |        puts
a.cc:25:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   25 | int main() {
      |         ^~
a.cc:25:9: note: remove parentheses to default-initialize a variable
   25 | int main() {
      |         ^~
      |         --
a.cc:25:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:25:12: error: a function-definition is not allowed here before '{' token
   25 | int main() {
      |            ^
a.cc:42:4: error: expected '}' at end of input
   42 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool = YYMM = (1 <= B && B <= 12)
 bool = MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) putS("AMBIGUOUS");
  else putS("YYMM");
                }
  else {
  if(MMYY) putS("MMYY");
  else putS("NA");
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected unqualified-id before '=' token
   11 |  bool = YYMM = (1 <= B && B <= 12)
      |       ^
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else {
      |   ^~~~
a.cc:19:6: error: 'MMYY' was not declared in this scope
   19 |   if(MMYY) putS("MMYY");
      |      ^~~~
a.cc:19:12: error: 'putS' was not declared in this scope; did you mean 'puts'?
   19 |   if(MMYY) putS("MMYY");
      |            ^~~~
      |            puts
a.cc:20:8: error: 'putS' was not declared in this scope; did you mean 'puts'?
   20 |   else putS("NA");
      |        ^~~~
      |        puts
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool = YYMM = (1 <= B && B <= 12)
 bool = MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) putS("AMBIGUOUS');
  else putS("YYMM");
                }
  else {
  if(MMYY) putS("MMYY");
  else putS("NA");
  }


Compiler output:
a.cc:15:17: warning: missing terminating " character
   15 |   if(MMYY) putS("AMBIGUOUS');
      |                 ^
a.cc:15:17: error: missing terminating " character
   15 |   if(MMYY) putS("AMBIGUOUS');
      |                 ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:7: error: expected unqualified-id before '=' token
   11 |  bool = YYMM = (1 <= B && B <= 12)
      |       ^
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else {
      |   ^~~~
a.cc:19:6: error: 'MMYY' was not declared in this scope
   19 |   if(MMYY) putS("MMYY");
      |      ^~~~
a.cc:19:12: error: 'putS' was not declared in this scope; did you mean 'puts'?
   19 |   if(MMYY) putS("MMYY");
      |            ^~~~
      |            puts
a.cc:20:8: error: 'putS' was not declared in this scope; did you mean 'puts'?
   20 |   else putS("NA");
      |        ^~~~
      |        puts
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 string S;
 cin >> S;
  
 int A = (S[0] - '0') * 10 + (S[1] - '0');
 int B = (S[2] - '0') * 10 + (S[3] - '0');
 
 bool = YYMM = (1 <= B && B <= 12)
 bool = MMYY = (1 <= A && A <= 12)
   
 if(YYMM){
  if(MMYY) puts("AMBIGUOUS');
  else puts("YYMM");
                }
  else {
  if(MMYY) puts("MMYY");
  else puts("NA");
  }

Compiler output:
a.cc:15:17: warning: missing terminating " character
   15 |   if(MMYY) puts("AMBIGUOUS');
      |                 ^
a.cc:15:17: error: missing terminating " character
   15 |   if(MMYY) puts("AMBIGUOUS');
      |                 ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:7: error: expected unqualified-id before '=' token
   11 |  bool = YYMM = (1 <= B && B <= 12)
      |       ^
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else {
      |   ^~~~
a.cc:19:6: error: 'MMYY' was not declared in this scope
   19 |   if(MMYY) puts("MMYY");
      |      ^~~~
a.cc:21:4: error: expected '}' at end of input
   21 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

c#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;cin>>a;
  int l=a/100,r=a%100;
  bool ym=true,my=true;
  if(l>12||l<=0)my=false;
  if(r>12||r<=0)ym=false;
  string ans;
  if(ym&&my)ans="AMBIGUOUS";
  if(ym&&!my)ans="YYMM";
  if(!ym&&my)ans="MMYY";
  if(!my&&!ym)ans="NA";
  cout<<ans<<endl;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | c#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'c' does not name a type
    1 | c#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |   int a;cin>>a;
      |         ^~~
a.cc:10:3: error: 'string' was not declared in this scope
   10 |   string ans;
      |   ^~~~~~
a.cc:11:13: error: 'ans' was not declared in this scope
   11 |   if(ym&&my)ans="AMBIGUOUS";
      |             ^~~
a.cc:12:14: error: 'ans' was not declared in this scope
   12 |   if(ym&&!my)ans="YYMM";
      |              ^~~
a.cc:13:14: error: 'ans' was not declared in this scope
   13 |   if(!ym&&my)ans="MMYY";
      |              ^~~
a.cc:14:15: error: 'ans' was not declared in this scope
   14 |   if(!my&&!ym)ans="NA";
      |               ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout<<ans<<endl;
      |   ^~~~
a.cc:15:9: error: 'ans' was not declared in this scope
   15 |   cout<<ans<<endl;
      |         ^~~
a.cc:15:14: error: 'endl' was not declared in this scope
   15 |   cout<<ans<<endl;
      |              ^~~~
Language: C++

c#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;cin>>a;
  int l=a/100,r=a%100;
  bool ym=true,my=true;
  if(l>12||l>=0)my=false;
  if(r>12||r>=0)ym=false;
  string ans;
  if(ym&&my)ans="AMBIGUOUS";
  if(ym&&!my)ans="YYMM";
  if(!ym&&my)ans="MMYY";
  if(!my&&!ym)ans="NA";
  cout<<ans<<endl;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | c#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'c' does not name a type
    1 | c#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |   int a;cin>>a;
      |         ^~~
a.cc:10:3: error: 'string' was not declared in this scope
   10 |   string ans;
      |   ^~~~~~
a.cc:11:13: error: 'ans' was not declared in this scope
   11 |   if(ym&&my)ans="AMBIGUOUS";
      |             ^~~
a.cc:12:14: error: 'ans' was not declared in this scope
   12 |   if(ym&&!my)ans="YYMM";
      |              ^~~
a.cc:13:14: error: 'ans' was not declared in this scope
   13 |   if(!ym&&my)ans="MMYY";
      |              ^~~
a.cc:14:15: error: 'ans' was not declared in this scope
   14 |   if(!my&&!ym)ans="NA";
      |               ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout<<ans<<endl;
      |   ^~~~
a.cc:15:9: error: 'ans' was not declared in this scope
   15 |   cout<<ans<<endl;
      |         ^~~
a.cc:15:14: error: 'endl' was not declared in this scope
   15 |   cout<<ans<<endl;
      |              ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0;i < (int)(n);i++)
#define rep2(i, s, n) for (int i = s; i < (int)(n);i++)
#define ALL(vec)  (vec).begin(),(vec).end()
#define lli long long int
#define pi 3.1415926535897932384626433832795
#define MAX_INF 9223372036854775807
#define MIN_INF 9223372036854775807+1

int main() {
  int A;
  cin >>A;
  int B;
  B=A/100;
  A%=100;
  if(A>12||A==0)
  {if(B<13&&B>0)
  {cout << "YYMM"
  return 0;}
  else
  {cout << "NA"
  return 0;}}  
  else
  {if(B<13&&B>0)
  {cout << "MMYY"
  return 0;}
  else
  {cout << "AMBIGUOUS"
  return 0;}}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: expected ';' before 'return'
   19 |   {cout << "YYMM"
      |                  ^
      |                  ;
   20 |   return 0;}
      |   ~~~~~~          
a.cc:22:16: error: expected ';' before 'return'
   22 |   {cout << "NA"
      |                ^
      |                ;
   23 |   return 0;}}
      |   ~~~~~~        
a.cc:26:18: error: expected ';' before 'return'
   26 |   {cout << "MMYY"
      |                  ^
      |                  ;
   27 |   return 0;}
      |   ~~~~~~          
a.cc:29:23: error: expected ';' before 'return'
   29 |   {cout << "AMBIGUOUS"
      |                       ^
      |                       ;
   30 |   return 0;}}
      |   ~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <climits>
#include <cfloat>
#include <algorithm>
#define ll long long
#define ull unsigned long long
#define uint unsigned
#define MOD 1000000007;
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int num {};
    cin >> num;

    int first {num/100};
    int sec {num%100};

    if (first >= 1 && first <= 12) {
    	if (sec >= 1 && sec <= 12) cout<<"AMBIGUOUS"<<endl;
    	else cout<<"MMYY"<<endl;
    }
    else {
    	if (sec >= 1 && sec <= 12) cout<<"YYMM"<<endl;
    	else cout<<"NA"<<endl;
    }
    else cout<<"NA"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:5: error: 'else' without a previous 'if'
   34 |     else cout<<"NA"<<endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;




    int main(){
        int a;
        std::cin >> a;
        int l = a/100;
        int r = a%100;
        if(1 <= l && r <= 12){
        if(1 <= R && R <= 12)printf("AMBIGUOUS\n" );
        else printf("MMYY\n" );
    }else{
        if(1 <= R && R <= 12)printf("YYMM\n" );
        else printf("NA\n" );
    }
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'R' was not declared in this scope
   15 |         if(1 <= R && R <= 12)printf("AMBIGUOUS\n" );
      |                 ^
a.cc:18:17: error: 'R' was not declared in this scope
   18 |         if(1 <= R && R <= 12)printf("YYMM\n" );
      |                 ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;




    int main(){
        int a;
        std::cin >> a;
        int l = a/100;
        int r = a%100;
        if(1 <= l && r <= 12){
        if(1 <= R && R <= 12)printf("AMBIGUOUS\n", );
        else printf("MMYY\n", );
    }else{
        if(1 <= R && R <= 12)printf("YYMM\n", );
        else printf("NA\n", );
    }
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'R' was not declared in this scope
   15 |         if(1 <= R && R <= 12)printf("AMBIGUOUS\n", );
      |                 ^
a.cc:15:52: error: expected primary-expression before ')' token
   15 |         if(1 <= R && R <= 12)printf("AMBIGUOUS\n", );
      |                                                    ^
a.cc:16:31: error: expected primary-expression before ')' token
   16 |         else printf("MMYY\n", );
      |                               ^
a.cc:18:17: error: 'R' was not declared in this scope
   18 |         if(1 <= R && R <= 12)printf("YYMM\n", );
      |                 ^
a.cc:18:47: error: expected primary-expression before ')' token
   18 |         if(1 <= R && R <= 12)printf("YYMM\n", );
      |                                               ^
a.cc:19:29: error: expected primary-expression before ')' token
   19 |         else printf("NA\n", );
      |                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;
  if(S.at(0)=='0' || S.at(0)=='1' && S.at(1)=='0' || S.at(0)=='1' && S.at(1)=='1' || S.at(0)=='1' && S.at(1)=='2') {
    if(S.at(2)=='0' || S.at(2)=='1' && S.at(3)=='0' || S.at(2)=='1' && S.at(3)=='1' || S.at(2)=='1' && S.at(3)=='2') {
      cout << "AMBIGUOUS" << endl;
    }
    else {
      cout << "MMYY" << endl;
    }
  }
  else{
    if(S.at(2)=='0' || S.at(2)=='1' && S.at(3)=='0' || S.at(2)=='1'S.at(3)=='1' ||S.at(2)=='1' S.at(3)=='2') {
      cout  << "YYMM" << endl;
    }
    else {
      cout << "NA" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:65: error: unable to find character literal operator 'operator""S' with 'char' argument
   16 |     if(S.at(2)=='0' || S.at(2)=='1' && S.at(3)=='0' || S.at(2)=='1'S.at(3)=='1' ||S.at(2)=='1' S.at(3)=='2') {
      |                                                                 ^~~~
a.cc:16:95: error: expected ')' before 'S'
   16 |     if(S.at(2)=='0' || S.at(2)=='1' && S.at(3)=='0' || S.at(2)=='1'S.at(3)=='1' ||S.at(2)=='1' S.at(3)=='2') {
      |       ~                                                                                       ^~
      |                                                                                               )
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main() {
  int s;
  cin >> s;
  if(s/100 == 0 || s%100 = 0) cout << "NA" << endl;
  else if(s/100 <= 12 && s%100 <= 12) cout << "AMBIGUOUS" << endl;
  else if(s/100 >= 13 && s%100 <= 12) cout << "YYMM" << endl;
  else if(s/100 <= 12 && s%100 >= 13) cout << "MMYY" << endl;
  else cout << "NA" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: lvalue required as left operand of assignment
    7 |   if(s/100 == 0 || s%100 = 0) cout << "NA" << endl;
      |      ~~~~~~~~~~~^~~~~~~~
Language: C

s = input()

sm = int(s[0:2])
sl = int(s[2:4])

ans = [["NA", "MMYY"],
       ["YYMM", "AMBIGUOUS"]]

qm = (1 <= sm <= 12)
ql = (1 <= sl <= 12)

print(ans[ql][qm])


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | s = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | s = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'sm'
    3 | sm = int(s[0:2])
      | ^~
Language: Java

package abc126;
import java.util.Scanner;
public class B {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String s = stdIn.next();
		
		String initial = s.substring(0,2);
		
		int a = Integer.parseInt(initial); //前2文字を数字化
		
		String finish = s.substring(2,4);
		int b = Integer.parseInt(finish); //後ろ2文字を数字化
		
		
		if(1 <= a && a<= 12  && 1 <= b && b<= 12 ) {
			System.out.println("AMBIGUOUS");
		}else if(1 <= a && a<= 12 ) {
			System.out.println("MMYY");
		}else if(1 <= b && b<= 12 ){
			System.out.println("YYMM");
		}else {
			System.out.println("NA");
		}
			
			
			
		
		
		
		
	}

}


Compiler output:
Main.java:3: error: class B is public, should be declared in a file named B.java
public class B {
       ^
1 error
Language: C++

#include <iostream>
#include<string.h>
#include<stdio.h>

using namespace std;



int main()
{
    char s[5];
    gets(s); int a,b;
    sscanf(s,"%2d%2d",&a,&b);
    if ((a<=0)||(a>12))
        {if ((b<=0)||(b>12))
            cout<<"NA";
        else
            cout<<"YYMM";}
    else
        {if ((b>0)||(b<13))
            cout<<"AMBIGUOUS";
        else
            cout<<"MMYY";}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |     gets(s); int a,b;
      |     ^~~~
      |     getw
Language: C

#include <stdio.h>
#include <conio.h>
#include <string.h>
#include<stdlib.h>
int main () {
int A,B;
char input[4], fi[2],sec[2];
scanf("%s",input);
strncpy(input,fi,2) ;
strncpy(input+2,sec,2);
A= atoi(fi);
B= atoi(sec);
if (A>12){if ((B=0)|| (B>12)) {printf("NA");} else{printf("YYMM");}}
else if( B >12) {if ((A=0)|| (A>12)){printf("NA");} else{printf("MMYY");}}
else{printf("AMBIGUOUS");}


}

Compiler output:
main.c:2:10: fatal error: conio.h: No such file or directory
    2 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.