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

#include<bits/stdc++.h>//atcoder.126.A
using namespce std;
int main(){
	int n,m,i;
	string s;
	gteline(cin,s);
	if(s[m-1]=='A')s[m-1]=='a';
	if(s[m-1]=='B')s[m-1]=='b';
	if(s[m-1]=='C')s[m-1]=='c';
	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s;
      |         ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         gteline(cin,s);
      |                 ^~~
      |                 std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:21: error: 's' was not declared in this scope
    6 |         gteline(cin,s);
      |                     ^
a.cc:6:9: error: 'gteline' was not declared in this scope; did you mean 'getline'?
    6 |         gteline(cin,s);
      |         ^~~~~~~
      |         getline
Language: C++

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

int main(){
  int n,k; cin>>n >>k;
  int s; cin>>s;
  if(s.at(k) == 'A'){
    s.at(k) = 'a';
  }else if(s.at(k) == 'B'){
    s.at(k) = 'b';
  }else{
    s.at(k) = 'c';
  }
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(k) == 'A'){
      |        ^~
a.cc:8:7: error: request for member 'at' in 's', which is of non-class type 'int'
    8 |     s.at(k) = 'a';
      |       ^~
a.cc:9:14: error: request for member 'at' in 's', which is of non-class type 'int'
    9 |   }else if(s.at(k) == 'B'){
      |              ^~
a.cc:10:7: error: request for member 'at' in 's', which is of non-class type 'int'
   10 |     s.at(k) = 'b';
      |       ^~
a.cc:12:7: error: request for member 'at' in 's', which is of non-class type 'int'
   12 |     s.at(k) = 'c';
      |       ^~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n,k;
  char a[n];
  for(i=0;i<n;i++)
    cin>>a[i];
  a[k] = a[k]+32;
  for(i=0;i<n;i++)
    cout<<a[i];
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n;i++)
      |       ^
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=0;i<n;i++)
      |       ^
Language: Java

import java.io.*;
import java.math.*;
import java.security.KeyStore.Entry;
import java.util.*;
public class my {
	public static void merge(long arr[], int l, int m, int r) 
    { 
        // Find sizes of two subarrays to be merged 
        int n1 = m - l + 1; 
        int n2 = r - m; 
  
        /* Create temp arrays */
        long L[] = new long [n1]; 
        long R[] = new long [n2]; 
  
        /*Copy data to temp arrays*/
        for (int i=0; i<n1; ++i) 
            L[i] = arr[l + i]; 
        for (int j=0; j<n2; ++j) 
            R[j] = arr[m + 1+ j]; 
  
  
        /* Merge the temp arrays */
  
        // Initial indexes of first and second subarrays 
        int i = 0, j = 0; 
  
        // Initial index of merged subarry array 
        int k = l; 
        while (i < n1 && j < n2) 
        { 
            if (L[i] <= R[j]) 
            { 
                arr[k] = L[i]; 
                i++; 
            } 
            else
            { 
                arr[k] = R[j]; 
                j++; 
            } 
            k++; 
        } 
  
        /* Copy remaining elements of L[] if any */
        while (i < n1) 
        { 
            arr[k] = L[i]; 
            i++; 
            k++; 
        } 
  
        /* Copy remaining elements of R[] if any */
        while (j < n2) 
        { 
            arr[k] = R[j]; 
            j++; 
            k++; 
        } 
    } 
	 public static void sort(long arr[], int l, int r) 
	    { 
	        if (l < r) 
	        { 
	            // Find the middle point 
	            int m = (l+r)/2; 
	  
	            // Sort first and second halves 
	            sort(arr, l, m); 
	            sort(arr , m+1, r); 
	  
	            // Merge the sorted halves 
	            merge(arr, l, m, r); 
	        } 
	    } 
	 private static int gcd(int n, int l) {
	        if (l == 0)
	            return n;
	        return gcd(l, n % l);
	    }
	public static void main(String[] args) throws Exception
	{
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();int k=sc.nextInt()-1;
		sc.nextLine();
		String s=sc.nextLine();
		for(int i=0;i<n;i++)
		{
			if(i!=k)
				System.out.print(s.charAt(i));
			else
				System.out.print(Character.toLowerCase(s.charAt(i)));
		}
	}
}


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

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

int main() {
  int a,b;
  string S;
  cin >> a >> b;
  cin >> S;
  if(S[b]=A) S[b]="a";
  else if(S[b]=B) S[b]="b";
  else S[b]="c";
  cout << S << endl;
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'A' was not declared in this scope
    9 |   if(S[b]=A) S[b]="a";
      |           ^
a.cc:9:19: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |   if(S[b]=A) S[b]="a";
      |                   ^~~
      |                   |
      |                   const char*
a.cc:10:16: error: 'B' was not declared in this scope
   10 |   else if(S[b]=B) S[b]="b";
      |                ^
a.cc:10:24: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |   else if(S[b]=B) S[b]="b";
      |                        ^~~
      |                        |
      |                        const char*
a.cc:11:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |   else S[b]="c";
      |             ^~~
      |             |
      |             const char*
Language: C++

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

int main(){
  int N, K;
  cin >> N >> K;
  string S;
  cin >> S;
  
  if(S[K-1] == 'A')S[k-1] = 'a';
  if(S[K-1] == 'B')S[k-1] = 'b';
  if(S[K-1] == 'C')S[k-1] = 'c';
  cout << S;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'k' was not declared in this scope
   11 |   if(S[K-1] == 'A')S[k-1] = 'a';
      |                      ^
a.cc:12:22: error: 'k' was not declared in this scope
   12 |   if(S[K-1] == 'B')S[k-1] = 'b';
      |                      ^
a.cc:13:22: error: 'k' was not declared in this scope
   13 |   if(S[K-1] == 'C')S[k-1] = 'c';
      |                      ^
Language: C++

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

int main(){
  int n,k; cin>>n >>k;
  int s; cin>>s;
  if(s[k] == 'A'){
    s[k] = 'a';
  }else if(s[k] == 'B'){
    s[k] = 'b';
  }else{
    s[k] = 'c';
  }
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: invalid types 'int[int]' for array subscript
    7 |   if(s[k] == 'A'){
      |       ^
a.cc:8:6: error: invalid types 'int[int]' for array subscript
    8 |     s[k] = 'a';
      |      ^
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |   }else if(s[k] == 'B'){
      |             ^
a.cc:10:6: error: invalid types 'int[int]' for array subscript
   10 |     s[k] = 'b';
      |      ^
a.cc:12:6: error: invalid types 'int[int]' for array subscript
   12 |     s[k] = 'c';
      |      ^
Language: C++

#include<stdio.h>
int main()
{
  int N;
  char S[51]="";
  int K;
  int val=scanf("%d %d",&N, &K);
  val=sacnf("%s",S);
  switch(S[K-1])
  {
    case 'A':
      S[K-1]='a';
      break;
      
    case 'B':
      S[K-1]='b';
      break;
      
    case 'C':
      S[K-1]='c';
      break;
  }
  printf("%s",S);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'sacnf' was not declared in this scope; did you mean 'scanf'?
    8 |   val=sacnf("%s",S);
      |       ^~~~~
      |       scanf
Language: C++

#include<iostream>
using namespace std;
int main(){
  string s;
  int n,k;
  cin>>n>>k;
  cin>>s;
  if(s[k-1]=='A')s[k-1]=a;
    if(s[k-1]=='B')s[k-1]=b;
      if(s[k-1]=='C')s[k-1]=c;
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'a' was not declared in this scope
    8 |   if(s[k-1]=='A')s[k-1]=a;
      |                         ^
a.cc:9:27: error: 'b' was not declared in this scope
    9 |     if(s[k-1]=='B')s[k-1]=b;
      |                           ^
a.cc:10:29: error: 'c' was not declared in this scope
   10 |       if(s[k-1]=='C')s[k-1]=c;
      |                             ^
Language: C++

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

int main(){
  int N,K;
  cin>>N,K;
  string S;
  cin>>S;
  if(S[K-1]=="A") S[K-1]=a;
  if(S[K-1]=="B") S[K-1]=b;
  if(S[K-1]=="C") S[K-1]=c;
  cout<<S<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(S[K-1]=="A") S[K-1]=a;
a.cc:10:26: error: 'a' was not declared in this scope
   10 |   if(S[K-1]=="A") S[K-1]=a;
      |                          ^
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(S[K-1]=="B") S[K-1]=b;
a.cc:11:26: error: 'b' was not declared in this scope
   11 |   if(S[K-1]=="B") S[K-1]=b;
      |                          ^
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(S[K-1]=="C") S[K-1]=c;
a.cc:12:26: error: 'c' was not declared in this scope
   12 |   if(S[K-1]=="C") S[K-1]=c;
      |                          ^
Language: C++

#include<iostbam>
#include<vector>
using namespace std;

int main(){
  int N, K;
  cin >> N >> K;
  string S;
  cin >> S;
  
  if(S[K-1] == 'A')S[k-1] = 'a';
  if(S[K-1] == 'B')S[k-1] = 'b';
  if(S[K-1] == 'C')S[k-1] = 'c';
  cout << S;

}


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

n,k=gets.chomp.split(" ").map{|s| s.to_i}
s=gets.chomp

case s[k-1]
  when "A"
    s[k-1]="a"
  when "B"
    s[k-1]="b"
  when "C"
    s[k-1]="c"
end
puts s

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n,k=gets.chomp.split(" ").map{|s| s.to_i}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
    1 | n,k=gets.chomp.split(" ").map{|s| s.to_i}
      |   ^
main.c:1:5: error: 'gets' undeclared here (not in a function)
    1 | n,k=gets.chomp.split(" ").map{|s| s.to_i}
      |     ^~~~
main.c:1:30: error: expected ',' or ';' before '{' token
    1 | n,k=gets.chomp.split(" ").map{|s| s.to_i}
      |                              ^
main.c:2:1: warning: data definition has no type or storage class
    2 | s=gets.chomp
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:4:1: error: expected ',' or ';' before 'case'
    4 | case s[k-1]
      | ^~~~
Language: C++

#include<iostbam>
#include<vectcr
using namespace std;

int main(){
  int N, K;
  cin >> N >> K;
  string S;
  cin >> S;
  
  if(S[K-1] == 'A')S[k-1] = 'a';
  if(S[K-1] == 'B')S[k-1] = 'b';
  if(S[K-1] == 'C')S[k-1] = 'c';
  cout << S;

}


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

#include <bits/stdc++.h>

using namespace std;

int main(){
  int N, K;
  cin >> N >> K;

  string S;
  cin >> S;

  if (S[K-1] == "A") {
    S[K-1] = "a";
  }
  else if ( S[K-1] == "B"){
    S[K-1] = "b";
  }
  else {
    S[K-1] = "c";
  }
 
 coun << S << endl;
 return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (S[K-1] == "A") {
a.cc:13:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |     S[K-1] = "a";
      |              ^~~
      |              |
      |              const char*
a.cc:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   else if ( S[K-1] == "B"){
a.cc:16:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   16 |     S[K-1] = "b";
      |              ^~~
      |              |
      |              const char*
a.cc:19:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   19 |     S[K-1] = "c";
      |              ^~~
      |              |
      |              const char*
a.cc:22:2: error: 'coun' was not declared in this scope
   22 |  coun << S << endl;
      |  ^~~~
Language: C++

#include<stdio.h>
int main()
{
  int N;
  char S[51]="";
  int K;
  scanf("%d %d",&N, &K);
  sacnf("%s",S);
  switch(S[K-1])
  {
    case 'A':
      S[K-1]='a';
      break;
      
    case 'B':
      S[K-1]='b';
      break;
      
    case 'C':
      S[K-1]='C';
      break;
  }
  printf("%s",S);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sacnf' was not declared in this scope; did you mean 'scanf'?
    8 |   sacnf("%s",S);
      |   ^~~~~
      |   scanf
Language: C++

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

int main(){
  int N,K;
  cin>>N,K;
  string S;
  cin>>S;
  if(S[K-1]==A) S[K-1]=a;
  if(S[K-1]==B) S[K-1]=b;
  if(S[K-1]==C) S[K-1]=c;
  cout<<S<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'A' was not declared in this scope
   10 |   if(S[K-1]==A) S[K-1]=a;
      |              ^
a.cc:10:24: error: 'a' was not declared in this scope
   10 |   if(S[K-1]==A) S[K-1]=a;
      |                        ^
a.cc:11:14: error: 'B' was not declared in this scope
   11 |   if(S[K-1]==B) S[K-1]=b;
      |              ^
a.cc:11:24: error: 'b' was not declared in this scope
   11 |   if(S[K-1]==B) S[K-1]=b;
      |                        ^
a.cc:12:14: error: 'C' was not declared in this scope
   12 |   if(S[K-1]==C) S[K-1]=c;
      |              ^
a.cc:12:24: error: 'c' was not declared in this scope
   12 |   if(S[K-1]==C) S[K-1]=c;
      |                        ^
Language: C

#include<stdio.h.
int main(void){
  int n,K;
  char S[53]={'\0'};
  scanf("%d %d",&n,&K);
  scanf("%s",S);
  S[K-1]+=32;
  printf("%s\n",S);
  return 0;
}

Compiler output:
main.c:1:18: error: missing terminating > character
    1 | #include<stdio.h.
      |                  ^
main.c:1:9: fatal error: stdio.h.: No such file or directory
    1 | #include<stdio.h.
      |         ^
compilation terminated.
Language: C++

#include <bits/stdc++.h>

int main(){
  int a,b;
  cin >> a >> b;
  char c;
  string ans = "";
  for(int i = 0;i < a;i++){
    cin >> c;
    if(i == b-1){
      if(c == 'A'){
        ans += "a";
      }else if(c == 'B'){
        ans += "b";
      }else if(c == 'C'){
        ans += "c";
      }
    }else{
      ans += c;
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string ans = "";
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:12:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |         ans += "a";
      |         ^~~
      |         abs
a.cc:14:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |         ans += "b";
      |         ^~~
      |         abs
a.cc:16:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |         ans += "c";
      |         ^~~
      |         abs
a.cc:19:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |       ans += c;
      |       ^~~
      |       abs
a.cc:22:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |   cout << ans << endl;
      |           ^~~
      |           abs
a.cc:22:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
int MOD = (int)1e9 + 7;
int INF = (int)2e18;
// Comment out below and program paste

#include "UnionFind.hpp"
#include "power.hpp"

signed main() {
    int N, K;
    cin >> N >> K;
    string S;
    cin >> S;
    S[K - 1] = S[K - 1] + 32;
    cout << S << endl;
}

Compiler output:
a.cc:8:10: fatal error: UnionFind.hpp: No such file or directory
    8 | #include "UnionFind.hpp"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

Binclude<iostbam>
Cinclude<vectcr
using namespace std;

int main(){
  int N, K;
  cin >> N >> K;
  string S;
  cin >> S;
  
  if(S[K-1] == 'A')S[k-1] = 'a';
  if(S[K-1] == 'B')S[k-1] = 'b';
  if(S[K-1] == 'C')S[k-1] = 'c';
  cout << S;

}

Compiler output:
a.cc:1:1: error: 'Binclude' does not name a type
    1 | Binclude<iostbam>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N >> K;
      |   ^~~
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string S;
      |   ^~~~~~
a.cc:9:10: error: 'S' was not declared in this scope
    9 |   cin >> S;
      |          ^
a.cc:11:22: error: 'k' was not declared in this scope
   11 |   if(S[K-1] == 'A')S[k-1] = 'a';
      |                      ^
a.cc:12:22: error: 'k' was not declared in this scope
   12 |   if(S[K-1] == 'B')S[k-1] = 'b';
      |                      ^
a.cc:13:22: error: 'k' was not declared in this scope
   13 |   if(S[K-1] == 'C')S[k-1] = 'c';
      |                      ^
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << S;
      |   ^~~~
Language: Java

#include<iostream>
#include<string>
#include<vector>
#include<list>
#include<cmath>
#include<algorithm>
#include<cstdio>
#include<set>
#include<map>
#include<queue>
#include<cstring>
#include<sstream>
using namespace std;

typedef long long ll;

int main() {
  int N,K; cin >> N >> K;
  string s; cin >> s;
  for ( int i = 0; i < N; i++ ) {
    if ( i + 1 == K ) s[i] = s[i]+32;
  }
  cout << s << endl;
  return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<string>
^
Main.java:3: error: illegal character: '#'
#include<vector>
^
Main.java:4: error: illegal character: '#'
#include<list>
^
Main.java:5: error: illegal character: '#'
#include<cmath>
^
Main.java:6: error: illegal character: '#'
#include<algorithm>
^
Main.java:7: error: illegal character: '#'
#include<cstdio>
^
Main.java:8: error: illegal character: '#'
#include<set>
^
Main.java:9: error: illegal character: '#'
#include<map>
^
Main.java:10: error: illegal character: '#'
#include<queue>
^
Main.java:11: error: illegal character: '#'
#include<cstring>
^
Main.java:12: error: illegal character: '#'
#include<sstream>
^
Main.java:15: error: class, interface, enum, or record expected
typedef long long ll;
^
Main.java:18: error: not a statement
  int N,K; cin >> N >> K;
                    ^
Main.java:19: error: not a statement
  string s; cin >> s;
                ^
Main.java:23: error: not a statement
  cout << s << endl;
            ^
Main.java:17: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
17 errors
Language: C++

N,K = map(int,input().split())
S = input()
SL = [i for i in S]
SL[K-1] = SL[K-1].lower()
print("".join(SL))

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N,K = map(int,input().split())
      | ^
Language: C++

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

int main()
{
	string s;
	int m, y;
	cin>>s;
	m = (s[0] - 48) * 10 +(s[1] - 48);
	y = (s[2] - 48) * 10 +(s[3] - 48);

	else if(m == 0 || y == 0 ||(m>12 && y >12))
		cout<<"NA\n";
	else if(m<=12 && y<=12)
		cout<<"AMBIGUOUS\n";
	else if(y>12)
		cout<<"MMYY\n";
	else
		cout<<"YYMM\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if(m == 0 || y == 0 ||(m>12 && y >12))
      |         ^~~~
Language: C++

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

int main()
{
    string str,str1,str2;
    cin>> str;
    
    str1 = str.substr(0,2);
    str2 = str.substr(2,2);
    
    if(stoi(str1)<=12 && stoi(str1)>0)
        cout<<"MMYY";
    else if(stoi(str2)<=12 && stoi(str2)>0)
        cout<<"YYMM";
    else (stoi(str1)<=12 && stoi(str1)>0  && stoi(str2)<=12 && stoi(str2)>0)
        cout<<"AMBIGUOUS";
   
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:77: error: expected ';' before 'cout'
   16 |     else (stoi(str1)<=12 && stoi(str1)>0  && stoi(str2)<=12 && stoi(str2)>0)
      |                                                                             ^
      |                                                                             ;
   17 |         cout<<"AMBIGUOUS";
      |         ~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    int S;
    cin >> S;
    int Y = S/100;
    int M = S%100;
    if(((y>=1)&&(y<=12))&&((m>=1)&&(m<=12)))
    {
        cout<<"AMBIGUOUS";
    }
    else
    {
        if((y>=1)&&(y<12))
 
        {
            cout<<"MMYY";
        }
        else if((m>=1)&&(m<=12))
 
        {
            cout<<"YYMM";
        }
        else
        {
            cout<<"NA";
        }
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'y' was not declared in this scope
    9 |     if(((y>=1)&&(y<=12))&&((m>=1)&&(m<=12)))
      |          ^
a.cc:9:29: error: 'm' was not declared in this scope
    9 |     if(((y>=1)&&(y<=12))&&((m>=1)&&(m<=12)))
      |                             ^
Language: C++

You have a digit sequence S of length 4. You are wondering which of the following formats S

is in:

    YYMM format: the last two digits of the year and the two-digit representation of the month (example: 01 for January), concatenated in this order
    MMYY format: the two-digit representation of the month and the last two digits of the year, concatenated in this order

If S
is valid in only YYMM format, print YYMM; if S is valid in only MMYY format, print MMYY; if S is valid in both formats, print AMBIGUOUS; if S is valid in neither format, print NA.

Compiler output:
a.cc:1:1: error: 'You' does not name a type
    1 | You have a digit sequence S of length 4. You are wondering which of the following formats S
      | ^~~
a.cc:9:43: error: expected unqualified-id before 'if'
    9 | is valid in only YYMM format, print YYMM; if S is valid in only MMYY format, print MMYY; if S is valid in both formats, print AMBIGUOUS; if S is valid in neither format, print NA.
      |                                           ^~
a.cc:9:90: error: expected unqualified-id before 'if'
    9 | is valid in only YYMM format, print YYMM; if S is valid in only MMYY format, print MMYY; if S is valid in both formats, print AMBIGUOUS; if S is valid in neither format, print NA.
      |                                                                                          ^~
a.cc:9:138: error: expected unqualified-id before 'if'
    9 | is valid in only YYMM format, print YYMM; if S is valid in only MMYY format, print MMYY; if S is valid in both formats, print AMBIGUOUS; if S is valid in neither format, print NA.
      |                                                                                                                                          ^~
Language: C

#include <stdio.h>


int main(void) {
	int input_num = 0;
	int YYMM_flag1 = 0;
	int YYMM_flag2 = 0;
	int MMYY_flag1 = 0;
	int MMYY_flag2 = 0;


	scanf("%d", &input_num);

	if (0 <= (input_num % 100) && (input_num % 100) <= 99) {
		MMYY_flag1 = 1;
		if (1 <= (input_num / 100) && (input_num / 100) <= 12) {
			MMYY_flag2 = 1;
		}
	}
	if (1 <= (input_num % 100) && (input_num % 100) <= 12) {
		YYMM_flag1 = 1;
		if (1 <= (input_num / 100) && (input_num / 100) <= 99) {
			YYMM_flag2 = 1
		}
	}
	if (MMYY_flag1 == 1 && MMYY_flag2 == 1 && YYMM_flag1 == 1 && YYMM_flag2 == 1) {
		printf("AMBIGUOUS\n");
	}
	else if (MMYY_flag1 == 1 && MMYY_flag2 == 1 && (YYMM_flag1 == 0 || YYMM_flag2 == 0)) {
		printf("MMYY\n");
	}
	else if ((MMYY_flag1 == 0 || MMYY_flag2 == 0) && YYMM_flag1 == 1 && YYMM_flag2 == 1) {
		printf("YYMM\n");
	}
	else {
		printf("NA\n");
	}

}

Compiler output:
main.c: In function 'main':
main.c:23:39: error: expected ';' before '}' token
   23 |                         YYMM_flag2 = 1
      |                                       ^
      |                                       ;
   24 |                 }
      |                 ~
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	string s;
	cin>> s;
	string ans;
	if((0 < s[0] - '1') || (s[0] - '1' == 0 && 0 < s[1] - '2')){
		if((0 < s[2] - '1') || (s[2] - '1' == 0 && 0 < s[3] - '2')){
			ans = "NA";
		}else{
			if(s[2] == '0'&&s[3]=='0'){
				ans = "NA";
			}else{
				ans = "YYMM";
			}
		}
	}else if((0 < s[2] - '1') || (s[2] - '1' == 0 && 0 < s[3] - '2')){
		if((0 < s[0] - '1') || (s[0] - '1' == 0 && 0 < s[1] - '2')){
			ans = "NA";
		}else{
			if(s[0] == '0'&&s[1]=='0'){
				ans = "NA";
			}else{
				ans = "MMYY";
			}
		}
	}else{
		if(s[0]=='0'&&s[1]=='0'&&s[2]=='0'&&s[3]=='0'){
			ans ="NA";
		}else{
			if(s[0] == '0'&&s[1]=='0'){
				ans ="YYMM";
			}else if(s[2] == '0'&&s[3]=='0'){
				ans = "MMYY;"
			}else{
				ans = "AMBIGUOUS";
			}
		}
	}
	cout<< ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:46: error: expected ';' before '}' token
   37 |                                 ans = "MMYY;"
      |                                              ^
      |                                              ;
   38 |                         }else{
      |                         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main() {
  vector<char>vec(4);
  for(ll i=0;i<4;i++){
    cin>>vec.at(i);
  }
  vector<ll>veco(2,0);
  if(vec.at(0)=='0'){
    if(vec.at(1)!='0'){
      veco.at(1)=1;
    }
  }
  if(vec.at(0)=='1'){
    if(vec.at(1)=='0'||vec.at(1)=='1'||vec.at(1)=='2'){
      veco.at(1)=1;
    }
  }
  if(vec.at(2)=='0'){
    if(vec.at(3)!='0'){
      veco.at(0)=1;
    }
  }
  if(vec.at(2)=='1'){
    if(vec.at(3)=='0'||vec.at(3)=='1'||vec.at(3)=='2'){
      veco.at(0)=1;
    }
  }
  vector<ll>yymm={1,0};
  vector<ll>mmyy={0,1};
  if(veco==yymm){
    cout<<"YYMM"<<endl;
  }
  else if(veco=mmyy){
    cout<<"MMYY"<<endl;
  }
  else if(veco.at(0)+veco.at(1)==0){
    cout<<"AMBIGUOUS"<<endl;
  }
  else{
    cout<<"NA"<<endl;
  }
  return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:15: error: could not convert 'veco.std::vector<long long int>::operator=(mmyy)' from 'std::vector<long long int>' to 'bool'
   35 |   else if(veco=mmyy){
      |           ~~~~^~~~~
      |               |
      |               std::vector<long long int>
Language: C++

     // 整数の入力
    string input;
    cin >> input;

    string first = input.substr(0,2);
    string second = input.substr(2,2); 
    
    int first_num = atoi(first.c_str());
    int second_num = atoi(second.c_str());
    
    bool first_MM = true;
    bool second_MM = true;
    
    if(first_MM > 12)
    {
        first_MM = false;
    }
    if(second_MM > 12)
    {
        second_MM = false;
    }
    
    if(first_MM && second_MM)
    {
        // どちらもOK
        cout << "AMBIGUOUS"
    }
    else if(first_MM)
    {
        // MMYY フォーマットのみ
        cout << "MMYY"
    }
    else if(second_MM)
    {
        // YYMM フォーマットのみ
        cout << "YYMM"
    }
    else
    {
        // どちらもだめ   
        cout << "NA"
    }
    
    return 0;

Compiler output:
a.cc:2:5: error: 'string' does not name a type
    2 |     string input;
      |     ^~~~~~
a.cc:3:5: error: 'cin' does not name a type
    3 |     cin >> input;
      |     ^~~
a.cc:5:5: error: 'string' does not name a type
    5 |     string first = input.substr(0,2);
      |     ^~~~~~
a.cc:6:5: error: 'string' does not name a type
    6 |     string second = input.substr(2,2);
      |     ^~~~~~
a.cc:8:26: error: 'first' was not declared in this scope
    8 |     int first_num = atoi(first.c_str());
      |                          ^~~~~
a.cc:8:21: error: 'atoi' was not declared in this scope
    8 |     int first_num = atoi(first.c_str());
      |                     ^~~~
a.cc:9:27: error: 'second' was not declared in this scope
    9 |     int second_num = atoi(second.c_str());
      |                           ^~~~~~
a.cc:9:22: error: 'atoi' was not declared in this scope
    9 |     int second_num = atoi(second.c_str());
      |                      ^~~~
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if(first_MM > 12)
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'if'
   18 |     if(second_MM > 12)
      |     ^~
a.cc:23:5: error: expected unqualified-id before 'if'
   23 |     if(first_MM && second_MM)
      |     ^~
a.cc:28:5: error: expected unqualified-id before 'else'
   28 |     else if(first_MM)
      |     ^~~~
a.cc:33:5: error: expected unqualified-id before 'else'
   33 |     else if(second_MM)
      |     ^~~~
a.cc:38:5: error: expected unqualified-id before 'else'
   38 |     else
      |     ^~~~
a.cc:44:5: error: expected unqualified-id before 'return'
   44 |     return 0;
      |     ^~~~~~
Language: C++

#include "stdafx.h"
#include <stdio.h>
#include <iostream>

//yy && mm  yy && mm
//yy && mm  yy || mm
//yy mm
//mm yy

struct ym {
	int value;
	bool is_year;
	bool is_month;

	ym(int num) {
		value = num;
		is_year = isYear(num);
		is_month = isMonth(num);
	}
};

int main()
{
	int s;
	std::cin >> s;

	int upper_2, lower_2;
	upper_2 = s / 100;
	lower_2 = s - upper_2;

	ym upper(upper_2);
	ym lower(lower_2);

	if (upper.is_year && upper.is_month) {
		if (lower.is_year && lower.is_month) {
			std::cout << "AMBIGUOUS" << std::endl;
		}
		else if (lower.is_year) {
			std::cout << "MMYY" << std::endl;
		}
		else if (lower.is_month) {
			std::cout << "YYMM" << std::endl;
		}
		else {
			std::cout << "NA" << std::endl;
		}
	}
	else if (upper.is_year) {
		if (lower.is_month) {
			std::cout << "YYMM" << std::endl;
		}
		else {
			std::cout << "NA" << std::endl;
		}
	}
	else if (upper.is_month) {
		if (lower.is_year) {
			std::cout << "MMYY" << std::endl;
		}
		else {
			std::cout << "NA" << std::endl;
		}
	}
	else {
		std::cout << "NA" << std::endl;
 	}
	return 0;
}

bool isYear(int num) {
	return 0 <= num && num <= 99;
}

bool isMonth(int num) {
	return 1 <= num && num <= 12;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

	#include <bits/stdc++.h>
	  #define endl "\n"
	  #define ll long long int
	  #define mod 1000000007
	  #define inf 1000000000000000001;
	  using namespace std;
	  int main()
	  {
	    //  #ifndef ONLINE_JUDGE
	    //  // for getting input from input.txt
	    //  freopen("input.txt", "r", stdin);
	    //  // for writing output to output.txt
	    //  freopen("output.txt", "w", stdout);
	    // #endif
	    std::ios::sync_with_stdio(false);
	    cin.tie(NULL);
	    int a;
	    cin>>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:35:13: error: expected unqualified-id before 'return'
   35 |             return 0;
      |             ^~~~~~
a.cc:36:11: error: expected declaration before '}' token
   36 |           }
      |           ^
Language: C++

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

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

    int first = stoi(s.substr(0,2));
    int second = stoi(s.substr(2));

    if (first>12 && second<=12) cout << "YYMM" << endl;
    else if (first<=12 && second>12) cout << "MMYY" << endl;
    else if (first<=12 && second<=12) cout << "AMBIGUOUS" << endl;
    else (first>12 && second>12) cout << "NA" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: expected ';' before 'cout'
   14 |     else (first>12 && second>12) cout << "NA" << endl;
      |                                 ^~~~~
      |                                 ;
Language: C++

#include <iostream>
#define NUM 2
using namespace std;
int main(){
  int a;
  cin>>a;
  
  int b[NUM]
        
  for(int i=0;i<NUM;i++){
  
    b[i]=b[i]%100;
    b[i]=b[i]/100;
  }
  //b[0]は下二桁、b[1]は上二桁。
  
  if(b[0]>=1&&b[0]<=12){
    if(b[1]>=1&&b[1]<=12)
      cout<<"AMBIGUOUS";
    else cout<<"YYMM";
  }
  
  else if(b[1]>=1&&b[1]<=12){
    if(b[0]>=1&&b[1]<=12)
      cout<<"AMBIGUOUS";
    else cout<<"MMYY";
  }
  else cout<<"NA";
      
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected initializer before 'for'
   10 |   for(int i=0;i<NUM;i++){
      |   ^~~
a.cc:10:15: error: 'i' was not declared in this scope
   10 |   for(int i=0;i<NUM;i++){
      |               ^
a.cc:17:6: error: 'b' was not declared in this scope
   17 |   if(b[0]>=1&&b[0]<=12){
      |      ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#include<cstdlib>
#include<cmath>
#include<numeric>
#include<iomanip>
#include<functional>
#include<cstdlib>
#include<queue>
#include<deque>
const double PI = acos(-1);
#define rep(i,n)for(int i=0;i<(n);i++)
using namespace std;
using ll =long long;
const int mod = 1000000007;
int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}

ll gcd(ll a, ll b) {
	if (a % b == 0) {
		return b;
	}
	else {
		return gcd(b, a % b);
	}
}
ll lcm(ll a, ll b) {
	return a * b / gcd(a, b);
};
//fixed << setprecision(2)
bool  Array_check(ll y, ll x,ll d,ll w) {
	if (x < 0 || x >= w || y<0 || y>=d) {
		return false;
	}
	else {
		return true;
	}
	
}

//小文字=大文字+32

int main() {
	int s;
	cin >> s;
	if (s % 100 > 12) {
		cout << "MMYY";
	}
	else if (s / 100 > 12) {
		cout << "MMYY";
	}
	else {
		cout<<"NA"
	}
}
	



Compiler output:
a.cc: In function 'int main()':
a.cc:61:27: error: expected ';' before '}' token
   61 |                 cout<<"NA"
      |                           ^
      |                           ;
   62 |         }
      |         ~
Language: C++

#define _USE_MATH_DEFINES

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cmath>
#include <bitset>
using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef tuple<ll, ll, ll> tl3;



const int BIG_NUM = 1e9;
const ll INF = 1000000000000000000;
const ll MOD = 1e9 + 7;
//const ll MOD = 998244353;



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

	int x = 0;
	int y = 0;
	for (int i = 0; i < 2; i++) {
		x = x * 10 + (s[i] - '0');
		y = y * 10 + (s[i + 2] - '0');
	}

	

	if (x > 12 ||x == 0) {
		if (y > 12 || y == 0) {
			cout << "NA" << endl;
		}
		else {
			cout << "YYMM" << endl;
		}
	}
	else {
		if (y > 12 || y == 0) {
			cout << "MMYY" << endl;
		}
		else {
			cout << "AMBIGUOS" << endl;
		}




	}


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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <deque>
#include <unordered_map>
#include <unordered_set>
#include <bitset>
#include <cctype>
#include <math.h>
#include <functional>
using namespace std;
using ll = long long;
using ld = long double;
using str = string;
int main(){
    int s;
    cin >> s;
    int y = d / 100;
    int m = d % 100;
    if(1 <= y && y <= 12){
        if(1 <= m && m <= 12) cout << "AMBIGUOUS" << endl;
        else cout << "MMYY" << endl;
    } else{
        if(1 <= m && m <= 12) cout << "YYMM" << endl;
        else cout << "NA" << endl;
    }
    return 0;
}

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

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

int main(){
    int s;
    cin << s;
    int s1 == s.at(0) * 10 + s.at(1);
    int s2 == s.at(2) * 10 + s.at(3);

    if(0 < s1 < 13 && 0 < s2 < 13) cout << "AMBIGUOUS" << endl;
    else if(0 < s1 < 13) cout << "MMYY" << endl;
    else if(0 < s2 < 13) cout << "YYMM" << endl;
    else cout << "NA" << endl;

    return 0;
}

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

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


Compiler output:
a.cc:15:3: error: expected unqualified-id before 'else'
   15 |   else if(1<=R&&R<=12){
      |   ^~~~
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else{
      |   ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C

#include<stdio.h>
int main(){
  int s;
  scanf("%d",&s);
  int f,b;
  L=s/100;
  R=s%100;
  
  if(1<=L && L<=12){
    if(1<=R && R<=12){
      printf("AMBIGUOUS");
    }
    else printf("MMYY");
  }else 
    if(1<=R && R<=12){
      printf("YYMM");
    }else printf("NA");
}
      

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'L' undeclared (first use in this function)
    6 |   L=s/100;
      |   ^
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: error: 'R' undeclared (first use in this function)
    7 |   R=s%100;
      |   ^
Language: C++

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

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


Compiler output:
a.cc:19:8: error: extended character 　 is not valid in an identifier
   19 |   else{　
      |        ^
a.cc: In function 'int main()':
a.cc:19:8: error: '\U00003000' was not declared in this scope
   19 |   else{　
      |        ^~
a.cc:23:5: error: 'else' without a previous 'if'
   23 |     else{
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:20:1: error: extended character 　 is not valid in an identifier
   20 | 　
      | ^
a.cc: In function 'int main()':
a.cc:20:1: error: '\U00003000' was not declared in this scope
   20 | 　
      | ^~
a.cc:24:5: error: 'else' without a previous 'if'
   24 |     else{
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
typedef long long ll;
typedef pair<int,int> P;
#define F first
#define S second
const double PI=acos(-1);
//fixed<<setprecision(11)<<

int main(){
  int s;
  cin>>s;
  
  int L=s/100;
  int R=s%100;
  
  if(1<=L&&L<=12){
    if(1<=R&&R<=12) cout<<"AMBIGOUS"endl;
    else cout<<"MMYY"<<endl;
  }
  else{
    if(1<=R&&R<=12) cout<<"YYMM"<<endl;
    else cout<<"NA"<<endl;
  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: unable to find string literal operator 'operator""endl' with 'const char [9]', 'long unsigned int' arguments
   19 |     if(1<=R&&R<=12) cout<<"AMBIGOUS"endl;
      |                           ^~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++>
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");
}
}


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

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");
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:7: error: 'scanf' was not declared in this scope
    2 | int a;scanf("%d",&a);
      |       ^~~~~
a.cc:6:16: error: 'printf' was not declared in this scope
    6 | if(1<=R&&R<=12)printf("AMBIGUOUS\n");
      |                ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:7:6: error: 'printf' was not declared in this scope
    7 | else printf("MMYY\n");
      |      ^~~~~~
a.cc:7:6: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:9:16: error: 'printf' was not declared in this scope
    9 | if(1<=R&&R<=12)printf("YYMM\n");
      |                ^~~~~~
a.cc:9:16: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:10:6: error: 'printf' was not declared in this scope
   10 | else printf("NA\n");
      |      ^~~~~~
a.cc:10:6: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>
using namespace std;
int main(void){
    string s;
    cin>>s;
    int a=(s[0]-'0')*10+s[1]-'0';
    int b=(s[2]-'0')*10+s[3]-'0';
    bool yymm=false;
    bool mmyy=false;
    if(a<=12) mmyy=true;
    if(b<=12) yymm=true;
    if(mmyy&&yymm){
        cout<<"AMBIGUOUS"<<endl
    }else if(mmyy){
        cout<<"MMYY"<<endl;
    }else if(yymm){
        cout<<"YYMM"<<endl;
    }else{
        cout<<"NA"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: expected ';' before '}' token
   13 |         cout<<"AMBIGUOUS"<<endl
      |                                ^
      |                                ;
   14 |     }else if(mmyy){
      |     ~
Language: C++

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define ArraySizeOf(array)     (sizeof(array) / sizeof(array[0]))
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for(int i=1;i<n;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define _GLIBCXX_DEBUG
#define int long long
int INF = 1e9+7;
unsigned NthDayOfWeekToDay(unsigned n, unsigned dow, unsigned dow1)
{
unsigned day;
if(dow < dow1) dow += 7;
day = dow - dow1;
day += 7 * n - 6;
return day;
}
unsigned DayToWeekNumber(unsigned day)
{
  return (day - 1) / 7 + 1;
}
unsigned AnotherDayOfWeek(unsigned day, unsigned day0, unsigned dow0)
{
  return (dow0 + 35 + day - day0) % 7;
}
using namespace std;
signed main(){
  string S; cin>>S;
  int a=int(S.at(0)-49)*10+int(S.at(1)-49);
  int b=int(S.at(2)-49)*10+int(S.at(4)-49);
  if(a<13&&a>0&&b<13&&b>0)cout<<"AMBIGUOUS"<<endl;
  else if(a<13&&a>0)cout<<"MMYY"<<endl;
  else if(b<13&&b>0)cout<<"YYMM"<<endl;
  else cout<<"NA"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:13: error: expected primary-expression before 'long'
   40 | #define int long long
      |             ^~~~
a.cc:61:9: note: in expansion of macro 'int'
   61 |   int a=int(S.at(0)-49)*10+int(S.at(1)-49);
      |         ^~~
a.cc:40:13: error: expected primary-expression before 'long'
   40 | #define int long long
      |             ^~~~
a.cc:62:9: note: in expansion of macro 'int'
   62 |   int b=int(S.at(2)-49)*10+int(S.at(4)-49);
      |         ^~~