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

#include<iostream>
#include<string>
using namespace std;
int main()
{
  int a,b,c,d,e,f;
  cin>>a>>b>>c>>d>>e>>f;
int i[3]={a,b,c};
int j[3]=[d,e,f};
 if(i[0]==j[2] && i[1]==j[1] && i[2]==j[0])
   {
     cout<<"YES"<<endl;
   }else{
   cout<<"NO"<<endl;
 }
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ',' before '}' token
    9 | int j[3]=[d,e,f};
      |                ^
      |                ,
a.cc:9:16: error: expected identifier before '}' token
a.cc:9:16: error: expected ']' before '}' token
    9 | int j[3]=[d,e,f};
      |                ^
      |                ]
a.cc: In lambda function:
a.cc:9:16: error: expected '{' before '}' token
a.cc: In function 'int main()':
a.cc:9:10: error: array must be initialized with a brace-enclosed initializer
    9 | int j[3]=[d,e,f};
      |          ^~~~~~
a.cc: At global scope:
a.cc:10:2: error: expected unqualified-id before 'if'
   10 |  if(i[0]==j[2] && i[1]==j[1] && i[2]==j[0])
      |  ^~
a.cc:13:5: error: expected unqualified-id before 'else'
   13 |    }else{
      |     ^~~~
a.cc:16:2: error: expected unqualified-id before 'return'
   16 |  return 0;
      |  ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: Java

import java.util.*;

class Main{
    public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		String line1 = sc.nextLine();
		String line2 = sc.nextLine();
                String ret = "No";
                if(line1.charAt(0)==line2.charAt(2)){
                    if(line1.charAt(2)==line2.charAt(0)){
                        ret = "Yes";
                    }
		System.out.println(ret);
    }
}


Compiler output:
Main.java:15: error: reached end of file while parsing
}
 ^
1 error
Language: C++

//2017.11.18
//YES,NOを小文字で書いてWA

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
	string a,b,huk;
	cin >> a;
  cin >> b;
  int len;
  len = a.length();
  for(i=len-1; i>=0; i--){huk=a.at(i);}


  if(huk==b) cout << "YES" << endl;
  else cout << "NO" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'i' was not declared in this scope
   16 |   for(i=len-1; i>=0; i--){huk=a.at(i);}
      |       ^
Language: C

#include<iostream>
#include<cstdio> 
#include<stdlib.h>
#include<string.h>
#include<algorithm>
#include<math.h>

#define MAXN 0x7fffffff

using namespace std;

int m,n,i,j,k,p,q,l,flag=0;

int main(){
	char a,b,c,d,e,f,enter;
	scanf("%c",&a);
	scanf("%c",&b);
	scanf("%c",&c);
	scanf("%c",&enter);
	scanf("%c",&d);
	scanf("%c",&e);
	scanf("%c",&f);
	if(a!=f){
		flag=1;
	}
	if(b!=e){
		flag=1;
	}
	if(c!=d){
		flag=1;
	}
	if(flag==0) printf("YES");
	else printf("NO");
	return 0;
} 

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

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
using namespace std;
int main()
{
    char str1[5];
    char str2[5];
    gets(str1);
    gets(str2);
    int i;
    for(i=0;i<3;i++)
    {
        if(str1[i]!=str2[2-i])
            break;
    }
    if(i==3)
        printf("YES\n");
    else printf("NO\n");
    return 0;
}


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

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    char str1[5];
    char str2[5];
    gets(str1);
    gets(str2);
    int i;
    for(i=0;i<3;i++)
    {
        if(str1[i]!=str2[2-i])
            break;
    }
    if(i==3)
        printf("YES\n");
    else printf("NO\n");
    return 0;
}


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

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

using namespace std;

int main(){
	char a, b;
	scanf(a, b);
	if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
		printf("YES")
	}else if{
		printf("NO")
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |         scanf(a, b);
      |               ^
      |               |
      |               char
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:9:13: error: invalid types 'char[int]' for array subscript
    9 |         if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
      |             ^
a.cc:9:21: error: invalid types 'char[int]' for array subscript
    9 |         if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
      |                     ^
a.cc:9:29: error: invalid types 'char[int]' for array subscript
    9 |         if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
      |                             ^
a.cc:9:37: error: invalid types 'char[int]' for array subscript
    9 |         if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
      |                                     ^
a.cc:9:45: error: invalid types 'char[int]' for array subscript
    9 |         if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
      |                                             ^
a.cc:9:53: error: invalid types 'char[int]' for array subscript
    9 |         if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
      |                                                     ^
a.cc:10:30: error: expected ';' before '}' token
   10 |                 printf("YES")
      |                              ^
      |                              ;
   11 |         }else if{
      |         ~                     
a.cc:11:17: error: expected '(' before '{' token
   11 |         }else if{
      |                 ^
      |                 (
Language: C++

#include <iostream>
using nemaspace std;
int main(void){
  int a[3], b[3];
  for(int i=0; i<2; i++){
    cin >> a[i];
  }
  for(int i=0; i<3; i++){
    cin >> b[i];
  }
  if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
    cout << "YES" << endl;
    return 0;
  }else{
    cout << "NO" << endl;
    return 0;
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nemaspace'
    2 | using nemaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> a[i];
      |     ^~~
      |     std::cin
In file included 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:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> b[i];
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << "YES" << 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:12:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << "YES" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout << "NO" << 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:15:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     cout << "NO" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

include <iostream>
using nemaspace std;
int main(void){
  int a[3], b[3];
  for(int i=0; i<2; i++){
    cin >> a[i];
  }
  for(int i=0; i<3; i++){
    cin >> b[i];
  }
  if(a[0] == b[2] && a[1] == b[1] && a[2] == b[0]){
    cout << "YES" << endl;
    return 0;
  }else{
    cout << "NO" << endl;
    return 0;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a[i];
      |     ^~~
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> b[i];
      |     ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "YES" << endl;
      |     ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "NO" << endl;
      |     ^~~~
a.cc:15:21: error: 'endl' was not declared in this scope
   15 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

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

int main(void)
{
	vector<string> C(2, "");
	for(int i=0; i<C.size(); i++)
		cin >> C[i];

	reverse(C[0].begin(), C[0].end());

	string ret = "NO";
	if(C[0] == C[1])
		ret = "YES";

	cout << ret << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'reverse' was not declared in this scope
   13 |         reverse(C[0].begin(), C[0].end());
      |         ^~~~~~~
Language: C++

#include<bits/stdc++.h>
#define debug(x) cout << #x << " = " << x << endl
typedef unsigned long long ULL;
using namespace std;
const int N=100000;

class Myclass
{
	public:
};
int a[N];
int main()
{
cin >>s;
cin >> s1;
	if (s[0]!=s1[2]||s[1]!=s1[1]||s[2]!=s1[2])
	{
		cout << "NO";
		return 0;
	}
	cout <<"Yes";
	

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 's' was not declared in this scope
   14 | cin >>s;
      |       ^
a.cc:15:8: error: 's1' was not declared in this scope; did you mean 'y1'?
   15 | cin >> s1;
      |        ^~
      |        y1
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
   string a,b;
   cin>>a>>b;
   if(a[0]==b[2] && a[1]==b[1] && a[2] = b[0] ){
     cout<<"YES"<<endl;
    }
else{cout<<"NO"<<endl;}



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: lvalue required as left operand of assignment
    8 |    if(a[0]==b[2] && a[1]==b[1] && a[2] = b[0] ){
Language: C++

use std::io;
use std::str::FromStr;

fn main() {
    let stdin = io::stdin();
    let mut buf = String::new();
    stdin.read_line(&mut buf).ok();
    let mut it = buf.split_whitespace().map(|n| String::from_str(n).unwrap());
    let a = it.next().unwrap();

    let mut buf = String::new();
    stdin.read_line(&mut buf).ok();
    let mut it = buf.split_whitespace().map(|n| String::from_str(n).unwrap());
    let b = it.next().unwrap();


    let rev = a.chars().rev().collect::<String>();
    if b == rev {
        println!("YES");
    } else {
        println!("NO");
    }
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn main() {
      | ^~
Language: C++

using namespace std;

char a[4],b[4];

int doit(char x[])

{

	for(int i=0;i<=2;i++)

	{

		if(x[i]>='a'&&x[i]<='z')

		{

			continue;

		}

		else

		{

			cout<<"NO";

			return false;

		} 

	}

	return true;

}

 

int main()

{

	cin>>a;

	cin>>b;

	if(doit(a)==false) return 0;

	if(doit(b)==false) return 0;

	if(a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])

	{

		cout<<"YES";

	}

	else

	{

		cout<<"NO";

	}

	return 0;

}

Compiler output:
a.cc: In function 'int doit(char*)':
a.cc:25:25: error: 'cout' was not declared in this scope
   25 |                         cout<<"NO";
      |                         ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc: In function 'int main()':
a.cc:43:9: error: 'cin' was not declared in this scope
   43 |         cin>>a;
      |         ^~~
a.cc:43:9: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:55:17: error: 'cout' was not declared in this scope
   55 |                 cout<<"YES";
      |                 ^~~~
a.cc:55:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:63:17: error: 'cout' was not declared in this scope
   63 |                 cout<<"NO";
      |                 ^~~~
a.cc:63:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

import java.util.Scanner;

public class Main {

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

        String word1 = scaner.nextLine();
        String word2 = scaner.nextLine();


        if(word1.charAt(0) != word2.charAt(2)){
            System.out.println("NO");
        }else if(word1.charAt(1) != word2.charAt(1)){
            System.out.println("NO");
        }else if(word1.charAt(2) != word2.charAt(0)){
            System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

/**
 * Created by itounagamitsu on 2017/11/09.
 */
public class Main {

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

        String word1 = scaner.nextLine();
        String word2 = scaner.nextLine();


        if(word1.charAt(0) != word2.charAt(2)){
            System.out.println("NO");
        }else if(word1.charAt(1) != word2.charAt(1)){
            System.out.println("NO");
        }else if(word1.charAt(2) != word2.charAt(0)){
            System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: Java



class Main{
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int intInput = sc.nextInt();

        int count = 1;
        while (multi(count-1,2) < intInput){
            count ++;
        }
        count --;

        System.out.println(count);
    }


    public static int multi(int x, int y){
        if( y != 0 ){
            y --;
            return multi(x,y) * x;
        }else{
            return 1;
        }
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main(){
	string s1, s2;
	cin >> s1;
	cin >> s2;

	string ss1(s1), ss2(s2);
	reverse(ss1.begin(), ss1.end());
	reverse(ss2.begin(), ss2.end());


	if(s1 == ss2 && s2 == ss1) {
		cout << "YES\n";
	}else
		cout << "NO\n";


	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'reverse' was not declared in this scope
   11 |         reverse(ss1.begin(), ss1.end());
      |         ^~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
  string a, b;
  cin >> a >> b;
  reverse(b.begin(), b.end());
  if (a == b)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'reverse' was not declared in this scope
    9 |   reverse(b.begin(), b.end());
      |   ^~~~~~~
Language: C++


1.#include <iostream>
2.using namespace std;
3. 
4.int main()
5.{
6.  string txt, pat;
7. 
8.  cin >> txt >> pat;
9. 
10.  if(txt[0] == pat[2] && txt[1] == pat[1] && txt[2] == pat[0]){
11.    cout << "YES" << endl;
12.  }else cout << "NO" << endl;
13. 
14.  return 0;
15.}



Compiler output:
a.cc:2:3: error: stray '#' in program
    2 | 1.#include <iostream>
      |   ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 1.#include <iostream>
      | ^~
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 3.
      | ^~
Language: C++

#include <iostoream>
using namespace std;

int main(){
 string s1, s2;
 cin << s1 << s2;
 if (s1[0] == s2[2] && s1[1] == s2[1] && s1[2] == s2[0]){
  cout >> "YES" >> endl;
 }else{
  cout >> "NO" >> endl;
 }
 return 0;
}

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

#include <iostream>
#include <string>

using namespace std;

int main() {
	string s,t;
	cin >> s >> t;
	reverse(t.begin(), t.end());

	cout << (s == t ? "YES" : "NO") << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'reverse' was not declared in this scope
    9 |         reverse(t.begin(), t.end());
      |         ^~~~~~~
Language: C++

a,b=input(),input();print("YES"if a==b[::-1]else"NO")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=input(),input();print("YES"if a==b[::-1]else"NO")
      | ^
a.cc:1:26: error: expected constructor, destructor, or type conversion before '(' token
    1 | a,b=input(),input();print("YES"if a==b[::-1]else"NO")
      |                          ^
Language: C++

#include<stdio.h>
int main(void){
	int C1[3],C2[3],i;
	for(i=0;i<3;i++){
		scanf("%c",&C1[i]);
	}
	for(i=0;i<3;i++){
		scanf("%c",&C2[i]);
	}
	if(C1[0]==C2[2]&&C1[1]==C2[1]&&C1[2]==C[0]){
		printf("YES\n");
	}
	else{
		printf("NO\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:47: error: 'C' was not declared in this scope
   10 |         if(C1[0]==C2[2]&&C1[1]==C2[1]&&C1[2]==C[0]){
      |                                               ^
Language: C++

#include <stdio.h>
#include<string>
#include<iostream>
using namespace std;

int main(void)
{
	int i,j ;
	int flag = 1;
	string s[2];
	string s1, s2;
	cin >> s1;
	cin >> s2;

	reverse(s1.begin(), s1.end());
	if (s1 == s2)cout << "YES" << endl;
	else cout << "NO" << endl;
	
	return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'reverse' was not declared in this scope
   15 |         reverse(s1.begin(), s1.end());
      |         ^~~~~~~
Language: C++

AtCoder QRMiusf3 全小文字


a
b c
s
みたいな入力は

型 A
cin >> a

型 B, C
cin >> B >> C

型 S
cin >> S


// デフォルトコードは下記
int main()
{
	return 0;
}


// A - はじめてのあっとこーだー（Welcome to AtCoder）解答
#include<iostream>
using namespace std;
int main()
{
	int a, b, c;
	cin >> a;
	cin >> b >> c;
	
	string s;
	cin >> s;

	cout << (a+b+c) << " " + s << endl;

	return 0;
}

// A - Rotation
#include<iostream>
using namespace std;
string InvertString(string a)
{
	string result;
	for(int i = a.length() - 1; i >= 0; --i)
	{
		result += a.at(i);
	}
	return result;
}

int main()
{
	string a, b;
	cin >> a;
	cin >> b;
	
	string c = InvertString(b);
	string d = InvertString(a);
	
	if(a == c && b == d)
	{
		cout << "YES" << endl;
	}
	else
	{
		cout << "NO" << endl;
	}
	return 0;
}


Compiler output:
a.cc:1:1: error: 'AtCoder' does not name a type
    1 | AtCoder QRMiusf3 全小文字
      | ^~~~~~~
a.cc:56:5: error: redefinition of 'int main()'
   56 | int main()
      |     ^~~~
a.cc:29:5: note: 'int main()' previously defined here
   29 | int main()
      |     ^~~~
Language: C++


// A - Rotation
#include<iostream>
using namespace std;
int main()
{
	string a, b;
	cin >> a;
	cin >> b;
	
	string c = InvertString(b);
	string d = InvertString(a);
	
	if(a == c && b == d)
	{
		cout << "YES" << endl;
	}
	else
	{
		cout << "NO" << endl;
	}
	return 0;
}

string InvertString(string a)
{
	string result;
	for(int i = a.length() - 1; i >= 0; ++i)
	{
		result += a.at(i);
	}
	return result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'InvertString' was not declared in this scope
   11 |         string c = InvertString(b);
      |                    ^~~~~~~~~~~~
Language: C++

n = int(raw_input())
n = n**0.5;
print n*n

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(raw_input())
      | ^
a.cc:3:1: error: 'print' does not name a type; did you mean 'int'?
    3 | print n*n
      | ^~~~~
      | int
Language: C++

#include "btis/stdc++.h"
#define MIN(a,b) (a<b)?a:b
#define MAX(a,b) (a>b)?a:b
#define EMIN(a,b) (a<=b)?a:b
#define EMAX(a,b) (a>=b)?a:b
#define REP(a) for(int i=0; i<a; i++)
#define RREP(a) for(int j=0; j<a; j++)

int main()
{
    std::string col1;
    std::string col2;

    std::cin >> col1;
    std::cin >> col2;

    bool flag = true;
    REP(3)
    {
        if(col1.at(i) == col2.at(2-i))
        {
            continue;
        }
        else
        {
            flag = false;
            break;
        }
    }
    
    if(flag)
        std::cout << "YES";
    else
        std::cout << "NO";
    return 0;
}

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

#include <cstdio>
#include <iostream>
#include <algorithm>
#define M 100005
using namespace std;
int N,A[M],B[M],C[M];
int cnt=0;
int TANSAKU_AB(int i){
  int left=0,mid,right=N;
  while(left<right){
    mid=(left+right)/2;
    if(A[mid]<B[i]) right=mid;
    else left=mid+1;
  }
  return left;
}
int TANSAKU_BC(int i){
  int left=0,mid,right=N;
  while(left<right){
    mid=(left+right)/2;
    if(B[i]<C[mid]) right=mid;
    else left=mid+1;
  }
  return left;
}
int main(){
  scanf("%d",&N);
  for(int i=0;i<N;i++) scanf("%d",&A[i]);
  for(int i=0;i<N;i++) scanf("%d",&B[i]);
  for(int i=0;i<N;i++) scanf("%d",&C[i]);
  sort(A,A+N);sort(B,B+N);sort(C,C+N);
  for(int i=0;i<N;i++){
    a=TANSAKU_AB(i);
    c=TANSAKU_BC(i);
  }
  ans=a*c;
  printf("%d\n",cnt);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: 'a' was not declared in this scope
   33 |     a=TANSAKU_AB(i);
      |     ^
a.cc:34:5: error: 'c' was not declared in this scope
   34 |     c=TANSAKU_BC(i);
      |     ^
a.cc:36:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   36 |   ans=a*c;
      |   ^~~
      |   abs
a.cc:36:7: error: 'a' was not declared in this scope
   36 |   ans=a*c;
      |       ^
a.cc:36:9: error: 'c' was not declared in this scope
   36 |   ans=a*c;
      |         ^
Language: C++

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

#define PrintLn(X) cout << X << endl
int main(void)
{
	string a, b;
	cin >> a >> b;
	reverse(a.begin(), a.end());
	if(a == b){
		PrintLn("YES");
	}else{
		PrintLn("NO");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'reverse' was not declared in this scope
   10 |         reverse(a.begin(), a.end());
      |         ^~~~~~~
Language: C

#include <stdio.h>
int main(void)
{
	char a[5]; b[5];
	scanf("%s%s", a,b);
        if(a[0]==b[2]&&a[1]==b[1]&&a[2]=b[0]) printf("Yes\n");
	else printf("No\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:20: error: 'b' undeclared (first use in this function)
    4 |         char a[5]; b[5];
      |                    ^
main.c:4:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
scanf("%d",&n);
int xb;
for(xb=1;xb*xb<=n;++xb);
printf("%d\n",xb-1);
return 0;
{


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

#include <iostream>
using namespace std;

int main()
{
  string C1, C2;
  cin >> C1 >> C2;

  int count = 0;
  for (int i = 0; i < 3, i++) {
    if (C1[i] != C2[2-i]) break;
    else count++;
  }

  if (count == 3) cout << 'YES';
  else cout << 'NO';

  return 0;
}

Compiler output:
a.cc:15:27: warning: multi-character character constant [-Wmultichar]
   15 |   if (count == 3) cout << 'YES';
      |                           ^~~~~
a.cc:16:16: warning: multi-character character constant [-Wmultichar]
   16 |   else cout << 'NO';
      |                ^~~~
a.cc: In function 'int main()':
a.cc:10:29: error: expected ';' before ')' token
   10 |   for (int i = 0; i < 3, i++) {
      |                             ^
      |                             ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 string a,b;
 cin>>a>>b;
 reverse(all(b));
 if(a==b)cout<<"Yes"<<endl;
 else cout<<"No"<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
    6 |  reverse(all(b));
      |          ^~~
      |          std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
Language: C++

#include<cstdio>
#include<iosterm>
#include<cstring>
#include<algorithm>
#include<cmath>
using namespace std;

int main(){
	char a,b,c,d,e,f;
	scanf("%c%c%c\n%c%c%c",&a,&b,&c,&d,&e,&f);
	if(a==f&&b==e&&c==d)
		printf("YES");
	else
		printf("NO");
}



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

#include <stdio.h>

void main()
{
	int  j;
	char s[4];
	char p[4];
	int cnt = 0;
	scanf_s("%s", s,4);
	scanf_s("%s", p,4);
	
		for (j = 0; j < 3; j++){
			if (s[j] ==p[2 - j]) cnt++;
			else break;
		
	}
	if (cnt == 3) printf("Yes\n");
	else printf("No\n");
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |         scanf_s("%s", s,4);
      |         ^~~~~~~
      |         scanf
Language: C++

#define ll long long

#include "bits/stdc++.h"

using namespace std;
static const int INF = (1 << 21);

int main() {
	char c[6];
	for (int i = 0;i < 6;i++) cin >> c[i];
	if (c[0] == c[5] && c[1 == c[4] && c[2] == c[3]) cout << "YES" << endl;
	else cout << "NO" << endl;
}

/*
int main() {
	int K;
	cin >> K;
}


Compiler output:
a.cc:15:1: error: unterminated comment
   15 | /*
      | ^
a.cc: In function 'int main()':
a.cc:11:56: error: expected ']' before ')' token
   11 |         if (c[0] == c[5] && c[1 == c[4] && c[2] == c[3]) cout << "YES" << endl;
      |                                                        ^
      |                                                        ]
Language: C++

#include<cstdio>
#include<iostream>
#include<cstring>
#include<algorithm>
#include<cmath>
using namespace std;

int main(){
	char a,b,c,d,e,f;
	scanf(" %c %c %c",&a,&b,&c);

	if(a==f&&b==e&&c==d)
	   {
		printf("Yes\n");
		else("No\n");
	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected '}' before 'else'
   15 |                 else("No\n");
      |                 ^~~~
a.cc:13:12: note: to match this '{'
   13 |            {
      |            ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include"bits/stdc++.h"
using namespace std;
int main(){
	string a,b;
	cin>>a>>b;
	string c=b;
	reverse(c.begin(),c.end());
	if(a=c)
		cout<<"YES";
	else
		cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(c)' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |         if(a=c)
      |            ~^~
      |             |
      |             std::__cxx11::basic_string<char>
Language: C++

#include<stdio.h>
int main(){
 char a,b,c,d,e,f;
 scanf("%c %c %c",&a,&b,&c);
 scanf("%c %c %c",&d,&e,&f);
 if((a==f)&&(b==e)&&(c==d))
 printf("YES");
else
printf("NO"
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ')' before 'return'
    9 | printf("NO"
      |       ~    ^
      |            )
   10 | return 0;
      | ~~~~~~      
a.cc:10:10: error: expected '}' at end of input
   10 | return 0;
      |          ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main() {
  string a, b;
  cin >> a >> b;

  reverse(b.begin(), b.end());
  if (a == b) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'reverse' was not declared in this scope
   10 |   reverse(b.begin(), b.end());
      |   ^~~~~~~
Language: C++

        #include<stdio.h>
        int main()
        {
        char  a,b,c,d,e,f;
        scanf("%c,%c,%c,%c,%c,%c"&a,&b,&c,&d,&e,&f);
        if ((a = f)&&(b =e)&&(c = d))
        printf("yes\n");
        else
        printf("no\n");
        return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:34: error: invalid operands of types 'const char [18]' and 'char' to binary 'operator&'
    5 |         scanf("%c,%c,%c,%c,%c,%c"&a,&b,&c,&d,&e,&f);
      |               ~~~~~~~~~~~~~~~~~~~^~
      |               |                   |
      |               const char [18]     char
Language: C++

    #include <cstdio>
using namespace std;
    int main()
    {
    char a,b,c,d,e,f;
    scanf("%d%d%d\n%d%d%d,&a,&b,&c,&d,&e,&f);
    if(a=f&&b=e&&c=d)
    	printf("yes");
    	else
    		printf("no");
    }

Compiler output:
a.cc:6:11: warning: missing terminating " character
    6 |     scanf("%d%d%d\n%d%d%d,&a,&b,&c,&d,&e,&f);
      |           ^
a.cc:6:11: error: missing terminating " character
    6 |     scanf("%d%d%d\n%d%d%d,&a,&b,&c,&d,&e,&f);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: expected primary-expression before 'if'
    7 |     if(a=f&&b=e&&c=d)
      |     ^~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else
      |         ^~~~
Language: C++

#include<cstring>
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<algorithm>
using namespace std;
int main ()
{
	int n;
	scanf("%d", &n);
	for(int i = n; i >= 0; i--)
	{
		if((int)sqrt(i) == sqrt(i))	
		{
			printf("%d\n", i);
		    break;
		}
	}
	return 0;
}#include<cstring>
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<algorithm>
using namespace std;
int main ()
{
	int n;
	scanf("%d", &n);
	for(int i = n; i >= 0; i--)
	{
		if((int)sqrt(i) == sqrt(i))	
		{
			printf("%d\n", i);
		    break;
		}
	}
	return 0;
}

Compiler output:
a.cc:20:2: error: stray '#' in program
   20 | }#include<cstring>
      |  ^
a.cc:20:3: error: 'include' does not name a type
   20 | }#include<cstring>
      |   ^~~~~~~
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main ()
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main ()
      |     ^~~~
Language: C++

    #include<cstdio>
    #include<cstdlib>
    #include<cmath>
    #include<cstring>
    #include<string>
    #include<algorithm>
    using namespace std;
     
    int main()
    {
    	char a,b,c,d,e,f;
    	scanf("%c%c%c“,&a,&b,&c);
        scanf(" %c%c%c",&d,&e,&f);
    	if (a==f){
    		if(b==e){
    			if(c==d)  printf("YES\n");
    		}
    	}
    	else printf("NO\n");
    	return 0;
    }

Compiler output:
a.cc:12:15: warning: missing terminating " character
   12 |         scanf("%c%c%c“,&a,&b,&c);
      |               ^
a.cc:12:15: error: missing terminating " character
   12 |         scanf("%c%c%c“,&a,&b,&c);
      |               ^~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:13:34: error: expected ')' before ';' token
   13 |         scanf(" %c%c%c",&d,&e,&f);
      |                                  ^
      |                                  )
a.cc:12:14: note: to match this '('
   12 |         scanf("%c%c%c“,&a,&b,&c);
      |              ^
Language: C++

#include <cstdio>
int main()
{
char a,b,c,d,e,f;
scanf("%d%d%d\n%d%d%d,&a,&b,&c,&d,&e,&f);
if(a=f&&b=e&&c=d)
	printf("yes");
	else
		printf("no");
}

Compiler output:
a.cc:5:7: warning: missing terminating " character
    5 | scanf("%d%d%d\n%d%d%d,&a,&b,&c,&d,&e,&f);
      |       ^
a.cc:5:7: error: missing terminating " character
    5 | scanf("%d%d%d\n%d%d%d,&a,&b,&c,&d,&e,&f);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: expected primary-expression before 'if'
    6 | if(a=f&&b=e&&c=d)
      | ^~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else
      |         ^~~~
Language: C++

#include <cstdio>
#include <cmacth>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
	char s1[4],s2[4]
	while(~scanf("&s&*c&s",&s1,&s2))
	{
		if(a1[0] == s2[2] && s1[2] == s2 [0])
			printf("YES\n");
		else
			printf("NO\n");
	}
	return 0;
}

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

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
        char s1[4],s2[4];
        while (~scanf("%s%*c%s",&s1,s2))
        {
              	if(s1[0] == s2[2] && s1[1] == s2[1] && s1[2]==s2 [0])
	                	print("YES\n");
	        	else
		            	printf("NO\n");
        }
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'print' was not declared in this scope; did you mean 'rint'?
   13 |                                 print("YES\n");
      |                                 ^~~~~
      |                                 rint
Language: C++

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
        char s1[4],s2[4];
        while (~scanf("%s%*c%s",&s1,s2))
        {
              	if(s1[0] == s2[2] && s1[1] == s2[1] && s1[2]==s2 [0])
	                	print("YES\n");
	        	else
		            	printf("NO\n");
        }
        r

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'print' was not declared in this scope; did you mean 'rint'?
   13 |                                 print("YES\n");
      |                                 ^~~~~
      |                                 rint
a.cc:17:9: error: 'r' was not declared in this scope
   17 |         r
      |         ^
a.cc:17:10: error: expected '}' at end of input
   17 |         r
      |          ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C++

    #include<cstdio>
    using namespace std;
    int main()
    {
    	char A,B,C,D,E,F;
    	scanf("%c%c%c",&A,&B,&C);
    	printf("%c%c%c",A,B,C);
    	scanf("%c%c%c",&D,&E,&F);
    	printf("%c%c%c",D,E,F);
    	if(a==f&&b==e&&c==d)
    		printf("yes");
    	else
    		printf("no");
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'a' was not declared in this scope
   10 |         if(a==f&&b==e&&c==d)
      |            ^
a.cc:10:15: error: 'f' was not declared in this scope
   10 |         if(a==f&&b==e&&c==d)
      |               ^
a.cc:10:18: error: 'b' was not declared in this scope
   10 |         if(a==f&&b==e&&c==d)
      |                  ^
a.cc:10:21: error: 'e' was not declared in this scope
   10 |         if(a==f&&b==e&&c==d)
      |                     ^
a.cc:10:24: error: 'c' was not declared in this scope
   10 |         if(a==f&&b==e&&c==d)
      |                        ^
a.cc:10:27: error: 'd' was not declared in this scope
   10 |         if(a==f&&b==e&&c==d)
      |                           ^
Language: C++

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
        char s1[4],s2[4];
        while (~scanf("%s%*c%s",&s1,s2))
        {
              	if(s1[0]==s2[2] && s1[1]==s2[1] && s1[2]==s2[0])
	                	print("YES\n");
	        	else
		            	printf("NO\n");
        }
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'print' was not declared in this scope; did you mean 'rint'?
   13 |                                 print("YES\n");
      |                                 ^~~~~
      |                                 rint
Language: C++

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
char s1[4],s2[4];
while (~scanf("%s%*c%s",&s1,s2))
{
	if(s1[0]==s2[2] && s1[1]==s2[1] && s1[2]==s2[0])
		print("YES\n");
		else
			printf("NO\n");
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'print' was not declared in this scope; did you mean 'rint'?
   13 |                 print("YES\n");
      |                 ^~~~~
      |                 rint
Language: C++

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
char s1[4],s2[4];
while (~scanf("%s%*c%s",&s1,s2))
{
	if(s1[0]==s2[2] && s1[1] ==s2[1] && s1[2]==s2 [0])
		print("yes\n");
		else
			printf("no\n");
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'print' was not declared in this scope; did you mean 'rint'?
   13 |                 print("yes\n");
      |                 ^~~~~
      |                 rint
Language: C++

    #include <cstdio>
    int main()
    {
    	char a,b,c,d,e,f;
    	scanf("%c%c%c %c%c%c",&a&b&c&d&e&f);
    	if(a==f&&b==e&&c==d)
    	{
    		printf("YES\n");
    	}
    	else
    	{
    		printf("NO\n");
    	}
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:33: error: invalid operands of types 'char*' and 'char' to binary 'operator&'
    5 |         scanf("%c%c%c %c%c%c",&a&b&c&d&e&f);
      |                               ~~^~
      |                               |  |
      |                               |  char
      |                               char*
Language: C++

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
char s1[4],s2[4];
while (~scanf("%s%*c%s",&s1,s2))
{
	if(s1[0]==s2[2] && s1 ==s2[1] && s1[2]==s2 [0])
		print("yes\n");
		else
			printf("no\n");
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(s1[0]==s2[2] && s1 ==s2[1] && s1[2]==s2 [0])
      |                            ~~~^~~~~~~
a.cc:13:17: error: 'print' was not declared in this scope; did you mean 'rint'?
   13 |                 print("yes\n");
      |                 ^~~~~
      |                 rint
Language: C++

#include <cstdio>
int main()
{
	char a,b,c,d,e,f;
	scanf("%c%c%c %c%c%c",&a&b&c&d&e&f);
	if(a==f&&b==e&&c==d)
	{
		printf("YES");
	}
	else
	{
		printf("NO");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:33: error: invalid operands of types 'char*' and 'char' to binary 'operator&'
    5 |         scanf("%c%c%c %c%c%c",&a&b&c&d&e&f);
      |                               ~~^~
      |                               |  |
      |                               |  char
      |                               char*
Language: C++

#include <cstdio>
#include <cmath>
#include <csting>
#include <algorthm>
using namespace std;

int main()
{
char s1[4],s2[4];
while (~scanf("%s%*c%s",&s1,s2))
{
	if(s1[0]==s2[2] && s1 ==s2[1] && s1[2]==s2 [0])
		print("yes\n");
		else
			printf("no\n");
}
return 0;
}


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

#include <cstdio>
int main()
{
	char a[4,4];
	while(~scanf(" %c%c%c%c%c%c",&a[1,1],&a[1,2],&a[1,3],&b[2,1],&b[2,2],&b[2,3]))
	if((a[1,1] == b[2,3] && a[1,3] == b [2,1]) && a[1,2] == b[2,2])
		printf("yes");
	else 
		printf("no");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: expected ']' before ',' token
    4 |         char a[4,4];
      |                 ^
      |                 ]
a.cc:4:18: error: expected unqualified-id before numeric constant
    4 |         char a[4,4];
      |                  ^
a.cc:5:39: error: 'a' was not declared in this scope
    5 |         while(~scanf(" %c%c%c%c%c%c",&a[1,1],&a[1,2],&a[1,3],&b[2,1],&b[2,2],&b[2,3]))
      |                                       ^
a.cc:5:63: error: 'b' was not declared in this scope
    5 |         while(~scanf(" %c%c%c%c%c%c",&a[1,1],&a[1,2],&a[1,3],&b[2,1],&b[2,2],&b[2,3]))
      |                                                               ^
Language: C

#include <stdio.h>
 
int main(){
   int N,b;
   int x=1;
   double a;
   int i,j;
   scanf("%d",&N);
  
   if(N>=2){
    for(i=1;i<=N;i++){
     for(j=1;j<=i/2){
      if(i==j*j){
       x=i;
      }
     }
    }
 
   printf("%d\n",x);
}
#include <stdio.h>

int main(){
   int N,b;
   int x=1;
   double a;
   int i,j;
   scanf("%d",&N);
  
   if(N>=2){
    for(i=1;i<=N;i++){
     for(j=1;j<=(int)(i/2)){
      if(i==j*j){
       x=i;
      }
     }
    }

   printf("%d\n",x);
}

Compiler output:
main.c:2:1: error: stray '\302' in program
    2 | <U+00A0>
      | ^~~~~~~~
main.c: In function 'main':
main.c:12:20: error: expected ';' before ')' token
   12 |      for(j=1;j<=i/2){
      |                    ^
      |                    ;
main.c:18:1: error: stray '\302' in program
   18 | <U+00A0>
      | ^~~~~~~~
main.c: In function 'main':
main.c:32:27: error: expected ';' before ')' token
   32 |      for(j=1;j<=(int)(i/2)){
      |                           ^
      |                           ;
main.c:40:1: error: expected declaration or statement at end of input
   40 | }
      | ^
main.c: In function 'main':
main.c:40:1: error: expected declaration or statement at end of input
Language: C++

#include<stdio.h>
int main()
{
    char a,b,c,d,e,f;
    scanf("%c%c%c",&a&b&c);
    scanf(" %c%c%c",&d&e&f):
    if(a==f&&b==e&&c==a)
    	printf("yes");
    	else
    		printf("no");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: invalid operands of types 'char*' and 'char' to binary 'operator&'
    5 |     scanf("%c%c%c",&a&b&c);
      |                    ~~^~
      |                    |  |
      |                    |  char
      |                    char*
a.cc:6:23: error: invalid operands of types 'char*' and 'char' to binary 'operator&'
    6 |     scanf(" %c%c%c",&d&e&f):
      |                     ~~^~
      |                     |  |
      |                     |  char
      |                     char*
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else
      |         ^~~~
Language: C

#include <stdio.h>

int main(void)
{
	char str1[3];
	char str2[3];

	scanf_s("%s", str1, 3);
	scanf_s("%s", str2, 3);

	if (str1[0] == str2[2] && str1[2] == str2[0] && str1[1] == str2[1]) {
		printf("YES\n");
	}
	else {
		printf("NO\n");
	}
	return (0);
}



Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%s", str1, 3);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int n;
	int a[100010], b[100010], c[100010];
	int x, y, z;
	cin >> n;
	for(int i=0; i<n; i++){
		cin >> a[i];
	}
	sort(a, a+n);
	for(int i=0; i<n; i++){
		cin >> b[i];
	}
	sort(b, b+n);
	for(int i=0; i<n; i++){
		cin >> c[i];
	}
	sort(c, c+n);

	for(int i=0; i<n; i++){
		if(a[n-1] >= b[i]){x=n-i;}
		if(b[n-1] >= c[i]){y=n-i;}
	}
	long ans = n * n * n - n * x * y; 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |         sort(a, a+n);
      |         ^~~~
      |         short
Language: C++

#include <iostrem>
using namespace std;
int main(void){
	int n;
	int a[100010], b[100010], c[100010];
	int x, y, z;
	cin >> n;
	for(int i=0; i<n; i++){
		cin >> a[i];
	}
	sort(a, a+n);
	for(int i=0; i<n; i++){
		cin >> b[i];
	}
	sort(b, b+n);
	for(int i=0; i<n; i++){
		cin >> c[i];
	}
	sort(c, c+n);

	for(int i=0; i<n; i++){
		if(a[n-1] >= b[i]){x=n-i;}
		if(b[n-1] >= c[i]){y=n-i;}
	}
	long ans = n * n * n - n * x * y; 

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

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

#include<bits/stdc++.h>
using namespace std; 
int main()
{
char s1[3],s2[3];
cin>>s1>>s2;
s1=strrev(s1);
if(s1==s2)
cout<<"YES"<<endl;
else 
cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    7 | s1=strrev(s1);
      |    ^~~~~~
      |    strsep
Language: C++

#include<bits/stdc++.h>
using namespace std; 
int main()
{
string s1,s2;
cin>>s1>>s2;
strrev(s1.begin(),s1.end());
if(s1==s2)
cout<<"YES"<<endl;
else 
cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
    7 | strrev(s1.begin(),s1.end());
      | ^~~~~~
      | strsep
Language: C++

#include<iostream>
using namespace std;


int main(){
  string str1,str2;
  cin>>str１>>str２;
  bool a=true;
  for(int i=0;i<3;i++){
    if(str1[i]!=str2[2-i]){
      a=false;
      break;
    }
  }
  string ans="NO";
       if(a)ans="YES";
  cout<<ans<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'str\U0000ff11' was not declared in this scope
    7 |   cin>>str１>>str２;
      |        ^~~~~
a.cc:7:15: error: 'str\U0000ff12' was not declared in this scope
    7 |   cin>>str１>>str２;
      |               ^~~~~