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

#include <iostream>
#include<conio.h>
using namespace std;

int main()
{
   char a[2][3],b[2][3];
   int i,j;
   for(i=0;i<2i++)
   {
      for(j=0;j<3;j++)
        cin>>a[i][j];

   }
  int m,n;
  m=1;
  for(i=0;i<2;i++)
   {    n=2;
       for(j=0;j<3;j++)
       {
        b[i][j]=a[m][n]
        n--;
       }
       m--;
   }
    for(i=0;i<2i++)
   {
      for(j=0;j<3;j++)
      {
        if(a[i][j]!=b[i][j])
        {cout<<"NO";
            exit(0);
      }
      }
   }
       cout<<"YES";
   }

    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int i, j;
    char c[2][3];
    for(i=0;i<2;i++)
    for(j=0;j<3;j++)
    cin>>c[i][j];
    string w1="";
    string w2="";
    w1=c[0][0]+c[0][1]+c[0][2];
    w2=c[1][0]+c[1][1]+c[1][2];
    if(w1==w2.reverse())
    cout<<"YES";
    else
    cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
   14 |     if(w1==w2.reverse())
      |               ^~~~~~~
      |               reserve
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int i, j;
    char c[2][3];
    for(i=0;i<2;i++)
    for(j=0;j<3;j++)
    cin>>c[i][j];
    string w1="";
    string w2="";
    w1=c[0][0]+c[0][1]+c[0][2];
    w2=c[1][0]+c[1][1]+c[1][2];
    if(w1==s.reverse(w2))
    cout<<"YES";
    else
    cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 's' was not declared in this scope
   14 |     if(w1==s.reverse(w2))
      |            ^
Language: Java

import java.util.Scanner;

public class A {
   public static void main(String args[]) {
	   Scanner sc = new Scanner(System.in);
	   String st1 = sc.nextLine();
	   String st2 = sc.nextLine();
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
		   System.out.println("YES");
	   }
	   else {
		   System.out.println("NO");
	   }
   }
}


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


	   Scanner sc = new Scanner(System.in);
	   String st1 = sc.nextLine();
	   String st2 = sc.nextLine();
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
		   System.out.println("YES");
	   }
	   else {
		   System.out.println("NO");
	   }


Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	   Scanner sc = new Scanner(System.in);
	   ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
	   ^
Main.java:7: error: class, interface, enum, or record expected
	   }
	   ^
Main.java:10: error: class, interface, enum, or record expected
	   }
	   ^
4 errors
Language: C++

#include<iostream>
#define max 100
#include<string.h>
using namespace std;

int main()
{
char a[max][max];
int i, j, count=0;
for(i=1;i<=2;i++)
{
  for(j=1;j<=3;j++)
  {
   cin>>a[i][j];
  }
}
for(i=2;i>0;i--)
{
  for(j=1;j<=3;j++)
  {
    if(a[i][j]==a[j][i])
    {
     count++;
     }
   }
 }
if(count==strlen(a))
{
  cout<<"The grid remains the SAME when rotated by 180 degrees";
}
else 
  cout<<"The grid does NOT remain the same when rotated by 180 degrees";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:18: error: cannot convert 'char (*)[100]' to 'const char*'
   27 | if(count==strlen(a))
      |                  ^
      |                  |
      |                  char (*)[100]
In file included from a.cc:3:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: Java

import java.util.Scanner;

private class Solution {
   public static void main(String args[]) {
	   Scanner sc = new Scanner(System.in);
	   String st1 = sc.nextLine();
	   String st2 = sc.nextLine();
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
		   System.out.println("YES");
	   }
	   else {
		   System.out.println("NO");
	   }
   }
}

Compiler output:
Main.java:3: error: modifier private not allowed here
private class Solution {
        ^
1 error
Language: C++

#include<iostream>
#define max 100000
using namespace std;

int main()
{
	clrscr();
char a[max][max];
int i, j, count=0;
for(i=1;i<=2;i++)
{
  for(j=1;j<=3;j++)
  {
   cin>>a[i][j];
  }
}
for(i=2;i>0;i--)
{
  for(j=3;j>=1;j--)
  {
    if(a[i][j]==a[j][i])
    {
     count++;
     }
   }
 }
if(count==3)
{
  cout<<"The grid remains the SAME when rotated by 180 degrees";
}
else 
  cout<<"The grid does NOT remain the same when rotated by 180 degrees";
getch();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'clrscr' was not declared in this scope
    7 |         clrscr();
      |         ^~~~~~
a.cc:33:1: error: 'getch' was not declared in this scope; did you mean 'getc'?
   33 | getch();
      | ^~~~~
      | getc
Language: C++

#include<iostream>
#define max 100000
using namespace std;

int main()
{
	clrscr();
int a[max][max];
int i, j, count=0;
for(i=1;i<=2;i++)
{
  for(j=1;j<=3;j++)
  {
   cin>>a[i][j];
  }
}
for(i=2;i>0;i--)
{
  for(j=1;j<=3;j++)
  {
    if(a[i][j]==a[j][i])
    {
     count++;
     }
   }
 }
if(count==3)
{
  cout<<"The grid remains the SAME when rotated by 180 degrees";
}
else 
  cout<<"The grid does NOT remain the same when rotated by 180 degrees";
getch();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'clrscr' was not declared in this scope
    7 |         clrscr();
      |         ^~~~~~
a.cc:33:1: error: 'getch' was not declared in this scope; did you mean 'getc'?
   33 | getch();
      | ^~~~~
      | getc
Language: C

#include<stdio.h>
int main()
{
char a[3],b[3];
int i,c=1;
scanf("%s%s",a,b);
for(i=0;i<3;i++)
{
if(a[i]!=b[2-i];
c=1;
}
if(c)
printf("YES");
else
printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ')' before ';' token
    9 | if(a[i]!=b[2-i];
      |   ~            ^
      |                )
main.c:11:1: error: expected expression before '}' token
   11 | }
      | ^
Language: C++

#include<iostream>
#include<conio.h>
#define max 1000
using namespace std;

int main()
{
	clrscr();
char a[max][max];
int i, j, count=0;
for(i=1;i<=2;i++)
{
  for(j=1;j<=3;j++)
  {
   cin>>a[i][j];
  }
}
for(i=2;i>0;i--)
{
  for(j=1;j<=3;j++)
  {
    if(a[i][j]==a[j][i])
    {
     count++;
     }
   }
 }
if(count==3)
{
  cout<<"The grid remains the SAME when rotated by 180 degrees";
}
else 
  cout<<"The grid does NOT remain the same when rotated by 180 degrees";
getch();
}


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

public static void main(String args[]) {
	   Scanner sc = new Scanner(System.in);
	   String st1 = sc.nextLine();
	   String st2 = sc.nextLine();
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
		   System.out.println("YES");
	   }
	   else {
		   System.out.println("NO");
	   }
   }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<iostream>
#define max 100000
using namespace std;

int main()
{
	clrscr();
char a[max][max];
int i, j, count=0;
for(i=1;i<=2;i++)
{
  for(j=1;j<=3;j++)
  {
   cin>>a[i][j];
  }
}
for(i=2;i>0;i--)
{
  for(j=1;j<=3;j++)
  {
    if(a[i][j]==a[j][i])
    {
     count++;
     }
   }
 }
if(count==3)
{
  cout<<"The grid remains the SAME when rotated by 180 degrees";
}
else 
  cout<<"The grid does NOT remain the same when rotated by 180 degrees";
getch();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'clrscr' was not declared in this scope
    7 |         clrscr();
      |         ^~~~~~
a.cc:33:1: error: 'getch' was not declared in this scope; did you mean 'getc'?
   33 | getch();
      | ^~~~~
      | getc
Language: Java

import java.util.Scanner;

public class java3 {
   public static void main(String args[]) {
	   Scanner sc = new Scanner(System.in);
	   String st1 = sc.nextLine();
	   String st2 = sc.nextLine();
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
		   System.out.println("YES");
	   }
	   else {
		   System.out.println("NO");
	   }
   }
}

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

import java.util.Scanner;

public class A-Rotate {
   public static void main(String args[]) {
	   Scanner sc = new Scanner(System.in);
	   String st1 = sc.nextLine();
	   String st2 = sc.nextLine();
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
		   System.out.println("YES");
	   }
	   else {
		   System.out.println("NO");
	   }
   }
}

Compiler output:
Main.java:3: error: '{' expected
public class A-Rotate {
              ^
1 error
Language: Java

import java.util.Scanner;

public class Solution {
   public static void main(String args[]) {
	   Scanner sc = new Scanner(System.in);
	   String st1 = sc.nextLine();
	   String st2 = sc.nextLine();
	   if(st1.charAt(0)==st2.charAt(2) && st1.charAt(1)==st2.charAt(1) && st1.charAt(2)==st2.charAt(0)) {
		   System.out.println("YES");
	   }
	   else {
		   System.out.println("NO");
	   }
   }
}

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

public class A
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
String s1,s2;
s1=sc.next();
char ch1[]=s1.toCharArray();
s2=sc.next();
char ch2[]=s2.toCharArray();
if(ch1[0]==ch2[2] && ch1[1]==ch2[1] && ch1[2]==ch2[0])
{
System.out.println("YES");
}
}
}

Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A
       ^
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class A
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
                 ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C

#include<stdio.h>
int main()
{
char a[4],b[4];
int i,c=1;
scanf("%s%s",a,b);
for(i=0;i<3;i++)
{
if(a[i]!=b[2-i])
c=0;
}
if(c)
printf("YES");
else
Printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 | Printf("NO");
      | ^~~~~~
      | printf
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
char a[4],b[4],c;
gets(a);
gets(b);
c=b[0];
b[0]=b[2];
b[2]=c;
if(strcmp(a,b)==0)
cout<<"YES";
else
cout<<"NO";
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 | gets(a);
      | ^~~~
      | fgets
main.c:12:1: error: 'cout' undeclared (first use in this function)
   12 | cout<<"YES";
      | ^~~~
main.c:12:1: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;
public class main
{
    public static void main()
    {
       String s;
       int c=0;
      Scanner in=new Scanner(System.in);
      for(int i=0 ; i<2 ; i++){
      s=in.nextLine();
      StringBuffer sb=new StringBuffer(s);
      if(!(sb.reverse().equals(s)))
      {
          c=1;
      }  
    }
    if(c==0)
        System.out.println("YES\nThis grid remains the same when rotated 180 degrees.");
    else
            System.out.println("NO\nThis grid does not remain the same when rotated 180 degrees.");
}
}

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

#include<stdio.h>
void main()
{
int a[3][3],i,j
for(i=0;i<2;i++)
for(j=0;j<3;j++)
scanf("%d",&a[i][j]);

if(a[0][0]==a[1][2] && a[0][1]==a[1][1] && a[0][2]==a[1][0] )
printf("YES");
else 
printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    5 | for(i=0;i<2;i++)
      | ^~~
main.c:5:16: error: expected ';' before ')' token
    5 | for(i=0;i<2;i++)
      |                ^
      |                ;
main.c:5:16: error: expected statement before ')' token
main.c:6:5: error: 'j' undeclared (first use in this function)
    6 | for(j=0;j<3;j++)
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:44: error: 'o' was not declared in this scope
   12 |         if(a[0]==b[2]&&a[1]==b[1]&&a[2]==b[o])
      |                                            ^
Language: C

public class main
{
    public int sampleMethod(int y)
    {
       String s;
       int c=0;
      Scanner in=new Scanner(System.in);
      for(int i=0 ; i<2 ; i++){
      s=in.nextLine();
      StringBuffer sb=new StringBuffer(s);
      if(sb.reverse.equals(s))
      {
          
      }
      else
        c=1;
    }
    if(c==0)
        System.out.println("YES\nThis grid remains the same when rotated 180 degrees.");
    else
            System.out.println("NO\nThis grid does not remain the same when rotated 180 degrees.");
}
}

Compiler output:
main.c:1:1: error: unknown type name 'public'
    1 | public class main
      | ^~~~~~
main.c:1:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'main'
    1 | public class main
      |              ^~~~
Language: C

void main()
{
int a[3][3],i,j
for(i=0;i<2;i++)
for(j=0;j<3;j++)
scanf("%d",&a[i][j]);

if(a[0][0]==a[1][2] && a[0][1]==a[1][1] && a[0][2]==a[1][0] )
printf("YES");
else 
printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    4 | for(i=0;i<2;i++)
      | ^~~
main.c:4:16: error: expected ';' before ')' token
    4 | for(i=0;i<2;i++)
      |                ^
      |                ;
main.c:4:16: error: expected statement before ')' token
main.c:5:5: error: 'j' undeclared (first use in this function)
    5 | for(j=0;j<3;j++)
      |     ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 | scanf("%d",&a[i][j]);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | void main()
main.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 | scanf("%d",&a[i][j]);
      | ^~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 | printf("YES");
      | ^~~~~~
main.c:9:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 | printf("NO");
      | ^~~~~~
main.c:11:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main()
{
char a[4],b[4];
int c;
scanf("%s%s",a,b);
for(i=0;i<3;i++)
{
if(a[i]!=b[2-i];
c=0;
}
if(c)
printf('yes");
else
printf("no");
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'i' undeclared (first use in this function)
    7 | for(i=0;i<3;i++)
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:16: error: expected ')' before ';' token
    9 | if(a[i]!=b[2-i];
      |   ~            ^
      |                )
main.c:11:1: error: expected expression before '}' token
   11 | }
      | ^
main.c:13:8: warning: missing terminating ' character
   13 | printf('yes");
      |        ^
main.c:13:8: error: missing terminating ' character
   13 | printf('yes");
      |        ^~~~~~~
main.c:14:1: error: expected expression before 'else'
   14 | else
      | ^~~~
main.c:15:14: error: expected ';' before '}' token
   15 | printf("no");
      |              ^
      |              ;
   16 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
vector<char> a,b;
char c;
int i;
for(  i=0; i<3; i++)
{
cin>>c;
a.push_back(c);
}
for(  i=0; i<3; i++)
{
cin>>c;
a.push_back(b);
}
reverse(b.begin(),b.end());
if(a==b)
cout<<'YES';
else
cout<<'NO';
return 0;
}

Compiler output:
a.cc:20:7: warning: multi-character character constant [-Wmultichar]
   20 | cout<<'YES';
      |       ^~~~~
a.cc:22:7: warning: multi-character character constant [-Wmultichar]
   22 | cout<<'NO';
      |       ^~~~
a.cc: In function 'int main()':
a.cc:16:12: error: no matching function for call to 'std::vector<char>::push_back(std::vector<char>&)'
   16 | a.push_back(b);
      | ~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = char; _Alloc = std::allocator<char>; value_type = char]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::vector<char>' to 'const std::vector<char>::value_type&' {aka 'const char&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = char; _Alloc = std::allocator<char>; value_type = char]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::vector<char>' to 'std::vector<char>::value_type&&' {aka 'char&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

#include<bits//stdc++,h>
using namespace std;
int main(){
  string s,t;cin >> s >> t;
  if(s[0]== t[2] && s[1] == t[1] && s[2] == t[0]) cout << "YES" <<endl;
  else cout << "NO" << endl;
}

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

#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
int c1[3],c2[3];
REP(i,3) cin >> c1[i];
REP(j,3) cin >> c2[i];
int flg = -1;
REP(i,3) {
  if(c1[i] != c2[2-i]) flg++;
}
if(flg==-1) {
  cout << "YES" << endl;
} else {
  cout << "NO" << endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: 'i' was not declared in this scope
   15 | REP(j,3) cin >> c2[i];
      |                    ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void){
    vector<vector<char>>mat(2,vector<char>(3));
    for (int i = 0; i < 2 i++) {
        for (int j = 0; j < 3; j++) {
            cin >> mat.at(i).at(j);
        }
    }
    for(int i=0;i<mat.size();i++){
        for(int j=0;j<mat.at(0).size();j++){
            if( mat.at(i).at(j) != mat.at(1-i).at(2-j) ){
                goto OUT;
            }
        }
    }
    cout<<"YES"<<endl;
    OUT:
        cout<<"NO"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before 'i'
    7 |     for (int i = 0; i < 2 i++) {
      |                          ^~
      |                          ;
Language: C++

#include <iostream>
using namespace std;

int main()
{
  char mat[3][4];
  int i,j;
  for(i=0;i<2;++i)
  {
    for(j=0;j<3;++j)
    {
      cin>>mat[i][j];
    }
  }
  
  if((maat[0][0]==mat[1][0]) && (mat[0][1]==mat[1][1]) && (mat[0][2]==mat[1][0]))
       printf("YES");
  
  else
    printf("NO");
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'maat' was not declared in this scope; did you mean 'mat'?
   16 |   if((maat[0][0]==mat[1][0]) && (mat[0][1]==mat[1][1]) && (mat[0][2]==mat[1][0]))
      |       ^~~~
      |       mat
Language: C++


#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
int main(){
char a[];
char s[];
get(a);
get(s);
strrev(s);
if (strcmp(a, s) == 0)  

printf("YES");

else printf("NO");

return 0;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: storage size of 'a' isn't known
    7 | char a[];
      |      ^
a.cc:8:6: error: storage size of 's' isn't known
    8 | char s[];
      |      ^
a.cc:11:1: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   11 | strrev(s);
      | ^~~~~~
      | strsep
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
 
int main(){
  vector<string> c(2);
  vector<string> t(2,"***");
  rep(i,2) cin >> c.at(i);
  

  rep(i,2)rep(j,3){{
    t.at(1-i).at(2-j) = c.at(i).at(j);
  }}
  
  if(c == t) cout << "YES" << endl;
  else cout << "NO" << endl;
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: expected '}' at end of input
   17 |   else cout << "NO" << endl;
      |                             ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <iostream>
#include<algorithm>
#include<string>
#include <cmath>
#include <vector>
#include <map>
#include <cstdio>
#pragma region Macros
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,n) for(int i=1;i<=n;i++)
#define int long long
#define all(x) (x).begin(),(x).end()
#define swap(a,b) (a += b,b = a - b,a -= b)
#define CEIL(a,b) ((a+b-1)/b)
int GCD(int a, int b) // assuming a,b >= 1
{
	if (a < b)
		swap(a, b);
	if (b == 0)
		return a;
	if (a % b == 0)
		return b;
	return GCD(b, a % b);
}
int LCM(int a, int b) // assuming a,b >= 1
{
	return  a * b / GCD(a, b);
}
inline bool BETWEEN(int x, int min,int max) {
	if (min <= x && x <= max)
		return true;
	else
		return false;
}
using namespace std;
#pragma endregion
signed main() {
	string S,T;
	cin >> S,T;
	if (S[0] == T[2] && S[1] == T[1] && S[2] == T[0])
		cout << YES;
	else
		cout << NO;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:25: error: 'YES' was not declared in this scope
   41 |                 cout << YES;
      |                         ^~~
a.cc:43:25: error: 'NO' was not declared in this scope
   43 |                 cout << NO;
      |                         ^~
Language: C++

#include <bits/stdc++.h>

using namespace std ;

int main()
{
    string a , b ;
    cin >> a >> b ;
    if(a[1] == b[1])
        bool s = true ;
    else s = 0 ;
    sort(a.begin(),a.end()) ;
    sort(b.begin(),b.end()) ;

    if(a == b && s)
        cout << "YES" ;
    else cout << "NO" ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 's' was not declared in this scope
   11 |     else s = 0 ;
      |          ^
a.cc:15:18: error: 's' was not declared in this scope
   15 |     if(a == b && s)
      |                  ^
Language: C++

#include<cstring>
using namespace std;
char a[5],b[5];
int main()
{
	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:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>a>>b;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstring>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstring>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<"NO"<<endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |         cout<<"NO"<<endl;
      |                     ^~~~
a.cc:10:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pp pair<int,int>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(),(a).end()
#define mk make_pair
ll MOD=1000000007;
ll mod=998244353;
int inf=1000001000;
ll INF=1e18+5;


int main() {
  string s,t;
  cin >> s >> t;
  reverse(all(t));
  bool f=true;
  rep(i,3){
      if (s[i]!=t[i]) f=false;
  }
  if(t) cout << "YES" << endl;
  else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:6: error: could not convert 't' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   23 |   if(t) cout << "YES" << endl;
      |      ^
      |      |
      |      std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	string s0,s1;
	cin>>s0>>s1;
	if(s0[0]==s1[2] && s0[1]==s1[1] && s0[2]==s[0])cout<<"YES";
	else cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:51: error: 's' was not declared in this scope; did you mean 's1'?
    7 |         if(s0[0]==s1[2] && s0[1]==s1[1] && s0[2]==s[0])cout<<"YES";
      |                                                   ^
      |                                                   s1
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	string s0,s1;
	cin>>s0>>s1;
	if(s0[0]==s1[2] && s0[1]==s[1])cout<<"YES";
	else cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: 's' was not declared in this scope; did you mean 's1'?
    7 |         if(s0[0]==s1[2] && s0[1]==s[1])cout<<"YES";
      |                                   ^
      |                                   s1
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	string s0,s1;
	cin>>s0>>s1;
	if(s0[0]==s1[2] && s0[1]==s[1][1])cout<<"YES";
	else cout<<"NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: 's' was not declared in this scope; did you mean 's1'?
    7 |         if(s0[0]==s1[2] && s0[1]==s[1][1])cout<<"YES";
      |                                   ^
      |                                   s1
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
    string s[2];
    cin >> s[0] >> s[1];
    string t[0] = s[1], t[1] = s[0];
    reverse(t[0].begin(), t[0].end());
    reverse(t[1].begin(), t[1].end());
    if (s[0] == t[0] && s[1] == t[1]) {
        puts("YES");
    }
    else {
        puts("NO");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: array must be initialized with a brace-enclosed initializer
    6 |     string t[0] = s[1], t[1] = s[0];
      |                   ~~~^
a.cc:6:25: error: conflicting declaration 'std::string t [1]'
    6 |     string t[0] = s[1], t[1] = s[0];
      |                         ^
a.cc:6:12: note: previous declaration as 'std::string t [0]'
    6 |     string t[0] = s[1], t[1] = s[0];
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	string s1,s2;
  	cin >> s1 >> s2;
  	if(s1[0]==s2[2] && s1[1]==s2[1] && s1[2]==s[0]){
    	cout << "YES\n";
    }
  	else{
    	cout << "NO\n";
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:51: error: 's' was not declared in this scope; did you mean 's2'?
    6 |         if(s1[0]==s2[2] && s1[1]==s2[1] && s1[2]==s[0]){
      |                                                   ^
      |                                                   s2
Language: C++


#include <bits/stdc++.h>

using namespace std;
int main()
{
	int N;
	cin >> N;

	vector<int> A(N), B(N), C(N);

	for (int i = 0; i < N; i++)
	{
		cin >> A[i];
	}
	for (int i = 0; i < N; i++)
	{
		cin >> B[i];
	}

	for (int i = 0; i < N; i++)
	{
		cin >> C[i]
	}
	sort(A.begin(), A.end());
	sort(B.begin(), B.end());
	sort(C.begin(), C.end());

	long ans = 0;
	for (int i = 0; i < N; i++)
	{
		auto Iter1 = lower_bound(A.begin(), A.end(), B[i]);
		auto Iter2 = upper_bound(C.begin(), C.end(), B[i]);
		long k1 = Iter1 - A.begin();
		long k2 = C.end() - Iter2;
		ans += k1 * k2;
	}

	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:28: error: expected ';' before '}' token
   23 |                 cin >> C[i]
      |                            ^
      |                            ;
   24 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  
  string r, g;
  cin >> r >> g;
  
  char tmp = r[0];
  r[0] = r[2];
  r[2] = r[0];

  if(r == t)
  	cout << "Yes" << endl;
  else
  	cout << "No" << endl;
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 't' was not declared in this scope
   12 |   if(r == t)
      |           ^
Language: C++

#include<bits/stdc++.h>
int main(){string a,b;std::cin>>a>>b;std::cout<<((a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])?"YES":"NO");}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:12: error: 'string' was not declared in this scope
    2 | int main(){string a,b;std::cin>>a>>b;std::cout<<((a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])?"YES":"NO");}
      |            ^~~~~~
a.cc:2:12: 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:2:33: error: 'a' was not declared in this scope
    2 | int main(){string a,b;std::cin>>a>>b;std::cout<<((a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])?"YES":"NO");}
      |                                 ^
a.cc:2:36: error: 'b' was not declared in this scope
    2 | int main(){string a,b;std::cin>>a>>b;std::cout<<((a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])?"YES":"NO");}
      |                                    ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:2:12: error: 'string' was not declared in this scope
    2 | int main(){string a,b;std::cin>>a>>b;std::cout<<((a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])?"YES":"NO");}
      |            ^~~~~~
a.cc:2:12: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:2:33: error: 'a' was not declared in this scope
    2 | int main(){string a,b;std::cin>>a>>b;std::cout<<((a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])?"YES":"NO");}
      |                                 ^
a.cc:2:36: error: 'b' was not declared in this scope
    2 | int main(){string a,b;std::cin>>a>>b;std::cout<<((a[0]==b[2]&&a[1]==b[1]&&a[2]==b[0])?"YES":"NO");}
      |                                    ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string c = reverse (b.at(0), b.at(2));
      |              ~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::reverse(_BIter, _BIter) [with _BIter = char]':
a.cc:7:22:   required from here
/usr/include/c++/14/bits/stl_algo.h:1089:63: error: no matching function for call to '__iterator_category(char&)'
 1089 |       std::__reverse(__first, __last, std::__iterator_category(__first));
      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:65,
                 from /usr/include/c++/14/algorithm:60:
/usr/include/c++/14/bits/stl_iterator_base_types.h:239:5: note: candidate: 'template<class _Iter> constexpr typename std::iterator_traits< <template-parameter-1-1> >::iterator_category std::__iterator_category(const _Iter&)'
  239 |     __iterator_category(const _Iter&)
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator_base_types.h:239:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_iterator_base_types.h: In substitution of 'template<class _Iter> constexpr typename std::iterator_traits< <template-parameter-1-1> >::iterator_category std::__iterator_category(const _Iter&) [with _Iter = char]':
/usr/include/c++/14/bits/stl_algo.h:1089:63:   required from 'void std::reverse(_BIter, _BIter) [with _BIter = char]'
 1089 |       std::__reverse(__first, __last, std::__iterator_category(__first));
      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:7:22:   required from here
    7 |   string c = reverse (b.at(0), b.at(2));
      |              ~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator_base_types.h:239:5: error: no type named 'iterator_category' in 'struct std::iterator_traits<char>'
  239 |     __iterator_category(const _Iter&)
      |     ^~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
using ll=long long;
 
 
 
void solve(){
    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;
    }
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
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";}
 
    else
    { cout<<"NO"}
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before '}' token
   11 |     { cout<<"NO"}
      |                 ^
      |                 ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected primary-expression before 'else'
    8 |       else if(x[1]==y[1]&&x[2]==y[0])
      |       ^~~~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String s1=sc.next();
    char[] c1=s1.toCharArray();
    String s2=sc.next();
    char[] c2=s2.toCharArray();
    bool flg;
    if(c1[0]==c2[2]){
      if(c1[1]==c2[1]){
        if(c1[2]==c2[0]){
          flg=true;
        }
      }
    }
    if(flg){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    bool flg;
    ^
  symbol:   class bool
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int>a(3);
vector<int>b(3);
for(int i=0;i<3;i++){
cin >> a.at(i)}

for(int i=0;i<3;i++){
cin >> b.at(i)}

int cnt=0;
for(int i=0;i<3;i++){
if(a.at(i)==b.at(2-i))cnt++;
}
  if(cnt==3)cout<<"YES"<<endl;
  else cout <<"NO"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before '}' token
    7 | cin >> a.at(i)}
      |               ^
      |               ;
a.cc:10:15: error: expected ';' before '}' token
   10 | cin >> b.at(i)}
      |               ^
      |               ;
a.cc:17:26: error: expected '}' at end of input
   17 |   else cout <<"NO"<<endl;
      |                          ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <stdio.h>

int main() {
  char* c1;
  char* c2;
  scanf("%s", c1);
  scanf("%s", c2);
  if (c1[0] == c2[2] && c1[2] == c2[0] && c1[1] == c2[1]) {
    printf("Yes\n");
  } else {
  	printf("No\n");
  }

Compiler output:
main.c: In function 'main':
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
using namespace std;
int main()
{
    string s, ss;
    cin >> s >> ss;
    if (s[0] == ss[2] && s[1] == ss[1] && s[2] == ss[0])
    {
        cout << "YES" << endl;
    }
    else
    {
        cout "NO" << endl;
    }
    return 0;
}

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

#include <iostream>

using namespace std;

int main()
{
    int ,A,B;
    char a,b,c,d,e,f;
    cin>>A>>B;
    a=A[0];
    b=A[1];
    c=A[2];
    d=B[0];
    e=B[1];
    f=B[2];
    if (a==f&&b==e&&c==d)
    {
        cout<<"Yes";
    }
    else
        cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected unqualified-id before ',' token
    7 |     int ,A,B;
      |         ^
a.cc:10:8: error: invalid types 'int[int]' for array subscript
   10 |     a=A[0];
      |        ^
a.cc:11:8: error: invalid types 'int[int]' for array subscript
   11 |     b=A[1];
      |        ^
a.cc:12:8: error: invalid types 'int[int]' for array subscript
   12 |     c=A[2];
      |        ^
a.cc:13:8: error: invalid types 'int[int]' for array subscript
   13 |     d=B[0];
      |        ^
a.cc:14:8: error: invalid types 'int[int]' for array subscript
   14 |     e=B[1];
      |        ^
a.cc:15:8: error: invalid types 'int[int]' for array subscript
   15 |     f=B[2];
      |        ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
  string a; cin>>a;
  string b; cin>>b;
  
  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 main()':
a.cc:12:20: error: expected ';' before '}' token
   12 |   }else{ cout<<"NO"
      |                    ^
      |                    ;
   13 |        }
      |        ~
Language: C++

#include <bits/stdc++.h>

#define INF 1e9
using namespace std;
typedef long long ll;

int main() {
int a[3],b[3];
for(int i=0;i<3;++i){
cin >> a[i];
}
for (int i=0;i<3; ++i){
cin >> b[i];
}
reverse(b,b+3);
bool Yes = true;
for(int i=0;i<3;++i){
if(a[i]!=b[i]){
Yes = false;
}
if(Yes) cout << "YES" << endl;
else cout << "NO" << endl;
}


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

#include <bits/stdc++.h>

#define INF 1e9
using namespace std;
typedef long long ll;

int main() {
int a[3],b[3];
for(int i=0;i<3;++i){
cin >> a[i];
}
for (int i=0;i<3; ++i){
cin >> b[i];
}
reverse(b,b+3);
bool Yes = true;
for(int i=0;i<3;++i){
if(a[i]!=b[i]){
Yes = false;
}
if(Yes) cout << "Yes" << endl;
else cout << "No" << endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before '}' token
    8 |     cout << "YES"
      |                  ^
      |                  ;
    9 |   }else{
      |   ~               
a.cc:10:17: error: expected ';' before '}' token
   10 |     cout << "NO"
      |                 ^
      |                 ;
   11 |   }
      |   ~
Language: C

#include <stdio.h>
int main(void){
int a,b;
char s[100];
  char ss[100]
  scanf("%s",s);
    scanf("%s",ss);
if((s[1]==ss[1])&&(s[0]==ss[2])&&(s[2]==ss[0])){printf("YES");}
  else{printf("NO");}
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |   scanf("%s",s);
      |   ^~~~~
main.c:7:16: error: 'ss' undeclared (first use in this function); did you mean 's'?
    7 |     scanf("%s",ss);
      |                ^~
      |                s
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <cstdio>

int main()
{
  char a[4] b[4];
  scanf("%s %s", a, b);
  puts(a[0] == b[2] && a[1] == b[1] && a[2] == b[0] ? "YES" : "NO");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected initializer before 'b'
    5 |   char a[4] b[4];
      |             ^
a.cc:6:18: error: 'a' was not declared in this scope
    6 |   scanf("%s %s", a, b);
      |                  ^
a.cc:6:21: error: 'b' was not declared in this scope
    6 |   scanf("%s %s", a, b);
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int  a, b ,c;
    char X,Y;
    string S;
    cin >> S;
    if(S[0]==S[5] && S[1]==A[4] && S[2]==S[3]) cout << "YES" << endl;
    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: 'A' was not declared in this scope
    8 |     if(S[0]==S[5] && S[1]==A[4] && S[2]==S[3]) cout << "YES" << endl;
      |                            ^
Language: C++

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

int main() {
    int N;
    cin >> N;
    int i = 1;
    while ((i+i)*(i+1) <= N) {
        i++
    }
    cout << i * i << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '}' token
   12 |         i++
      |            ^
      |            ;
   13 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 's' was not declared in this scope
    9 |                 s = "YES";
      |                 ^
a.cc:11:17: error: 's' was not declared in this scope
   11 |         cout << s << endl;
      |                 ^
Language: Java

import java.util.*;

public class Main{
	public static void main(String[]args){
		
		Scanner sc=new Scanner(System.in);
		
		String c1=sc.next();
		String c2=sc.next();
		String s1[]=c1.split("");
		String s2[]=c2.split("");
		boolean ans=true;
		
		for(int i=0;i<3;i++){
			
			if(s1[i].equals(s2[2-i])){
				
			}else{
				ans=false;
			}
		
		}
		
		
	if(ans==true){
		System.out.println("YES");
	}else{
		SYstem.out.println("NO");
	}
	
	}
}

Compiler output:
Main.java:28: error: package SYstem does not exist
		SYstem.out.println("NO");
		      ^
1 error
Language: C++

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

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

    if(a.at(0)==b.at(2) && a.at(1)==b.at(1) && a.at(2)==b.at(0))cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'atring' was not declared in this scope
    5 |     atring a,b;
      |     ^~~~~~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |     cin>>a>>b;
      |          ^
a.cc:6:13: error: 'b' was not declared in this scope
    6 |     cin>>a>>b;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string a,b;
  cin>>a>>b;
  if(a.at(0)==b.(2) && a.at(1)==b.at(1) && a.at(2)==b.at(0)){
    cout<<"YES"<<endl;
  }else{
    cout<<"NO"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected unqualified-id before '(' token
    6 |   if(a.at(0)==b.(2) && a.at(1)==b.at(1) && a.at(2)==b.at(0)){
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int maim() {
  int a,b,c,d,e,f;
  cin >> a >> b >> c >> d >> e >> f;
  if(a == f && b == e && c == d) {
    cout << "YES" << endl;
  }else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int maim()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status