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

#include <iostream>
#include <string>
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:4:3: error: 'string' was not declared in this scope
    4 |   string a, b, c;
      |   ^~~~~~
a.cc:4: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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |          ^
a.cc:5:15: error: 'b' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |               ^
a.cc:5:20: error: 'c' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |                    ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   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: C++

#include <iostream>
#include <string> 
#include <vector>
#include <utility>

using namespace std;

template <class T>ostream &operator<<(ostream &o, const vector<T>&obj) {
	o << "{"; for (int i = 0; i < (int)obj.size(); ++i)o << (i > 0 ? ", " : "") << obj[i]; o << "}"; return o;
}

template <class T, class U>ostream &operator<<(ostream &o, const pair<T, U>&obj) {
	o << "{" << obj.first << ", " << obj.second << "}"; return o;
}

template <template <class tmp>  class T, class U> ostream &operator<<(ostream &o, const T<U> &obj) {
	o << "{"; for (auto itr = obj.begin(); itr != obj.end(); ++itr)o << (itr != obj.begin() ? ", " : "") << *itr; o << "}"; return o;
}

template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
	cout << head << " ";
	print(forward<Tail>(tail)...);
}

template <class Head> void print(Head&& head) {
	cout << head;
	print();
}

void print() {
	cout << endl;
}

int main() {
	string c1,c2,c3;
  	cin >> c1 >> c2 >> c3;
  	print(c1[0],c2[1],c3[2]);
  
	return 0;
}



Compiler output:
a.cc: In function 'void print(Head&&)':
a.cc:27:14: error: no matching function for call to 'print()'
   27 |         print();
      |         ~~~~~^~
a.cc:20:43: note: candidate: 'template<class Head, class ... Tail> void print(Head&&, Tail&& ...)'
   20 | template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
      |                                           ^~~~~
a.cc:20:43: note:   candidate expects at least 1 argument, 0 provided
a.cc:25:28: note: candidate: 'template<class Head> void print(Head&&)'
   25 | template <class Head> void print(Head&& head) {
      |                            ^~~~~
a.cc:25:28: note:   candidate expects 1 argument, 0 provided
a.cc: In instantiation of 'void print(Head&&, Tail&& ...) [with Head = char&; Tail = {}]':
a.cc:22:7:   recursively required from 'void print(Head&&, Tail&& ...) [with Head = char&; Tail = {char&}]'
   22 |         print(forward<Tail>(tail)...);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:22:7:   required from 'void print(Head&&, Tail&& ...) [with Head = char&; Tail = {char&, char&}]'
a.cc:37:9:   required from here
   37 |         print(c1[0],c2[1],c3[2]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:22:14: error: no matching function for call to 'print()'
   22 |         print(forward<Tail>(tail)...);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:20:43: note: candidate: 'template<class Head, class ... Tail> void print(Head&&, Tail&& ...)'
   20 | template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
      |                                           ^~~~~
a.cc:20:43: note:   candidate expects at least 1 argument, 0 provided
Language: C++

#include <iostream>
#include <string> 
#include <vector>

using namespace std;

template <class T>ostream &operator<<(ostream &o, const vector<T>&obj) {
	o << "{"; for (int i = 0; i < (int)obj.size(); ++i)o << (i > 0 ? ", " : "") << obj[i]; o << "}"; return o;
}

template <class T, class U>ostream &operator<<(ostream &o, const pair<T, U>&obj) {
	o << "{" << obj.first << ", " << obj.second << "}"; return o;
}

template <template <class tmp>  class T, class U> ostream &operator<<(ostream &o, const T<U> &obj) {
	o << "{"; for (auto itr = obj.begin(); itr != obj.end(); ++itr)o << (itr != obj.begin() ? ", " : "") << *itr; o << "}"; return o;
}

template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
	cout << head << " ";
	print(forward<Tail>(tail)...);
}

template <class Head> void print(Head&& head) {
	cout << head;
	print();
}

void print() {
	cout << endl;
}

int main() {
	string c1,c2,c3;
  	cin >> c1 >> c2 >> c3;
  	print(c1[0],c2[1],c3[2]);
  
	return 0;
}



Compiler output:
a.cc: In function 'void print(Head&&)':
a.cc:26:14: error: no matching function for call to 'print()'
   26 |         print();
      |         ~~~~~^~
a.cc:19:43: note: candidate: 'template<class Head, class ... Tail> void print(Head&&, Tail&& ...)'
   19 | template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
      |                                           ^~~~~
a.cc:19:43: note:   candidate expects at least 1 argument, 0 provided
a.cc:24:28: note: candidate: 'template<class Head> void print(Head&&)'
   24 | template <class Head> void print(Head&& head) {
      |                            ^~~~~
a.cc:24:28: note:   candidate expects 1 argument, 0 provided
a.cc: In instantiation of 'void print(Head&&, Tail&& ...) [with Head = char&; Tail = {}]':
a.cc:21:7:   recursively required from 'void print(Head&&, Tail&& ...) [with Head = char&; Tail = {char&}]'
   21 |         print(forward<Tail>(tail)...);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:21:7:   required from 'void print(Head&&, Tail&& ...) [with Head = char&; Tail = {char&, char&}]'
a.cc:36:9:   required from here
   36 |         print(c1[0],c2[1],c3[2]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:21:14: error: no matching function for call to 'print()'
   21 |         print(forward<Tail>(tail)...);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:19:43: note: candidate: 'template<class Head, class ... Tail> void print(Head&&, Tail&& ...)'
   19 | template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
      |                                           ^~~~~
a.cc:19:43: note:   candidate expects at least 1 argument, 0 provided
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;
int main(){
	string a,b,c,x;
	cin >> a >> b >> c;
	x[0] = a[0]
	x[1] = b[1]
	x[2] = c[2]
	cout << x <<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected ';' before 'x'
    6 |         x[0] = a[0]
      |                    ^
      |                    ;
    7 |         x[1] = b[1]
      |         ~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int 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:8:12: error: invalid types 'int[int]' for array subscript
    8 |     cout<<a[0]<<b[1]<<c[2]<<endl;
      |            ^
a.cc:8:18: error: invalid types 'int[int]' for array subscript
    8 |     cout<<a[0]<<b[1]<<c[2]<<endl;
      |                  ^
a.cc:8:24: error: invalid types 'int[int]' for array subscript
    8 |     cout<<a[0]<<b[1]<<c[2]<<endl;
      |                        ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b,c;
    cout<<a[0]<<b[1]<<c[2]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: invalid types 'int[int]' for array subscript
    7 |     cout<<a[0]<<b[1]<<c[2]<<endl;
      |            ^
a.cc:7:18: error: invalid types 'int[int]' for array subscript
    7 |     cout<<a[0]<<b[1]<<c[2]<<endl;
      |                  ^
a.cc:7:24: error: invalid types 'int[int]' for array subscript
    7 |     cout<<a[0]<<b[1]<<c[2]<<endl;
      |                        ^
Language: C++

#include <iostream>
#include <array>

using namespace std;

int main()
{
  array <array<char, 3>, 3> S;
  for(int j = 0; j < 3; j++){
   for(int i = 0; i < 3; i++){
    std::cin >> S[j][i];
   }
  std::cout << S[j][j];
  i = 0;  
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'i' was not declared in this scope
   14 |   i = 0;
      |   ^
Language: C++

#include <iostream>
#include <array>

int main()
{
  std::array<char, 3> S
  for(int j = 0; j < 3; j++){
   for(int i = 0; i < 3; i++){
    std::cin >> S.at(i);
   }
  std::cout << S.at(j);
  i = 0;  
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'for'
    7 |   for(int j = 0; j < 3; j++){
      |   ^~~
a.cc:7:18: error: 'j' was not declared in this scope
    7 |   for(int j = 0; j < 3; j++){
      |                  ^
Language: C++

#include <iostream>
#include <array>

int main()
{
  std::array<char, 3> S
  for(int j = 0; j < 3; j++){
  for(int i = 0; i < 3; i++){
    std::cin >> S.at(i);
  }
  std::cout << S.at(j);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'for'
    7 |   for(int j = 0; j < 3; j++){
      |   ^~~
a.cc:7:18: error: 'j' was not declared in this scope
    7 |   for(int j = 0; j < 3; j++){
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a[3];
int p,w;
#include<bits/stdc++.h>
using namespace std;
string a[3];
char p;
int w;

int main(){
    for(int i=0;i<3;i++){
        for(int u=0;u<3;u++){
            cin>>p;
            if(i==u){
                a[w]=p;
                w++;
            }
        }
    }
    cout<<a[0]<<a[1]<<a[2]<<endl;
}

int main(){
    for(int i=0;i<3;i++){
        for(int u=0;u<3;u++){
            cin>>p;
            if(i==u){
                a[w]=p;
                w++;
            }
        }
    }
    cout<<a[0]<<a[1]<<a[2]<<endl;
}


Compiler output:
a.cc:7:8: error: redefinition of 'std::string a [3]'
    7 | string a[3];
      |        ^
a.cc:3:8: note: 'std::string a [3]' previously declared here
    3 | string a[3];
      |        ^
a.cc:8:6: error: conflicting declaration 'char p'
    8 | char p;
      |      ^
a.cc:4:5: note: previous declaration as 'int p'
    4 | int p,w;
      |     ^
a.cc:9:5: error: redefinition of 'int w'
    9 | int w;
      |     ^
a.cc:4:7: note: 'int w' previously declared here
    4 | int p,w;
      |       ^
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main(){
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main(){
      |     ^~~~
Language: C++

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



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

#include <iostream>
#include <string>

string s[3];

int main() {
cin >> s[0] >> s[1] >> s[2];
cout << s[0][0] << s[1][1] << s[2][2] << endl;
return 0;
}

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

#include <algorithm>
#include <iostream>
#include <vector>
#include <math.h>
#include <set>
#include <map>
#include <string>
#include <stack>
#include <queue>
#include <iomanip>
#include <numeric>
#include <tuple>
#include <bitset>
#include <complex>
#define _USE_MATH_DEFINES
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef complex<double> xy_t;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
double pi = 3.141592653589793;
ll mod = 1000000007;
int intmax = 2147483647;
int intmin = -2147483648;
ll llmax = 9223372036854775807;
ll llmin = -9223372036854775807;
ll inf = llmax / 2;
double eps = 1e-11;

int main() {
    string c[3];
    cin >> c[0] >> c[1] >> c[2];
    string ans = c[0][0] + c[1][1] + c[2][2];
    cout << ans << endl;
}


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

#include<iostream>
#include<algorithm>
#include<math.h>
#include<cstdio>
#include<ctype.h>
#include<stdio.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<numeric>
#include<string>
typedef long long ll;
using namespace std;
 
ll gcd(ll a, ll b){
if(a<b){return gcd(b,a);}
else if(a%b){return gcd(b,a%b);}
else{return b;}
}
int main(){
  ll A,B;
  cin>>A>>B;
  int ans=0;
  for(int i=A; i<=B; ++i){
    int x,y,z,w;
    x=i%10;
    y=i/10%10;
    z=i/1000%10;
    w=i/10000%10;
    if(x==w&&y==z)
    {ans++;}}
    cout<<ans<<endl;
    
  }


}

  


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

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanWords)
	
	ans := make([]byte, 3);
	for i := 0; i < 3; i++ {
	    text := ScanText(scanner)
	    ans[i] = text[i]
	}
	fmt.Println(string(ans))
}

func ScanInt(scanner *bufio.Scanner) int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func ScanFloat64(scanner *bufio.Scanner) float64 {
	scanner.Scan()
	f, e := strconv.ParseFloat(scanner.Text(), 64)
	if e != nil {
		panic(e)
	}
	return f
}

func ScanText(scanner *bufio.Scanner) string {
	scanner.Scan()
	return scanner.Text()
}

func Max(a, b int) int {
	if a < b {
		return b
	}
	return a
}

func Min(a, b int) int {
	if a > b {
		return b
	}
	return a
}

func Abs(a int) int {
	if a < 0 {
		a *= -1
	}
	return a
}
 

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:22:1: error: 'func' does not name a type
   22 | func ScanInt(scanner *bufio.Scanner) int {
      | ^~~~
a.cc:31:1: error: 'func' does not name a type
   31 | func ScanFloat64(scanner *bufio.Scanner) float64 {
      | ^~~~
a.cc:40:1: error: 'func' does not name a type
   40 | func ScanText(scanner *bufio.Scanner) string {
      | ^~~~
a.cc:45:1: error: 'func' does not name a type
   45 | func Max(a, b int) int {
      | ^~~~
a.cc:52:1: error: 'func' does not name a type
   52 | func Min(a, b int) int {
      | ^~~~
a.cc:59:1: error: 'func' does not name a type
   59 | func Abs(a int) int {
      | ^~~~
Language: C++

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
	char a[3][3];
	for(int i=0;i<3;i++)	{
		for(int j=0;j<3;j++){
			cin>>a[i][j];
		}
	}
	cout<<a[0][0]<<a[1][1]<<a[2][2];
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |                         cin>>a[i][j];
      |                         ^~~
      |                         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout<<a[0][0]<<a[1][1]<<a[2][2];
      |         ^~~~
      |         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 () {
	string str[3][3];
	for(int i = 0; i < 3; i++){
		for(int j = 0; j < 3; j++){
			cin >> str[i][j];
		}
	}
	
	for(i = 0; i < 3; i++){
		cout << str[i][i];
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'i' was not declared in this scope
   12 |         for(i = 0; i < 3; i++){
      |             ^
Language: C++

#include <bits/stdc++.h>
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];
}
}
   
   cout << a[0][0] << a[1][1] << a[2][2];



Compiler output:
a.cc: In function 'int main()':
a.cc:13:42: error: expected '}' at end of input
   13 |    cout << a[0][0] << a[1][1] << a[2][2];
      |                                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;
public class DiagonalString{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String[] a = sc.nextLine().split("");
        String[] b = sc.nextLine().split("");
        String[] c = sc.nextLine().split("");
        String top =a[0];
        String middle = b[1];
        String bottom = c[2];
        System.out.println(top +""+ middle + "" + bottom);
    }
}


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

#include<iostream> #include<string> #include<algorithm> #include<vector> #include<queue> #include<map> #include<math.h> #include<iomanip> #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) #define FORR(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n); 
#define VSORT(v) sort(v.begin(), v.end()); #define REVERSE(v,n) reverse(v,v+n); #define llong long long 
#define pb(a) push_back(a) 
#define INF 9999999 
using namespace std; 
typedef pair<int,int> P; 
int dy[4]={0,0,1,-1}; 
int dx[4]={1,-1,0,0}; 
int main(){ 
    string s1,s2,s3;
    cin>>s1>>s2>>s3;
    cout<<s1[0]<<s2[1]<<s3[2]<<endl;
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> #include<string> #include<algorithm> #include<vector> #include<queue> #include<map> #include<math.h> #include<iomanip> #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) #define FORR(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n);
      |                    ^
a.cc:2:16: error: '#' is not followed by a macro parameter
    2 | #define VSORT(v) sort(v.begin(), v.end()); #define REVERSE(v,n) reverse(v,v+n); #define llong long long
      |                ^
Language: C++

#include<iostream> #include<string> #include<algorithm> #include<vector> #include<queue> #include<map> #include<math.h> #include<iomanip> #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) #define FORR(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n); 
#define VSORT(v) sort(v.begin(), v.end()); #define REVERSE(v,n) reverse(v,v+n); #define llong long long 
#define pb(a) push_back(a) 
#define INF 9999999 
using namespace std; 
typedef pair<int,int> P; 
int dy[4]={0,0,1,-1}; 
int dx[4]={1,-1,0,0}; 
int main(){ 
    string s1,s2,s3;
    cin>>s1>>s2>>s3;
    cout<<s1[0]+s2[1]+s3[2]<<endl;
} 

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> #include<string> #include<algorithm> #include<vector> #include<queue> #include<map> #include<math.h> #include<iomanip> #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) #define FORR(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n);
      |                    ^
a.cc:2:16: error: '#' is not followed by a macro parameter
    2 | #define VSORT(v) sort(v.begin(), v.end()); #define REVERSE(v,n) reverse(v,v+n); #define llong long long
      |                ^
Language: C++

#include<iostream>
#include<vector>

using namespace std;

int main() {
	vector<char> C(9);
	for(int i = 0;i<9;i++)
		cin >> C.at(i);
	cout << C.at(0) << C.at(4) << c.at(8) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:39: error: 'c' was not declared in this scope
   10 |         cout << C.at(0) << C.at(4) << c.at(8) << endl;
      |                                       ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main()
{
	string s1,s2,s3;
  cin>>s1>.s2>>s3;
  cout << S1[0] << s2[1] <<s3[2] << endl;
  
  return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before '.' token
    9 |   cin>>s1>.s2>>s3;
      |           ^
a.cc:10:11: error: 'S1' was not declared in this scope; did you mean 's1'?
   10 |   cout << S1[0] << s2[1] <<s3[2] << endl;
      |           ^~
      |           s1
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'b'
   11 |   cout<<a[0]b[1]c[2];
      |             ^
      |             ;
Language: C++

#include<iostream>
#include<string>

int main()
{
	int a[9];
    
  for(int i=o i<8 i++)
    string i;
	cin << i;
  
    cout << i << endl;
  
  return 0;
}
  
    
  
    
      
      
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'o' was not declared in this scope
    8 |   for(int i=o i<8 i++)
      |             ^
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin << i;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << i << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << i << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:22: error: expected ')' before ';' token
   12 |     cout << i << endl;
      |                      ^
      |                      )
a.cc:8:6: note: to match this '('
    8 |   for(int i=o i<8 i++)
      |      ^
Language: Java

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Iterator;
import java.util.Collections;
import java.util.Comparator;
import java.util.Random;

class Main{
        public static void main(String args[]){
                //Scanner sc = new Scanner(System.in);
                char[][] c = new char[3][3];
                for(int i=0;i<3;i++){
                        for(int j=0;j<3;j++){
                                c[i][j] = System.in.read();
                        }
                }
                for(int i=0;i<3;i++)System.out.print(c[i][i]);
        }
}


Compiler output:
Main.java:16: error: incompatible types: possible lossy conversion from int to char
                                c[i][j] = System.in.read();
                                                        ^
1 error
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <math.h>
#include <algorithm>
#include <chrono>
#include <queue>
#include <functional>

#define out(t) cout << (t) << "\n"

using namespace std;

typedef unsigned long long ull;
typedef long long ll;
typedef unsigned int uint;

int popcount(uint x) {
    x -= x >> 1 & 0x55555555;
    x = (x & 0x33333333) + (x >> 2 & 0x33333333);
    x = x + (x >> 4) & 0x0F0F0F0F;
    return x * 0x01010101 >> 24;
}

int tzcnt(uint x) {
    return popcount(~x & x - 1);
}

struct Point {
    int x, y;

    Point(int p, int q) : x(p), y(q) {}
};

ll ans[100];

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

    cin t, a, b, c;

    cin >> a >> t >> t >> t >> b >> t >> t >> t >> c;

    cout << a << b << c << "\n";

    int aaa;
    cin >> aaa;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:8: error: expected ';' before 't'
   43 |     cin t, a, b, c;
      |        ^~
      |        ;
a.cc:45:12: error: 'a' was not declared in this scope
   45 |     cin >> a >> t >> t >> t >> b >> t >> t >> t >> c;
      |            ^
a.cc:45:17: error: 't' was not declared in this scope; did you mean 'tm'?
   45 |     cin >> a >> t >> t >> t >> b >> t >> t >> t >> c;
      |                 ^
      |                 tm
a.cc:45:32: error: 'b' was not declared in this scope
   45 |     cin >> a >> t >> t >> t >> b >> t >> t >> t >> c;
      |                                ^
a.cc:45:52: error: 'c' was not declared in this scope
   45 |     cin >> a >> t >> t >> t >> b >> t >> t >> t >> c;
      |                                                    ^
Language: C++

#include<stdio.h>
int main(void)
{
   char  c[4][4];
   int i,j;

   for(i=0;i<3;i++)
    scanf("%c%c%c",&c[i][0],&c[i][1],&c[i][2]);

   for(i=0;i<=2;i++)
    printf("%c",c[i][i]);

    printf("\n");

   return 0;
}
~                                                                               
~                                                                               
~                              

Compiler output:
a.cc:18:1: error: expected class-name before '~' token
   18 | ~
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
   char  c[4][4];
   int i,j;

   for(i=0;i<3;i++)
    scanf("%c%c%c%c",&c[i][0],&c[i][1],&c[i][2],&c[i][3]);

   for(i=0;i<=3;i++)
    printf("%c",c[i][i]);

    printf("\n");

   return 0;
}
~               

Compiler output:
a.cc:17:2: error: expected class-name at end of input
   17 | ~
      |  ^
Language: C++

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

int main(){
  str ans = "";
  for(int i = 0; i < 3; i++){
    for(int j = 0; j < 3; j++){
      char c;
      cin >> c;
      if(i == j) ans += c;
    }
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str ans = "";
      |   ^~~
      |   std
a.cc:10:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |       if(i == j) ans += c;
      |                  ^~~
      |                  abs
a.cc:13:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   cout << ans << endl;
      |           ^~~
      |           abs
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>>d>>e>>f>>>g>>h>>i;
  
  cout<<a<<e<<i<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:26: error: expected primary-expression before '>' token
    5 |   cin>>a>>b>>c>>d>>e>>f>>>g>>h>>i;
      |                          ^
Language: C

#include<stdio.h>
int main(void) {
	unsigned long n, k, i, j,h;
	unsigned long cont = 0;
	scanf("%lu%lu", &n, &k);
        cont += 0.5 * (n - k) * (n - k + 1);
       for(i = 1;i <= n;i++){
           if(i % 2){
                cont += (i + 1) / 2 - k; 
                for(j = 1;j <= (i + 1) / 2 - k + 1;  j++){
                        if(i % j >= k)cont +=1;
}
}
else {     cont += (i +2) / 2 - k;  
  for(j = 1;j <= (i + 2) / 2 - k + 1;  j++){
                        if(i % j >= k)cont +=1;
}
}
}
printf("%d", cont);
return 0;
  }



	            	printf("%lu", cont);
	return 0;
}

Compiler output:
main.c:26:32: error: expected declaration specifiers or '...' before string constant
   26 |                         printf("%lu", cont);
      |                                ^~~~~
main.c:26:39: error: unknown type name 'cont'; did you mean 'const'?
   26 |                         printf("%lu", cont);
      |                                       ^~~~
      |                                       const
main.c:27:9: error: expected identifier or '(' before 'return'
   27 |         return 0;
      |         ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

#include<stdio.h>
int main(void) {
	unsigned long n, m, i;
	scanf("%lu%lu", &n, &m);
	printf("%lu",(n * m - (2 * m + 2 *n) + 4);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:50: error: expected ')' before ';' token
    5 |         printf("%lu",(n * m - (2 * m + 2 *n) + 4);
      |               ~                                  ^
      |                                                  )
main.c:6:18: error: expected ';' before '}' token
    6 |         return 0;
      |                  ^
      |                  ;
    7 | }
      | ~
Language: C

include<stdio.h>
int main(void) {
	int i, j, a, b;
	int g = 0;
	scanf("%d%d", &a, &b);
	for (i = a; i <= b; i++) {
		if ((i % 10 == i / 10000) && ((i / 1000) % 10 == (i / 100) % 10))g++;
	}
	printf("%d", g);
	return 0;
}





Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 | sacnf("%c%c%c",&c[2][0],&c[2][1],&c[2][2]);
      | ^~~~~
      | scanf
Language: C

#include<stduo.h>
int main(void){
char c[3][3];
scanf("%c%c%c", &c[0][0], &c[0][1],&c[0][2]);
scanf("%c%c%c",&c[1][0],&c[1][1],&c[1][2]);
sacnf("%c%c%c",&c[2][0],&c[2][1],&c[2][2]);
printf("%c%c%c",c[0][0],c[1][1],c[2][2]);
return 0;
}

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

#include<iostream>
using namespace sdt;
int main(){
int P[3],Q[Q],R[3];
for(int i=1;i<=3;i++){cin>>P[i];}
  for(int i=1;i<=3;i++){cin>>Q[i];}
 for(int i=1;i<=3;i++){cin>>R[i];}
  cout<<P[1]<<Q[2]<<R[3]<<endl;
  return 0;
}

Compiler output:
a.cc:2:17: error: 'sdt' is not a namespace-name
    2 | using namespace sdt;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:4:12: error: 'Q' was not declared in this scope
    4 | int P[3],Q[Q],R[3];
      |            ^
a.cc:5:23: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | for(int i=1;i<=3;i++){cin>>P[i];}
      |                       ^~~
      |                       std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   for(int i=1;i<=3;i++){cin>>Q[i];}
      |                         ^~~
      |                         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:24: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  for(int i=1;i<=3;i++){cin>>R[i];}
      |                        ^~~
      |                        std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<P[1]<<Q[2]<<R[3]<<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:8:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<P[1]<<Q[2]<<R[3]<<endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int cnt = 0;
		for(int i = a; i <= b; i++) {
			int n10 = i % 10;
			int n100 = i / 10 % 10;
			int n1000 = i / 1000 % 10;
			int n10000 = i / 10000 % 10;
			if(n10 == n10000 && n100 == n1000) {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
}

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

package AtCoder;

import java.util.Scanner;
public class B090 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int cnt = 0;
		for(int i = a; i <= b; i++) {
			int v1 = i % 10;//一の位
			int v2 = i / 10 % 10;//十の位
			int v3 = i / 1000 % 10;//千くらい
			int v4 = i / 10000 % 10;//万の位
			if(v1 == v4 && v2 == v3) {
				cnt++;
			}
		}
		System.out.println(cnt);
	}
}


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

#include<stdio.h>
int main()
{
    char a[4][4];
    int i;
    for(i=0;i<3;i++)
    {
        gets(a[i]);
    }
    printf("%c",a[0][0]);
    printf("%c",a[1][1]);
    printf("%c",a[2][2]);
    printf("\n");
    return 0;
}


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

#include <iostream>
#include <string>
using namespace std;
 
int main(){
  string s1,s2,s3;
  cin>>s1;
  cin>>s2;
  cin>>s3;
  ans=s1[0]+s2[1]+s3[2];
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   ans=s1[0]+s2[1]+s3[2];
      |   ^~~
      |   abs
Language: C++

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

int main(){
  string s1,s2,s3:
  cin>>s1;
  cin>>s2;
  cin>>s3;
  ans=s1[0]+s2[1]+s3[2];
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: found ':' in nested-name-specifier, expected '::'
    6 |   string s1,s2,s3:
      |                  ^
      |                  ::
a.cc:6:16: error: 's3' has not been declared
    6 |   string s1,s2,s3:
      |                ^~
a.cc:7:6: error: qualified-id in declaration before '>>' token
    7 |   cin>>s1;
      |      ^~
a.cc:9:8: error: 's3' was not declared in this scope; did you mean 's2'?
    9 |   cin>>s3;
      |        ^~
      |        s2
a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   ans=s1[0]+s2[1]+s3[2];
      |   ^~~
      |   abs
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
for(i = 0;i < 3;i++){
System.out.println(sc.next.charAt(i));
}
}
}

Compiler output:
Main.java:5: error: cannot find symbol
for(i = 0;i < 3;i++){
    ^
  symbol:   variable i
  location: class Main
Main.java:5: error: cannot find symbol
for(i = 0;i < 3;i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:5: error: cannot find symbol
for(i = 0;i < 3;i++){
                ^
  symbol:   variable i
  location: class Main
Main.java:6: error: cannot find symbol
System.out.println(sc.next.charAt(i));
                                  ^
  symbol:   variable i
  location: class Main
Main.java:6: error: cannot find symbol
System.out.println(sc.next.charAt(i));
                     ^
  symbol:   variable next
  location: variable sc of type Scanner
5 errors
Language: C++

#include <algorithm>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)

using namespace std;
typedef long long int lli;

int main(){
	string c[3];
	cin>>c[0]>>c[1]>>c[2];
	cout<<c[0][0]<<c[1][1]<<c[2][2];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'string' was not declared in this scope
    9 |         string c[3];
      |         ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <algorithm>
  +++ |+#include <string>
    2 | #define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin>>c[0]>>c[1]>>c[2];
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <algorithm>
  +++ |+#include <iostream>
    2 | #define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
a.cc:10:14: error: 'c' was not declared in this scope
   10 |         cin>>c[0]>>c[1]>>c[2];
      |              ^
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<c[0][0]<<c[1][1]<<c[2][2];
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;
int main(){
     char c;
     cin>>c;cout<<c;cin>>c>>c>>c>>c;cout<<c;cin>>c>>c>>c>>c;cout<<c;



Compiler output:
a.cc: In function 'int main()':
a.cc:5:69: error: expected '}' at end of input
    5 |      cin>>c;cout<<c;cin>>c>>c>>c>>c;cout<<c;cin>>c>>c>>c>>c;cout<<c;
      |                                                                     ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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



int main(){
	for(int i=0;i<3;i++){
		for(int j=0;j<3;j++){
			cin >> ch;
			if(i==j) cout << ch;
		}
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:32: error: 'ch' was not declared in this scope
    9 |                         cin >> ch;
      |                                ^~
Language: Java

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

public class A {
	public static void main(String[] args) throws Exception {
		FastScanner sc = new FastScanner();
		String a = sc.next();
		String b = sc.next();
		String c = sc.next();
		System.out.println(a.charAt(0) + "" + b.charAt(1) + c.charAt(2));
	}
	static class FastScanner {
		public BufferedReader reader;
		public StringTokenizer tokenizer;

		public FastScanner() {
			reader = new BufferedReader(new InputStreamReader(System.in), 32768);
			tokenizer = null;
		}

		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}

		public int nextInt() {
			return Integer.parseInt(next());
		}

		public long nextLong() {
			return Long.parseLong(next());
		}

		public double nextDouble() {
			return Double.parseDouble(next());
		}

		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		}

	}
}

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

#include<iostream>
using namespace std;
 
int main(){
  char c[3][3];
 
  for(int i=0; i< 3; i++){
	  cin >> c[i][0] >> c[i][1] >> c[i][2];
  }

  cout << c[0]0] << c[1][1] << c[2][2] << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before numeric constant
   11 |   cout << c[0]0] << c[1][1] << c[2][2] << endl;
      |               ^
      |               ;
Language: C++

var ans = ""
for i in (0..2):
  let x = stdin.readLine
  ans &= x[i]

echo ans


Compiler output:
a.cc:2:11: error: too many decimal points in number
    2 | for i in (0..2):
      |           ^~~~
a.cc:1:1: error: 'var' does not name a type
    1 | var ans = ""
      | ^~~
Language: C++

import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line1 = sc.nextLine().split("");
		String[] line2 = sc.nextLine().split("");
		String[] line3 = sc.nextLine().split("");
		System.out.println(line1[0] + line2[1] + line3[2]);
	}
}	


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:15: error: expected ':' before 'static'
    3 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:3:33: error: 'String' has not been declared
    3 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:3:42: error: expected ',' or '...' before 'args'
    3 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:10:8: error: expected ';' after class definition
   10 | }
      |  ^      
      |        ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:17: error: 'Scanner' was not declared in this scope
    4 |                 Scanner sc = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:5:17: error: 'String' was not declared in this scope
    5 |                 String[] line1 = sc.nextLine().split("");
      |                 ^~~~~~
a.cc:5:24: error: expected primary-expression before ']' token
    5 |                 String[] line1 = sc.nextLine().split("");
      |                        ^
a.cc:6:24: error: expected primary-expression before ']' token
    6 |                 String[] line2 = sc.nextLine().split("");
      |                        ^
a.cc:7:24: error: expected primary-expression before ']' token
    7 |                 String[] line3 = sc.nextLine().split("");
      |                        ^
a.cc:8:17: error: 'System' was not declared in this scope
    8 |                 System.out.println(line1[0] + line2[1] + line3[2]);
      |                 ^~~~~~
a.cc:8:36: error: 'line1' was not declared in this scope
    8 |                 System.out.println(line1[0] + line2[1] + line3[2]);
      |                                    ^~~~~
a.cc:8:47: error: 'line2' was not declared in this scope
    8 |                 System.out.println(line1[0] + line2[1] + line3[2]);
      |                                               ^~~~~
a.cc:8:58: error: 'line3' was not declared in this scope
    8 |                 System.out.println(line1[0] + line2[1] + line3[2]);
      |                                                          ^~~~~
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line1 = sc.nextLine().split("");
		String[] line2 = sc.nextLine().split("");
		String[] line3 = sc.nextLine().split("");
		System.out.println(line1[0] + line2[1] + line3[2]);
	}
}


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

#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;                                            

int a,b,N,K
ll cunt;
int main(){
    cin>>N>>K;

    for(b=K+1;b<=N;b++){
        cunt+=(N/b)*max(0ll,b-K)+max(0ll,N%b+1-K);
    }
    cout<<cunt<<"\n";
    return 0;
}

Compiler output:
a.cc:7:1: error: expected initializer before 'll'
    7 | ll cunt;
      | ^~
a.cc: In function 'int main()':
a.cc:9:13: error: 'K' was not declared in this scope
    9 |     cin>>N>>K;
      |             ^
a.cc:12:9: error: 'cunt' was not declared in this scope
   12 |         cunt+=(N/b)*max(0ll,b-K)+max(0ll,N%b+1-K);
      |         ^~~~
a.cc:14:11: error: 'cunt' was not declared in this scope
   14 |     cout<<cunt<<"\n";
      |           ^~~~