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

#include<stdio.h>

typedef struct {
	char m_aLetter[4];
}Squares_t;

void DisplayLetter(Squares_t* a_pstSquares);

int main(void) {
	//構造体変数の定義
	Squares_t astSquares[3];

	//変数に文字を入力
	scanf("%s", &astSquares[0].m_aLetter);
	scanf("%s", &astSquares[1].m_aLetter);
	scanf("%s", &astSquares[2].m_aLetter);
	
	DisplayLetter(&astSquares);

	return 0;
}

/**********
*3行3列に並んだアルファベットの中で左上、中央、右下の3つを順番に表示する関数
*　Squares_t* a_pstSquares　入力される文字の構造体
*/
void DisplayLetter(Squares_t* a_pstSquares) {
	int i;
	printf("\n");
	//並んだアルファベットの中で左上、中央、右下の3つを順番に表示
	for (i = 0; i < 3; i++) {
		printf("%c", a_pstSquares[i].m_aLetter[i]);
	}
	printf("\n");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:23: error: passing argument 1 of 'DisplayLetter' from incompatible pointer type [-Wincompatible-pointer-types]
   18 |         DisplayLetter(&astSquares);
      |                       ^~~~~~~~~~~
      |                       |
      |                       Squares_t (*)[3]
main.c:7:31: note: expected 'Squares_t *' but argument is of type 'Squares_t (*)[3]'
    7 | void DisplayLetter(Squares_t* a_pstSquares);
      |                    ~~~~~~~~~~~^~~~~~~~~~~~
main.c: In function 'DisplayLetter':
main.c:36:16: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   36 |         return 0;
      |                ^
main.c:27:6: note: declared here
   27 | void DisplayLetter(Squares_t* a_pstSquares) {
      |      ^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#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++)
using namespace std;
using P = pair<int, int>; 
using ll = long long;

int main()
{
  string s[3]
  rep(i, 3){
    cin >> s[i];
  }
	
  cout << s[0][0] << s[1][1] << s[2][2] << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:19: error: expected initializer before 'for'
    2 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:11:3: note: in expansion of macro 'rep'
   11 |   rep(i, 3){
      |   ^~~
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   rep(i, 3){
      |       ^
a.cc:2:35: note: in definition of macro 'rep'
    2 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
a.cc:15:11: error: 's' was not declared in this scope
   15 |   cout << s[0][0] << s[1][1] << s[2][2] << endl;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int find(int n){
  int sum[5];
  for(int i=0;i<4;i++){
    sum[i]=n%10;
    n/=10;
  }
  int sum2[5]
  sum2[5]=reserve(sum,sum+5);
  bool kind=true;
  for(int i=0;i<n;i++){
    if(sum[i]!=sum2[i]){
      kind=false;
      return 0;
    }
  }
  if(kind)return 1;
}
int main(){
  int a,b;
  cin >> a >> b;
  int count=0;
  for(i=a;i<=b;i++){
    count+=find(i);
  }
  cout << count <<endl;
}


Compiler output:
a.cc: In function 'int find(int)':
a.cc:10:3: error: expected initializer before 'sum2'
   10 |   sum2[5]=reserve(sum,sum+5);
      |   ^~~~
a.cc:13:16: error: 'sum2' was not declared in this scope; did you mean 'sum'?
   13 |     if(sum[i]!=sum2[i]){
      |                ^~~~
      |                sum
a.cc: In function 'int main()':
a.cc:24:7: error: 'i' was not declared in this scope
   24 |   for(i=a;i<=b;i++){
      |       ^
a.cc: In function 'int find(int)':
a.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int find(int n){
  int sum[5];
  for(int i=0;i<4;i++){
    sum[i]=n%10;
    n/=10;
  }
  int sum2[5]
  sum2=reserve(sum.begin(),sum.end());
  bool kind=true;
  for(int i=0;i<n;i++){
    if(sum[i]!=sum2[i]){
      kind=false;
      return 0;
    }
  }
  if(kind)return 1;
}
int main(){
  int a,b;
  cin >> a >> b;
  int count=0;
  for(i=a;i<=b;i++){
    count+=find(i);
  }
  cout << count <<endl;
}


Compiler output:
a.cc: In function 'int find(int)':
a.cc:10:3: error: expected initializer before 'sum2'
   10 |   sum2=reserve(sum.begin(),sum.end());
      |   ^~~~
a.cc:13:16: error: 'sum2' was not declared in this scope; did you mean 'sum'?
   13 |     if(sum[i]!=sum2[i]){
      |                ^~~~
      |                sum
a.cc: In function 'int main()':
a.cc:24:7: error: 'i' was not declared in this scope
   24 |   for(i=a;i<=b;i++){
      |       ^
a.cc: In function 'int find(int)':
a.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
char a[3],b[3],c[3];
scanf("%3s %3s %3s",a,b,c)
  
  printf("%c%c%c",a[0],b[1],c[2]);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected ';' before 'printf'
    5 | scanf("%3s %3s %3s",a,b,c)
      |                           ^
      |                           ;
    6 | 
    7 |   printf("%c%c%c",a[0],b[1],c[2]);
      |   ~~~~~~
Language: C++

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

int main(){
  vector<vector<int>>c(3,vector<int>(4));
  cout<<c[1].[1]<<c[2].[2]<<c[3].[3]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected unqualified-id before '[' token
    6 |   cout<<c[1].[1]<<c[2].[2]<<c[3].[3]<<endl;
      |              ^
a.cc:6:24: error: expected unqualified-id before '[' token
    6 |   cout<<c[1].[1]<<c[2].[2]<<c[3].[3]<<endl;
      |                        ^
a.cc:6:34: error: expected unqualified-id before '[' token
    6 |   cout<<c[1].[1]<<c[2].[2]<<c[3].[3]<<endl;
      |                                  ^
Language: Java

import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String str1 = sc.next();
            String str2 = sc.next();
            String str3 = sc.next();
            String[] str1a = str1.split("");
            String[] str2a = str2.split("");
            String[] str3a = str3.split("");
            System.out.println(str1[0] + str2[1] + str3[2]);
            
          }
}

Compiler output:
Main.java:12: error: array required, but String found
            System.out.println(str1[0] + str2[1] + str3[2]);
                                   ^
Main.java:12: error: array required, but String found
            System.out.println(str1[0] + str2[1] + str3[2]);
                                             ^
Main.java:12: error: array required, but String found
            System.out.println(str1[0] + str2[1] + str3[2]);
                                                       ^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main{
char a;
for(int i=0; i<9;i++){
cin>>a;
if(i==0||i==4||i==8)
cout<<a;}}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:1: error: expected primary-expression before 'char'
    4 | char a;
      | ^~~~
a.cc:4:1: error: expected '}' before 'char'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:1: error: expected unqualified-id before 'for'
    5 | for(int i=0; i<9;i++){
      | ^~~
a.cc:5:14: error: 'i' does not name a type
    5 | for(int i=0; i<9;i++){
      |              ^
a.cc:5:18: error: 'i' does not name a type
    5 | for(int i=0; i<9;i++){
      |                  ^
a.cc:8:10: error: expected declaration before '}' token
    8 | cout<<a;}}
      |          ^
Language: C++

#include <iostream>
#include <string>

int main()
{
  string s1, s2,s3;
  
  cin >> s1 >> s2 >> s3;
  
  cout << s1[0] << s2[1] << s2[2] << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s1, s2,s3;
      |   ^~~~~~
a.cc:6:3: 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:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> s1 >> s2 >> s3;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 's1' was not declared in this scope
    8 |   cin >> s1 >> s2 >> s3;
      |          ^~
a.cc:8:16: error: 's2' was not declared in this scope
    8 |   cin >> s1 >> s2 >> s3;
      |                ^~
a.cc:8:22: error: 's3' was not declared in this scope
    8 |   cin >> s1 >> s2 >> s3;
      |                      ^~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << s1[0] << s2[1] << s2[2] << "\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  vector<vector<<char>> data(3, vector<char>(3));
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> data[i][j];
    }
  }
  cout << data[0][0]data[1][1]data[2][2] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: template argument 1 is invalid
    5 |   vector<vector<<char>> data(3, vector<char>(3));
      |                      ^~
a.cc:5:22: error: template argument 2 is invalid
a.cc:5:48: error: expression list treated as compound expression in initializer [-fpermissive]
    5 |   vector<vector<<char>> data(3, vector<char>(3));
      |                                                ^
a.cc:5:33: error: cannot convert 'std::vector<char>' to 'int' in initialization
    5 |   vector<vector<<char>> data(3, vector<char>(3));
      |                                 ^~~~~~~~~~~~~~~
      |                                 |
      |                                 std::vector<char>
a.cc:8:18: error: invalid types 'int[int]' for array subscript
    8 |       cin >> data[i][j];
      |                  ^
a.cc:11:15: error: invalid types 'int[int]' for array subscript
   11 |   cout << data[0][0]data[1][1]data[2][2] << endl;
      |               ^
Language: C++

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

int main() {
  vector<vector<<string>> data(3, vector<string>(3));
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      cin >> data[i][j];
    }
  }
  cout << data[0][0]+data[1][1]+data[2][2] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: template argument 1 is invalid
    5 |   vector<vector<<string>> data(3, vector<string>(3));
      |                        ^~
a.cc:5:24: error: template argument 2 is invalid
a.cc:5:52: error: expression list treated as compound expression in initializer [-fpermissive]
    5 |   vector<vector<<string>> data(3, vector<string>(3));
      |                                                    ^
a.cc:5:35: error: cannot convert 'std::vector<std::__cxx11::basic_string<char> >' to 'int' in initialization
    5 |   vector<vector<<string>> data(3, vector<string>(3));
      |                                   ^~~~~~~~~~~~~~~~~
      |                                   |
      |                                   std::vector<std::__cxx11::basic_string<char> >
a.cc:8:18: error: invalid types 'int[int]' for array subscript
    8 |       cin >> data[i][j];
      |                  ^
a.cc:11:15: error: invalid types 'int[int]' for array subscript
   11 |   cout << data[0][0]+data[1][1]+data[2][2] << endl;
      |               ^
a.cc:11:26: error: invalid types 'int[int]' for array subscript
   11 |   cout << data[0][0]+data[1][1]+data[2][2] << endl;
      |                          ^
a.cc:11:37: error: invalid types 'int[int]' for array subscript
   11 |   cout << data[0][0]+data[1][1]+data[2][2] << endl;
      |                                     ^
Language: C++

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

int main(){
  int a,b,c,d,e,f,g,f,i;
  cin>>a>>b>>c>>d>>e>>f>>g>>h>>i;
  cout<<a<<e<<i<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: redeclaration of 'int f'
    5 |   int a,b,c,d,e,f,g,f,i;
      |                     ^
a.cc:5:17: note: 'int f' previously declared here
    5 |   int a,b,c,d,e,f,g,f,i;
      |                 ^
a.cc:6:29: error: 'h' was not declared in this scope
    6 |   cin>>a>>b>>c>>d>>e>>f>>g>>h>>i;
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
vector<vector<char>> c(3,vector<char>(3));
  for(int i=0;i<3;i++){
  strin S;
    cin>>S;
    for(int j=0;j<3;j++){
  c.at(i).at(j)=S.at(j);
  }
  }
  string s="";
  s+=(c.at(0).at(0)+c.at(1).at(1)+c.at(2).at(2));
  cout<<s<<endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'strin' was not declared in this scope; did you mean 'stdin'?
    6 |   strin S;
      |   ^~~~~
      |   stdin
a.cc:7:10: error: 'S' was not declared in this scope
    7 |     cin>>S;
      |          ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s1 = sc.next();
    String s2 = sc.next();
    String s3 = sc.next();
    ans += String.valueOf(s1.charAt(0));
    ans += String.valueOf(s2.charAt(1));
    ans += String.valueOf(s3.charAt(2));
    System.out.println(ans);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    ans += String.valueOf(s1.charAt(0));
    ^
  symbol:   variable ans
  location: class Main
Main.java:10: error: cannot find symbol
    ans += String.valueOf(s2.charAt(1));
    ^
  symbol:   variable ans
  location: class Main
Main.java:11: error: cannot find symbol
    ans += String.valueOf(s3.charAt(2));
    ^
  symbol:   variable ans
  location: class Main
Main.java:12: error: cannot find symbol
    System.out.println(ans);
                       ^
  symbol:   variable ans
  location: class Main
4 errors
Language: C++

#include <stdio.h>
using namespace std;

int main() {
  char a[5][5];
  for (int i=0; i<3; i++) {
    scanf("%s", a[i]);
  }
  
  for (int i=0; i<3; i++) {
    printf("%c", a[i][i]);
  }
  printf('\n');
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   13 |   printf('\n');
      |          ^~~~
      |          |
      |          char
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,-1,sizeof(x))
const int INF = 1000000001;

int main(){
  char[3][3];
  rep(i, 3){
    rep(j, 3){
      cin >> a[i][j];
    }
  }
  cout << a[0][0]<<a[1][1]<<a[2][2] <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected identifier before numeric constant
   10 |   char[3][3];
      |        ^
a.cc:10:8: error: expected ']' before numeric constant
   10 |   char[3][3];
      |        ^
      |        ]
a.cc:10:7: error: structured binding declaration cannot have type 'char'
   10 |   char[3][3];
      |       ^
a.cc:10:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:7: error: empty structured binding declaration
a.cc:10:10: error: expected initializer before '[' token
   10 |   char[3][3];
      |          ^
a.cc:13:14: error: 'a' was not declared in this scope
   13 |       cin >> a[i][j];
      |              ^
a.cc:16:11: error: 'a' was not declared in this scope
   16 |   cout << a[0][0]<<a[1][1]<<a[2][2] <<endl;
      |           ^
Language: C++

int main() {
int a,b,c;
cin >> a >> b;
c = 0;
for(int i=a ; i <= b;i++){
 if((i%100) - (i/1000) == 0)
  c++;
}
 cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin >> a >> b;
      | ^~~
a.cc:9:2: error: 'cout' was not declared in this scope
    9 |  cout << c << endl;
      |  ^~~~
a.cc:9:15: error: 'endl' was not declared in this scope
    9 |  cout << c << endl;
      |               ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int c11,c12,c13,c21,c22,c23,c31,c32,c33;
cin c11>>c12>>c13>>c21>>c22>>c23>>c31>>c32>>c33;
  
cout<<c11<<c22<<c33<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected ';' before 'c11'
    6 | cin c11>>c12>>c13>>c21>>c22>>c23>>c31>>c32>>c33;
      |    ^~~~
      |    ;
Language: C++

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

int main() {
  int a,b,c,d,e,f,g,h,i;
  cin >> a >> b >> c;
  cin >> d >> e >> f;
  cin >> g >> h >> i
    cout << "a" << "e" << "i" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before 'cout'
    8 |   cin >> g >> h >> i
      |                     ^
      |                     ;
    9 |     cout << "a" << "e" << "i" << endl;
      |     ~~~~
Language: C

#include<stdio.h> 
int main() {
  char a [ 1 0 ] [ 1 0 ] ;
scanf(”%s%s%s ” , a [0] , a [1] , a [ 2 ] ) ;
  printf(”%c%c%c\n” , a [ 0 ] [ 0 ] , a [ 1 ] [ 1 ] , a [ 2 ] [ 2 ] ) ;
}


Compiler output:
main.c: In function 'main':
main.c:3:13: error: expected ']' before numeric constant
    3 |   char a [ 1 0 ] [ 1 0 ] ;
      |             ^~
      |             ]
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+201D>%s%s%s <U+201D> , a [0] , a [1] , a [ 2 ] ) ;
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(”%s%s%s ” , a [0] , a [1] , a [ 2 ] ) ;
      |        ^
main.c:4:15: error: stray '\342' in program
    4 | scanf(<U+201D>%s%s%s <U+201D> , a [0] , a [1] , a [ 2 ] ) ;
      |                      ^~~~~~~~
main.c:5:10: error: stray '\342' in program
    5 |   printf(<U+201D>%c%c%c\n<U+201D> , a [ 0 ] [ 0 ] , a [ 1 ] [ 1 ] , a [ 2 ] [ 2 ] ) ;
      |          ^~~~~~~~
main.c:5:11: error: expected expression before '%' token
    5 |   printf(”%c%c%c\n” , a [ 0 ] [ 0 ] , a [ 1 ] [ 1 ] , a [ 2 ] [ 2 ] ) ;
      |           ^
main.c:5:17: error: stray '\' in program
    5 |   printf(”%c%c%c\n” , a [ 0 ] [ 0 ] , a [ 1 ] [ 1 ] , a [ 2 ] [ 2 ] ) ;
      |                 ^
main.c:5:19: error: stray '\342' in program
    5 |   printf(<U+201D>%c%c%c\n<U+201D> , a [ 0 ] [ 0 ] , a [ 1 ] [ 1 ] , a [ 2 ] [ 2 ] ) ;
      |                          ^~~~~~~~
Language: C

#include<stdio .h> 
int main() {
  char a [ 1 0 ] [ 1 0 ] ;
scanf(”%s%s%s ” , a [0] , a [1] , a [ 2 ] ) ;
  printf(”%c%c%c\n” , a [ 0 ] [ 0 ] , a [ 1 ] [ 1 ] , a [ 2 ] [ 2 ] ) ;
}


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

#include<stdio .h> 
int main() {
  char a [ 1 0 ] [ 1 0 ] ;
scanf(”%s%s%s ” , a [0] , a [1] , a [ 2 ] ) ;
  printf(”%c%c%c\n” , a [ 0 ] [ 0 ] , a [ 1 ] [ 1 ] , a [ 2 ] [ 2 ] ) ;
}


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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] o = new char[3];
    o[0] = sc.next().charAt(0);
    o[1] = sc.next().charAt(1);
    o[2] = sc.next().charAt(2);
    String ou = new String(o);
    System.out.pritnln(ou);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    System.out.pritnln(ou);
              ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] o = new char[3];
    o[0] = sc.next().charAt(0);
    o[1] = sc.next().charAt(1);
    o[2] = sc.next().charAt(2);
    String ou = new String(o);
    System.out.pritnln(o);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    System.out.pritnln(o);
              ^
  symbol:   method pritnln(char[])
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] o = new char[3];
    o[0] = sc.next().charAt(0);
    o[1] = sc.next().charAt(1);
    o[2] = sc.next().charAt(2);
    System.out.pritnln(new String(o));
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    System.out.pritnln(new String(o));
              ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] o = new char[3];
    o[0] = sc.next().charAt(0);
    o[1] = sc.next().charAt(1);
    o[2] = sc.next().charAt(2);
    System.out.pritnln(String(o));
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    System.out.pritnln(String(o));
                       ^
  symbol:   method String(char[])
  location: class Main
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] o = new char[3];
    o[0] = sc.next().charAt(0);
    o[1] = sc.next().charAt(1);
    o[2] = sc.next().charAt(2);
    System.out.pritnln(o);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    System.out.pritnln(o);
              ^
  symbol:   method pritnln(char[])
  location: variable out of type PrintStream
1 error
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout>>a[0]>>b[1]>>c[2];
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: invalid types 'int[int]' for array subscript
    6 |   cout>>a[0]>>b[1]>>c[2];
      |          ^
a.cc:6:16: error: invalid types 'int[int]' for array subscript
    6 |   cout>>a[0]>>b[1]>>c[2];
      |                ^
a.cc:6:22: error: invalid types 'int[int]' for array subscript
    6 |   cout>>a[0]>>b[1]>>c[2];
      |                      ^
Language: C++

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

int main(){
char c[3][3];
REP(i,3){
    REP(j,3){
        cin>>c[i][j];
    }
}

cout<<c[0][0]<<c[1][1]<<c[2][2]

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: expected ';' before '}' token
   14 | cout<<c[0][0]<<c[1][1]<<c[2][2]
      |                                ^
      |                                ;
   15 | 
   16 | }
      | ~
Language: C++

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

int main(){
vector<int> c(3);

for(int j = 0; j <3;j++){
cin>>c.at(j);
}
cout<<c.at(0).at(0)<<c.at(1).at(1)<<c.at(2).at(2)<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: request for member 'at' in 'c.std::vector<int>::at(0)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   10 | cout<<c.at(0).at(0)<<c.at(1).at(1)<<c.at(2).at(2)<<endl;
      |               ^~
a.cc:10:30: error: request for member 'at' in 'c.std::vector<int>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   10 | cout<<c.at(0).at(0)<<c.at(1).at(1)<<c.at(2).at(2)<<endl;
      |                              ^~
a.cc:10:45: error: request for member 'at' in 'c.std::vector<int>::at(2)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   10 | cout<<c.at(0).at(0)<<c.at(1).at(1)<<c.at(2).at(2)<<endl;
      |                                             ^~
Language: C++

#include<iostream>

using namespace std;

int main(void)
{
  char s[3][3][3];
  
  for(int i=0;i<3;i++){
    for(int j=0;j<3;j++){
      for(int k=0;k<3;k++){
        cin>>[i][j][k];
      }
    }
  }
  
  cout<<s[0][0][0]<<s[1][1][1]<<s[2][2][2]<<endl;
  return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:12:17: error: expected '{' before '[' token
   12 |         cin>>[i][j][k];
      |                 ^
a.cc: In function 'int main()':
a.cc:12:17: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
Language: C++

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

int main()
{
  int a,b,c[5] ;  
  cin >> a >> b;
  int count = 0;
  for(int i=a;i<=b;++i){
    for(int j=0;j<5;j++) c[i]=i%(pow(10,j+1));
    if(c[0]==c[5] && c[1]==c[4])
         count++;
  }
    cout << count << "\n" ;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   11 |     for(int j=0;j<5;j++) c[i]=i%(pow(10,j+1));
      |                               ~^~~~~~~~~~~~~~
      |                               |     |
      |                               int   __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main()
{
  int a,b,c[5] ;  
  cin >> a >> b;
  int count = 0;
  for(int i=a;i<=b;++i){
    for(int j=0;j<5;j++) c[i]=i%((j+1)*(10));
    if(c[0]==c[5] && c[1]==c[4])
         count++;
    }
  }
    cout << count << "\n" ;
    return 0;
}


Compiler output:
a.cc:16:5: error: 'cout' does not name a type
   16 |     cout << count << "\n" ;
      |     ^~~~
a.cc:17:5: error: expected unqualified-id before 'return'
   17 |     return 0;
      |     ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main() {
    vector<string> v(3);
    rep(i,n) cin >> v[i];
    cout << v[0][0]+v[1][1]+v[2][2] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'n' was not declared in this scope
    8 |     rep(i,n) cin >> v[i];
      |           ^
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i = 0; i < n; ++i)
      |                                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int up;
  int down;
  cin >> down;
  cin >> up;
  int count;
  count = (up - down) / 100 -1;
  int min;
  int max;
  min = down - down%100 + (down - down%10000) + 10*(down%10000-down%100) ;
  max = up - up%100 + (up - up%10000) + 10*(up%10000-up%100) ;
  
  if(min => down){
    count++;
  }
  if(max =< up){
    count++;
  }
  cout << count << endl;
    
 
   	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: expected primary-expression before '>' token
   16 |   if(min => down){
      |           ^
a.cc:19:11: error: expected primary-expression before '<' token
   19 |   if(max =< up){
      |           ^
Language: C++

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

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

int main(){
    string a,b,c; cin >> a >> b >> c;
    cout << a[0] << b[1] << c[2] << endl; return 0;
    ]
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: expected primary-expression before ']' token
   23 |     ]
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
	int A, B;
	cin >> A >> B;
  int count=0;
  for (int i=A; i<B+1; i++){
  if ((i-10000*(i/10000))/1000 == ((i-i%10)/10)%10 && i/10000 == i %10);
    //kaibun teki nara count++ suru
    count++;
  }
  }
	cout << count<< endl;
}


Compiler output:
a.cc:15:9: error: 'cout' does not name a type
   15 |         cout << count<< endl;
      |         ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

int main() {
  string a, b, c;
  cin >> a >> b >> c;
  cout << a.at(0) + b.at(1) + c.at(2) << endl;
}

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

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


int main() {
	string s, t, u;
	cin >> s >> t >> u;
	string ans = 's[0]' + 't[1]' + 'u[2]';
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc:12:22: warning: multi-character character constant [-Wmultichar]
   12 |         string ans = 's[0]' + 't[1]' + 'u[2]';
      |                      ^~~~~~
a.cc:12:31: warning: multi-character character constant [-Wmultichar]
   12 |         string ans = 's[0]' + 't[1]' + 'u[2]';
      |                               ^~~~~~
a.cc:12:40: warning: multi-character character constant [-Wmultichar]
   12 |         string ans = 's[0]' + 't[1]' + 'u[2]';
      |                                        ^~~~~~
a.cc: In function 'int main()':
a.cc:12:29: warning: integer overflow in expression of type 'int' results in '-407477830' [-Woverflow]
   12 |         string ans = 's[0]' + 't[1]' + 'u[2]';
      |                      ~~~~~~~^~~~~~~~
a.cc:12:38: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |         string ans = 's[0]' + 't[1]' + 'u[2]';
      |                      ~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

c = [[0] * 3 for i in range(3)]
for i in range(3):
    c[i] = input()
print(c[0][0] + c[1][1] + c[2][2])


Compiler output:
a.cc:1:1: error: 'c' does not name a type
    1 | c = [[0] * 3 for i in range(3)]
      | ^
Language: C++

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

int main(void)
{
  vector<string> S(3);
  for(int i=0;i<3;i++)cin>>S[i];
  cout<<S[0][0]<<S[1][1]<<S[2][2]<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string> S(3);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | #include <string>
a.cc:7:16: error: expected primary-expression before '>' token
    7 |   vector<string> S(3);
      |                ^
a.cc:7:18: error: 'S' was not declared in this scope
    7 |   vector<string> S(3);
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); i++)
int main()
{
    string s[3];
  	for(int i=0; i<3; i++)
    	cin >> s[i];
	
  	string ans = s[0][0] + s[1][1] + s[2][2];
    cout << ans <<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   10 |         string ans = s[0][0] + s[1][1] + s[2][2];
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); i++)
int main()
{
    int s[3];
  	for(int i=0; i<3; i++)
    	cin >> s[i];

    cout << s[0][0] + s[1][1] + s[2][2] <<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: invalid types 'int[int]' for array subscript
   10 |     cout << s[0][0] + s[1][1] + s[2][2] <<endl;
      |                 ^
a.cc:10:27: error: invalid types 'int[int]' for array subscript
   10 |     cout << s[0][0] + s[1][1] + s[2][2] <<endl;
      |                           ^
a.cc:10:37: error: invalid types 'int[int]' for array subscript
   10 |     cout << s[0][0] + s[1][1] + s[2][2] <<endl;
      |                                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
    int main(){
        int a, b, c;
            cin >> a >> b >> c;
                cout << a.at(1) << b.at(2) << c.at(3) << endl;
    return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: request for member 'at' in 'a', which is of non-class type 'int'
    6 |                 cout << a.at(1) << b.at(2) << c.at(3) << endl;
      |                           ^~
a.cc:6:38: error: request for member 'at' in 'b', which is of non-class type 'int'
    6 |                 cout << a.at(1) << b.at(2) << c.at(3) << endl;
      |                                      ^~
a.cc:6:49: error: request for member 'at' in 'c', which is of non-class type 'int'
    6 |                 cout << a.at(1) << b.at(2) << c.at(3) << endl;
      |                                                 ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
#define INF 1e10
#define MOD 1e9+7
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
signed main(){
int a[3][3];
  rep(i,3)rep(j,3)
    cin>>a[i][j];
  rap(i,3)
    cout<<a[i][i];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: 'i' was not declared in this scope
   19 |   rap(i,3)
      |       ^
a.cc:19:3: error: 'rap' was not declared in this scope; did you mean 'rep'?
   19 |   rap(i,3)
      |   ^~~
      |   rep
Language: C++

#include <iostream>
using namespace std;
int main(){
  char a;
  for(int i = 0;i<3;i++){
    for(int j = 0;j<3;j++){
      cin >> a
      if(i==j) cout << a;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'if'
    7 |       cin >> a
      |               ^
      |               ;
    8 |       if(i==j) cout << a;
      |       ~~
Language: C++

#include <iostream>
using namspace std;
int main(){
  char a;
  for(int i = 0;i<3;i++){
    for(int j = 0;j<3;j++){
      cin >> a
      if(i==j) cout << a;
    }
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |       cin >> a
      |       ^~~
      |       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
      |                  ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string a,b,c;
  cin >> a >> b >> c;
  cout << a.at(0) << b.at(1) << c.at(2); << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:42: error: expected primary-expression before '<<' token
    6 |   cout << a.at(0) << b.at(1) << c.at(2); << endl;
      |                                          ^~
Language: C++

#include<iostream>
 
using namespace std;
int main()
 
{
 
char a[3][3];
 
for (int i=0;i<3;i++){
    for (int j=0;j<3;j++){
        cin>>a[i][j];
    }
}
 
for(int i=0;i<3;i++){
    cout<<a[i][i];
}
 
 
return 0;
 


Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: expected '}' at end of input
   21 | return 0;
      |          ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

///スマホコーディング
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<int(n);++i)
typedef long long ll;
const int inf=1e9;
int main(){
  vector<vector<char>> v(3);
  rep(i,3)rep(j,3){
    char c;cin>>c(
    v[i].emplace_back(c);
  }
  cout<<v[0][0]<<v[1][1]<<v[2][2]<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected ')' before ';' token
   11 |     v[i].emplace_back(c);
      |                         ^
      |                         )
a.cc:10:18: note: to match this '('
   10 |     char c;cin>>c(
      |                  ^
Language: C++

#include<iosream>
using namespace std;
int main()
{
   string a,b,c;
  cin>>a>>b>>c;
  cout<<a[0]<<b[1]<<c[2];
  
    return 0;
}

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

#include <iostream>
#include <conio.h>
using namespace std;
main()
{
    string a,b,c,j;
    cin>>a;
    cin>>b;
    cin>>c;
    j.resize(3);
    j[0]=a[0];
    j[1]=b[1];
    j[2]=c[2];
    cout<<j;






}


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

#include <iostream>
#include <conio.h>
using namespace std;
main()
{
    string a,b,c,j;
    cin>>a;
    cin>>b;
    cin>>c;
    j[1]=a[1];
    j[2]=b[2];
    j[3]=c[3];
    cout<<j;






}


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

#include <iostream>
#include <conio.h>
using namespace std;
main()
{

   int a;
   string s;
   cin>>s;
   a=s.size();
   for(int i=0;i<s.size();i++){
        cout<<s[a-i-1]<<' ';
   }

}


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

#include <stdio.h>
int main(void){
  char s[2][10];
  scanf("%s",&s[0][]);
    scanf("%s",&s[1][]);
    scanf("%s",&s[2][]);
  printf("%c%c%c\n",s[0][0],s[1][1],s[2][2]);
  return 0;
              }

Compiler output:
main.c: In function 'main':
main.c:4:20: error: expected expression before ']' token
    4 |   scanf("%s",&s[0][]);
      |                    ^
main.c:5:22: error: expected expression before ']' token
    5 |     scanf("%s",&s[1][]);
      |                      ^
main.c:6:22: error: expected expression before ']' token
    6 |     scanf("%s",&s[2][]);
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

int main(){
    stirng s1,s2,s3;cin>>s1>>s2>>s3;
    cout << s1[0] << s2[1] << s3[2] << ednl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:5: error: 'stirng' was not declared in this scope
   30 |     stirng s1,s2,s3;cin>>s1>>s2>>s3;
      |     ^~~~~~
a.cc:30:26: error: 's1' was not declared in this scope; did you mean 'y1'?
   30 |     stirng s1,s2,s3;cin>>s1>>s2>>s3;
      |                          ^~
      |                          y1
a.cc:30:30: error: 's2' was not declared in this scope; did you mean 'se'?
   30 |     stirng s1,s2,s3;cin>>s1>>s2>>s3;
      |                              ^~
      |                              se
a.cc:30:34: error: 's3' was not declared in this scope; did you mean 'se'?
   30 |     stirng s1,s2,s3;cin>>s1>>s2>>s3;
      |                                  ^~
      |                                  se
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

int main(){
    stirng s1,s2,3;cin>>s1>>s2>>s3;
    cout << s1[0] << s2[1] << s3[2] << ednl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:5: error: 'stirng' was not declared in this scope
   30 |     stirng s1,s2,3;cin>>s1>>s2>>s3;
      |     ^~~~~~
a.cc:30:25: error: 's1' was not declared in this scope; did you mean 'y1'?
   30 |     stirng s1,s2,3;cin>>s1>>s2>>s3;
      |                         ^~
      |                         y1
a.cc:30:29: error: 's2' was not declared in this scope; did you mean 'se'?
   30 |     stirng s1,s2,3;cin>>s1>>s2>>s3;
      |                             ^~
      |                             se
a.cc:30:33: error: 's3' was not declared in this scope; did you mean 'se'?
   30 |     stirng s1,s2,3;cin>>s1>>s2>>s3;
      |                                 ^~
      |                                 se
Language: C++

#include <iostream>
int main(){
  string a,b,c;
  cin >>a >> b>> c;
  cout << a[0]+b[1]+c[2] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string a,b,c;
      |   ^~~~~~
a.cc:3:3: 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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >>a >> b>> c;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:9: error: 'a' was not declared in this scope
    4 |   cin >>a >> b>> c;
      |         ^
a.cc:4:14: error: 'b' was not declared in this scope
    4 |   cin >>a >> b>> c;
      |              ^
a.cc:4:18: error: 'c' was not declared in this scope
    4 |   cin >>a >> b>> c;
      |                  ^
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << a[0]+b[1]+c[2] << 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:5:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout << a[0]+b[1]+c[2] << endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;
import java.io.*;

public class AtcoderA{
  public AtcoderA(){
    Scanner sc = new Scanner(System.in);
    String str1 = "";
    String str2 = "";
    String str3 = "";
    str1 = sc.next();
    str2 = sc.next();
    str3 = sc.next();
    System.out.println(str1);
    System.out.print(str1.charAt(0));
    System.out.print(str1.charAt(1));
    System.out.print(str1.charAt(2));
//    System.out.println(str1.charAt(0)+str1.charAt(1)+str1.charAt(2));
//    hoge();
  }

  public void hoge(){
    System.out.println("hoge");
  }

  public static void main(String args[]){
    AtcoderA a = new AtcoderA();
//    a.hoge();
  }
}


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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef long long ll;
const int INF=1001001001;
int main(){
  string s1,s2,s2;
  cin>>s1>>s2>>s3;
  cout<<s1[0]<<s2[1]<<s3[2]<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: redeclaration of 'std::string s2'
    7 |   string s1,s2,s2;
      |                ^~
a.cc:7:13: note: 'std::string s2' previously declared here
    7 |   string s1,s2,s2;
      |             ^~
a.cc:8:16: error: 's3' was not declared in this scope; did you mean 's2'?
    8 |   cin>>s1>>s2>>s3;
      |                ^~
      |                s2
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef long long ll;
const int INF=1001001001;
int main(){
  int s1,s2,s2;
  cin>>s1>>s2>>s3;
  cout<<s1[0]<<s2[1]<<s3[2]<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: redeclaration of 'int s2'
    7 |   int s1,s2,s2;
      |             ^~
a.cc:7:10: note: 'int s2' previously declared here
    7 |   int s1,s2,s2;
      |          ^~
a.cc:8:16: error: 's3' was not declared in this scope; did you mean 's2'?
    8 |   cin>>s1>>s2>>s3;
      |                ^~
      |                s2
a.cc:9:11: error: invalid types 'int[int]' for array subscript
    9 |   cout<<s1[0]<<s2[1]<<s3[2]<<endl;
      |           ^
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |   cout<<s1[0]<<s2[1]<<s3[2]<<endl;
      |                  ^