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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected primary-expression before '%' token
   11 |         if(0 < b %% b < 13){
      |                   ^
a.cc:17:19: error: expected primary-expression before '%' token
   17 |         if(0 < b %% b < 13){
      |                   ^
Language: Java

import java.util.*;
import java.math.*;
import java.io.*;


public class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String args[]) {
        String s = sc.next();
        int a = Integer.parseInt(s.subString(0,2));
        int b = Integer.parseInt(s.subString(2,4));
        boolean yymm = b <= 12 && b >= 1;
        boolean mmyy = a <= 12 && a >= 1;
        if(yymm && mmyy) System.out.println("AMBIGUOUS");
        else if(yymm) System.out.println("YYMM");
        else if(mmyy) System.out.println("MMYY");
        else System.out.println("NA");
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        int a = Integer.parseInt(s.subString(0,2));
                                  ^
  symbol:   method subString(int,int)
  location: variable s of type String
Main.java:11: error: cannot find symbol
        int b = Integer.parseInt(s.subString(2,4));
                                  ^
  symbol:   method subString(int,int)
  location: variable s of type String
2 errors
Language: C++

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

/*
月になりうる
*/

bool month(string str){
    return (str[0]=='0' || (str[0]=='1' && (0 <= (str[1] -'0') <= 2)));
}


void solve(){
    string s;
    cin >> s;
    string s1 = s[0]+s[1];
    string s2 = s[2]+s[3];
    string st;
    if(month(s1)&&month(s2)){
        st = "AMBIGUOUS";
    }
    else if(month(s1)){
        st = "MMYY";
    }
    else if(month(s2)){
        st = "YYMM";
    }
    else{
        st = "NA";
    }
    cout << st << endl;
}

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

Compiler output:
a.cc: In function 'void solve()':
a.cc:19:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   19 |     string s1 = s[0]+s[1];
a.cc:20:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   20 |     string s2 = s[2]+s[3];
Language: C++

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

/*
月になりうる
*/

bool month(string str){
    return (str[0]=='0' || (str[0]=='1' && (0 <= (str[1] -'0') <= 2))));
}


void solve(){
    string s;
    cin >> s;
    string s1 = s[0]+s[1];
    string s2 = s[2]+s[3];
    string st;
    if(month(s1)&&month(s2)){
        st = 'AMBIGUOUS';
    }
    else if(month(s1)){
        st = 'MMYY';
    }
    else if(month(s2)){
        st = 'YYMM';
    }
    else{
        st = 'NA';
    }
    cout << st << endl;
}

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

Compiler output:
a.cc:23:14: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   23 |         st = 'AMBIGUOUS';
      |              ^~~~~~~~~~~
a.cc:26:14: warning: multi-character character constant [-Wmultichar]
   26 |         st = 'MMYY';
      |              ^~~~~~
a.cc:29:14: warning: multi-character character constant [-Wmultichar]
   29 |         st = 'YYMM';
      |              ^~~~~~
a.cc:32:14: warning: multi-character character constant [-Wmultichar]
   32 |         st = 'NA';
      |              ^~~~
a.cc: In function 'bool month(std::string)':
a.cc:12:71: error: expected ';' before ')' token
   12 |     return (str[0]=='0' || (str[0]=='1' && (0 <= (str[1] -'0') <= 2))));
      |                                                                       ^
      |                                                                       ;
a.cc:12:71: error: expected primary-expression before ')' token
a.cc: In function 'void solve()':
a.cc:19:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   19 |     string s1 = s[0]+s[1];
a.cc:20:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   20 |     string s2 = s[2]+s[3];
a.cc:23:14: warning: overflow in conversion from 'int' to 'char' changes value from '1431262547' to '83' [-Woverflow]
   23 |         st = 'AMBIGUOUS';
      |              ^~~~~~~~~~~
a.cc:26:14: warning: overflow in conversion from 'int' to 'char' changes value from '1296914777' to '89' [-Woverflow]
   26 |         st = 'MMYY';
      |              ^~~~~~
a.cc:29:14: warning: overflow in conversion from 'int' to 'char' changes value from '1499024717' to '77' [-Woverflow]
   29 |         st = 'YYMM';
      |              ^~~~~~
a.cc:32:14: warning: overflow in conversion from 'int' to 'char' changes value from '20033' to '65' [-Woverflow]
   32 |         st = 'NA';
      |              ^~~~
Language: C++

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

/*
月になりうる
*/

bool month(string str){
    return (str[0]=='0' || (str[0]=='1' && (0 <= (str[1] -'0') <= 2));
}


void solve(){
    string s;
    cin >> s;
    string s1 = s[0]+s[1];
    string s2 = s[2]+s[3];
    string st;
    if(month(s1)&&month(s2)){
        st = 'AMBIGUOUS';
    }
    else if(month(s1)){
        st = 'MMYY';
    }
    else if(month(s2)){
        st = 'YYMM';
    }
    else{
        st = 'NA';
    }
    cout << st << endl;
}

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

Compiler output:
a.cc:23:14: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   23 |         st = 'AMBIGUOUS';
      |              ^~~~~~~~~~~
a.cc:26:14: warning: multi-character character constant [-Wmultichar]
   26 |         st = 'MMYY';
      |              ^~~~~~
a.cc:29:14: warning: multi-character character constant [-Wmultichar]
   29 |         st = 'YYMM';
      |              ^~~~~~
a.cc:32:14: warning: multi-character character constant [-Wmultichar]
   32 |         st = 'NA';
      |              ^~~~
a.cc: In function 'bool month(std::string)':
a.cc:12:70: error: expected ')' before ';' token
   12 |     return (str[0]=='0' || (str[0]=='1' && (0 <= (str[1] -'0') <= 2));
      |            ~                                                         ^
      |                                                                      )
a.cc: In function 'void solve()':
a.cc:19:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   19 |     string s1 = s[0]+s[1];
a.cc:20:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   20 |     string s2 = s[2]+s[3];
a.cc:23:14: warning: overflow in conversion from 'int' to 'char' changes value from '1431262547' to '83' [-Woverflow]
   23 |         st = 'AMBIGUOUS';
      |              ^~~~~~~~~~~
a.cc:26:14: warning: overflow in conversion from 'int' to 'char' changes value from '1296914777' to '89' [-Woverflow]
   26 |         st = 'MMYY';
      |              ^~~~~~
a.cc:29:14: warning: overflow in conversion from 'int' to 'char' changes value from '1499024717' to '77' [-Woverflow]
   29 |         st = 'YYMM';
      |              ^~~~~~
a.cc:32:14: warning: overflow in conversion from 'int' to 'char' changes value from '20033' to '65' [-Woverflow]
   32 |         st = 'NA';
      |              ^~~~
Language: C++

#include <iostream>
#include <string>

int main()
{
    std::string S;
    std::cin >> S;

    std::string u = S.substr(0, 2);
    int ui = std::stoi(u);
    std::string d = S.substr(2, 2);
    int di = std::stoi(d);

    std::string ans;
    if ((ui == 0 && di == 0) || (ui > 12 && di > 12) || (ui == 0 && di > 12) || (ui > 12 && di == 0)) {
        ans = "NA";
    }
    else if ((ui > 0 && ui < 13) && (di > 0 && di < 13) {
        ans = "AMBIGUOUS";
    }
    else {
        if (ui < 13) {
            ans = "MMYY";
        }
        else {
            ans = "YYMM";
        }
    }

    std::cout << ans << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:56: error: expected ';' before '{' token
   18 |     else if ((ui > 0 && ui < 13) && (di > 0 && di < 13) {
      |                                                        ^~
      |                                                        ;
a.cc:21:5: error: expected primary-expression before 'else'
   21 |     else {
      |     ^~~~
a.cc:20:6: error: expected ')' before 'else'
   20 |     }
      |      ^
      |      )
   21 |     else {
      |     ~~~~
a.cc:18:13: note: to match this '('
   18 |     else if ((ui > 0 && ui < 13) && (di > 0 && di < 13) {
      |             ^
Language: C++

#include <iostream>
#include <string>

int main()
{
    std::string S;
    std::cin >> S;

    std::string u = S.substr(0, 2);
    int ui = std::stoi(u);
    std::string d = S.substr(2, 2);
    int di = std::stoi(d);

    std::string ans;
    if ((ui == 0 && di == 0) || (ui > 12 && di > 12) || (ui == 0 && di > 12) || (ui > 12 && di == 0)) {
        ans = "NA";
    }
    else if ((ui > 0 &&ui < 13) && (di > 0 && di < 13) {
        ans = "AMBIGUOUS";
    }
    else {
        if (ui < 13) {
            ans = "MMYY";
        }
        else {
            ans = "YYMM";
        }
    }

    std::cout << ans << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:55: error: expected ';' before '{' token
   18 |     else if ((ui > 0 &&ui < 13) && (di > 0 && di < 13) {
      |                                                       ^~
      |                                                       ;
a.cc:21:5: error: expected primary-expression before 'else'
   21 |     else {
      |     ^~~~
a.cc:20:6: error: expected ')' before 'else'
   20 |     }
      |      ^
      |      )
   21 |     else {
      |     ~~~~
a.cc:18:13: note: to match this '('
   18 |     else if ((ui > 0 &&ui < 13) && (di > 0 && di < 13) {
      |             ^
Language: C++

#include <iostream>
#include <string>

int main()
{
    std::string S;
    std::cin >> S;

    std::string u = S.substr(std::begin(S), 2);
    int ui = std::stoi(u);
    std::string d = S.substr(std::begin(S)+2, 2);
    int di = std::stoi(d);

    std::string ans;
    if (ui == 0 || di == 0 || (ui > 12 && di > 12)) {
        ans = "NA";
    }
    else if (ui < 13 && di < 13) {
        ans = "AMBIGUOUS";
    }
    else {
        if (ui < 13) {
            ans = "MMYY";
        }
        else {
            ans = "YYMM";
        }
    }

    std::cout << ans << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: cannot convert 'std::__cxx11::basic_string<char>::iterator' to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
    9 |     std::string u = S.substr(std::begin(S), 2);
      |                              ~~~~~~~~~~^~~
      |                                        |
      |                                        std::__cxx11::basic_string<char>::iterator
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
a.cc:11:43: error: cannot convert '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >' to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   11 |     std::string d = S.substr(std::begin(S)+2, 2);
      |                              ~~~~~~~~~~~~~^~
      |                                           |
      |                                           __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
Language: C++

#include <iostream>
#include <string>

int main()
{
    std::string S;
    std::cin >> S;

    std::string u = S[0] + S[1];
    int ui = std::stoi(u);
    std::string d = S[2] + S[3];
    int di = std::stoi(d);

    std::string ans;
    if (ui == 0 || di == 0 || (ui > 12 && di > 12)) {
        ans = "NA";
    }
    else if (ui < 13 && di < 13) {
        ans = "AMBIGUOUS";
    }
    else {
        if (ui < 13) {
            ans = "MMYY";
        }
        else {
            ans = "YYMM";
        }
    }

    std::cout << ans << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |     std::string u = S[0] + S[1];
a.cc:11:26: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   11 |     std::string d = S[2] + S[3];
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  int left, right;
  left = n/100;
  right = n%100;
  string s;
  if (left>12 && right>12) s = "NA";
  else if (left*right==0 && (left>12 || right>12)) s = "NA" 
  else if (left>12) s = "YYMM";
  else if (ight>12) s = "MMYY";
  else s = "AMBIGUOUS";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:60: error: expected ';' before 'else'
   12 |   else if (left*right==0 && (left>12 || right>12)) s = "NA"
      |                                                            ^
      |                                                            ;
   13 |   else if (left>12) s = "YYMM";
      |   ~~~~                                                      
a.cc:14:12: error: 'ight' was not declared in this scope; did you mean 'right'?
   14 |   else if (ight>12) s = "MMYY";
      |            ^~~~
      |            right
Language: C++

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

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

    bool YYMM = 0 < A % 100 && 0 < A / 100;
    bool MMYY = 0 < A / 100 && 0 < A % 100;

    if(YYMM && MMYY){
        cout << "AMBIGUOUS" << endl;
    }
    else if(YYMM){
        cout << "YYMM" << endl;
    }
    else if(MMYY){
        cout << "MMYY" << endl;
    }
    else{
        cout "NA" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: expected ';' before string constant
   21 |         cout "NA" << endl;
      |             ^~~~~
      |             ;
Language: C++

//templates
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <unordered_map>
#include <map>
#include <cmath>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ALL(x) (x).begin(),(x).end()
#define pb push_back
#define SZ(x) ((int)(x).size())
typedef long long ll;

using namespace std;
int main(){
  int S, FH, SH;
  cin >> S;
  FH = S/100;
  LH = S%100;
  if(FH>0 && FH<13 && LH>0 &&LH<13) cout << "AMBIGUOUS" << endl;
  else if(FH>0 && FH<13) cout << "MMYY" << endl;
  else if(LH>0 && LH<13) cout << "YYMM" << endl;
  else cout << "NA" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: 'LH' was not declared in this scope; did you mean 'SH'?
   21 |   LH = S%100;
      |   ^~
      |   SH
Language: C++

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

int main(){
  int S; 
  cin >> S;
  
  int S12,S34;
  S12 = S1/100;
  S34 = S1%100;
  
  string ans;
 
  if(1<=S12&&S12<=12){
    if(1<=S34&&S34<=12){
      ans = "AMBIGUOUS";
    }else{
      ans = "MMYY";
    }
  }else{
    if(1<=S34&&S34<=12){
      ans = "YYMM";
    }else{
      ans = "NA";
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'S1' was not declared in this scope; did you mean 'S12'?
    9 |   S12 = S1/100;
      |         ^~
      |         S12
Language: C++

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

int main(){
  int S; 
  cin >> S;
  
  int S1,S2;
  S12 = S1/100;
  S34 = S1%100;
  
  string ans;
 
  if(1<=S12&&S12<=12){
    if(1<=S34&&S34<=12){
      ans = "AMBIGUOUS";
    }else{
      ans = "MMYY";
    }
  }else{
    if(1<=S34&&S34<=12){
      ans = "YYMM";
    }else{
      ans = "NA";
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'S12' was not declared in this scope; did you mean 'S2'?
    9 |   S12 = S1/100;
      |   ^~~
      |   S2
a.cc:10:3: error: 'S34' was not declared in this scope
   10 |   S34 = S1%100;
      |   ^~~
Language: C++

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

int main(){
  int S; 
  cin >> S;
  
  int S1,S2;
  S12 = S1/100;
  S34 = S1%100;
  
  string ans;
 
  if(1<=S12&&S12<=12){
    if(1<=S34&&S34<=12){
      ans = "AMBIGUOUS";
    }else{
      ans = "MMYY";
    }
  }else{
    if(1<=S34&&S34<=12){
      ans = "YYMM";
    }else{
      ans = "NA";
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: declaration of 'auto n' has no initializer
    5 |   auto n;
      |   ^~~~
a.cc:8:24: error: 'b' was not declared in this scope
    8 |   if(0 < a < 13 && 0 < b < 13)
      |                        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: expected primary-expression before '%' token
   12 |   else if(0 < b < 13 %% (a == 0 || 12 < a < 100))
      |                       ^
Language: Java

import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        int s = sc.nextInt();

        int s1 = s / 100;
        int s2 = s - (s1 * 100);

        if (s1 > 0 && s1 <= 12 && s2 > 0 && s2 <= 12)
            System.out.println("AMBIGUOUS");
        else if (s1 > 0 && s1 <= 12)
            System.out.println("MMYY");
        else if (s2 > 0 && s2 <= 12)
            System.out.println("YYMM");
        else
            System.out.println("NA");
        sc.close()
    }
}

Compiler output:
Main.java:20: error: ';' expected
        sc.close()
                  ^
1 error
Language: Java


import java.util.Scanner;

class Main {
	public static void main(String[]args) {
		Scanner scan = new Scanner(System.in) ;
		String s = scan.next();
		int a = Integer.parseInt(s.substring(0,2));
		int b = Integer.parseInt(s.substring(2,4));
		
		if((a<=0 && b>12) || (b<=0 && a>12) || (a > 12 && b >12 ) {
			System.out.println("NA");
		}else {
			if(a >12 )
			{
				System.out.println("YYMM");
			}else if(b>12) {
				System.out.println("MMYY");
			}else {
				System.out.println("AMBIGUOUS");
			}
		}
	}
}

Compiler output:
Main.java:11: error: ')' expected
		if((a<=0 && b>12) || (b<=0 && a>12) || (a > 12 && b >12 ) {
		                                                         ^
1 error
Language: Java


import java.util.Scanner;

class Main {
	public static void main(String[]args) {
		Scanner scan = new Scanner(System.in) ;
		String s = scan.next();
		int a = Integer.parseInt(s.substring(0,2));
		int b = Integer.parseInt(s.substring(2,4));
		
		if((a<=0 ) || (b<=0) || (a > 12 && b >12 ) {
			System.out.println("NA");
		}else {
			if(a >12 )
			{
				System.out.println("YYMM");
			}else if(b>12) {
				System.out.println("MMYY");
			}else {
				System.out.println("AMBIGUOUS");
			}
		}
	}
}

Compiler output:
Main.java:11: error: ')' expected
		if((a<=0 ) || (b<=0) || (a > 12 && b >12 ) {
		                                          ^
1 error
Language: C++

#include<iostream>

using namespace::std;

int main(){
	char s[5];
  	cin>>s;
  	int f=(s[0]-'0')*10+s[1]-'0',se=(s[2]-'0')*10+s[3]-'0';
  	if(f>12 && se>12) cout<<"NA\n";
  	else(f>12) cout<<"YYMM\n";
    else(se>12) cout<<"MMYY\n";
    else cout<<"AMBIGUOUS\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before 'cout'
   10 |         else(f>12) cout<<"YYMM\n";
      |                   ^~~~~
      |                   ;
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else(se>12) cout<<"MMYY\n";
      |     ^~~~
a.cc:11:16: error: expected ';' before 'cout'
   11 |     else(se>12) cout<<"MMYY\n";
      |                ^~~~~
      |                ;
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout<<"AMBIGUOUS\n";
      |     ^~~~
Language: C++

#include<iostream>

using namespace::std;

int main(){
	char s[5];
  	cin>>s;
  	int f=(s[0]-'0')*10+s[1]-'0',s=(s[2]-'0')*10+s[3]-'0';
  	if(f>12 && s>12) cout<<"NA\n";
  	else(f>12) cout<<"YYMM\n";
    else(s>12) cout<<"MMYY\n";
    else cout<<"AMBIGUOUS\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: conflicting declaration 'int s'
    8 |         int f=(s[0]-'0')*10+s[1]-'0',s=(s[2]-'0')*10+s[3]-'0';
      |                                      ^
a.cc:6:14: note: previous declaration as 'char s [5]'
    6 |         char s[5];
      |              ^
a.cc:9:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if(f>12 && s>12) cout<<"NA\n";
      |                    ~^~~
a.cc:10:19: error: expected ';' before 'cout'
   10 |         else(f>12) cout<<"YYMM\n";
      |                   ^~~~~
      |                   ;
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else(s>12) cout<<"MMYY\n";
      |     ^~~~
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else(s>12) cout<<"MMYY\n";
      |          ~^~~
a.cc:11:15: error: expected ';' before 'cout'
   11 |     else(s>12) cout<<"MMYY\n";
      |               ^~~~~
      |               ;
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout<<"AMBIGUOUS\n";
      |     ^~~~
Language: C++

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

#define ll   long long

int main() {

    int N, up, down;
    cin >> N;

    up = N / 100;
    down = N % 100;

    if(up ==  || down == 0){
        cout << "NA" << endl;
    }

    if(up <= 12 && down <= 12){
        cout << "AMBIGUOUS" << endl;
    }
    if(up > 12 && down <= 12){
        cout << "YYMM" << endl;
    }
    if(up <= 12 && down > 12){
        cout << "MMYY" << endl;
    }
    if(up > 12 && down > 12){
        cout << "NA" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected primary-expression before '||' token
   14 |     if(up ==  || down == 0){
      |               ^~
Language: Java

import java.util.*;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

    int s=sc.nextInt();
		s+=10000;
		int k=s%100; //下２桁
		int t=s/100; //上２桁

		if(k<=12 && t<=112 && k!=0 t!=0){
			System.out.println("AMBIGUOUS");
		}else if(k>12 && t<=112){
			System.out.println("MMYY");
		}else if(k<=12 && k!=0 && t>112){
			System.out.println("YYMM");
		}else{
			System.out.println("NA");
		}


	}
}


Compiler output:
Main.java:13: error: ')' expected
		if(k<=12 && t<=112 && k!=0 t!=0){
		                          ^
Main.java:13: error: not a statement
		if(k<=12 && t<=112 && k!=0 t!=0){
		                            ^
Main.java:13: error: ';' expected
		if(k<=12 && t<=112 && k!=0 t!=0){
		                               ^
Main.java:15: error: 'else' without 'if'
		}else if(k>12 && t<=112){
		 ^
4 errors
Language: C++

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

int main()
{
  // 入力受け取り
  string S;
  cin >> S;
  
  string ret1=str("NA");
  if (S[0] == "0") ret1 = str("AMBIGUOUS");
  else if (S[0] == "1" && 0 <= S[1] && S[1] <= 2) ret1 = str("AMBIGUOUS");
  else ret1 = str("YYMM");
  
  string ret2=str("NA");
  if (S[2] == "0") ret2 = str("AMBIGUOUS");
  else if (S[2] == "1" && 0 <= S[3] && S[3] <= 2) ret2 = str("AMBIGUOUS");
  else ret2 = str("MMYY");
  
  string ret;
  if (ret1 == str("AMBIGUOUS") && ret2 == str("AMBIGUOUS")) ret = str("AMBIGUOUS");
  else if (ret1 == str("YYMM") && ret2 == str("AMBIGUOUS")) ret = str("YYMM");
  else if (ret1 == str("AMBIGUOUS") && ret2 == str("MMYY")) ret = str("MMYY");
  else ret=str("NA");
  
  cout << ret << endl;   
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'str' was not declared in this scope; did you mean 'std'?
   10 |   string ret1=str("NA");
      |               ^~~
      |               std
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (S[0] == "0") ret1 = str("AMBIGUOUS");
a.cc:12:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if (S[0] == "1" && 0 <= S[1] && S[1] <= 2) ret1 = str("AMBIGUOUS");
a.cc:16:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if (S[2] == "0") ret2 = str("AMBIGUOUS");
a.cc:17:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   else if (S[2] == "1" && 0 <= S[3] && S[3] <= 2) ret2 = str("AMBIGUOUS");
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <cmath>
using namespace std;

int main() {
  string S;
  cin>>S;
  
  string X=S.substr(0,2);
  string Y=S.substr(2,2);
  
  int x=stoi(X);
  int y=stoi(Y);
  
  // xとyが1-12であるか判定するフラグ
  bool x_m=false;
  bool y_m=false;
  
  if(1<=x && x<=12)
    x_m=true;
  if(1<=y && y<=12)
    y_m=true;
  
  if(x_m=true && y_m=false)
    cout<<"MMYY"<<endl;
  else if(x_m=false && y_m=true)
    cout<<"YYMM"<<endl;
  else if(x_m=true && y_m=true)
    cout<<"AMBIGUOUS"<<endl;
  else if(x_m=false && y_m=false)
    cout<<"NA"<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:15: error: lvalue required as left operand of assignment
   28 |   if(x_m=true && y_m=false)
      |          ~~~~~^~~~~~
a.cc:30:21: error: lvalue required as left operand of assignment
   30 |   else if(x_m=false && y_m=true)
      |               ~~~~~~^~~~~~
a.cc:32:20: error: lvalue required as left operand of assignment
   32 |   else if(x_m=true && y_m=true)
      |               ~~~~~^~~~~~
a.cc:34:21: error: lvalue required as left operand of assignment
   34 |   else if(x_m=false && y_m=false)
      |               ~~~~~~^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(void) {
    char S[4+1] = {0};
    cin >> S;
    //cout << S;

    char c12[2+1];
    c12[0] = S[0];
    c12[1] = S[1];
    c12[2] = '\0';
    int i12 = atoi(c12);

    char c34[2+1];
    c34[0] = S[3];
    c34[1] = S[4];
    c34[2] = '\0';
    int i34 = atoi(c34);

    if (1 <= i12 && i12 <= 12) {
        if (1 <= i34 && i34 <= 12) {
            cout << "AMBIGUOUS" << "\n";
        } else {
            cout << "MMYY" << "\n";
        }
    } else {
        if (1 <= i34 && i34 <= 12) {
            cout << "YYMM" << "\n";
        } else {
            count << "NA" << "\n";
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:13: error: 'count' was not declared in this scope
   32 |             count << "NA" << "\n";
      |             ^~~~~
Language: C++

#include <iostream>
using namespace std;

string s;

int main() {
  cin >> s;
  int f = stoi(s.substr(0,2)),
      s = stoi(s.substr(2,2));
  if(0 <= f && f <= 12 && 0 <= s && s <= 12)
    cout << "NA" << endl;
  else if(!(0 <= f && f <= 12) && !(0 <= s && s <= 12))
    cout << "AMBIGUOUS" << endl;
  else if(!(0 <= f && f <= 12) && 0 <= s && s <= 12)
    cout << "YYMM" << endl;
  else if(0 <= f && f <= 12 && !(0 <= s && s <= 12))
    cout << "MMYY" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: request for member 'substr' in 's', which is of non-class type 'int'
    9 |       s = stoi(s.substr(2,2));
      |                  ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i <= (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;
using tiii = tuple<int, int, int>;

int main() {
  int S;
  cin >> S;
  
  int L = a/100;
  int R = a%100;
  
  bool flag1 = 1<=L && L<=12;
  bool flag2 = 1<=R && R<=12;
  
  if (flag1 && flag2)
    cout << "AMBIGUOUS" << endl;
  else if (flag1 && !(flag2))
    cout << "MMYY" << endl;
  else if (!(flag1) && flag2)
    cout << "YYMM" << endl;
  else
    cout << "NA" << endl;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i <= (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;
using tiii = tuple<int, int, int>;

int main() {
  string S;
  cin >> S;
  
  string S1 = {S.at(0), S.at(1)};
  string S2 = {S.at(2), S.at(3)};
  
  bool flag1 = "01"<=S1<="12";
  bool flag2 = "01"<=S2<="12";
  
  if (flag1 && flag2)
    cout << "AMBIGUOUS" << endl;
  else if (flag1 && !(flag2))
    cout << "MMYY" << endl;
  else if (!(flag1) && flag2)
    cout << "YYMM" << endl;
  else
    cout << "NA" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |   bool flag1 = "01"<=S1<="12";
      |                ~~~~~~~~^~~~~~
a.cc:26:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |   bool flag2 = "01"<=S2<="12";
      |                ~~~~~~~~^~~~~~
Language: C

#include<stdio.h>

int main(void){
  char[5];
  scanf("%s",s);
  
  if(1 <= s[0]*10+s[1] && s[0]*10+s[1] <= 12 ){
    if(1 <= s[2]*10+s[3] && s[2]*10+s[3] <= 12){
      puts("AMBIGUOUS");
      
    }
    else {
      puts("MMYY");
      
    }
  }
  
  else if(1 <= s[2]*10+s[3] && s[2]*10+s[3] <= 12){
    if(s[0]*10 + s[1] == 0 || s[0]*10 + s[1] > 12){
      puts("YYMM");
    }
  }
  
  else{
    puts("NA");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected identifier or '(' before '[' token
    4 |   char[5];
      |       ^
main.c:5:14: error: 's' undeclared (first use in this function)
    5 |   scanf("%s",s);
      |              ^
main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <climits>
#include <bitset>
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<string> vs;
typedef vector<pair<int,int>> vpii;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvc;
typedef vector<vector<string>> vvs;
#define rep(i,n) for(int i=0;i<n;i++)
#define fin(ans) cout<<(ans)<<endl
#define P 1000000007
#define STI(s) atoi(s.c_str())//string to int
#define mp(p,q) make_pair(p,q)
#define Sort(a) sort(a.begin(),a.end())
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const int INF = INT_MAX;
const long long LLINF = 1LL<<60;
//g++ -std=c++1z temp.cpp
//./a.exe

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


int main(void){ios::sync_with_stdio(false);cin.tie(0);
//////////////////////////////////////////////////////
int a,b;   
string s;
cin >>s;
a = (s[0]-'0')*10 + (s[1]-'0');
b = (s[2]-'0')*10 + (s[3]-'0');

if ((a >= 13|| a == 0) && (b >= 13|| b == 0))
{
    cout << "NA" << endl;
}else if ((a > 0 && a <= 12)&&(b > 0 && b <= 12))
{   
    cout << "AMBIGUOUS" << endl;
}else if ((a >= 13 || a == 0 (b <= 12 && b > 0))
{
    cout << "YYMM" << endl;
}else
{
    cout << "MMYY"<< endl;
}











//////////////////////////////////////////////////////
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:57:30: error: expression cannot be used as a function
   57 | }else if ((a >= 13 || a == 0 (b <= 12 && b > 0))
      |                            ~~^~~~~~~~~~~~~~~~~~
a.cc:60:2: error: expected primary-expression before 'else'
   60 | }else
      |  ^~~~
a.cc:60:2: error: expected ')' before 'else'
   60 | }else
      |  ^~~~
      |  )
a.cc:57:10: note: to match this '('
   57 | }else if ((a >= 13 || a == 0 (b <= 12 && b > 0))
      |          ^
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <climits>
#include <bitset>
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<string> vs;
typedef vector<pair<int,int>> vpii;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvc;
typedef vector<vector<string>> vvs;
#define rep(i,n) for(int i=0;i<n;i++)
#define fin(ans) cout<<(ans)<<endl
#define P 1000000007
#define STI(s) atoi(s.c_str())//string to int
#define mp(p,q) make_pair(p,q)
#define Sort(a) sort(a.begin(),a.end())
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const int INF = INT_MAX;
const long long LLINF = 1LL<<60;
//g++ -std=c++1z temp.cpp
//./a.exe

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


int main(void){ios::sync_with_stdio(false);cin.tie(0);
//////////////////////////////////////////////////////
int a,b;   
string s;
cin >>s;
a = (s[0]-'0')*10 + (s[1]-'0');
b = (s[2]-'0')*10 + (s[3]-'0');

if ((a >= 13|| a == 0) && (b >= 13)|| b == 0))
{
    cout << "NA" << endl;
}else if ((a > 0 && a <= 12)&&(b > 0 && b <= 12))
{   
    cout << "AMBIGUOUS" << endl;
}else if ((a >= 13 && b >= 13)||(a >= 13 && b == 0))
{
    cout << "MMYY" << endl;
}else
{
    cout << "YYMM"<< endl;
}











//////////////////////////////////////////////////////
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:46: error: expected primary-expression before ')' token
   51 | if ((a >= 13|| a == 0) && (b >= 13)|| b == 0))
      |                                              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int s; cin >> s;
  int Y=s/100; M=s%100;
  if(Y<=12 && M<=12) 
    cout << "AMBIGUOUS";
  else if (Y<=12 && M>=13) 
    cout << "MMYY";
  else if(Y>=13 && M<=12)
    cout << "YYMM";
  else
    cout <<"NA";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'M' was not declared in this scope
    5 |   int Y=s/100; M=s%100;
      |                ^
Language: C++

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


int main()
{
	cin>>s;
	if(s[0]>'1'){
		if(s[2]>'1'){cout<<"NA"<<endl;return 0;}
		else if(s[2]=='1' && s[3]<'3'){cout<<"YYMM"<<endl; return 0;}
		else if(s[2]=='1' && s[3]>'2'){cout<<"NA"<<endl;  return 0;}
		else if(s[2]=='0' && s[3]=='0'){cout<<"NA"<<endl; return 0;}
		else if(s[2]=='0' && s[3]!='0'){cout<<"YYMM"<<endl; return 0;}
	}
	else{
		if(s[0]=='1'){
			if(s[1]>'2'){
				if(s[2]>'1'){cout<<"NA"<<endl;return 0;}
				else if(s[2]=='1' && s[3]<'3'){cout<<"YYMM"<<endl; return 0;}
				else if(s[2]=='1' && s[3]>'2'){cout<<"NA"<<endl;  return 0;}
				else if(s[2]=='0' && s[3]=='0'){cout<<"NA"<<endl; return 0;}
				else if(s[2]=='0' && s[3]!='0'){cout<<"YYMM"<<endl; return 0;}		
			}
			else{
				if(s[2]>'1'){cout<<"MMYY"<<endl;return 0;}
				else if(s[2]=='1' && s[3]<'3'){cout<<"AMBIGUOUS"<<endl; return 0;}
				else if(s[2]=='1' && s[3]>'2'){cout<<"MMYY"<<endl;  return 0;}
				else if(s[2]=='0' && s[3]=='0'){cout<<"MMYY"<<endl; return 0;}
				else if(s[2]=='0' && s[3]!='0'){cout<<"AMBIGUOUS"<<endl; return 0;}
			}
		}
		else{
			if(s[1]=='0'){
				if(s[2]>'1'){cout<<"NA"<<endl;return 0;}
				else if(s[2]=='1' && s[3]<'3'){cout<<"YYMM"<<endl; return 0;}
				else if(s[2]=='1' && s[3]>'2'){cout<<"NA"<<endl;  return 0;}
				else if(s[2]=='0' && s[3]=='0'){cout<<"NA"<<endl; return 0;}
				else if(s[2]=='0' && s[3]!='0'){cout<<"YYMM"<<endl; return 0;}7		
			}
			else{
				if(s[2]>'1'){cout<<"MMYY"<<endl;return 0;}
				else if(s[2]=='1' && s[3]<'3'){cout<<"AMBIGUOUS"<<endl; return 0;}
				else if(s[2]=='1' && s[3]>'2'){cout<<"MMYY"<<endl;  return 0;}
				else if(s[2]=='0' && s[3]=='0'){cout<<"MMYY"<<endl; return 0;}
				else if(s[2]=='0' && s[3]!='0'){cout<<"AMBIGUOUS"<<endl; return 0;}
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:96: error: expected ';' before '}' token
   39 |                                 else if(s[2]=='0' && s[3]!='0'){cout<<"YYMM"<<endl; return 0;}7
      |                                                                                                ^
      |                                                                                                ;
   40 |                         }
      |                         ~
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;

int main(){
  int a;scanf("%d",a);
  
  int left = a /1000;
  int right = (a - left*1000) / 100;
  int three = (a - left*1000 - right*100) /10;
  int four = (a - left*1000- right*100 - three*10);
  
  int migi = left + right;
  int hidari = three + four;
  if ( migi>13 && hidari<13)printf("YYMM");
  else if (migi<13 && hidari > 13)printf("MMYY");
  else if (migi > 13 %% hidari > 13) pritf("NA");
  else printf("AMBIGUOUS");
  return 0;
}




  
  
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: expected primary-expression before '%' token
   17 |   else if (migi > 13 %% hidari > 13) pritf("NA");
      |                       ^
a.cc:17:38: error: 'pritf' was not declared in this scope; did you mean 'printf'?
   17 |   else if (migi > 13 %% hidari > 13) pritf("NA");
      |                                      ^~~~~
      |                                      printf
Language: C++

 #include "bits/stdc++.h"
#include <iostream>
using namespace std;
 
int main(){
  char a[4];
  for (int i=0;i<4;i++){
    scanf("%s", a[i]);
  }
  int right, left;
  right = (int　a[1])*10 + (int a[0]);
  left = (int a[3])*10 + (int a[2]);
 
  if (left < 13 && right > 13 )cout << "YYMMM" << endl;
  else if (right < 13 && left > 13) cout << "MMYY" << endl;
  else if (right > 13 && left > 13) cout << "AMGIGUOUS" << endl;
  else cout << "NA" << endl;
  
  return 0;
}
  
  

Compiler output:
a.cc:11:12: error: extended character 　 is not valid in an identifier
   11 |   right = (int　a[1])*10 + (int a[0]);
      |            ^
a.cc: In function 'int main()':
a.cc:11:12: error: 'int\U00003000a' was not declared in this scope
   11 |   right = (int　a[1])*10 + (int a[0]);
      |            ^~~~~~
a.cc:11:29: error: expected primary-expression before 'int'
   11 |   right = (int　a[1])*10 + (int a[0]);
      |                             ^~~
a.cc:11:29: error: expected ')' before 'int'
   11 |   right = (int　a[1])*10 + (int a[0]);
      |                            ~^~~
      |                             )
a.cc:12:11: error: expected primary-expression before 'int'
   12 |   left = (int a[3])*10 + (int a[2]);
      |           ^~~
a.cc:12:11: error: expected ')' before 'int'
   12 |   left = (int a[3])*10 + (int a[2]);
      |          ~^~~
      |           )
Language: C++

#include <bits/stbc++.h>
                         ^
compilation terminated.
#include <iostream>
using namespace std;
 
int main(){
  char a[4];
  for (int i=0;i<4;i++){
    scanf("%s", a[i]);
  }
  int right, left;
  right = (int　a[1])*10 + (int a[0]);
  left = (int a[3])*10 + (int a[2]);
 
  if (left < 13 && right > 13 )cout << "YYMMM" << endl;
  else if (right < 13 && left > 13) cout << "MMYY" << endl;
  else if (right > 13 && left > 13) cout << "AMGIGUOUS" << endl;
  else cout << "NA" << endl;
  
  return 0;
}
  
  

Compiler output:
a.cc:1:10: fatal error: bits/stbc++.h: No such file or directory
    1 | #include <bits/stbc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stbc++.h>
#include <iostream>
using namespace std;
 
int main(){
  char a[4];
  for (int i=0;i<4;i++){
    scanf("%s", a[i]);
  }
  int right, left;
  right = (int　a[1])*10 + (int a[0]);
  left = (int a[3])*10 + (int a[2]);
 
  if (left < 13 && right > 13 )cout << "YYMMM" << endl;
  else if (right < 13 && left > 13) cout << "MMYY" << endl;
  else if (right > 13 && left > 13) cout << "AMGIGUOUS" << endl;
  else cout << "NA" << endl;
  
  return 0;
}
  
  

Compiler output:
a.cc:1:10: fatal error: bits/stbc++.h: No such file or directory
    1 | #include <bits/stbc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stbc++.h>
using namespace std;
 
int main(){
  char a[4];
  for (int i=0;i<4;i++){
    scanf("%s", a[i]);
  }
  int right, left;
  right = (int　a[1])*10 + (int a[0]);
  left = (int a[3])*10 + (int a[2]);
 
  if (left < 13 && right > 13 )cout << "YYMMM" << endl;
  else if (right < 13 && left > 13) cout << "MMYY" << endl;
  else if (right > 13 && left > 13) cout << "AMGIGUOUS" << endl;
  else cout << "NA" << endl;
  
  return 0;
}
  
  

Compiler output:
a.cc:1:10: fatal error: bits/stbc++.h: No such file or directory
    1 | #include <bits/stbc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:43: error: expected ';' before 'ans'
   10 |   if(a > 0 && a < 13 && (b == 0 || b > 12) ans = "MMYY";
      |                                           ^~~~
      |                                           ;
a.cc:11:3: error: expected primary-expression before 'if'
   11 |   if((a == 0 || a > 12) && b > 0 && b < 13) ans = "YYMM";
      |   ^~
a.cc:10:57: error: expected ')' before 'if'
   10 |   if(a > 0 && a < 13 && (b == 0 || b > 12) ans = "MMYY";
      |     ~                                                   ^
      |                                                         )
   11 |   if((a == 0 || a > 12) && b > 0 && b < 13) ans = "YYMM";
      |   ~~
Language: C++

#include <bits/stbc++.h>
using namespace std;
 
int main(){
  char a[4];
  for (int i=0;i<4;i++){
    cin >> a[i];
  }
  int right, left;
  right = (int　a[1])*10 + (int a[0]);
  left = (int a[3])*10 + (int a[2]);
 
  if (left < 13 && right > 13 )cout << "YYMMM" << endl;
  else if (right < 13 && left > 13) cout << "MMYY" << endl;
  else if (right > 13 && left > 13) cout << "AMGIGUOUS" << endl;
  else cout << "NA" << endl;
  
  return 0;
}
  
  

Compiler output:
a.cc:1:10: fatal error: bits/stbc++.h: No such file or directory
    1 | #include <bits/stbc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  char a[4];
  for (int i=0;i<4;i++){
    cin >> a[i];
  }
  int right, left;
  right = (int　a[1])*10 + (int a[0]);
  left = (int a[3])*10 + (int a[2]);

  if (left < 13 && right > 13 )cout << "YYMMM" << endl;
  else if (right < 13 && left > 13) cout << "MMYY" << endl;
  else if (right > 13 && left > 13) cout << "AMGIGUOUS" << endl;
  else cout << "NA" << endl;
  
  return 0;
}
  
  
  
  

Compiler output:
a.cc:1:10: fatal error: bits/stbc++.h: No such file or directory
    1 | #include <bits/stbc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
 int s;
 cin>>s;
 int l=s/100;
 int r=s%100;
 if(l>=1&&l<=12)
 {
     if(r>=1&&r<=12)
        cout<<"AMBIGOUS";
     else
        cout<<"MMYY";
 }
 else if(r>=1&&r<=12)
    cout"YYMM";
 else
    cout<<"NA";


}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: expected ';' before string constant
   18 |     cout"YYMM";
      |         ^~~~~~
      |         ;
Language: C++

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

int abs(int x, int y) {
  if (x < y) {
    return y-x;
  }
  else{
    return x-y;
  }
}
int main(){
  int S;
  cin >>S;
  int mae,ato;
  mae = S/100;
  ato = S%100;
  if(ato <= 12 && ato >= 1 && mae >12){
    cout << "YYMM" <<endl;
  }
  else if(ato <=12 &&ato>=1 && mae >=1 &&mae<=12  ){
    cout <<"AMBIGUOUS"<<endl;
  }
  else if(ato >12 && mae >=1 && mae <= 12 ){
    cout<<"MMYY"<<endl;
  }
  else if(mae ==0 && ato <=12 && ato>=1){
    cout<< "YYMM"<<endl;
  }
    cout<< "NA" <<endl;
  }
}

Compiler output:
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

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

int abs(int x, int y) {
  if (x < y) {
    return y-x;
  }
  else{
    return x-y;
  }
}
int main(){
  int S;
  cin >>S;
  int mae,ato;
  mae = S/100;
  ato = S%100;
  if(ato <= 12 && ato >= 1 && mae >12){
    cout << "YYMM" <<endl;
  }
  else if(ato <=12 &&ato>=1 && mae >=1 &&mae<=12  )
    cout <<"AMBIGUOUS"<<endl;
  }
  else if(ato >12 && mae >=1 && mae <= 12){
    cout<<"MMYY"<<endl;
  }
  else{
    cout<< "NA" <<endl;
  }
}

Compiler output:
a.cc:24:3: error: expected unqualified-id before 'else'
   24 |   else if(ato >12 && mae >=1 && mae <= 12){
      |   ^~~~
a.cc:27:3: error: expected unqualified-id before 'else'
   27 |   else{
      |   ^~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^